Bug 2284

Summary: Error when installing in a chroot
Product: Mageia Reporter: Michael Scherer <misc>
Component: RPM PackagesAssignee: Jerome Quelin <jquelin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: jquelin, marja11, thierry.vignaud
Version: 1   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: perl-XML-SAX CVE:
Status comment:

Description Michael Scherer 2011-07-26 14:08:50 CEST
Description of problem:
  154/164: perl-XML-SAX          ######################################################################################################################
warning: %post(perl-XML-SAX-0.960.0-1.mga1.noarch) scriptlet failed, exit status 2

When installing in a chroot, perl-XML-SAX %post script is unable to work. 
It requires perl(File::Tmp).

However, a comment in the spec say this is done on purpose, because this would add a requires on complete perl for urpmi. 

So either we remove the %post, or we do not filter the requirement.
Ahmad Samir 2011-07-26 14:20:44 CEST

CC: (none) => jquelin

Comment 1 Jerome Quelin 2011-07-26 17:21:08 CEST
this is somehow related to what jbj told us about some missing requires when installing mageia rpms in random order, without even having base system installed.

thierry then answered that it was known and that we shouldn't care iirc. can't find the pointer to cooker post, though.
Comment 2 Samuel Verschelde 2011-10-01 03:41:10 CEST
Assigning to maintainer.

Assignee: bugsquad => jquelin

Comment 3 Jerome Quelin 2011-10-01 10:30:18 CEST
thierry, is this a bug we want to tackle?

CC: (none) => thierry.vignaud

Comment 4 Marja Van Waes 2012-01-07 18:03:24 CET
(In reply to comment #3)
> thierry, is this a bug we want to tackle?

@ Thierry

WDYT?

CC: (none) => marja11

Comment 5 Thierry Vignaud 2012-03-12 16:19:16 CET
(In reply to comment #3)
> thierry, is this a bug we want to tackle?

Of course since there're missing requires(post)
That could happen with some small installs too.(In reply to comment #3)


(In reply to comment #1)
> this is somehow related to what jbj told us about some missing requires when
> installing mageia rpms in random order, without even having base system
> installed.

This is just bogus. perl-XML-SAX is part of basesystem when using suggests so of course it will be installed prior to basesystem
And anyway, anything run in %post must be Required for

For now, it'll work since File::Temp is now part of perl and since File::Temp doesn't seems used anymore.

What's more, why do we need that over complex post-script that alter a file packaged with this package?
Cannot this be made at build time?
That would be the proper solution. Self altering packages is dirty
Looks like we inherited this from RH:
http://pkgs.fedoraproject.org/gitweb/?p=perl-XML-SAX.git;a=commitdiff;h=efd036d2a407f91f3040da1ba40cfbe25b0fd693

Ever confirmed: 1 => 0
Status: NEW => UNCONFIRMED

Comment 6 Jerome Quelin 2012-03-12 17:58:56 CET
d'oh, you're right. ParserDetails.ini is created and updated only by this package. therefore, it's now shipping said file directly instead of altering it at un/install time.

note that it may be a problem later on if the file format changes, but i don't see that happening quite soon.

perl-XML-SAX-0.990.0-2.mga2 (currently on its way) should fix the problem.

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