From nobody Thu Jul 27 23:02:14 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RBmW85cYbz4pnHg for ; Thu, 27 Jul 2023 23:02:28 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RBmW82GG6z3tRT for ; Thu, 27 Jul 2023 23:02:28 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-3fbc59de009so15404625e9.3 for ; Thu, 27 Jul 2023 16:02:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690498946; x=1691103746; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kw/woHlSWkPqlrPe9nIT//XpLElX0uOCCAiUddTrZIE=; b=IoyEFZZ57aVzrMyHAKDIyatKnH2cCajigooSzh4oarxb0DuIfBa3EyTKVEIBkl11bs AOEhenZx0iTckiN50HKiC7/wjlM4yLjN+X3Y1z0sbDuEKgCqMa6I33NCOaiKaMGiWgEM mTU/ahb4SOI7m38mkY+ck9eOXkctOG18tShv/lga+k3xEUfXWQW+yonKToP3h/MCE4Hf QHym1ilBp4ZoPDBnQeYaokCtFBoOtNVyC6ZCEVZmmQ+j6p4yLRwHqPyMCSuaebHjAFLL /EBLzw17WJq2I6haZavg4sEA7mEWfy60LpAOA4SKtvbsnD12ui22cIM1vp+VMMf4pnBe xAcg== X-Gm-Message-State: ABy/qLaa6MY5ggBByslBTIzPbQqN1UIzjdxHCbZzFfLIIopVTFW8GUWH H6gJZQARWzNEkqKmVbSENWIKbA== X-Google-Smtp-Source: APBJJlHgJltdhqWfh3223pLTu2thue6ABgvM0ZAaryCzPQQ3yCavId8DYfRuyQewwcpKv2fLAPDxzQ== X-Received: by 2002:a7b:cc17:0:b0:3f8:f1db:d206 with SMTP id f23-20020a7bcc17000000b003f8f1dbd206mr299972wmh.25.1690498945945; Thu, 27 Jul 2023 16:02:25 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id d4-20020adfe884000000b003144b95e1ecsm3195715wrm.93.2023.07.27.16.02.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2023 16:02:25 -0700 (PDT) Content-Type: text/plain; charset=us-ascii List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: git: 264594efbe69 - main - Makefile.inc1: Automatically generate _LIBCOMPATS and list-old-* libcompats From: Jessica Clarke In-Reply-To: <782afb67-124c-1ab9-9b41-129d1b9a91f8@aetern.org> Date: Fri, 28 Jul 2023 00:02:14 +0100 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <49A99144-4922-4A25-A0A5-5F0ACF97E436@freebsd.org> References: <202307270411.36R4BrmB097493@gitrepo.freebsd.org> <782afb67-124c-1ab9-9b41-129d1b9a91f8@aetern.org> To: Yuri X-Mailer: Apple Mail (2.3731.600.7) X-Rspamd-Queue-Id: 4RBmW82GG6z3tRT X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On 27 Jul 2023, at 23:33, Yuri wrote: >=20 > Jessica Clarke wrote: >> The branch main has been updated by jrtc27: >>=20 >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D264594efbe699defbe2ac4e1d7a91fde= 3db45e8f >>=20 >> commit 264594efbe699defbe2ac4e1d7a91fde3db45e8f >> Author: Jessica Clarke >> AuthorDate: 2023-07-27 04:10:43 +0000 >> Commit: Jessica Clarke >> CommitDate: 2023-07-27 04:10:43 +0000 >>=20 >> Makefile.inc1: Automatically generate _LIBCOMPATS and list-old-* = libcompats >=20 > This seems to break the list-old-libs target for me (with or without > WITHOUT_LIB32=3D in src.conf): >=20 > $ make list-old-libs > /bin/sh: -V: not found >=20 > Reverting this commit makes it work again. >=20 >> Reviewed by: brooks, jhb >> Differential Revision: https://reviews.freebsd.org/D41180 >> --- >> Makefile.inc1 | 19 ++++++++++++------- >> 1 file changed, 12 insertions(+), 7 deletions(-) >>=20 >> diff --git a/Makefile.inc1 b/Makefile.inc1 >> index 53699a454ff6..b3a33a928ee5 100644 >> --- a/Makefile.inc1 >> +++ b/Makefile.inc1 >> @@ -857,9 +857,12 @@ XCFLAGS+=3D --sysroot=3D${WORLDTMP} >> XCFLAGS+=3D ${BFLAGS} >> .endif >>=20 >> -.if ${MK_LIB32} =3D=3D "yes" >> -_LIBCOMPATS+=3D 32 >> +.include "share/mk/bsd.compat.pre.mk" >> +.for LIBCOMPAT in ${_ALL_LIBCOMPATS} >> +.if ${MK_LIB${LIBCOMPAT}} =3D=3D "yes" >> +_LIBCOMPATS+=3D ${LIBCOMPAT} >> .endif >> +.endfor >> .include "Makefile.libcompat" >>=20 >> # META_MODE normally ignores host file changes since every build = updates >> @@ -3255,8 +3258,9 @@ list-old-files: .PHONY >> @cd ${.CURDIR}; \ >> ${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ >> -V "OLD_FILES:ts\n" -V "OLD_FILES:Musr/share/*.gz:R:ts\n" \ >> - -V "OLD_FILES:Mlib/*.so.*:S,^lib,usr/lib32,:ts\n" \ >> - -V "OLD_FILES:Musr/lib/*:S,^usr/lib,usr/lib32,:ts\n" | sort >> + ${_ALL_libcompats:@v@-V = "OLD_FILES:Mlib/*.so.*:S,^lib,usr/lib$v,:ts\n"@} \ >> + ${_ALL_libcompats:@v@-V = "OLD_FILES:Musr/lib/*:S,^usr/lib,usr/lib$v,:ts\n"@} | \ >> + sort >>=20 >> delete-old-files: .PHONY >> @echo ">>> Removing old files (only deletes safe to delete libs)" >> @@ -3321,9 +3325,10 @@ list-old-libs: .PHONY >> @cd ${.CURDIR}; \ >> ${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ >> -V "OLD_LIBS:ts\n" -V "MOVED_LIBS:ts\n" \ >> - -V "OLD_LIBS:Mlib/*:S,^lib,usr/lib32,:ts\n" \ >> - -V "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib32,:ts\n" \ >> - -V "OLD_LIBS:Mlib/casper/*:S,^lib/casper,usr/lib32,:ts\n" | = sort >> + ${_ALL_libcompats:@v@-V = "OLD_LIBS:Mlib/*:S,^lib,usr/lib$v,:ts\n"@} \ >> + ${_ALL_libcompats:@v@-V = "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib$v,:ts\n"@} | \ >=20 > Looks like there is stray pipe symbol. Oops, copy paste strikes again. Does deleting the pipe symbol, i.e. the following patch, also fix things for you, rather than reverting the commit? > diff --git a/Makefile.inc1 b/Makefile.inc1 > index af7d5b8ad0c5..2e965b603d78 100644 > --- a/Makefile.inc1 > +++ b/Makefile.inc1 > @@ -3368,7 +3368,7 @@ list-old-libs: .PHONY > ${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ > -V "OLD_LIBS:ts\n" -V "MOVED_LIBS:ts\n" \ > ${_ALL_libcompats:@v@-V = "OLD_LIBS:Mlib/*:S,^lib,usr/lib$v,:ts\n"@} \ > - ${_ALL_libcompats:@v@-V = "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib$v,:ts\n"@} | \ > + ${_ALL_libcompats:@v@-V = "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib$v,:ts\n"@} \ > ${_ALL_libcompats:@v@-V = "OLD_LIBS:Mlib/casper/*:S,^lib/casper,usr/lib$v,:ts\n"@} | \ > sort > =20 Thanks for the report. Jess=