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

Fix libtool for clang darwin prefix #32731

Closed
wants to merge 3 commits into from

Conversation

DarthGandalf
Copy link
Contributor

No description provided.

Bug: https://bugs.gentoo.org/758167
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Bug: https://bugs.gentoo.org/758167
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Bug: https://bugs.gentoo.org/758167
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @DarthGandalf
Areas affected: ebuilds
Packages affected: app-crypt/gpgme, net-libs/gnutls, sys-devel/libtool

app-crypt/gpgme: @gentoo/base-system
net-libs/gnutls: @gentoo/base-system
sys-devel/libtool: @gentoo/base-system

Linked bugs

Bugs linked: 758167


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Sep 11, 2023
Comment on lines 68 to +69

elibtoolize
eautoreconf
Copy link
Member

Choose a reason for hiding this comment

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

Needs a comment for why it's autoreconf (someone might end up deleting it and replacing w/ elibtoolize or nothing if it looks like a leftover from a patch or similar).

@@ -78,7 +78,7 @@ src_prepare() {
sed -i -e 's/__APPLE__/__NO_APPLE__/' lib/system/certs.c || die

# Use sane .so versioning on FreeBSD.
elibtoolize
eautoreconf
Copy link
Member

Choose a reason for hiding this comment

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

Add a comment noting autoreconf is needed (elibtoolize not enough) for macos

_LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
_LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
- m4_if([$1], [CXX],
-[ if test yes != "$lt_cv_apple_cc_single_mod"; then
Copy link
Member

Choose a reason for hiding this comment

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

I don't suppose e.g. export lt_cv_apple_cc_single_mod=no in the ebuild does the same job?

Would really like to avoid a (doubly-)conditional patch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should try the patch with gcc, perhaps it doesn't break it, then I can remove one condition. Same for the other condition, I didn't check whether it doesn't break normal linux.

I'll try lt_cv_apple_cc_single_mod first though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lt_cv_apple_cc_single_mod set in profile works, thanks

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-09-11 23:55 UTC
Newest commit scanned: 3b831a4
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/e4985477c3/output.html

@DarthGandalf DarthGandalf deleted the prefixlibtool branch January 12, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR.
Projects
None yet
4 participants