ports/75499: USE_LINUX checks for RedHat, not for any Linux install

Peter van Dijk peter at dataloss.nl
Sun Dec 26 01:10:25 UTC 2004


>Number:         75499
>Category:       ports
>Synopsis:       USE_LINUX checks for RedHat, not for any Linux install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 26 01:10:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Peter van Dijk
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD dew.mob.dataloss.nl 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

plus linux_base-debian-3.0.23_1

>Description:
If a port specifies USE_LINUX=yes, indicating that it requires Linux
binary compatibility, the ports framework checks for redhat-release:
(from /usr/ports/Mk/bsd.port.mk):

.if defined(USE_LINUX)
RUN_DEPENDS+=  ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
.endif


>How-To-Repeat:
Install any port that requires Linux support, on a system that has
a linux_base other than the RedHat ones.

>Fix:
Change the relevant line in Mk/bsd.port.mk to read:
RUN_DEPENDS+=   ${LINUXBASE}/bin/sh:${PORTSDIR}/emulators/linux_base

bin/sh is the best option I could come up with, another file that
is certain to exist with all of the linux_base ports would do just
fine as well.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list