Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1379521 - python-pdfminer FTBFS on AArch64 EPEL7
Summary: python-pdfminer FTBFS on AArch64 EPEL7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-pdfminer
Version: epel7
Hardware: aarch64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Rosser
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-27 03:45 UTC by D. Marlin
Modified: 2016-10-21 15:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-11 19:55:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description D. Marlin 2016-09-27 03:45:12 UTC
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).

Comment 1 Ben Rosser 2016-10-01 21:37:29 UTC
Whoops, you're right. That shouldn't be %{name}%{?_isa}, just ${name}.

I've pushed updates to cmap-resources.

Comment 2 Fedora Update System 2016-10-02 22:23:15 UTC
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

Comment 3 Fedora Update System 2016-10-03 06:49:20 UTC
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

Comment 4 Fedora Update System 2016-10-03 07:20:23 UTC
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

Comment 5 Fedora Update System 2016-10-03 07:23:13 UTC
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

Comment 6 Fedora Update System 2016-10-09 02:44:35 UTC
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.

Comment 7 D. Marlin 2016-10-10 17:36:53 UTC
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?

Comment 8 Ben Rosser 2016-10-10 22:30:12 UTC
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.

Comment 9 Fedora Update System 2016-10-11 19:55:07 UTC
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.

Comment 10 Fedora Update System 2016-10-11 23:21:46 UTC
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.

Comment 11 Fedora Update System 2016-10-21 15:52:26 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.