| Summary: | %debug_package_and_restore breaks rpm testsuite | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Thierry Vignaud <thierry.vignaud> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | anssi.hannula, mageia, misc, pterjan, tmb |
| Version: | Cauldron | Keywords: | PATCH |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | rpm-mageia-setup-build | CVE: | |
| Status comment: | |||
|
Thierry Vignaud
2012-03-13 16:58:55 CET
CC:
(none) =>
pterjan
Thierry Vignaud
2012-03-13 16:59:07 CET
CC:
(none) =>
anssi.hannula
Thierry Vignaud
2012-03-13 16:59:15 CET
CC:
(none) =>
misc
Thierry Vignaud
2012-03-13 16:59:27 CET
CC:
(none) =>
tmb
Thierry Vignaud
2012-03-13 17:00:08 CET
CC:
(none) =>
mageia It's the following line that cause the failure
%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package_and_restore}}}\
(works fine with "%install \")
In order to test, just unpack the rpm sources, go into tests and run the following:
$ /usr/bin/autom4te --language=autotest rpmquery.at > /tmp/t.sh
$ sh /tmp/t.sh
(...)
4: rpmspec -q FAILED (rpmquery.at:67)
(...)
Note that without fakechroot, you'll see another one
Hi, This bug was filed against cauldron, but we do not have cauldron at the moment. Please report whether this bug is still valid for Mageia 2. Thanks :) Cheers, marja Keywords:
(none) =>
NEEDINFO
D Morgan
2013-09-17 23:48:19 CEST
Assignee:
dmorganec =>
thierry.vignaud
Nicolas Vigier
2014-03-24 10:52:25 CET
CC:
boklm =>
(none)
Samuel Verschelde
2015-05-03 12:57:03 CEST
Keywords:
NEEDINFO =>
(none) Closing, waiting for mga6 to push it Status:
NEW =>
RESOLVED commit 83d87c53543c68e3c86619f0cc9275c3805617d0
Author: Thierry Vignaud <thierry.vignaud@...>
Date: Sat May 2 09:34:59 2015 +0200
kill redondant/unmainted macro (mga#4927)
better use upstream macro
---
Commit Link:
http://gitweb.mageia.org/software/rpm/rpm-setup/commit/?id=83d87c53543c68e3c86619f0cc9275c3805617d0
|
I've packaged (not yet uploaded) fakechroot in order to make rpm's testsuite works. However we still have one failure because of rpm-mageia-setup-build. rpmspec is new since rpm-4.9.0[1]. Compare: $ rpmspec --define "debug_package_and_restore %nil" -q --qf "%{name}" /root/rpmbuild/BUILD/rpm-4.9.1.2/tests/data/SPECS/hello.spec;echo hello $ rpmspec -q --qf "%{name}" /root/rpmbuild/BUILD/rpm-4.9.1.2/tests/data/SPECS/hello.spec;echo hellohello-debughello-__restore__ RH has a similar debug packaging system, however it doesn't interfere with rpmspec (see FC's /usr/lib/rpm/redhat/macros) Removing /etc/rpm/macros.d/20build.macros make rpm's testsuite to pass but of course that's not an option on the BS. [1] new as in "spec file query support has been split to a new "rpmspec" cli utility and enhanced in many ways. This also means the main rpm/rpmquery executables no longer need to link to librpmbuild"