Bug 870630 - Non-fatal POSTUN scriptlet failure
Summary: Non-fatal POSTUN scriptlet failure
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 870787 871041 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-27 13:34 UTC by Rui Matos
Modified: 2012-12-20 15:11 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-20 15:11:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Rui Matos 2012-10-27 13:34:48 UTC
I'm seeing these warnings on several samba packages updates:

  Cleanup    : 2:samba-libs-4.0.0-160.fc18.rc3.x86_64                      172/200 
/sbin/ldconfig: relative path `1' used to build cache
warning: %postun(samba-libs-2:4.0.0-160.fc18.rc3.x86_64) scriptlet failed, exit status 1
Non-fatal POSTUN scriptlet failure in rpm package 2:samba-libs-4.0.0-160.fc18.rc3.x86_64

Comment 1 Andreas Schneider 2012-10-29 08:20:52 UTC
%postun libs -p /sbin/ldconfig


That's the postun scriptlet. I don't see what's wrong with it. Setting component to rpm to ask for clarification.

Comment 2 Andreas Schneider 2012-10-29 08:22:49 UTC
*** Bug 870787 has been marked as a duplicate of this bug. ***

Comment 3 Jan Zeleny 2012-10-29 08:32:48 UTC
Just a wild guess here but isn't it possible that /sbin/ldconfig is a symlink with relative path used in it?

Comment 4 Jindrich Novy 2012-10-29 08:37:40 UTC
The problem looks related to usrmove. The new location of ldconfig in F18 is actually /usr/sbin/ldconfig what also explains the scriptlet failure.

Comment 5 Panu Matilainen 2012-10-29 10:10:13 UTC
Nah, its just a silly little packaging bug. Comments in specs can end up in unexpected places - shell would not complain about it, ldconfig does not accept such input however:

[pmatilai@localhost Downloads]$ rpm -qp --nosignature --scripts samba-libs-4.0.0-160.fc18.rc3.x86_64.rpm 
postinstall program: /sbin/ldconfig
postuninstall scriptlet (using /sbin/ldconfig):

### LIBSMBCLIENT
[pmatilai@localhost Downloads]$

Comment 6 Andreas Schneider 2012-10-29 11:44:18 UTC
So I can't add any comments in these sections, cause comments are not ignored?

Comment 7 Panu Matilainen 2012-10-29 12:24:24 UTC
Rpm cannot go interpreting (including ignoring comments) the scriptlet sections in any way. While # is a comment marker in some languages but not all, and even in shell its not so simple - consider eg the following:

%post
if [ ! -f /etc/foo.conf ]; then
cat << EOF >>
# This space intentionally left blank
EOF

The "issue" is that the spec syntax does not have section end marker, so a section ends only when a new one starts. That's the way the entire spec behaves, but its only really user-visible with the scriptlets.

Comment 8 Andreas Schneider 2012-10-29 12:55:29 UTC
I will fix it with the update tomorrow.

Comment 9 Andreas Schneider 2012-10-29 14:00:40 UTC
*** Bug 871041 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2012-10-30 13:06:28 UTC
samba-4.0.0-163.fc18.rc4 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/samba-4.0.0-163.fc18.rc4

Comment 11 Fedora Update System 2012-10-30 20:12:46 UTC
Package samba-4.0.0-163.fc18.rc4:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing samba-4.0.0-163.fc18.rc4'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17235/samba-4.0.0-163.fc18.rc4
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2012-11-05 14:34:47 UTC
samba-4.0.0-165.fc18.rc4 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/samba-4.0.0-165.fc18.rc4

Comment 13 Fedora Update System 2012-12-20 15:11:24 UTC
samba-4.0.0-165.fc18.rc4 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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