diff options
author | Geunsik Lim <geunsik.lim@samsung.com> | 2017-02-11 23:25:40 +0900 |
---|---|---|
committer | Geunsik Lim <geunsik.lim@samsung.com> | 2017-02-13 13:30:50 +0900 |
commit | 7380db360a5692b6fd7e79ba4c9bbe29be3e8c99 (patch) | |
tree | 60962ad0d71737ddabf71b79e00e47442b4a5be9 | |
parent | 6b52f62e25ed30e68b4997fac0c52ad1876d4665 (diff) | |
download | rpm-sandbox/leemgs/chromium-efl.tar.gz rpm-sandbox/leemgs/chromium-efl.tar.bz2 rpm-sandbox/leemgs/chromium-efl.zip |
[4.0] Support alternative way to choose between strip and eu-stripsandbox/leemgs/chromium-efl
This commit is to solve a stripping issue of chromium-efl (m53).
Note that up-to-date elfutils package(e.g., the elfutils version
0.168 (3a45dbbe7) have fixed this issue. However, GPLv3 is a problem.
Let's support an alternative way to choose between strip (binutils)
and eu-strip (elfutils) to handle in case of a large shared object
such as chromium project. The default strip of rpmbuild is eu-strip.
* How to replace eu-strip (elfutils) with strip (binutils):
$ vi ./packaging/<git-package-name>.spec
# Let's replace eu-strip (elf-utils) with strip (binutils).
export STRIP_DEFAULT_PACKAGE = "binutils"
Change-Id: Idca08e2f65ea084c6b5eb3c5cd218477f6da1a5f
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
-rw-r--r-- | scripts/find-debuginfo.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index aac635da9..0ffbf4ffe 100644 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -127,7 +127,13 @@ strip_to_debug() eu-strip --remove-comment $r $strip_option -f "$1" "$2" || exit ;; *) - strip --remove-section=.comment $g $strip_option -o "$1" "$2" || exit + # Support an alternative way to choose between strip (binutils) and + # eu-strip (elfutils) to handle a large shared object (e.g. chromium) + if [ "$STRIP_DEFAULT_PACKAGE" != "binutils" ]; then + eu-strip --remove-comment $g $strip_option -f "$1" "$2" || exit + else + strip --remove-section=.comment $g $strip_option -o "$1" "$2" || exit + fi esac chmod 444 "$1" || exit } |