From owner-freebsd-emulation Sun Mar 26 12: 1:41 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from atlrel2.hp.com (atlrel2.hp.com [156.153.255.202]) by hub.freebsd.org (Postfix) with ESMTP id 4534E37BA3B for ; Sun, 26 Mar 2000 12:01:38 -0800 (PST) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by atlrel2.hp.com (Postfix) with ESMTP id 9470A122; Sun, 26 Mar 2000 15:01:36 -0500 (EST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0.1) id MAA01549; Sun, 26 Mar 2000 12:01:35 -0800 (PST) Message-ID: <38DE6C9F.A1DA4B05@cup.hp.com> Date: Sun, 26 Mar 2000 12:01:35 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Kevin Bailey Cc: freebsd-emulation@freebsd.org Subject: Re: linux_devtools port doesn't install References: <38DE3B05.B0CAC8FE@earthlink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Kevin Bailey wrote: > > When I try to install the linux_devtools port, it fails > with this output: > > % make install > ===> Installing for linux_devtools-6.1 > ===> linux_devtools-6.1 depends on file: /compat/linux/etc/redhat-release - > found > kernel-headers-2.2.12-20.i386.rpm > failed dependencies: > /bin/sh is needed by kernel-headers-2.2.12-20 > *** Error code 1 Hmmm... You have to be very specific about what you did before you tried to install linux_devtools. Especially wrt to anything that modifies /compat/linux. A wild guess is that you used /compat/linux/bin/rpm by hand, which caused the RPM database to be converted to the new and backward incompatible format, and which broke the ability to use the FreeBSD port... > I believe the problem is that its using /usr/local/bin/rpm > when it should be using /compat/linux/bin/rpm (because > only the latter knows what has already been installed under > /compat/linux, AFAIK.) Replacing all the rpm's in the > Makefile with /compat/linux/bin/rpm makes it work so > the theory would seem to be correct. I guess another > approach would be to temporarily prepend /compat/linux/bin > to the PATH. This behaviour is supported by my wild guess. > If I've earned my gold star, could I get the answer to > another question ? You mean 2 other questions? :-) > When building source based rpms > (e.g. rpm --rebuild some-i386-src.rpm), what should > my PATH be set to, { /bin:/usr/bin } or > { /compat/linux/bin:/compat/linux/usr/bin } or > a combination of the two ? I'd go for /compat/linux/bin/rpm in your case. HTH, -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message