{"id":2599,"date":"2019-09-06T00:29:50","date_gmt":"2019-09-06T07:29:50","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=2599"},"modified":"2019-09-06T00:29:50","modified_gmt":"2019-09-06T07:29:50","slug":"fedora-fix-for-broken-rpmbuild-in-fedora-31","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=2599","title":{"rendered":"Fedora &#8211; Fix for Broken rpmbuild in Fedora 31."},"content":{"rendered":"<p>Testing <strong>Fedora 31<\/strong> &#8211; which is still work-in-progress, of course..<\/p>\n<p>Tried to use <span style=\"font-family: Courier New, Courier, monospace;\"><strong># rpmbuild &#8211;rebuild<\/strong> <\/span>to create a missing RPM from a F30 source RPM, and found the following error:<\/p>\n<p><code><span style=\"font-family: Courier New, Courier, monospace;\"><strong>.............. Illegal char ')' (0x29) in: Obsoletes:..........<\/strong><\/span><\/code><\/p>\n<p>I found a reference to this error in the buglist, but it had been flagged as &#8216;rawhide&#8217;, and closed, although the problem still existed in F31 (Pre).\u00a0 <a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=1721570\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=1721570<\/a><\/p>\n<p>The fix, is to <span style=\"text-decoration: underline;\">install<\/span> the source rpm <strong><span style=\"font-family: Courier New, Courier, monospace;\"># rpm -ivh xxxxxxxxxxx.src.rpm<\/span><\/strong>, and then edit the corresponding<span style=\"font-family: Courier New, Courier, monospace;\"><strong> xxx.spec<\/strong><\/span> file to be found in <strong>~\/rpmbuild\/SPECS<\/strong><\/p>\n<p>Remove all occurrences of &#8216;<strong><span style=\"font-family: Courier New, Courier, monospace;\">%{?_isa}<\/span><\/strong>&#8216; in the <span style=\"font-family: Courier New, Courier, monospace;\"><strong>xxxx.spec<\/strong><\/span> file (usually after <em>Provides:<\/em> and <em>Obsoletes:<\/em> statements), and then run <strong><span style=\"font-family: Courier New, Courier, monospace;\"># rpmbuild -bs ~\/rpmbuild\/SPECS\/xxxx.spec<\/span><\/strong> , which will re-create a &#8216;fixed&#8217; source RPM in <strong>~\/rpmbuild\/SRPMS<\/strong>, and then run <strong><span style=\"font-family: Courier New, Courier, monospace;\"># rpmbuild &#8211;rebuild ~\/rpmbuild\/SRPMS\/xxxxx.src.rpm<\/span><\/strong>, using this fixed source RPM, and the binary RPMs will be created correctly..<\/p>\n<p>This is only a temporary workaround, until the (presumed) bug is finally\u00a0fixed..<\/p>\n<p><em>Robert Gadsdon\u00a0\u00a0 September 6th 2019.<\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing Fedora 31 &#8211; which is still work-in-progress, of course.. Tried to use # rpmbuild &#8211;rebuild to create a missing RPM from a F30 source RPM, and found the following error: &#8230;&#8230;&#8230;&#8230;.. Illegal char &#8216;)&#8217; (0x29) in: Obsoletes:&#8230;&#8230;&#8230;. I found a reference to this error in the buglist, but it had been flagged as &#8216;rawhide&#8217;, and closed, <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=2599\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,6,10,11,15,19,1535],"tags":[2092,161,2095,2093,2094,418],"class_list":["post-2599","post","type-post","status-publish","format-standard","hentry","category-compilation","category-crash-and-burn","category-fedora","category-hacks","category-linux-2","category-opinion","category-quirks","tag-fedora-31","tag-fix","tag-illegal-char","tag-pre-release","tag-rpmbuild-bug","tag-workaround"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2599"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2599\/revisions"}],"predecessor-version":[{"id":2601,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2599\/revisions\/2601"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}