Summary: | mail-mta/sendmail: pre-stripped files found | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Net-Mail Packages <net-mail+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | QA | CC: | mrness |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 239866 | ||
Attachments: | Patch files/site.config.m4 and sendmail-8.14.2.ebuild to honor $LDFLAGS |
Description
Diego Elio Pettenò (RETIRED)
2008-12-21 20:49:23 UTC
This ebuild also ignores user LDFLAGS, though it tends to escape notice since it has hardcoded linking flags of "-Wl,-z,now -s". The problem is that the build system does not use LDFLAGS directly, but instead the value of the m4 variable confLDOPTS. Several other conf* m4 variables were already set by the ebuild, but not linker flags. I will attach a patch that removes the -s and adds the ability for the ebuild to insert user LDFLAGS. With this change, I get a sendmail that is not prematurely stripped, and which now respects my use of -z,relro. Created attachment 177296 [details, diff]
Patch files/site.config.m4 and sendmail-8.14.2.ebuild to honor $LDFLAGS
Apply this patch to update sendmail-8.14.2.ebuild to recognize a new substitution, @@confLDOPTS@@ and use it to insert user $LDFLAGS and to update files/site.config.m4 to remove the explicit strip and add the substitution mark. I left the explicit -Wl,-z-now in the m4 file. Users who want lazy binding can add -Wl,-z,lazy to their $LDFLAGS to override it.
Fixed in 8.14.3-r1. |