rpm-build/scripts/install
Vitaly Chikunov a2e3f87824 Add a wrapper for install in %install section to skip strip
`strip' is called by `install -s` that could occur in unpatched
Makefiles, breaking debuginfo generation.

Try to catch `install` invocations via:

- %__install macro used in `make INSTALL=`.
- Prefix PATH with `/usr/libexec/rpm-build` with install and strip
  wrappers.

Suggested-by: Dmitry V. Levin <ldv@altlinux.org>
Reviewed-by: Dmitry V. Levin <ldv@altlinux.org>
2020-12-15 04:05:15 +03:00

5 lines
118 B
Bash
Executable File

#!/bin/sh
set -- `rpm --eval %__install` "$@"
RPM_INSTALL_STRIP=ignore PATH="/usr/libexec/rpm-build:$PATH" exec "$@"