From nobody Mon Jul 12 18:00:06 2021 X-Original-To: freebsd-ports@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 68FF11243F77 for ; Mon, 12 Jul 2021 18:00:09 +0000 (UTC) (envelope-from SRS0=cfdS=ME=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GNs491tlTz4vrk for ; Mon, 12 Jul 2021 18:00:09 +0000 (UTC) (envelope-from SRS0=cfdS=ME=klop.ws=ronald-lists@realworks.nl) Date: Mon, 12 Jul 2021 18:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1626112806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Of8GUXND/QpFL+wkX6oFcEtgjySyn/6T4rxgIPFqTUM=; b=kpNyakXMstUa1TBHrxIGNCGaHNon6Csus76pcox9tsdUJa3xaKRU8J1NI9e6OrSBMLSsDm fJxPdDuVTqIZtmKqft4XvKI+uUiP7D5MWnVCI3+LWUQYBErs7v8MF7kFFuDoTmb4Be4iI0 5K+DEAgyzsop8Xd57kp2uYw0lDPlkYzziGdDxt9RL6w7cVa8EEMn+7cwAEP41yJbOcDs94 ybfBwDuf4xddd6HJ11T2IELuge/p537OWSviaeg6AoRWqiZWkBiYbebJ/tWnjHbmCQx25U iR1bxwG+2wYUDrVfcrkV+Do12oxf4xLPrI27O0Vt+WSS+RFpcipDX0MXPr7IuA== From: Ronald Klop To: Chris Cc: freebsd ports Message-ID: <1875908001.59.1626112806445@mailrelay> In-Reply-To: <4884f88f59f420908f5820d91885f12a@bsdforge.com> References: <1227424893.72.1626088023231@mailrelay> <4884f88f59f420908f5820d91885f12a@bsdforge.com> Subject: Re: inject IGNORE_OSVERSION in poudriere? List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_58_1770149590.1626112805423" X-Mailer: Realworks (568.515.90328091198) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4GNs491tlTz4vrk X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y ------=_Part_58_1770149590.1626112805423 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Chris Datum: maandag, 12 juli 2021 15:33 Aan: Ronald Klop CC: freebsd ports Onderwerp: Re: inject IGNORE_OSVERSION in poudriere? > > On 2021-07-12 04:07, Ronald Klop wrote: > > Hi, > > > > To save time I sometimes get pkgs from the official pkg builders and save > them in > > the poudriere dir. > > But now and then I get this: > > > > [00:00:47] ===> Installing existing package > /packages/All/llvm11-11.0.1.txz > > [00:00:48] [freebsd14-custom-job-01] Installing llvm11-11.0.1... > > [00:00:48] Newer FreeBSD version for package llvm11: > > [00:00:48] To ignore this error set IGNORE_OSVERSION=yes > > [00:00:48] - package: 1400025 > > [00:00:48] - running kernel: 1400024 > > [00:00:48] Ignore the mismatch and continue? [y/N]: [00:00:49] Failed to > install > > the following 1 package(s): /packages/All/llvm11-11.0.1.txz > > [00:00:49] *** Error code 1 > > > > Normally I delete/create the poudriere jail, but the upstream world used by > > poudriere is not new enough yet. > > > > How can I set IGNORE_OSVERSION=yes in the poudriere environment? > I have a patch for exactly this ( for a different reason) that I haven't yet > had time to submit to a differential. > But make.conf(5) (within your poudriere job tree. Or adding the additional > make option: -DIGNORE_OSVERSION should get it for you. > > HTH > > --Chris > > > > Regards, > > Ronald. > > > > > Hi, I still can't get it to work with make.conf in poudriere. I see in the build logs that the right make.conf is in use. In the meantime I hacked my local ports checkout to do this: $ diff -u /usr/ports/Mk/Scripts/do-depends.sh.orig /usr/ports/Mk/Scripts/do-depends.sh --- /usr/ports/Mk/Scripts/do-depends.sh.orig 2021-07-12 19:54:38.433507000 +0200 +++ /usr/ports/Mk/Scripts/do-depends.sh 2021-07-12 19:22:28.098583000 +0200 @@ -36,7 +36,7 @@ if [ "${pkgbase}" = "pkg" ]; then [ -d ${dp_WRKDIR} ] || mkdir -p ${dp_WRKDIR} tar xf ${pkgfile} -C ${dp_WRKDIR} -s ",/.*/,,g" "*/pkg-static" - ${dp_WRKDIR}/pkg-static add ${pkgfile} + IGNORE_OSVERSION=yes ${dp_WRKDIR}/pkg-static add ${pkgfile} rm -f ${dp_WRKDIR}/pkg-static else ${dp_PKG_ADD} -A ${pkgfile} And that seems to work somehow. Regards, Ronald. ------=_Part_58_1770149590.1626112805423--