Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36309 - portmap-5b-r7 searches for libs in wrong dir
Summary: portmap-5b-r7 searches for libs in wrong dir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-22 09:31 UTC by Lesley van Zijl
Modified: 2003-12-30 11:40 UTC (History)
1 user (show)

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


Attachments
Compile log... (compile.log,4.61 KB, text/plain)
2003-12-23 04:28 UTC, Priit Laes (IRC: plaes)
Details
log of portmap compile success (portmap-success.log,6.06 KB, text/plain)
2003-12-23 05:06 UTC, Lesley van Zijl
Details
patch to fix libwrap detection (36309.patch,319 bytes, patch)
2003-12-23 09:52 UTC, Matt Rogers
Details | Diff
a new ebuild that uses the patch (portmap-5b-r7.ebuild,1.37 KB, text/plain)
2003-12-23 10:01 UTC, Matt Rogers
Details
fixing the link problem (portmap-5b-r7.ebuild,1.52 KB, text/plain)
2003-12-26 09:03 UTC, Masatomo Nakano (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lesley van Zijl 2003-12-22 09:31:22 UTC
make: *** No rule to make target `/usr/lib/libwrap.a', needed by `portmap'.  Stop.

!!! ERROR: net-nds/portmap-5b-r7 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)

I have 2 gentoo boxes, one just emerged from scratch, it has the libwrap.a but it's in /lib/ and portmap is searching for it in /usr/lib

The other box is an 1 year old installation, it has portmap emerged and has the libs in /usr/libs/ and not in /libs/  

both systems are ~x86

Reproducible: Always
Steps to Reproduce:
1. new gentoo install
2. emerge portmap
3. >_<

Actual Results:  
The portmap is unable to find the libwrap.a because it's in the wrong place.


Expected Results:  
installed portmap, one place for the libs (/usr/lib) ?

cdimage / # emerge info
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0,
2.4.21-gss)
=================================================================
System uname: 2.4.21-gss i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.3.12
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -Os -pipe -mmmx -m3dnow -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-tbird -Os -pipe -mmmx -m3dnow -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc fixpackages sandbox"
GENTOO_MIRRORS="http://mirrors.sunsite.dk/gentoo/ http://gentoo.linux.no/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow apache2 crypt gd gdbm gif imlib innodb ipv6 java jpeg libwww mmx
mysql ncurses pam perl png prelude python ssl tcpd xml xml2"


(not rebooted yet, that's why it's still the live cd kernel)
Comment 1 Priit Laes (IRC: plaes) 2003-12-23 04:26:05 UTC
Actually it has compile error before this message...
I'll attach a compile log...
Comment 2 Priit Laes (IRC: plaes) 2003-12-23 04:28:49 UTC
Created attachment 22575 [details]
Compile log...

Output of "emerge portmap"
Comment 3 Lesley van Zijl 2003-12-23 04:59:42 UTC
I found the problem, the problem is not portmap but tcp-wrappers (which owns libwrap.*),

Like I said, with the 1 year old box portmap was able to compile (with lots of warnings) I just upgraded tcp-wrappers on the one year old box and I couldnt compile portmap, reinstalled old ones and could.

The newer tcp-wrappers put them in /lib while the older one puts them in /usr/lib
Comment 4 Lesley van Zijl 2003-12-23 05:06:19 UTC
Created attachment 22576 [details]
log of portmap compile success

here is a log from a succeeding compile (with lots of warnings)
Comment 5 Priit Laes (IRC: plaes) 2003-12-23 08:29:41 UTC
Downgrading the tcp-wrappers-6.7-r7 to 6.7-r6 fixed the compile.
Comment 6 Matt Rogers 2003-12-23 09:51:45 UTC
Also having this problem. It looks like the addition of "into /" before the "dolib.a libwrap.a" line is what causes the change in file location from /usr/lib to just /lib.  

A patch to fix the problem will be attached shortly
Comment 7 Matt Rogers 2003-12-23 09:52:41 UTC
Created attachment 22585 [details, diff]
patch to fix libwrap detection

should fix the bug, but I haven't tested it yet
Comment 8 Matt Rogers 2003-12-23 09:56:50 UTC
ok, just tested it, and the patch works as long as you have tcp-wrappers-6.7-r7
Comment 9 Matt Rogers 2003-12-23 10:01:59 UTC
Created attachment 22586 [details]
a new ebuild that uses the patch

A new ebuild that uses the attached patch. Just plug this one in where the old
one was and it should work (should is the key word there ;) )
Comment 10 Matt Rogers 2003-12-23 10:05:32 UTC
and i just confirmed that the patch (which should go in the files directory for portmap) and the new ebuild do work.
Comment 11 Gordon Bergström 2003-12-25 12:34:04 UTC
Only get this with the patch

>>> emerge (1 of 1) net-nds/portmap-5b-r7 to /
>>> md5 src_uri ;-) portmap_5beta.tar.gz
>>> Unpacking source...
>>> Unpacking portmap_5beta.tar.gz to /var/tmp/portage/portmap-5b-r7/work
 * Applying portmap_5beta.dif...                                                                                                                                                                          [ ok ]

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/portage/net-nds/portmap/files/36309.patch


!!! ERROR: net-nds/portmap-5b-r7 failed.
!!! Function epatch, Line 182, Exitcode 0
!!! Cannot find $EPATCH_SOURCE!
Comment 12 Masatomo Nakano (RETIRED) gentoo-dev 2003-12-26 09:00:17 UTC
I just encountered this problem.
I think we need to check where libwrap.a exists because some tcp-wrappers 
installs it to /usr/lib and others to /lib.
I've made the ebuild. I post it.
Comment 13 Masatomo Nakano (RETIRED) gentoo-dev 2003-12-26 09:03:09 UTC
Created attachment 22670 [details]
fixing the link problem
Comment 14 Matt Rogers 2003-12-30 08:03:05 UTC
this was fixed by azarah on the 28th of December and needs closing.
Comment 15 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-30 11:40:12 UTC
closing