From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 67EEA158042 for ; Fri, 15 Nov 2024 14:53:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1BDFE0AA4; Fri, 15 Nov 2024 14:53:06 +0000 (UTC) Received: from mail-200160.simplelogin.co (mail-200160.simplelogin.co [176.119.200.160]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 993D1E0A94 for ; Fri, 15 Nov 2024 14:53:06 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1731682383; cv=none; b=g3fzQETWoasjzwOJR4sBR7AkkfOnRWfvuhru+kbGsUnNzstefJYx/4A5TDsIQuLAmPwZRDNWh9PWpB+8uRYtot3t6XPRf71yGNmpZZgYfsLX6z9C7V30AHSBkhOpHeqDPW9p6O2QcF3b4EfUlSUXzHh3QmRqHMs7o1ri00Nat4ibZFPjFKLlGW3L47ndTmqks0fCa62dexLAtiE2CNo20M9GV45UO/a2uiW/h2zuwQLCcaGsR5vE8UtkuoEFWDvTMBP6jvqoaJ6bN5rr4J2k5qoaRfYP641e/7P9f3D0V9OpaRG6TSx3AeMM4awahYl4yMtrdBSsXZvET0oGIX9rUA== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1731682383; c=relaxed/simple; bh=TXALMEk2r29ElMC510l2cfXWB4UhiSh6Pid/8bth8r4=; h=Date:Subject:In-Reply-To:From:To:References; b=u/20OH4LPlqVeXL81u87mcHGRkRHvGBkrtygAQjqcpmrlLbpvrX4nTrCC74bpec6zIuk1rtQa7JvIvwgRs/klZkdY0BZKlixlQv4MoA5BKyAZe0VX8l+nGpwcuSAZ3B1HfNsnrodPh/X6HY54A6rWgDt6n4cYT5LDy3CUFFC6I2UMTpRqXa/w7RfCF0HjriFiFfnqsK/TZesvrlCOZV6zThyhrkgQvoNKlyj6pn/EjDjaBBpv26qWPb6F9E64yR/8Bg4B6ZEZFxmL63NJ0JRcQW/x51rYTW+1aIMs6CX/oOwFqLj7L/Y3aOXrLaSVufEAxSLpf22sGk35mbbkPN9pA== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=simplelogin.com; s=dkim; t=1731682383; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ARACcDDeHvDGs7wb04fe9vrODZb2hf1lbYvEt52VIHk=; b=Am5J/jukPo9i4d98sQEqExrABh2mtpLdjkIkuH1F54m4l6VwiFJcm5DSXUYCtwpvxmGTgU L4vsb5G27pnSy9cFzWN8trpk9KIkSsIL9IVc5ff8RZ9ExTBdBA4dX6WeJOgZzFLSVql9Iy D86+5X74dPZ0r4arqKC+ijKqBFhPs/o= Date: Fri, 15 Nov 2024 14:52:56 +0000 Subject: Re: [gentoo-user] Migrating existing Gentoo to binpkg In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="------d64a270d9996fa970e746d05badf09000f1f974406a0a1c8b0426bc61602a7f2"; charset=utf-8 Content-Transfer-Encoding: 7bit From: byte.size226@simplelogin.com To: gentoo-user@lists.gentoo.org Message-ID: <173168238338.7.14071927941459129665.496068843@simplelogin.com> References: <173167455567.7.12220560602579978916.495919527@simplelogin.com> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 496068843 X-SimpleLogin-Want-Signing: yes X-Archives-Salt: 8f3bae56-2454-4a77-8d4d-3c8bd9b19d15 X-Archives-Hash: d6a7f1a5493b72da9d53864e71a8da4d This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------d64a270d9996fa970e746d05badf09000f1f974406a0a1c8b0426bc61602a7f2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 15 Nov 2024 14:52:55 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] Migrating existing Gentoo to binpkg To: "gentoo-user at lists.gentoo.org" References: <11084ee6-a210-447b-a65c-a3e0a37dc9ad@victorivanov.io> Content-Language: en-GB From: Victor Ivanov In-Reply-To: Thank you, both! On 15/11/2024 14:05, Jacques Montier wrote: > What if you try this : > emerge -auvDN --getbinpkgonly --with-bdeps=y --binpkg-respect-use=y -- > keep-going world This does indeed suggest to replace existing builds with the upstream binary ones. I traced this to --getbinpkgonly which seems to force the use of the binary packages over source builds where possible. There are, however, minor differences between this and my earlier example with --rebuilt-binaries. Using "--getbinpkgonly" suggests a few downgrades, including to sys-kernel/gentoo-sources. "--binpkg-respect-use=y" makes no difference as emerge(1) suggests this is the default. On 15/11/2024 14:15, Matt Jolly wrote: > You want to match the binhost flags: > > https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart#x86-64-v3_variant > That was my assumption as well. But doing so and running a rebuild of @world with --emptytree did not yield any differences in which binar y packages are used between "-march=x86-64-v3" and "-march=znver4". What caught my attention was a passage from the detailed guide: """ * The builder and client architecture and CHOST must match. * The CFLAGS and CXXFLAGS variables used to build the binary packages must be compatible with all clients. ... Portage can not validate if these requirements match. In case of doubt, it is the responsibility of the system administrator to guard these settings. """ This made me wonder if CFLAGS need to match exactly in a situation, such as mine, where -march=znver4, being newer, is compatible and anything built with has "-march=x86-64-v3" /should/ run fine. If my understanding is correct, then the local value for CFLAGS should only affect the source builds. > If you're currently using x86-64-v4 there's no benefit to replacing the > existing packages. Just let them age out and be replaced over time as > as new versions are released. Indeed, that's my understanding too. Combined with being the same version, I suspect this is why emerge is not suggesting to replace the existing source builds with the binary builds, but is happy to do so with the nuclear "--emptytree" approach. Best Regards, Victor --------d64a270d9996fa970e746d05badf09000f1f974406a0a1c8b0426bc61602a7f2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYIACcFAmc3YEgJEMuXJJI+vh0uFiEE59g+WZi8eZ7/aQNqy5ckkj6+ HS4AAOjUAP0bFGAwgcsLI5prMsCT1VM29lQ+kY64NUCIUHAXu6ToQAD9Ftxc 9tAMWLeImn65I5SuiNqipQ74jZGsDvprS+k5RQ8= =kaUJ -----END PGP SIGNATURE----- --------d64a270d9996fa970e746d05badf09000f1f974406a0a1c8b0426bc61602a7f2--