Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41028 - net-www/links-2.1_pre11 is missing openssl 0.9.6 libs
Summary: net-www/links-2.1_pre11 is missing openssl 0.9.6 libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Ingo -LaSombra- Hoffmann
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-09 15:34 UTC by Carsten Lohrke (RETIRED)
Modified: 2011-10-30 22:47 UTC (History)
1 user (show)

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


Attachments
Try this one for links-2.1_pre11 (links-2.1_pre11-r1.ebuild,3.31 KB, application/octet-stream)
2004-02-15 08:00 UTC, Ingo -LaSombra- Hoffmann
Details
And this one is the new one for links-2.1_pre14 (links-2.1_pre14-r1.ebuild,3.33 KB, application/octet-stream)
2004-02-15 08:01 UTC, Ingo -LaSombra- Hoffmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2004-02-09 15:34:57 UTC
'revdep-rebuild -p' throws
>broken /usr/bin/links (requires libssl.so.0.9.6 libcrypto.so.0.9.6)
even though i remerged it after upgrading to openssl 0.9.7

pre14 supports smb:// urls via smbclient -> samba ? dependency
Comment 1 Ingo -LaSombra- Hoffmann 2004-02-15 08:00:49 UTC
Created attachment 25667 [details]
Try this one for links-2.1_pre11
Comment 2 Ingo -LaSombra- Hoffmann 2004-02-15 08:01:27 UTC
Created attachment 25668 [details]
And this one is the new one for links-2.1_pre14
Comment 3 Ingo -LaSombra- Hoffmann 2004-02-15 08:02:20 UTC
Carlo,

Thanks for the bug report, I hope this to new ebuilds solve the problem.

Regards,
Ingo -LaSombra- Hoffmann
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-15 11:13:10 UTC
Thx, Ingo. Unfortunately the pre14 version is limited to =openssl-0.9.6*, too.
Comment 5 Ingo -LaSombra- Hoffmann 2004-02-16 17:19:57 UTC
Hmmmm, strange. My OpenSSL is 0.9.7 something and links is working fine.
And the OpenSSL is not restricted to version 0.9.6 in pre14, "ssl? ( >=dev-libs/openssl-0.9.6c )" see?
Why don't you output your emerge -vp? That should do the trick in helping us.

Sorry for not beign precise, but I'm using Windows on work now :(
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-19 03:00:07 UTC
Are you sure Ingo? The 0.9.7 ebuild preserves the older libs, so if you don't remove them by hand, you won't notice. Just remerged openssl, deleted the 0.9.6 libs and remerged links afterwards. Same problem.

On the other hand, I'm wrong. The older libs are preserved by the 0.9.7 ebuild and it's more or less my problem, that I want to get rid of them.

At least I could point you to the optional samba dependency. :)
Comment 7 Ingo -LaSombra- Hoffmann 2004-02-19 13:16:19 UTC
Well, have to go home to check the openssl stuff, but I'm pretty sure 0.9.7 removes the 0.9.6 files, but well, we can always be wrong ;) About the samba option, that's why we are here, listening to issues and resolving them :D
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-20 09:15:35 UTC
>Well, have to go home to check the openssl stuff, but I'm pretty sure 0.9.7 removes the 0.9.6 files

from pkg_postinst():
test -f ${ROOT}/usr/lib/libssl.so.0.9.6 && {
	einfo "You can now re-compile all packages that are linked against"
	einfo "OpenSSL 0.9.6 by using revdep-rebuild from gentoolkit:"
	einfo "# revdep-rebuild --soname libssl.so.0.9.6"
	einfo "# revdep-rebuild --soname libcrypto.so.0.9.6"
	einfo "After this, you can delete /usr/lib/libssl.so.0.9.6 and /usr/lib/libcrypto.so.0.9.6"

This means the user is expected to delete the libs, but links doesn't work witout them, so I think my report is still valid.
Comment 9 Ingo -LaSombra- Hoffmann 2004-02-20 16:09:40 UTC
Well Carlo, I just installed a new system and it didn't installed 0.9.6 at all hoffingw@bss40h3f21 hoffingw $ ldd /usr/bin/links2         linux-gate.so.1 =>  (0xffffe000)         libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x40019000)         libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x4004a000)         libdl.so.2 => /lib/libdl.so.2 (0x40149000)         libm.so.6 => /lib/libm.so.6 (0x4014c000)         libc.so.6 => /lib/libc.so.6 (0x4016e000)         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) hoffingw@bss40h3f21 hoffingw $ But, if openssl ebuild says you have to delete it by hand, it's nothing links ebuild can do for it... Don't you agree? ;)
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-20 16:36:04 UTC
Sure, the old libs are only preserved, if they existed before. The question is: Does links work on your fresh installed system? And if it does, why does it not work here? And yes - I merged links again, after deleting the old libs.
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-20 16:47:15 UTC
O.k., I did: 
#> ccache -C
#> rm -rf /var/tmp/portage
#> ACCEPT_KEYWORDS="~x86" emerge links
#> ldd /usr/bin/links
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40035000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4005a000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40086000)
        libssl.so.0.9.6 => not found
        libcrypto.so.0.9.6 => not found
        libdl.so.2 => /lib/libdl.so.2 (0x40094000)
        libgpm.so.1 => /usr/lib/libgpm.so.1 (0x40098000)
        libm.so.6 => /lib/libm.so.6 (0x4009e000)
        libvga.so.1 => /usr/lib/libvga.so.1 (0x400c0000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4012a000)
        libc.so.6 => /lib/libc.so.6 (0x40207000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x40334000)

But I have only libssl.so.0.9.7 and libcrypto.so.0.9.7 on my system. I have absolutely no idea why this f*cking ebuild treats me like this. :|
Comment 12 Ingo -LaSombra- Hoffmann 2004-02-20 17:15:13 UTC
Hmmmmmm, very very strange... I'll deep double check it, but yes, it works on new systems :)
Comment 13 Ingo -LaSombra- Hoffmann 2004-02-20 17:20:43 UTC
Just a very stupid question, but habe to ask.
Your ssl, crypto symlinks are ok, right?
Comment 14 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-20 23:44:03 UTC
Oh forget it. If the problem is really tricky, it sits _always_ in front of the screen. 

-rwxr-xr-x    1 root     root      2904148 20. Aug 2002  links
-rwxr-xr-x    1 root     root      2971464 21. Feb 01:41 links2

The links executable must be from my early Gentoo days...
Comment 15 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-21 07:36:44 UTC
To clearify this: I remerged pre11 - it works with openssl 0.9.7, too.
Comment 16 Ingo -LaSombra- Hoffmann 2004-02-25 10:10:47 UTC
Ok, I've found what's happening and I'll be working on a solution soon. For some reason you have the file /usr/bin/links instead of the symlink links -> links2. One thing you can do to solve this is to remove the /usr/bin/links file and create the apropriate symlink or re-emerge links. I didn't find a reason why you have the links file, but it exists :-/
Comment 17 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-25 10:58:25 UTC
> Ok, I've found what's happening and I'll be working on a solution soon

Fixed it for me already. I think previous ebuilds did something like cp instead cp -d when merging from sandbox to system, but the later ebuilds which don't dereference the symlink can't overwrite the existing file.

Instead 


	if [ ! -f /usr/bin/links ]
	then
		dosym links2 /usr/bin/links
	fi

in the links ebuild (or a fixed version, which deletes existing files, before adding the symlink) this code should be part of the dosym script itself.
Comment 18 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-25 11:06:39 UTC
a requirement is to disable the sandbox for deletion of the existing file, of course
Comment 19 Ingo -LaSombra- Hoffmann 2004-02-25 19:47:20 UTC
Yepz, I agree with your comments, but I guess you was the only one with that problem so far and the solution is well documented in this bug report so we can update the ebuilds attached and close this bug, what do you think seemant?
Comment 20 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-25 23:48:32 UTC
Maybe I'm the only one who detects this small problem _and_ writes a bug report. I know for sure that there were other ebuilds just copying symlinks without the -d option. Can't remember which, though.
Comment 21 Ingo -LaSombra- Hoffmann 2004-02-26 05:29:00 UTC
Yeah, but what you did is the best way to solve such small things that are a pain in the ass after 3, 4 hours emerging a new system.
Thanks again for the report and I hope everything should be working normally from now on.

Best regards Carlo,
Ingo -LaSombra- Hoffmann
Comment 22 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-26 05:50:50 UTC
Imho 'the best way' is avoiding such problems (in future), instead fixing them manually every now and then again. But it's more a portage than ebuild problem, of course.
Comment 23 Ingo -LaSombra- Hoffmann 2004-02-26 09:16:08 UTC
Hmmmmm, I agree, but I think this kind of problems are becoming very small now and it strikes more on portage updates than on ebuilds updates ;)
Comment 24 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-13 08:43:34 UTC
what's the status of this?
Comment 25 Carsten Lohrke (RETIRED) gentoo-dev 2004-03-13 09:19:24 UTC
Don't know what you devs want to do. I still think the dosym script should be fixed (and if it is only to prevent bug reports like this one in future).
Comment 26 Ingo -LaSombra- Hoffmann 2004-03-13 11:56:56 UTC
For the links part, the ebuilds are ready for deployment, but I dunno where the symlink problem is. I believe it's not on the ebuild, but...
Comment 27 Ingo -LaSombra- Hoffmann 2004-03-18 04:33:16 UTC
I'll be closing this bug report that I guess is fixed for the most of us.
Any future problems please, contact me or open a bug report, as you wish :)
But I need to remember that these ebuilds should be commited as soon as possible.

Best regards,
Ingo -LaSombra- Hoffmann