From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99CBE350824 for ; Tue, 9 Sep 2025 15:24:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757431453; cv=none; b=f1lN9z2XeagWAtScgLCAJBlNVIirqFtGvqZBESupwh+Un6lACLcofRbn8mkJQI4jszd+hcA+U0ajjBFiUBZq9CwKdu9rfIeCiPzzXofl1qSuJ0aodcSBaiOBhTTaVSAIuQTkZQTATR/K+hZjW+6tZDy2/Jd8wxgw218v0eYdf6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757431453; c=relaxed/simple; bh=qK431xxZ7cYoKiESbIhWQ28p5Gfhtxu2qi1AqsernqA=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QSG0NcQOwCNqJFfQoTVSamNdKa0SevyXfstwZkWdXo/BbD08Yyw9pAH3uefvI0wcmFNwF0ITdvv+wbJoeU97jNi4MTD3xfvb4uwjXx0JllNAEzYnHuT33VSZ879Djw00XOkv3Hdrum2FCxiQ0trT5dEiiBd87ABT85Brj34TjeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WtxDbIJ2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WtxDbIJ2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 726E4C4CEFA; Tue, 9 Sep 2025 15:24:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757431453; bh=qK431xxZ7cYoKiESbIhWQ28p5Gfhtxu2qi1AqsernqA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=WtxDbIJ24sncKHU3jbed9aVv0jOm9G/AElhDHiK1hTT8rDzd+a0zGdPM6jJcpQC8v KVPBvHRUfz5gws6Q3NAxc66awkm+0bdbepZywTjwvmBo1k3vlQsur6E2Jv3TJesoyW qXygrgZsDMD3c8C5OsxM5pBBuHSEq1NcRSFDzyqlPYAGSi8EXwrWdtIcsbD0qnZHMd p99XGuqPk9vnHRC5CZieP2Fjdtrco8bdhiUXs+Zmkr50CwijQMohMbzGTg8O6mBAFQ fSqp996JoinsvCRtYZEvg8/XSiau+eeFp8/qLsMA8ttx5APt5ieynnMIoBjjte/tHc /VpdVxjbnjljQ== Date: Tue, 9 Sep 2025 17:24:09 +0200 From: Alexey Gladkov To: kbd@lists.linux.dev, Steffen Nurpmeso Subject: Re: kbd 2.9.0: build error (under fakeroot(1) environment) Message-ID: References: <20250909134533._bzZjw_N@steffen%sdaoden.eu> Precedence: bulk X-Mailing-List: kbd@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250909134533._bzZjw_N@steffen%sdaoden.eu> On Tue, Sep 09, 2025 at 03:45:33PM +0200, Steffen Nurpmeso wrote: > Hello. > > My distribution (CRUX) updated to 2.9.0, and the build failed via > > cp: failed to preserve ownership for /tmp/.pkgmk/pkg/usr/share/kbd/keymaps/i386/qwertz/sr-latin.map.gz: Operation not supported > > Thing is that this seems to only work for real root user, but that > is not who is doing it, really. cp -a is used in the makefile. The -a means no dereference and preserve links and other attributes. This should not be a problem if you have the same user. > Problem is also that the build system uses "set -e", and cp(1) will exit > error no matter what (-f etc) after the above. > > From my superficial BSD-style-simple-filesystem-usage point of > view symbolic links have no attributes to preserve, but that > sounds dick. Maybe it is a GNU coreutils cp(1) "exaggeration" to > say and fail for the above for a symbolic link, as it seems to be > only about ownership, not whatever attribute or security context, > however, still. You can try to change "cp -a" by "cp -dPR". Maybe this will help with fakeroot. > In data/Makefile.* a lot of work is done after these "cp -a"s, > i wonder why beyond $(IGNORE_KEYMAPS) anything that is a symbolic > link is not "simply" $(LN_S)d after $(DESTDIR) has been populated, > as it is cd(1) entered for work anyway? Ie, some kind of > $(SYMLINK_KEYMAPS) or something. I didn't understand your point. Among the keymaps, there are symlinks to change the keymap name. Previously, when compressing keymaps, symlinks were dereferenced and a copy of the keymap appeared instead of the symlink. I don't want to create symlinks in Makefile at the time of install. This is really hard to maintain. > > Thank you!! > And Ciao! from Germany, > > --steffen > | > |Der Kragenbaer, The moon bear, > |der holt sich munter he cheerfully and one by one > |einen nach dem anderen runter wa.ks himself off > |(By Robert Gernhardt) > -- Rgrds, legion