Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Mar 2000 12:01:35 -0800
From:      Marcel Moolenaar <marcel@cup.hp.com>
To:        Kevin Bailey <someone@earthlink.net>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: linux_devtools port doesn't install
Message-ID:  <38DE6C9F.A1DA4B05@cup.hp.com>
References:  <38DE3B05.B0CAC8FE@earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38DE6C9F.A1DA4B05>