Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595062 - =dev-libs/libtasn1-4.9 - configure.ac patch doesn't call eautoreconf, breaks cross-compiling
Summary: =dev-libs/libtasn1-4.9 - configure.ac patch doesn't call eautoreconf, breaks ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-09-24 20:55 UTC by James Le Cuirot
Modified: 2017-10-07 08:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against libtasn1-4.9.ebuild (0001-dev-libs-libtasn1-4.9-add-missing-eautoreconf-fix-cr.patch,1.14 KB, patch)
2016-09-24 20:55 UTC, James Le Cuirot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2016-09-24 20:55:21 UTC
Created attachment 447788 [details, diff]
Patch against libtasn1-4.9.ebuild

A patch against configure.ac was added to 4.9 but no call to eautoreconf was added. The patch also breaks cross-compiling as the prebuilt man pages are no longer considered fresh. help2man is subsequently called and this always fails when cross-compiling.

Please see the attached patch to deal with both issues. I can commit this myself if you like.
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2016-09-24 22:05:32 UTC
Hi,
I fixed several issues, however, I do not understand why the help2man breaks in cross compile, can you please attach a build log? It should work as far as I remember.
Thanks.
Comment 2 James Le Cuirot gentoo-dev 2016-09-24 22:50:19 UTC
It's fundamentally at odds with cross-compiling as it tries to execute the binary with --help in order to generate the man page. A stupid idea, if you ask me! See these links.

https://lists.debian.org/debian-devel/2007/11/msg00212.html
https://lists.gnu.org/archive/html/grub-devel/2009-09/msg00206.html
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2016-10-03 23:05:12 UTC
I still try to understand... the help2man is executed on the build not the host, so it should succeed.
build-aux/missing help2man is running the host help2man.
so unless you have the host bin in your $PATH it should work.
Comment 4 James Le Cuirot gentoo-dev 2016-10-04 06:58:07 UTC
Yes, it is the build's help2man but this then executes the host binary that was just built (such as asn1Parser) with --help in order to generate the man page.
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2017-10-07 08:24:45 UTC
this version is out of tree.