Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149583 - dev-libs/openssl uses makedepend in "make depend" phase
Summary: dev-libs/openssl uses makedepend in "make depend" phase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 23:00 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-10-01 14:03 UTC (History)
5 users (show)

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


Attachments
make use of userland_GNU (openssl-0.9.8d.ebuild.patch,347 bytes, patch)
2006-10-01 04:18 UTC, Florian Steinel
Details | Diff
openssl-0.9.8d-configure.patch (openssl-0.9.8d-configure.patch,458 bytes, patch)
2006-10-01 05:06 UTC, Florian Steinel
Details | Diff
This is my emerge info (emerge.info.txt,2.96 KB, text/plain)
2006-10-01 08:19 UTC, awal11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-29 23:00:57 UTC
As per subject, the make depend phase of openssl seems to use the makedepend command (it fails with it not found without it merged).

The command is present in x11-misc/makedepend.

It shouldn't be a fatal failure, but I suppose that the dependency should be either cleared up or make depend skipped.
Comment 1 SpanKY gentoo-dev 2006-09-30 11:31:51 UTC
doesnt fail for me, but the build obviously tries to run it

guess we'll see how many people complain
Comment 2 Paul Barnetta 2006-09-30 16:29:19 UTC
From what I can see `makedepend' wont be used if MAKEDEPPROG is set to gcc which happens in `Configure' if $cc is set to "gcc" -- so I don't believe x11-misc/makedepend (and its own dependencies) should automatically be made an unconditional dependency for everyone? Perhaps I'm wrong, but has this been explored?
Comment 3 R!tman 2006-09-30 23:05:46 UTC
I have a server without X, where x11-misc/makedepend and its two dependencies x11-proto/xproto and x11-misc/util-macros would be the first x11-*/* packages. I therefore find it pretty strange that openssl pulls these three.

As Paul mentioned this might not be necessary at all. Perhaps this could also be solved with a USE flag.
Comment 4 Florian Steinel 2006-10-01 04:18:27 UTC
Created attachment 98506 [details, diff]
make use of userland_GNU

only depend on x11-misc/makedepend when userland is not GNU.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 04:23:50 UTC
Uh, no, there's no *userland* problem here, I hit the problem on Linux (see the OS field for the bug), not on Gentoo/FreeBSD.

Most likely the problem is that we don't set CC to gcc but to "${CHOST}-gcc" instead.
Comment 6 Florian Steinel 2006-10-01 04:44:37 UTC
so when CC="gcc" then Configure uses
gcc:-O3::(unknown):::BN_LLONG:::
but CC="i686-pc-linux-gnu-gcc" there is no such line.
Would be Creating patch for the "Configure"file the way to go?
(Is there a listing of values for CHOST?)
Or simply set CC to "gcc"?
Comment 7 Florian Steinel 2006-10-01 04:54:53 UTC
(In reply to comment #6)
I found files/gentoo.config-0.9.8 which already translate from i686-pc-linux-gnu-gcc to linux-elf .

(In reply to comment #5)
Whats your $CHOST-gcc = ?
Comment 8 Florian Steinel 2006-10-01 05:02:45 UTC
This line (1293) in Configure:
       s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $cc eq "gcc";
should be patched to (pseodocode):
       s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $cc ends_with "gcc";
!
Comment 9 Florian Steinel 2006-10-01 05:06:49 UTC
Created attachment 98512 [details, diff]
openssl-0.9.8d-configure.patch

change Configure to "if $cc =~ /gcc$/i".
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 05:08:44 UTC
The new patch sounds useful, although I haven't tested it yet, give me a bit more of time.
Comment 11 awal11 2006-10-01 08:16:12 UTC
(In reply to comment #1)
> doesnt fail for me, but the build obviously tries to run it
> 
> guess we'll see how many people complain
> 

I could complain :-). I am not sure but assume this is the same bug that bites me:
# emerge -u -v -D -t --newuse world
>>> --tree implies --pretend... adding --pretend to options.
These are the packages that would be merged, in reverse order:
Calculating world dependencies                       C
emerge: there are no ebuilds to satisfy "x11-misc/makedepend".
(dependency required by "dev-libs/openssl-0.9.8d" [ebuild])
!!! Problem resolving dependencies for sys-apps/portage
!!! Depgraph creation failed.

my emerge info is in the attachment
Comment 12 awal11 2006-10-01 08:19:04 UTC
Created attachment 98524 [details]
This is my emerge info
Comment 13 SpanKY gentoo-dev 2006-10-01 14:02:34 UTC
Comment on attachment 98512 [details, diff]
openssl-0.9.8d-configure.patch

this wont work
Comment 14 SpanKY gentoo-dev 2006-10-01 14:03:03 UTC
fixed in cvs