Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1548676
Summary: | openldap: Does not use Fedora build flags | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Florian Weimer <fweimer> | ||||
Component: | openldap | Assignee: | Matus Honek <mhonek> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | fweimer, mhonek, rmeggins | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | openldap-2.4.45-13.fc28 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-03-01 15:22:01 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1539083 | ||||||
Attachments: |
|
Description
Florian Weimer
2018-02-24 11:01:09 UTC
Created attachment 1400831 [details] consolidate build flags Thanks for looking into this. I'm attaching a patch that should resolve the issue. However, before applying it I'd like to have the possible issue described in the following paragraph resolved. However, I'm a bit concerned about the -fPIE vs. -fpie on s390/s390x vs. others. I'm not sure if this is somehow taken into account with the redhat-rpm-config. I'd like to avoid reintroducing bug 1020661. I cannot see from the build.log if the flag was actually pulled in as it is included with -specs. Anyway, I'd like to prevent a possible regression in the future. Could you please provide some guidance here? Thanks. (In reply to Matus Honek from comment #1) > However, I'm a bit concerned about the -fPIE vs. -fpie on s390/s390x vs. > others. I'm not sure if this is somehow taken into account with the > redhat-rpm-config. I'd like to avoid reintroducing bug 1020661. I cannot see > from the build.log if the flag was actually pulled in as it is included with > -specs. Anyway, I'd like to prevent a possible regression in the future. > Could you please provide some guidance here? The GCC specs fragment will use -fPIC or -fPIE, to be conservative. It will not override -fpic or -fpie specified on the command line, but if there is nothing there, it will use the version that supports larger shared objects. (In reply to Matus Honek from comment #1) > Created attachment 1400831 [details] > consolidate build flags I don't like the explicit list of flags there: +export CFLAGS="${CFLAGS} -Wl,--as-needed,-z,relro,-z,now -DLDAP_CONNECTIONLESS" It should be something like this, to inherit all future changes in redhat-rpm-config: +export CFLAGS="${CFLAGS} ${LDFLAGS} -Wl,--as-needed -DLDAP_CONNECTIONLESS" Applying as Florian proposed. The effective flags in the build.log look fine. https://src.fedoraproject.org/rpms/openldap/c/cd7bdcf821f7ae4c1d97189129cdbbfdfe9d5210?branch=f28 Also dropping an old unnecessary patch: https://src.fedoraproject.org/rpms/openldap/c/6f8a4c6436709dd6c43c64e8006bc26946cab63f?branch=f28 |