Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Makefile PATH modification with -current 'make'?



Posting to current-users@ since it involves -current and to tech-pkg@
since it involves a pkgsrc-wip package.

I've encountered a curious problem that shows up on NetBSD-current
(amd64 and i386 so far), but not on netbsd-7.

Attempting to build "wip/moto4lin" on NetBSD-current (7.99.59 amd64 and
i386) fails with:

[...]
=> Full dependency p2kmoto>=0.1rc1: found p2kmoto-0.1rc1
=> Full dependency qt3-libs>=3.3.8nb29: found qt3-libs-3.3.8nb30
sysctl: not found
sh: not found
make[1]: "sh /x/pkgsrc/wip/moto4lin/../../mk/scripts/shlib-type                  ELF/a.out /usr/sbin/pkg_info" returned non-zero status
make[1]: exec(true) failed (No such file or directory)
*** Error code 1

Stop.
make[1]: stopped in /x/pkgsrc/wip/moto4lin
sysctl: not found
sh: not found
make[1]: "sh /x/pkgsrc/wip/moto4lin/../../mk/scripts/shlib-type                  ELF/a.out /usr/sbin/pkg_info" returned non-zero status
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/wip/moto4lin


The curious item is that the very last line of "wip/moto4lin/Makefile"
is:

PATH:=                  ${QTDIR}/bin:${PATH}

This produces the following on NetBSD/i386-7.99.59:

$ make show-var VARNAME=PATH
/qt3/bin:16304path

so, of course, common utilities like 'sh' and 'sysctl' aren't found
anymore.  The "16304" in the line above appears to be a process ID
(multiple invocations produce different numbers).  I'm not sure what
generated the string "path".

On netbsd-7/amd64 the result is the expected path prepended with
${QTDIR}/bin and a couple of other pkgsrc-generated elements.

Or is the package Makefile bogus and using an outdated mechanism?

Thanks.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index