Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

estrip: avoid calling scanelf twice #794

Closed
wants to merge 1 commit into from

Conversation

thesamesam
Copy link
Member

@thesamesam thesamesam commented Mar 15, 2022

We can use the previous scanelf data to not call it again to find
all of the dynamically linked executables/libraries which need stripping.

Bug: https://bugs.gentoo.org/749624
Signed-off-by: Sam James sam@gentoo.org

bin/estrip Show resolved Hide resolved
We can use the previous scanelf data to not call it again to find
all of the dynamically linked executables/libraries which need stripping.

Bug: https://bugs.gentoo.org/749624
Signed-off-by: Sam James <sam@gentoo.org>
Copy link
Member

@zmedico zmedico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@thesamesam thesamesam marked this pull request as ready for review March 25, 2022 05:12
@thesamesam
Copy link
Member Author

Thank you!

@thesamesam thesamesam deleted the scanelf branch March 28, 2022 06:21
find "$@" -type f ! -type l -name '*.a'
cut -d ' ' -f1 < "${PORTAGE_BUILDDIR}"/build-info/NEEDED \
| sed -e "s:^:${ED}:"
Copy link
Contributor

@heroxbd heroxbd Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build-info/NEEDED is with EPREFIX. The following sed with ED gives double prefix.

gentoo-bot pushed a commit that referenced this pull request Jul 18, 2022
The content of build-info/NEEDED is with EPREFIX, the following sed
should only prepend the paths with D.

Bug: https://bugs.gentoo.org/749624
Bug: https://bugs.gentoo.org/858818
Reference: #794
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
genbtc pushed a commit to genbtc/portage that referenced this pull request Aug 15, 2022
The content of build-info/NEEDED is with EPREFIX, the following sed
should only prepend the paths with D.

Bug: https://bugs.gentoo.org/749624
Bug: https://bugs.gentoo.org/858818
Reference: gentoo#794
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants