From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 DF6F215808A for ; Sun, 27 Jul 2025 12:19:57 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id CAF5D341EDE for ; Sun, 27 Jul 2025 12:19:57 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 16F0E11056B; Sun, 27 Jul 2025 12:18:53 +0000 (UTC) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id F23531102A2 for ; Sun, 27 Jul 2025 12:18:51 +0000 (UTC) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-7426c44e014so2857590b3a.3 for ; Sun, 27 Jul 2025 05:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753618731; x=1754223531; darn=lists.gentoo.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=b+hPgOT/IEtQzSf/DGo5WVQ4Dph6Jyk1nKdlD4r36KE=; b=j8HKk6QLa9S5CAPRj+fhlScZo1t1sXBSCcLX8bDq/91zjG5jbHf9ae+SdpEi5kEb0w +AklYMX8Ce8k0ALj2ZIBb0U9ut7boQrUM3obLlaRfhuoc6gBCRCoiVD31xJvG/smjUd3 5+qtMegrsnOXHtQk3CN1FW/EO7mAjpy3suZeHGEt7kN393XQSfP2lFW9RAFYICIh2uRD NdWzveIzvuBtwp6hBtK4dYM3/U5KeDPy2ejGAE33qcl9z6RjI+PeQ74mctl221XLtriJ 9XcVZzyDaSsqom3ojfgO1Hw6ZWmsU+UJwuICBvGCFBipMTQbDAnqdvSROzVj3KNWiMFc iWzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753618731; x=1754223531; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=b+hPgOT/IEtQzSf/DGo5WVQ4Dph6Jyk1nKdlD4r36KE=; b=pEytPuGNaSXOXVoxvttG9YQLUej4Ec2oo/7Lk9N4lh8RQwhPDlq9TmwUpMxPmiM1K6 9InC0AqwKFMmORPRQr8Yrxc5u6EjaSqPHp9h5G1Rkyr/fPUAvZKfpTy1VV/zjdzUAuOm L5YPUeq6M8oCcqtsQr68bbiGaJiGPwsO0/2laoqaYGHeLIwxQrPOJsWnPGYJ8tWgv0uY HHeAKmgGjL9kwJV6Tx1sLfnXgYX6LODqbhJCNn6xk0olmRUvalbS1LETk/O8tObg+D0S upQSTNzTkgnChgZAPS1BNWjmn7EvaLMzSz1EjUSfvGDw32J63hFTt31F2OC8TUnrwTVf L3hg== X-Gm-Message-State: AOJu0YzeCmplrdYDeqhHX4WU6rmmVKUxzScV/1AswRagOeMfyqsPgKfc Qi3hxhShQb4Ks6zYwESSLN2ARKxXjN/QQHZXUm4zJPm324CI+LdJbBR6Ea3RE+a3pDbFpUNx26x dFrWRnOW39r8GIrsJzjnVIvnNC85c1Wgdqae/ X-Gm-Gg: ASbGnctnfZr6FPdDgbKEmzreMyLo/Oh45nuD0MYxwcsmBQEDbtpupQM3ELL1yjYiN9o qgTUBCyr6UD/LLYa28WHiG7vQsI7FGND0AR4mRmpbtyCtlaQkr4JZCu/ClEvF4wNLxX3CRI46Jf mzV1RGU6f32PPtcQTMBf8h/9vGZC9akSHgbE7ZzDIdOVbczPxgfdiLylmW2mEhGwmH3mi7xQ7WM kOdxyqfrDPK+jDMEOvH X-Google-Smtp-Source: AGHT+IGVKX7I073A9hEC4RDAV0E3UK7oxHwsxJ+8jj7Vfez6wni6+KfyUVtNdkyQ4I6SI00wOKnXIkvlBLLoAm/qBCY= X-Received: by 2002:a05:6a20:7283:b0:239:134f:45b8 with SMTP id adf61e73a8af0-23d70183562mr13849618637.24.1753618730844; Sun, 27 Jul 2025 05:18:50 -0700 (PDT) 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 From: gevisz Date: Sun, 27 Jul 2025 15:18:34 +0300 X-Gm-Features: Ac12FXzneL0dr5VcnLpZad3mQWtjWrES0IZ77kP5LbMIMZXqJJy4P8TrH8WDMzM Message-ID: Subject: [gentoo-user] xkeyboard-config overwrote files in CONFIG_PROTECT-ed directory (/usr/share/X11/xkb/symbols) To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: a7b6c6f5-c206-4873-9ab7-64259317f556 X-Archives-Hash: 2f622e150397c4f4be466e85ea04f66d On July 25, 2025 my custom keyboard layout files located in /usr/share/X11/xkb/symbols/ were unexpectedly overwritten during system despite the fact that they were config-protected: # emerge --info | grep CONFIG_PROTECT CONFIG_PROTECT=3D"/etc /usr/share/X11/xkb/symbols/ /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK=3D"/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" ChatGPT says to me that it was done when x11-misc/xkeyboard-config-2.45-r1 was updated. I do not use etc-update or dispatch-conf, and there were no ._cfg* files left behind =E2=80=94 the overwrite happened silently. After examining the ebuild, ChatGPT noticed that src_install() uses meson_src_install, and then moves the entire installed /usr/share/X11/xkb tree to /usr/share/X11/xkb.workaround/ as a workaround for bug #957712. In pkg_preinst(), that tree is then forcibly moved back to /usr/share/X11/xkb, overwriting any existing files. This manual move bypasses Portage=E2=80=99s CONFIG_PROTECT mechanism entire= ly, as pkg_preinst() runs before Portage has a chance to apply config file protection. While I understand the intention behind the workaround, the result was a total loss of my custom layout files, despite explicitly protecting the directory. I=E2=80=99ve been using Gentoo for 12 years, and I have never been so disappointed by the Gentoo as I was when this happened to say the least. Is there a Gentoo-compliant way to preserve customized layouts that replace system-provided ones under such circumstances? Thanks in advance for any suggestions or guidance.