Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392053 - autotools-utils.eclass in dev-libs/libevent-2.0.16 incorrectly rewrites phase functions of autotools-utils
Summary: autotools-utils.eclass in dev-libs/libevent-2.0.16 incorrectly rewrites phase...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
: 392055 (view as bug list)
Depends on:
Blocks: 392063
  Show dependency tree
 
Reported: 2011-11-27 05:46 UTC by Ben Kohler
Modified: 2011-11-27 22:15 UTC (History)
2 users (show)

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


Attachments
full build.log (build.log,13.36 KB, text/plain)
2011-11-27 05:46 UTC, Ben Kohler
Details
dev-libs/libevent: Fix invalid use of autotools-utils. (dev-libslibevent-Fix-invalid-use-of-autotools-util.patch,4.62 KB, patch)
2011-11-27 09:03 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2011-11-27 05:46:00 UTC
Similar to bug 392047, this emerge fails with the following error:

/var/tmp/portage/dev-libs/libevent-2.0.16/temp/environment: line 379: pushd: /var/tmp/portage/dev-libs/libevent-2.0.16/work/libevent-2.0.16_build: No such file or directory

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-libs/libevent-2.0.16
Actual Results:  
emerge fails


Like the other bug, setting AUTOTOOLS_IN_SOURCE_BUILD=1 in the environment or in the ebuild makes it set the right AUTOTOOLS_BUILD_DIR and the build succeeds.
Comment 1 Ben Kohler gentoo-dev 2011-11-27 05:46:27 UTC
Created attachment 293909 [details]
full build.log
Comment 2 Ben Kohler gentoo-dev 2011-11-27 05:56:39 UTC
Strangely I traced this out-of-nowhere failure to a recent change in autotools-utils.eclass, revision 1.25 (of autotools-utils.eclass) builds libevent fine bug 1.26 does not. It looks like the change just adds "|| die" to a few of the pushd lines, not sure why this would break what was building before.
Comment 3 Tim Harder gentoo-dev 2011-11-27 07:31:40 UTC
*** Bug 392055 has been marked as a duplicate of this bug. ***
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-11-27 08:39:33 UTC
(In reply to comment #2)
> Strangely I traced this out-of-nowhere failure to a recent change in
> autotools-utils.eclass, revision 1.25 (of autotools-utils.eclass) builds
> libevent fine bug 1.26 does not. It looks like the change just adds "|| die" to
> a few of the pushd lines, not sure why this would break what was building
> before.

It's because the ebuild used the eclass incorrectly from the beginning and maintainer ignored warnings. I'll apply a correct patch in a short while.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-11-27 09:03:12 UTC
Created attachment 293915 [details, diff]
dev-libs/libevent: Fix invalid use of autotools-utils.

Fixes: https://bugs.gentoo.org/show_bug.cgi?id=392053

(Portage version: 2.2.0_alpha77/git/Linux x86_64, signed Manifest commit with key 42B9401D)
Comment 6 Bart Kus 2011-11-27 11:22:54 UTC
This fixed it!  Thanks!
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-27 21:54:59 UTC
Comment on attachment 293915 [details, diff]
dev-libs/libevent: Fix invalid use of autotools-utils.

Thanks for the idea, but the patch needlessly complicates the ebuild. I'd rather just remove the .la files.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-27 22:15:42 UTC
Fixed in all dev-libs/libevent-2*. Thanks for reporting. And thanks for explaining to me how to not use autotools-utils.eclass. The ride was fun at the time.