PATCH: fix "WITH_TESTS=yes make installworld" on amd64

Alan Somers asomers at freebsd.org
Tue Jan 21 18:00:20 UTC 2014


I finally found the problem.  Make was trying to install tests during
the install32 phase.  During this phase, it adds "lib32" to
MAKEOBJDIRPREFIX, so it can't find the tests, which were never built
with that prefix.  The command worked fine when I ran it under "make
buildenv", because that uses the normal MAKEOBJDIRPREFIX.

I'm not sure what prevented the tests from being built during the
lib32 build phase, but this patch will disable tests during both
building and installing 32 bit libraries.

At work, we never noticed this problem in our SpectraBSD branch
because we set WITHOUT_LIB32=1 in /etc/src.conf.


Does this patch look ok?  Should I be disabling tests some other way?
I looked for a way to disable recursing into the tests directories
whenever LIBRARIES_ONLY was set, but didn't see an easy way.


-Alan


Index: Makefile.inc1
===================================================================
--- Makefile.inc1       (revision 260986)
+++ Makefile.inc1       (working copy)
@@ -417,7 +417,7 @@
                -DNO_LINT

 LIB32WMAKE=    ${LIB32WMAKEENV} ${MAKE} ${LIB32WMAKEFLAGS} \
-               -DWITHOUT_MAN -DWITHOUT_INFO -DWITHOUT_HTML
+               -DWITHOUT_MAN -DWITHOUT_INFO -DWITHOUT_HTML -DNO_TESTS
 LIB32IMAKE=    ${LIB32WMAKE:NINSTALL=*:NDESTDIR=*:N_LDSCRIPTROOT=*} -DNO_INCS \
                ${IMAKE_INSTALL}
 .endif


More information about the freebsd-testing mailing list