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 0788E15808A for ; Sun, 27 Jul 2025 13:07:24 +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 E4DB4341F03 for ; Sun, 27 Jul 2025 13:07:23 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9D88F11056B; Sun, 27 Jul 2025 13:06:18 +0000 (UTC) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 861181102A2 for ; Sun, 27 Jul 2025 13:06:17 +0000 (UTC) Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-87c04c907eeso304152939f.0 for ; Sun, 27 Jul 2025 06:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753621576; x=1754226376; darn=lists.gentoo.org; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:from:to:cc:subject :date:message-id:reply-to; bh=Giepj8QGiRhDVp25e4oW1aVcYLKwshH7zqcom4ruLeE=; b=NL5+71Pq230fCs5zLaz90NatC2eaAQ1EmbtJwOFyMPc0X2k7iW5LVsop5bE/E68pWY Ra9CmLCqrlow+6HHAL9Z3dh7P3eb4hkSGZsVBNOrErJlIgk/+FkLQNf/PV7XGlyyyx94 afr/iUjj9AlRHYlvqQ7Elt1yjsmUTwlFwfGogGr0JzsZy1ApRwmITqn6JrAmXxw6MKuB s7+r2E8Ofl8h5f0z9Hs1uJ7/fB0p7LtMFlTNrow+TXFiHYjSefp3de4mghSuvDmGTMlB ZP9hCQn+GKX3xmjeyZU0Z1dAwygNT7sHXReNqPDgunwpyt73rYnccqRo90m+91r+nYTW 9Jvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753621576; x=1754226376; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Giepj8QGiRhDVp25e4oW1aVcYLKwshH7zqcom4ruLeE=; b=kPEQO4rh+Iba6g2kp08Sr5gtR/Zd6gZtPhsKiyTZXeXvJ1C9FFZwB2omzsfPG4WAwD y4WfXvRajGGbHqv6ooLfuBQKOn1vbyGGDtSa0vxaRWgG83TnbruW9RWKvnN7ArxlNLli 1LgTwJ38wKO4RuDebUGDFd8Tp29sNiDvUsWUIaUH1o6Ghf35y60YG7geqiOf7JlFjx7A gyneQ/SmcAwx+RiusBkU6RzbDiT8ic5OC86GpEgG5bTzYXRcwtizlaIFTbWimQRObMHB ZLvHH9LSkFb+6ER+UQmuk4jsWBf+Bws4KxGnAJWtEL+EY0eEXKzEEQ6IKk63Nhcl1oQ7 OwHw== X-Gm-Message-State: AOJu0YzFh8jM1DEq8E8Jeqhpis3A7MDgVqv0aesi8Ftyjvfa3oBsLuO5 bIgx5P2Pp94YKLdh4CVWY7wQIKEvBaWx08AQaB7Yg0viO7kEWLOcQDjC X-Gm-Gg: ASbGncuBTzXmHapHK3ftzNK9xCaZCN0m5v0eJ3CeHQe7cfpd9pF5XKIqKy+TkO4ygvL ArWA+TwtO1YcMDmvY1pquQCqZdkxknAWXFIg4llGBvl2TKN+2bRw+c0KBFnh8yQl/FybG88wsDp p96S2sSytyKf6pkSw3+H4NF2TNBktOIG5cUnFiZmLxmDCtG05tRCDBria8+WVfVf7X8v8iJYPyt XBBF6/qa6SNwzoWqH4tViKBTna56h1pF7x6448A4gG9N5uhD5bWmAdt6aNQvm9jIIKK5hUBUg/N eK0YmnsjFUbJm1X4yO1BuwxZ9wl2gWzMeIi/Mao/+j/7BMXCUJgkNKPIN08qzVlgxhvPnm0zzv5 Rmg7DGEulA9WgU16C9GCFAhM= X-Google-Smtp-Source: AGHT+IGr1PlIa3o6rj2ZCeewlCfnpx32uJHX2rVYzt4VO+4ysBmf8CwXZlfCefb1mVTiwYuKGSsDLg== X-Received: by 2002:a05:6602:1685:b0:86d:d6:5687 with SMTP id ca18e2360f4ac-8800f1039camr1578666539f.6.1753621576139; Sun, 27 Jul 2025 06:06:16 -0700 (PDT) Received: from [10.8.8.3] ([169.150.231.197]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-880f797dc2dsm107574839f.5.2025.07.27.06.06.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Jul 2025 06:06:14 -0700 (PDT) Subject: Re: [gentoo-user] xkeyboard-config overwrote files in CONFIG_PROTECT-ed directory (/usr/share/X11/xkb/symbols) To: gentoo-user@lists.gentoo.org References: From: Dale Autocrypt: addr=rdalek1967@gmail.com; keydata= xsFNBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ 0Pet8zxxdXPJSCd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BnfG/f81fPHWQyfr/SF4wYDMyoFp5xCCQpp1zB63iuFvvrhxBkEHzmbRtVDOhl0Xp BVEDR1w3QRACw9QJD/KM05Czv9JNQYlwinWO/OaQ9cMlUpKLgswUPg9IZ5vucxScfuAUA5uC B1jlAQ8ZPlVukBmbEv5RGOv+lpuEbA3YDMVtEeH4YMFbjt/+vH3Cr2vTbp5JlpByLburJEH0 WXZLUawEfUsZvVwpOuJK75vaa2HYXee+Cb3iCIzwfIfctdlqzUcbGRczlRNM59hpvj4z29Gh 3kAxVHItAYq54ikxQ9l4hQ8s9sLYPbX/WtcBxNX8crBSw0FLnmzGleVEtBHyqtt5CLzQNgrj GYWl1vKDUmRPw1CdZ1c+fMN9CY11jOM5B5ZnqZWfDeVYO2iJ5SuvTycChexCb8WYn1bdCBIo bBtga2RBXbVt4Mh9E4owsszefn51MwfjXxB20Fc5k3GU1AVpTCMs3ayYCzo0b2pvEvdjtDcA CYLEFPWgaFX9iQAM/CDfKvTtvgGWpqtCL2raq/mQoJEU Message-ID: <4b33c8db-676f-12ea-b9ba-da08d8e82849@gmail.com> Date: Sun, 27 Jul 2025 08:06:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 SeaMonkey/2.53.21 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 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 67b1e57f-d966-45ad-9063-0b82b0e9dc79 X-Archives-Hash: af54c897358ddd18450df5ee94b2d6e8 gevisz wrote: > 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="/etc /usr/share/X11/xkb/symbols/ /usr/share/config > /usr/share/gnupg/qualified.txt" > CONFIG_PROTECT_MASK="/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 — 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’s CONFIG_PROTECT mechanism entirely, > 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’ve 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. > I'm no guru at this but in the past, when something in a config file in /usr needs to be changed, there is usually a place in /etc to put the settings.  Software looks in /usr first for default settings then looks in /etc for custom user settings.  The config in /etc overrides the settings in /usr.  If it were me, I'd find out if you can put those settings in /etc somewhere.  Odds are, that is where they should be.  I'd suspect they would go in the /etc/X11/ directory somewhere.  Also, /etc is routinely updated and the config protect seems to work well there.  Might solve that problem.  Just a thought.  Dale :-)  :-)