https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252757

            Bug ID: 252757
           Summary: WITHOUT_INSTALLLIB build option fails on
                    usr.bin/fortune
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: b...@freebsd.org
          Reporter: edi...@callfortesting.org

If WITHOUT_INSTALLLIB=YES is set in /etc/src.conf on 13.0-ALPHA1 amd64, the
following error is generated:

--- _bootstrap-tools-usr.bin/fortune/strfile ---
cc: error: linker command failed with exit code 1 (use -v to see invocation)
--- _bootstrap-tools-usr.bin/mandoc ---
--- .depend ---
echo mandoc.full: /usr/lib/libc.a
/usr/obj/usr/src/tools/tools/bos-ng/_.tst/usr/src/amd64.amd64/tmp/obj-tools/lib/libopenbsd/libopenbsd.a
/usr/lib/libz.a
/usr/obj/usr/src/tools/tools/bos-ng/_.tst/usr/src/amd64.amd64/tmp/legacy/usr/lib/libegacy.a
>> .depend
--- _bootstrap-tools-usr.bin/fortune/strfile ---
*** [strfile.full] Error code 1

make[3]: stopped in /usr/src/usr.bin/fortune/strfile

This patch appears to address it but I cannot say if strfile should be excluded
within fortune, or simply all of usr.bin/fortune when the build option is
requested:

diff --git a/usr.bin/fortune/Makefile b/usr.bin/fortune/Makefile
index ed00d012cd37..4d9a36fbb693 100644
--- a/usr.bin/fortune/Makefile
+++ b/usr.bin/fortune/Makefile
@@ -2,9 +2,12 @@
 #
 # $FreeBSD$

-SUBDIR=        fortune strfile datfiles unstr
+SUBDIR=        fortune datfiles unstr

+.if ${WITHOUT_INSTALLLIB} == "no"
+SUBDIR+=        strfile
 SUBDIR_DEPEND_datfiles=        strfile
+.endif

 SUBDIR_PARALLEL=

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to