From owner-freebsd-current@freebsd.org Thu Mar 18 13:04:52 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B2C915747AB for ; Thu, 18 Mar 2021 13:04:52 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4F1S104YgGz3QPy for ; Thu, 18 Mar 2021 13:04:52 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9C7685747AA; Thu, 18 Mar 2021 13:04:52 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9C36B574A03 for ; Thu, 18 Mar 2021 13:04:52 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F1S103qz4z3QPx; Thu, 18 Mar 2021 13:04:52 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (pool-100-8-53-238.nwrknj.fios.verizon.net [100.8.53.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jkim/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 658152C682; Thu, 18 Mar 2021 13:04:52 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: Problem building x11/nvidia-driver; ref. n245494-6827435548d2 To: current@freebsd.org, David Wolfskill References: From: Jung-uk Kim Organization: FreeBSD.org Message-ID: <40999f3a-a929-0edd-f828-732f2eb418e5@FreeBSD.org> Date: Thu, 18 Mar 2021 09:04:50 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="giLPxNdbRPK0ytUTRkx7rnDxGfPp1TChK" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2021 13:04:52 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --giLPxNdbRPK0ytUTRkx7rnDxGfPp1TChK Content-Type: multipart/mixed; boundary="pbPiVNVSdkE3Nzdt8GTKVi4C0zzPyiYv5"; protected-headers="v1" From: Jung-uk Kim To: current@freebsd.org, David Wolfskill Message-ID: <40999f3a-a929-0edd-f828-732f2eb418e5@FreeBSD.org> Subject: Re: Problem building x11/nvidia-driver; ref. n245494-6827435548d2 References: In-Reply-To: --pbPiVNVSdkE3Nzdt8GTKVi4C0zzPyiYv5 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 21. 3. 17., David Wolfskill wrote: > My laptop is currently running main-n245489-15b82e00a164; after updatin= g > sources to n245498-096a84721670, I am performing a source-based update.= >=20 > A simialr update on my build machine (which is headless, and thus does > not use anything related to X11) was successful. >=20 > The laptop is set up to rebuild x11/nvidia-driver when the kernel > is updated. >=20 > The buildkernel step on it fails with: >=20 > ... > awk -f /usr/src/sys/conf/kmod_syms.awk nvidia-modeset.ko export_syms |= xargs -J% objcopy % nvidia-modeset.ko > =3D=3D=3D> lib (all) > =3D=3D=3D> lib/libglvnd (all) > ... > =3D=3D=3D> x11/driver (all) > =3D=3D=3D> x11/extension (all) > =3D=3D=3D> doc (all) > make[6]: "/usr/share/mk/bsd.man.mk" line 53: Malformed conditional (${M= K_MANSPLITPKG} =3D=3D "no") > make[6]: Fatal errors encountered -- cannot continue > make[6]: stopped in /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/commo= n/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-460.56/doc > *** Error code 1 >=20 > Stop. >=20 >=20 > On reviewing the list of files changed in 15b82e00a164..096a84721670, I= > note a couple of promising-looking candidates: >=20 > share/mk/bsd.opts.mk | 1 + > share/mk/src.opts.mk | 1 - >=20 > Reviewing the commit log for share/mk/bsd.opts.mk, I see that the most > recent entry is: >=20 > | commit 6827435548d257c672f934db5c6ff01012d96995 > | Author: Jung-uk Kim > | Date: Tue Mar 16 14:16:10 2021 -0400 > |=20 > | pkgbase: Fix building out-of-tree manual pages > | =20 > | c7e6cb9e08d6 introduced MK_MANSPLITPKG but it was not available f= or > | building out-of-tree manual pages. For example, x11/nvidia-drive= r fails > | with the following error: > | =20 > | =3D=3D=3D> doc (all) > | make[3]: "/usr/share/mk/bsd.man.mk" line 53: Malformed conditiona= l (${MK_MANSPLITPKG} =3D=3D "no") > | make[3]: Fatal errors encountered -- cannot continue > | =20 > | Move the definition from src.opts.mk to bsd.opts.mk to make it vi= sible. >=20 > which looks ... apropos. >=20 > Indeed, it appears that the n245494-6827435548d2 change was intended to= > fix the issue that I am now just seeing. >=20 > But I readily confess that I have neither familairity nor expertise > with share/mk/* (and that delving into it reminds me of "You are > in a mazy twist of passages, all different") >=20 > So... help? What do I need to do to be able to build the kernel now? >=20 > (E.g., if I need to just skip building x11/nvidia-driver once, get > everything installed, then build "normally" (with x11/nvidia-driver) > -- that's fine; I just need a clue.) cd /usr/src/share/mk && make install Jung-uk Kim --pbPiVNVSdkE3Nzdt8GTKVi4C0zzPyiYv5-- --giLPxNdbRPK0ytUTRkx7rnDxGfPp1TChK Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAmBTT/IFAwAAAAAACgkQfJ+WJvzb8UY+ XQf/ZyDonJh2FjDgDaGqvOu2DswQLpRabTzSh46TvGBoHkQ81SqmGJKhAxXO32C1quwoHMur52k3 5bSqnc9uYnX0+Qu0xtkaECMwwb+g9Rd0EfnSNDRbcOxy4jKSlH5hH9B9yci0+SsoJMZkr1Ly9Ly0 mQTIYnjYIeIsRgXSE50L3uz/ZvA8qpiTmrAokUJRSq9eGZtIeKu8TUl21CQYgIHCs04WFdNNTKV4 n3bP6rkGvGJa9V4WZ6fJqm6F7uECCWloe2FLAeS1wEnonhyzjL3hZrDkAI1lFfvHWvmh4AlpxXas Da5no6sOzWZVvutEouXuJk9TK0pOin8Waj4gjSR7fw== =Kfvr -----END PGP SIGNATURE----- --giLPxNdbRPK0ytUTRkx7rnDxGfPp1TChK--