pacman/scripts
Eli Schwartz 88d054093c makepkg: don't let the strip routine mess up file attributes
It updates the stripped/objcopied file by creating a temp file,
chown/chmodding it, and replacing the original file. But upstream
binutils has CVE-worthy issues with this if running strip as root, and
some recent versions of strip don't play nicely with fakeroot.

Also, this has always destroyed xattrs. :/

Sidestep the issue by telling strip/objcopy to write to a temporary
file, and manually dump the contents of that back into the original
binary. Since the original binary is intact, albeit with different
contents, it retains its correct attributes in fakeroot.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2021-02-08 14:22:55 +10:00
..
completion Add pacman-conf zsh completions 2020-09-03 12:55:34 +10:00
libmakepkg makepkg: don't let the strip routine mess up file attributes 2021-02-08 14:22:55 +10:00
po scripts/library: remove human_to_size 2019-11-06 15:52:21 +10:00
.gitignore libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
libmakepkg.pc.in libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
makepkg-template.pl.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
makepkg.sh.in makepkg: properly localize some internal function variables 2020-10-21 11:18:32 +10:00
meson.build meson: make non-symlink scripts install for real, and use a better wrapper 2019-11-26 10:49:57 +10:00
pacman-db-upgrade.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00
pacman-key.sh.in pacman-key: Close msg string in generate_master_key 2021-01-11 11:11:06 +10:00
repo-add.sh.in repo-add: use more libmakepkg to handle common compression routines 2020-08-10 09:57:37 +10:00
wrapper.sh.in build-aux/update-copyright 2019 2020 2020-02-10 10:46:03 +10:00