From nobody Fri Apr 26 11:38:48 2024 X-Original-To: freebsd-pkgbase@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 4VQrMx4QC6z5JW87 for ; Fri, 26 Apr 2024 11:38:53 +0000 (UTC) (envelope-from bapt@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 4VQrMx0nqcz4Nqp; Fri, 26 Apr 2024 11:38:53 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714131533; 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=z1UtYWAwJONSay6SCrq1mE4D+zzy4VuO7PI+Q0ibPKo=; b=UdadRAx6HqRprEUYu9CBisYO+ytXT9Ts6VWWi/iWUZzddDIpSUUeRPsioIpu0qL9pDkibU IjUTrp5HyL4NqzW8X8ZCap7QATvuhNlwgpmG1rpSHBf+D0czOzzGMU3rEzz5wyQuz7vnGs z6nZBUQ3ec6yXKFMBPS11Ay3zyMeIKMp2cYTBurnHpOM9Yb4jlUEP2Z4BQJe03vp4Hh2/Q +MfjTX7kb+rQKW90t/THUwsCWyL2N1Npy71wAYxOP+iqrCKF/cjh2Gmf81h6av8lgusKAN M3fwEgVgyZyjVadGLWmhG1YfLM5nTCDMaBiB/UisHa6+AXSwBv0nXHgQoEQdfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714131533; a=rsa-sha256; cv=none; b=YmaUZZb2FIJR23L0f/VG1R3KQbQUvs62fPi1ERAnpZZ7PT/lU5+Jd9epMKWhIizYmQFQrJ So2m7CuOHJemre6Fe4lEtqOwi3oflzhR4Thg+nI9iLUCCBcySJ0YO6Crvo8Wmckq+wDE83 QocQ2DOMQgw3hFxXb+asz2JvOMyFjbCwJ+KjYXKS9X1jcrUHAgzpT+qyQ5HUJV0qfJwa4T avaariqxV6YhErGuRTYI0odCC2rccRzQ8fV/8V+1QilNE8krWDmIWTH+3YFl/DjZ4mBqII JUi4tfYsbQ3LJ3+0fOxBYISHgc2YYiw4GOMPyxk3LL0sPLawCeKcSIHES6FUgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714131533; 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=z1UtYWAwJONSay6SCrq1mE4D+zzy4VuO7PI+Q0ibPKo=; b=LNdWvg7qqAhH3n0tZBHHSImoCwUZmpYfMSzsDyA6W1x/J19A3b7I3QbD46GuEtuiO4yApz sWiWYui2jpmgEB7CvG4k+461g5cZlPACZ2bvrcdc6adXFbQ2MQKbROjCl1ZimWWXaZa1EY 60HHCWPPcx0gYxd83yPPRttquw5/eWcfFPlTbM39z4tosKowo3rT0HlNpuVGPlVZkNifea /7K4Jg37YWMT4MIPSrPEGGsg3yuO/4fKCacSbSVALRHWzLhu61er3ZaYMeZaX0imLjBuKz hVnhTGOOgfcsNvQh5wj1qwF1UBzUBMob23BAWdzjOcZjFnROQ60DcjAm3D41hw== Received: from aniel.nours.eu (nours.eu [IPv6:2001:41d0:8:3a4d::1]) (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) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VQrMw6qs5z1HMK; Fri, 26 Apr 2024 11:38:52 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id C0B611CB8A0; Fri, 26 Apr 2024 13:38:48 +0200 (CEST) Date: Fri, 26 Apr 2024 13:38:48 +0200 From: Baptiste Daroussin To: Reshad Patuck Cc: "freebsd-pkgbase@freebsd.org" Subject: Re: FreeBSD kernel version 0 Message-ID: References: List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri 26 Apr 16:49, Reshad Patuck wrote: > Hi, > > I have been trying to compile FreeBSD 14.0-RELEASE-p5 on a FreeBSD > 14.0-RELEASE VM today and it seems like the FreeBSD_version annotation in > the +MANIFEST file is set to the value "0". > This caused my system to throw the error "pkg-static: Invalid FreeBSD > version 0 for package FreeBSD-kernel-generic" when I tried to install the > pkgs on another FreeBSD 14.0 system. > > I had compiled the same version (using the same commit hash) on the 12th of > March and it worked fine. > > I have attached the following files at https://paste.ee/d/9KcnQ: > - pkg-base-build-script.sh - The list of commands I used to build a new pkg > base instance > - +MANIFEST-working - the +MANIFEST file from the working pkg of FreeBSD > 14.0-RELEASE-p5 built on 2024-03-12 > - +MANIFEST-broken - the +MANIFEST file from the broken pkg of FreeBSD > 14.0-RELEASE-p5 built on 2024-04-18 > > I use a stock FreeBSD 14.0 image in AWS to spin up a new VM each time I run > this compilation and have used the same image since February. > The only thing that runs before I run the compilation is a pkg installation > of some tools like git, curl, htop, screen and vim. > > Looking at my archives, it seems that the version of pkg had changed from > '1.20_9' to '1.21.2'. Could there be something here? > Any help understanding why this difference exists will be much appreciated. > > Best Regards, > Reshad The reason is a bug in the 14.0 Makefiles which are not exposing OSVERSION (fixed in main, stable and will be in 14.1) and a behaviour fix in pkg 1.21.2 which highlights the main issue. Up to pkg 1.21.2, pkg was leaking the OS version of the builder host into the package, since pkg 1.21.2 pkg stops leaking that informaiton and so the version if set to 0. Waiting for 14.1 to be release the builders have to export OSVERSION variable. the content of the variable should match what ever is the _FreeBSD_version in the source being built, this information is available in sys/sys/params.h Best regards, Bapt