kbd 2.9.0: build error (under fakeroot(1) environment)

Steffen Nurpmeso <[email protected]> Tue, 09 Sep 2025 15:45:33 +0200
Newsgroups dev.linux.lists.kbd
Message-ID <20250909134533._bzZjw_N@steffen%sdaoden.eu>
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/keymap=
s/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.  Problem is also that the build
system uses "set -e", and cp(1) will exit error no matter what
(-f etc) after the above.

=46rom 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.

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.

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)