Bug 1379521
| Summary: | python-pdfminer FTBFS on AArch64 EPEL7 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | D. Marlin <dmarlin> |
| Component: | python-pdfminer | Assignee: | Ben Rosser <rosser.bjr> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | rosser.bjr |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | aarch64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-11 19:55:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Whoops, you're right. That shouldn't be %{name}%{?_isa}, just ${name}.
I've pushed updates to cmap-resources.
cmap-resources-2016.09.04-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-030b0fc487 cmap-resources-2016.09.04-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-fbae88a5a8 cmap-resources-2016.09.04-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-31a528c2ff cmap-resources-2016.09.04-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f06331ab9c cmap-resources-2016.09.04-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. Reopening:
Thank you for addressing the missing cmap-resources issue. I pulled in cmap-resources-2016.09.04-2.el7 from epel-testing and tried the build again. Unfortunately, python-pdfminer still fails to successfully build on AArch64 (RHELSA-7.2). It ends with the error:
+ cp /usr/share/cmap/cmap-japan1-6/cid2code.txt cmaprsrc/cid2code_Adobe_Japan1.txt
+ cp /usr/share/cmap/cmap-korea1-2/cid2code.txt cmaprsrc/cid2code_Adobe_Korea1.txt
+ cp /usr/share/cmap/cmap-gb1-5/cmapresources_gb1-5/cid2code.txt cmaprsrc/cid2code_Adobe_GB1.txt
cp: cannot stat '/usr/share/cmap/cmap-gb1-5/cmapresources_gb1-5/cid2code.txt': No such file or directory
In the mock buildroot I do find:
[builder@amd-seattle-11 ~]$ ls -l ./usr/share/cmap/cmap-gb1-5/
-rw-r--r--. 1 root root 1900492 Sep 4 01:08 cid2code.txt
drwxr-xr-x. 2 root root 4096 Oct 10 12:58 CMap
but there is no:
/usr/share/cmap/cmap-gb1-5/cmapresources_gb1-5/
directory. If I make the following change in the spec file:
--- a/SPECS/python-pdfminer.spec 2016-09-06 00:29:07.000000000 -0400
+++ b/SPECS/python-pdfminer.spec 2016-10-10 13:08:48.336690116 -0400
@@ -104,7 +104,7 @@
cp %{_datadir}/cmap/cmap-japan1-6/cid2code.txt cmaprsrc/cid2code_Adobe_Japan1.txt
cp %{_datadir}/cmap/cmap-korea1-2/cid2code.txt cmaprsrc/cid2code_Adobe_Korea1.txt
# ARGH. temporary bugfix.
-cp %{_datadir}/cmap/cmap-gb1-5/cmapresources_gb1-5/cid2code.txt cmaprsrc/cid2code_Adobe_GB1.txt
+cp %{_datadir}/cmap/cmap-gb1-5/cid2code.txt cmaprsrc/cid2code_Adobe_GB1.txt
cp %{_datadir}/cmap/cmap-cns1-6/cid2code.txt cmaprsrc/cid2code_Adobe_CNS1.txt
it builds without error.
Could it be that the "temporary bugfix" is no longer needed?
Correct; that's the issue. (I'd made a packaging error and put the gb1-5 resources into an extra subdirectory). I've pushed a commit to the epel7 branch with that change and tested that the package builds on x86_64 again; it should hopefully build on aarch64 too, now. cmap-resources-2016.09.04-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. cmap-resources-2016.09.04-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. cmap-resources-2016.09.04-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: python-pdfminer fails to build from source for Fedora EPEL7 on RHELSA-7.2. Version-Release number of selected component (if applicable): cmap-resources-cns1-6-2015.12.05-2.el7 How reproducible: consistently. Steps to Reproduce: 1. On a RHELSA-7.2 host: mock rebuild python-pdfminer-20160614-3.el7.src.rpm 2. 3. Actual results: Error: Package: cmap-resources-cns1-6-2015.12.05-2.el7.noarch (epel) Requires: cmap-resources(aarch-64) = 2015.12.05-2.el7 Expected results: builds without errors. Additional info: Is this a bogus requires, since cmap-resources is a noarch package, but cmap-resources-cns1: Requires: %{name}%{?_isa} = %{version}-%{release} RPM macros indicate: # ISA dependency marker, none for noarch and name-bitness for others %_isa %{?__isa:(%{__isa})}%{!?__isa:%{nil}} "none for noarch". Also note: AArch64 does not support multilib (does not support 32-bit).