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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1DFBB15808A for ; Sun, 27 Jul 2025 13:25:28 +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 06000341E7C for ; Sun, 27 Jul 2025 13:25:28 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id BDD4D11056B; Sun, 27 Jul 2025 13:24:22 +0000 (UTC) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 ABDF01102A2 for ; Sun, 27 Jul 2025 13:24:21 +0000 (UTC) Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-875acfc133dso137523439f.1 for ; Sun, 27 Jul 2025 06:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753622660; x=1754227460; darn=lists.gentoo.org; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:references:to:from:subject:from:to:cc:subject :date:message-id:reply-to; bh=GSXKJRvIb4QwMnHpoNccDx/2nUz+4Ci0QrAXIT2HloU=; b=hL+RWNMZ4kxs/Iqvb/cQ+DjdnunIGqjPgcQYnG3LU+zSJ0GHIOv3AZLTBu+f0MW2nD nqCQo6zkzuhMhSRy8yXoXPE6iVMTPwnfJlCvIbiDqCCtsH+dJK4Dtk2NpFPIxvE5VrbM 4/tiI9iJ8NvBgVvDNUTKDAvO1QNkaPQgz3D5pAP13p2HjoDRxbnX7jHG1L965jeUlqyB 2vHxMLOQpALFr0NzYmX4vGcp0IFLavMPTft0UotUYzBUsUnLTQPr9bUSObhND9+woxg2 TAuzRLOvhl/WARZAHhU2RRrO0pTsyhlzczkgz6hKOfqIltgjHr37eXnw3Hb3W96MjKa2 DWSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753622660; x=1754227460; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:references:to:from:subject:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GSXKJRvIb4QwMnHpoNccDx/2nUz+4Ci0QrAXIT2HloU=; b=oReWjwcif8c3LMmqOSwrAqL8NvbAPhwe9RTaBF1lDm5/13EoKBdQNH8MqdYzcqGUMo pcwmZefYyJRO3vBA9iJdR0zFacDSKX3QM5DR0YrllbiwHM2qsyVcb9w5YgNV2v3PHWdh ZzSvl6b40g+XjNeUDQq2g3jNFjrMVP5AuzeFj14j+dOiLBkMlkTVGVi60svSAZv+XfY5 XMptvzxas4AL/YqJT1KSpNmKTNxGuZjVK2SRbw3rP8o13wAAGlePHU/VRbZEPwtAgdgN lbO/B/D5uKtamSh0Aq+lJKLkJqtxPqwCnh3YNYITSpMQX4S1fARBNLMZsiFIdNkyGMKQ 05Lw== X-Gm-Message-State: AOJu0YzNy5Cfxc5x0AMyXe8YKYW8Jl76ftEGdwXDkHqAC/S/0fbI+fvL mi30gkfHjQNoCEXbS+a0h9c43XiAS4++Gt5Oj9wsgPZeZaszNBSN7Obc X-Gm-Gg: ASbGnct9SDuP1IB9re2Xu7EACw+93yrHysyvs/qaKOECIlc4KT3jDq/8nxOFhZaAFXv 4y7KxLHGYCm7EF4+iGZ0cHSAfnndcOKd4uNlz6yPihAHH6cCBVnrQutd+h59M3jn2E8146MsQtH i4PZYEi/ZJYY/WWswf/7s6GFTUaYB7ObLq0e+x1Bt0TU3T9QGNXRKI5RSQ4GPxKTXgT5DtOzrYy bgCXa538cO8SF8daq+vDyUDwdJuhf2T/8Pes0w6PTlAenMdAWdse2doEuPrZ6iS3izcvI7dfQLy +PZO7DTJG4PDELtfn6OAkYeOaMhK2vaaWYn3K7kZCN4fAt2KAvEBucZsFYVD1FAnWEOrZZ/sKIc lFGA/libFwrDlPAO4OxLQ1k0= X-Google-Smtp-Source: AGHT+IHjwmMfWTAS6nlSoN4CdmMkkCaK6HyE68FlyZDLtn8ON8+/fjYCMEMAG3/ObakHGisODT+HCw== X-Received: by 2002:a05:6e02:156d:b0:3e3:d246:55f4 with SMTP id e9e14a558f8ab-3e3d2465bfemr70822985ab.12.1753622660385; Sun, 27 Jul 2025 06:24:20 -0700 (PDT) Received: from [10.8.8.3] ([169.150.231.197]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-508c91ec0c4sm1207211173.30.2025.07.27.06.24.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Jul 2025 06:24:19 -0700 (PDT) Subject: Re: [gentoo-user] xkeyboard-config overwrote files in CONFIG_PROTECT-ed directory (/usr/share/X11/xkb/symbols) From: Dale To: gentoo-user@lists.gentoo.org References: <4b33c8db-676f-12ea-b9ba-da08d8e82849@gmail.com> Autocrypt: addr=rdalek1967@gmail.com; keydata= xsFNBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8ni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QUUt27xlfnKYOmQs7CqONlXuXlGZI6WufrUjxNcVz+5gJsqvUWuuJWsgg sDmE92IBnfG/f81fPHWQyfr/SF4wYDMyoFp5xCCQpp1zB63iuFvvrhxBkEHzmbRtVDOhl0Xp BVEDR1w3QRACw9QJD/KM05Czv9JNQYlwinWO/OaQ9cMlUpKLgswUPg9IZ5vucxScfuAUA5uC B1jlAQ8ZPlVukBmbEv5RGOv+lpuEbA3YDMVtEeH4YMFbjt/+vH3Cr2vTbp5JlpByLburJEH0 WXZLUawEfUsZvVwpOuJK75vaa2HYXee+Cb3iCIzwfIfctdlqzUcbGRczlRNM59hpvj4z29Gh 3kAxVHItAYq54ikxQ9l4hQ8s9sLYPbX/WtcBxNX8crBSw0FLnmzGleVEtBHyqtt5CLzQNgrj GYWl1vKDUmRPw1CdZ1c+fMN9CY11jOM5B5ZnqZWfDeVYO2iJ5SuvTycChexCb8WYn1bdCBIo bBtga2RBXbVt4Mh9E4owsszefn51MwfjXxB20Fc5k3GU1AVpTCMs3ayYCzo0b2pvEvdjtDcA CYLEFPWgaFX9iQAM/CDfKvTtvgGWpqtCL2raq/mQoJEU Message-ID: <4996deaa-6aff-22ef-9339-7a3914b45001@gmail.com> Date: Sun, 27 Jul 2025 08:24:18 -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: <4b33c8db-676f-12ea-b9ba-da08d8e82849@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: fe48d581-486d-46d6-9458-0c348482b7d7 X-Archives-Hash: 04020f0e4caa2d3e51c5d68026c0b0d0 Dale wrote: > 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 > > :-)  :-)  > My first searches didn't turn up anything.  I started adding some keywords until I think I found something that might help.  https://xkbcommon.org/doc/current/user-configuration.html Scroll down to Data locations.  Option two is no longer to be used but option 1, 3 and 4 might be good ideas to try.  I think number one is for individual user settings and the other two are more system wide, requires root to change.  I hope that helps.  I to would hate to lose some of my config files.  I have backups but still, don't want to lose them anyway.  Dale :-)  :-)