Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2021 00:30:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252757] WITHOUT_INSTALLLIB build option fails on usr.bin/fortune
Message-ID:  <bug-252757-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252757

            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: bugs@FreeBSD.org
          Reporter: editor@callfortesting.org

If WITHOUT_INSTALLLIB=3DYES is set in /etc/src.conf on 13.0-ALPHA1 amd64, t=
he
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/us=
r/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 excl=
uded
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=3D        fortune strfile datfiles unstr
+SUBDIR=3D        fortune datfiles unstr

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

 SUBDIR_PARALLEL=3D

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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