From nobody Mon Jan 29 08:18:00 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 4TNh4q1Q12z58SFr for ; Mon, 29 Jan 2024 08:18:03 +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 4TNh4q0m4Dz4dNK; Mon, 29 Jan 2024 08:18:03 +0000 (UTC) (envelope-from bapt@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706516283; 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=Tbw2CiyAWBv582z9zejzOLaLFMDDhQZbZlh52xaVvlU=; b=ezFvy4l3POj3bgqPYI0yWiu+gqMvPpXMecvSIdlCc+Ap/NdgU/259uPYUJDw3vUFNaDkrK aaS6+05h5FTnI6gXAmVKCFjLgD+vomJ24DXkGuIl4XyNQczzXik6/TmGSfeIcbZEhdTOUM UPFNsBAnOUe5ZEoWvl4bWci3F9iT7SkktHjWHMAyVMGpVZzE2iPchjH3/hfNT43L+/lAiS r86mFhfBeTAq8Oew9vT4tzGDCM1guyp9M4DEGBKY9p/iih0zRlnzfofFO5Vt79Aj38AhpX 8AXBP/uqu1JIKN13Ctyj0peAlTGvLdtGrsJb7kDSLfXuyvTSz787D0R/Qf65Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706516283; 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=Tbw2CiyAWBv582z9zejzOLaLFMDDhQZbZlh52xaVvlU=; b=MxmGXCmhvHh7F3PksWIesHJ2xKL7/5mbdsPh40owJYvqadkaTxnRo/B+EEutSkEkw/BgtI KBUg/M9miv5S1ViHorjReMeJR3KZurs2SLDrqvpU96qcOt4JznJ0ZCvXfTuB4d15qtPR8z +ofZZSDgY0pB8ALjNwZoHltieFI7+nC4uYf4+BlovyZrXFEjazeiqB8oEBfozBpV+nbCAR dni1A8lN/Kjs0kWwiec404HTx6KUZbSGvgLUXB5m2bJj5G0L/67wOUkgelPmYazhbb6NRp RyUKf+xI7ijHuw6ZS2l7cHo7Io7A63JBAfW9Bx8RFpdH+ODxA3oP62D3/k+D8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706516283; a=rsa-sha256; cv=none; b=HFg0Zn7IiKd95AZ+4blOJDpQY6xpd1O2lUMZkGgCorYLMsnIllnOaCXjsrglYyZ0JuiDYu IKGaghdGSChRoe00CAWASi3gYv73jxamdkDVQEHbKnGiarzy4Dk2DOWsTMFq12nEpKS2pg FLPlRVzDfPXgmfpGGLWGwRx/i8c2VhEfJj426SheGcQcAmajFWmC+eAHSSknnAqmH7XjIt thjOk/f7Ls5VxC9JN4HNIisZTfyhUxn0u9WaLh5lkfKuqhW3mISZxuo5gGFawJ4N4HP42T PP02Gvi6Dw2tZXnP+9jGQpbZREHZVaGH5ahMv3gCp3Vwl3jWSyaDjdOz2tooZw== 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 4TNh4p6H3Kz15sQ; Mon, 29 Jan 2024 08:18:02 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id BC8A011274F; Mon, 29 Jan 2024 09:18:00 +0100 (CET) Date: Mon, 29 Jan 2024 09:18:00 +0100 From: Baptiste Daroussin To: Mark Millard , emaste@freebsd.org Cc: FreeBSD-pkgbase@freebsd.org Subject: Re: pkgbase sometimes reported package vs. running kernel mismatches [ 1400505 vs. 1400501] (despite uname -KU producing 1400505 1400505) Message-ID: References: <33A2E7A8-0A46-48F5-BF1D-4BA5921703E3.ref@yahoo.com> <33A2E7A8-0A46-48F5-BF1D-4BA5921703E3@yahoo.com> 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: <33A2E7A8-0A46-48F5-BF1D-4BA5921703E3@yahoo.com> On Sat, Jan 20, 2024 at 02:07:54AM -0800, Mark Millard wrote: > I got some odd reports of the likes of: > > Newer FreeBSD version for package FreeBSD-tcpd-lib32: > To ignore this error set IGNORE_OSVERSION=yes > - package: 1400505 > - running kernel: 1400501 > Ignore the mismatch and continue? [y/N]: > > It was in a context with: > > # uname -apKU > FreeBSD generic 14.0-STABLE FreeBSD 14.0-STABLE stable/14-n266448-e2b71e1490a3 GENERIC arm64 aarch64 1400505 1400505 > This is a known issue which only happends due to the fact that the packages are built "WITHOUT_CLEAN=yes". pkg does determine what is the running version of freebsd by analysing the uname binary elf notes. Why the uname binary? because it is the only binary which is rebuilds each time sys/param.h is updated for uname -U. The problem when sys/param.h is updated crt1.o is not being update and this is where the elf notes is added from. meaning with incremental build the note is never updated :( See: https://reviews.freebsd.org/D43417 Best regards, Bapt