| Summary: | %configure macro: Several problems | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Alec Leamas <leamas.alec> |
| Component: | RPM Packages | Assignee: | RPM stack maintainers <rpmstack> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | jani.valimaa, ngompa13 |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://copr.fedorainfracloud.org/coprs/leamas/lirc-0.10-preview/ | ||
| See Also: | https://bugs.mageia.org/show_bug.cgi?id=19902 | ||
| Whiteboard: | |||
| Source RPM: | rpm-mageia-setup | CVE: | |
| Status comment: | |||
| Attachments: | Fix build with -Wl,--no-undefined | ||
|
Description
Alec Leamas
2017-05-30 22:54:35 CEST
I can't test the build right now, but here's some feedback on: > - The -Wl,--no-undefined creates an error on an otherwise working build (yes, it's strange, but that's how it is) That's a bug in lirc which should eventually be fixed. It means that you are underlinking something (a binary uses symbols for a library which it doesn't link with explicitly). See https://wiki.mageia.org/en/Underlinking_issues_in_packaging
Rémi Verschelde
2017-05-31 09:31:08 CEST
Assignee:
bugsquad =>
rpmstack And currently we should not use %configure in .spec, but %configure2_5x. It's another story (see bug 19902), though, and doesn't affect to linking issue in lirc itself. My recommendation is to do the following in the spec:
%{?configure2_5x:%global configure %configure2_5x}
I intend to have %configure2_5x die a nasty, horrible death, so the conditional above will deal with the difference properly.CC:
(none) =>
ngompa13 I'll check the linking issue and create git formatted patch if it's easily fixed. CC:
(none) =>
jani.valimaa Created attachment 9367 [details]
Fix build with -Wl,--no-undefined
Here's the patch to fix the linking issue.
(In reply to Neal Gompa from comment #3) > My recommendation is to do the following in the spec: > > %{?configure2_5x:%global configure %configure2_5x} > > I intend to have %configure2_5x die a nasty, horrible death, so the > conditional above will deal with the difference properly. OK, configure2_5x does indeed resolve the issue. Together with Jan's patch that should be it (and even if not, preloading LDFLAGS isn't that bad) Thanks for fast feedback, everyone. I cannot confirm the fixes right now since the COPR mageia repos seems broken (missing python3-pip needed by lib64python3.5-stdlib), but assume this is just for the moment. Will close bug as soon as builders are up again. (In reply to Jani Välimaa from comment #5) > Created attachment 9367 [details] > Fix build with -Wl,--no-undefined > > Here's the patch to fix the linking issue. Thanks! (and I was so sure this was something entirely different I was about to write a silly answer instead) ;-)
Neal Gompa
2017-05-31 13:52:26 CEST
Source RPM:
rpm-4.13.0.1-2 (?) =>
rpm-mageia-setup
Neal Gompa
2017-05-31 13:52:47 CEST
See Also:
(none) =>
https://bugs.mageia.org/show_bug.cgi?id=19902 thanks again for all feedback. Everything now builds OK; closing basically as not-a-bug Status:
NEW =>
RESOLVED
Frédéric "LpSolit" Buclin
2017-06-05 01:16:07 CEST
CC:
(none) =>
LpSolit
Frédéric "LpSolit" Buclin
2017-06-05 01:16:17 CEST
CC:
LpSolit =>
(none) |