Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 2010 16:46:01 GMT
From:      Pascal Stumpf <Pascal.Stumpf@cubes.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/153049: PORTS_MODULES= seriously broken if port depends on an executable
Message-ID:  <201012121646.oBCGk1dJ056341@red.freebsd.org>
Resent-Message-ID: <201012121650.oBCGo4Uv020814@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153049
>Category:       misc
>Synopsis:       PORTS_MODULES= seriously broken if port depends on an executable
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 12 16:50:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Pascal Stumpf
>Release:        8-STABLE
>Organization:
>Environment:
>Description:
The PORTS_MODULES= variable in /etc/make.conf is supposed to automate building and installing kernel modules from ports. However, it seems there is a bug in the build system that breaks the build of any port that depends on an executable (libraries are completely fine though). Example:

cd ${PORTSDIR:-/usr/ports}/net/bwn-firmware-kmod; SYSDIR=/usr/src/sys make -B deinstall deinstall reinstall
===>  Deinstalling for net/bwn-firmware-kmod
===>   Deinstalling bwn-firmware-kmod-0.1.0
===>   bwn-firmware-kmod-0.1.0 depends on executable: b43-fwcutter - not found
===>    Verifying reinstall for b43-fwcutter in /usr/ports/sysutils/b43-fwcutter
===>  Installing for b43-fwcutter-012
===>   Generating temporary packing list
===>  Checking if sysutils/b43-fwcutter already installed
===>   b43-fwcutter-012 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of sysutils/b43-fwcutter
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/sysutils/b43-fwcutter.
*** Error code 1

Stop in /usr/ports/sysutils/b43-fwcutter.
*** Error code 1

Stop in /usr/ports/net/bwn-firmware-kmod.
*** Error code 1

Stop in /usr/ports/net/bwn-firmware-kmod.
*** Error code 1

Stop in /usr/obj/usr/src/sys/CUSTOM.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
/usr/src # which b43-fwcutter
/usr/local/bin/b43-fwcutter
/usr/src # 


Note how it fails to detect that b43-fwcutter even though it’s present on the system. This results in an attempted reinstall of sysutils/b43-fwcutter, which fails because it is already installed. Therefore, rebuilding net/bwn-firmware-kmod also fails.
>How-To-Repeat:

>Fix:
I’m not an expert in the build system of /usr/src, but to me it seems that $PATH ist not picked up from the environment (which it should be when building ports). 

>Release-Note:
>Audit-Trail:
>Unformatted:



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