Bug 7104 - rpm -bb
Summary: rpm -bb
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: http://n1.nux.se/work/rpm-mageia-setu...
Whiteboard: mga2-32-OK mga2-64-OK
Keywords: PATCH, validated_update
Depends on:
Blocks:
 
Reported: 2012-08-19 12:56 CEST by Oden Eriksson
Modified: 2014-05-08 18:06 CEST (History)
8 users (show)

See Also:
Source RPM: rpm-mageia-setup
CVE:
Status comment:


Attachments
the fix (2.10 KB, patch)
2012-08-19 14:45 CEST, Oden Eriksson
Details | Diff

Description Oden Eriksson 2012-08-19 12:56:12 CEST
The convenient popt aliases for eg. "rpm -bb" was not working. An strace revealed this was caused by a path issue, so you could do "ln -s /usr/lib/rpm/rpmb_deprecated /usr/bin/rpmb_deprecated" or hard code the path in "/usr/lib/rpm/mageia/rpmpopt" to make it work again.

Please fix, going crazy over this...

The less intrusive fix as in:

http://n1.nux.se/work/rpm-mageia-setup-1.147-8.2.mga2.src.rpm

Cheers.
Manuel Hiebel 2012-08-19 13:16:04 CEST

Keywords: (none) => PATCH
CC: (none) => boklm, cjw, dmorganec, jquelin, mageia, pterjan, tmb

Comment 1 Oden Eriksson 2012-08-19 14:45:15 CEST
Created attachment 2657 [details]
the fix

a simple fix making it work.
Comment 2 Olivier Blin 2012-08-24 17:07:17 CEST
That's intended.
Please see this thread:
https://www.mageia.org/pipermail/mageia-dev/2012-July/017830.html

Status: NEW => RESOLVED
CC: (none) => thierry.vignaud
Resolution: (none) => INVALID

Comment 3 Oden Eriksson 2012-08-24 18:40:37 CEST
This bug was filed against mageia 2 which was released before the decision to drop this feature was taken.

Status: RESOLVED => REOPENED
Resolution: INVALID => (none)

Comment 4 Thierry Vignaud 2012-08-24 23:01:25 CEST
uh? That worked for me on mga2.
Comment 5 Oden Eriksson 2012-11-26 13:22:14 CET
After months of silence I fixed this and uploaded a new package in updates_testing for mga2. All the (deprecated) popt aliases now just works.

Fixed package:

rpm-mageia-setup-1.147-8.2.mga2

Proposed advisory:

It was discovered that the (deprecated) popt aliases for rpmbuild did not work (eg. rpm -bb). The provided updated packages fixes this problem.
Comment 6 Pascal Terjan 2012-11-26 13:41:47 CET
I had seen it broken in a chroot(working fine on some other mga2) but got used to rpmbuild and never looked into it. Thanks for fixing.
Comment 7 Manuel Hiebel 2012-11-26 15:38:32 CET
if it's ready feel free to reassign to the qa 
https://wiki.mageia.org/en/Updates_policy
Comment 8 Oden Eriksson 2012-11-26 16:14:59 CET
QA: see https://bugs.mageia.org/show_bug.cgi?id=7104#c5

Assignee: bugsquad => qa-bugs

Comment 9 claire robinson 2012-11-26 16:33:59 CET
Pascal, can you confirm this update fixes the problem with rpm -bb (i586 x86_64) please.

Some info on what it does.

http://www.rpm.org/max-rpm/ch-rpm-b-command.html
Comment 10 Pascal Terjan 2012-11-26 16:46:33 CET
I can confirm on x86_64:


Without the update:

[pterjan@chopin ~]$ rpm -bb rpm/SPECS/dclib.spec
rpm: rpm/SPECS/dclib.spec: No such file or directory

With the update:

[pterjan@chopin ~]$ rpm -bb rpm/SPECS/dclib.spec
"rpm -b" is deprecated, use "rpmbuild -b"
error: Failed build dependencies:
	libopenssl-devel is needed by dclib-0:0.3.7-2plf.x86_64
Comment 11 claire robinson 2012-11-27 13:09:52 CET
$ rpmdiff -iT rpm-mageia-setup-1.147-8.mga2.i586.rpm rpm-mageia-setup-1.147-8.2.mga2.i586.rpm
removed     PROVIDES rpm-mageia-setup(x86-32) = 1.147-8.mga2
added       PROVIDES rpm-mandriva-setup = 1.147-8.2.mga2
added       PROVIDES rpm-mageia-setup(x86-32) = 1.147-8.2.mga2
added       OBSOLETES rpm-mandriva-setup < 1.147-8.2.mga2
S.5........ /usr/lib/rpm/mageia/rpmpopt


Does provides of rpm-mandriva-setup belong here?
Comment 12 Oden Eriksson 2012-11-27 14:29:44 CET
I think not as mageia should not provide mandriva packages :)
Comment 13 claire robinson 2012-11-27 16:53:52 CET
It would help if I diff'd the right rpm's!

$ rpmdiff -iT rpm-mageia-setup-1.147-8.1.mga2.i586.rpm rpm-mageia-setup-1.147-8.2.mga2.i586.rpm
removed     PROVIDES rpm-mandriva-setup = 1.147-8.1.mga2
removed     PROVIDES rpm-mageia-setup(x86-32) = 1.147-8.1.mga2
added       PROVIDES rpm-mandriva-setup = 1.147-8.2.mga2
added       PROVIDES rpm-mageia-setup(x86-32) = 1.147-8.2.mga2
removed     OBSOLETES rpm-mandriva-setup < 1.147-8.1.mga2
added       OBSOLETES rpm-mandriva-setup < 1.147-8.2.mga2
S.5........ /usr/lib/rpm/mageia/rpmpopt
Comment 14 claire robinson 2012-11-27 18:39:03 CET
Testing complete mga2 32

Thanks Pascal for testing mga2 64

Before
------
$ rpm -bb rpm/SPECS/0ad.spec
rpm: rpm/SPECS/0ad.spec: No such file or directory

After
-----
$ rpm -bb rpm/SPECS/0ad.spec
"rpm -b" is deprecated, use "rpmbuild -b"
error: File /home/claire/rpm/SOURCES/0ad-r11863-alpha-unix-build.tar.xz: No such file or directory

Validating


SRPM: rpm-mageia-setup-1.147-8.2.mga2.src.rpm


Advisory
--------
It was discovered that the (deprecated) popt aliases for rpmbuild did not work
(eg. rpm -bb). The updated packages fix this problem.
--------

Could sysadmin please push from core/updates_testing to core/updates

Thanks!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: (none) => mga2-32-OK mga2-64-OK

Comment 15 Thomas Backlund 2012-12-01 00:09:41 CET
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0232

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Nicolas Vigier 2014-05-08 18:06:57 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.