Bug 1219587 - Error in PREIN scriptlet in rpm package unbound-libs
Summary: Error in PREIN scriptlet in rpm package unbound-libs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: unbound
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-07 17:43 UTC by Bruce Jerrick
Modified: 2015-06-09 15:14 UTC (History)
4 users (show)

Fixed In Version: unbound-1.5.3-4.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-21 17:32:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bruce Jerrick 2015-05-07 17:43:57 UTC
Description of problem:
During F23 OS installation of unbound-libs the following appears in
/tmp/dnf.rpm.log:
    Error in PREIN scriptlet in rpm package unbound-libs
and unbound-libs is not installed (despite being reported "Installed").
The problem is due to lack of Requires(pre) for 'groupadd' and 'useradd'.
Both are provided by shadow-utils, but that doesn't get installed until
after unbound-libs .

Version-Release number of selected component:
unbound-libs-1.5.3-3.fc23.x86_64 (unbound-1.5.3-3.fc23.src.rpm)
(Could also happen in F22 version.)

How reproducible:
?? May vary with package selection.  I saw it with 4329 packages, via
kickstart.

Steps to Reproduce:
1. Install F23 including unbound-libs package.
2. grep unbound-libs /tmp/dnf.rpm.log		# /tmp in the install env.

Actual results:
May 06 16:29:49 ERR Error in PREIN scriptlet in rpm package unbound-libs
May 06 16:29:49 INFO Installed: unbound-libs-1.5.3-3.fc23.x86_64

Expected results:
No "ERR" line.

And to check for results of the 'groupadd' and 'useradd':
1. grep unbound /etc/group /etc/passwd

Actual results:
(nothing)

Expected results:
/etc/group:unbound:x:989:
/etc/passwd:unbound:x:993:989:Unbound DNS resolver:/etc/unbound:/sbin/nologin

Additional info:
The relevant part of 'rpm -q --scripts unbound-libs-1.5.3-3.fc23.x86_64':

    preinstall scriptlet (using /bin/sh):
    getent group unbound >/dev/null || groupadd -r unbound
    getent passwd unbound >/dev/null || \
    useradd -r -g unbound -d /etc/unbound -s /sbin/nologin \
    -c "Unbound DNS resolver" unbound

'groupadd' and 'useradd' are provided by shadow-utils, installed only *after*
unbound-libs:

    # grep -e unbound-libs -e shadow-utils /tmp/dnf.rpm.log
    May 06 16:29:49 ERR Error in PREIN scriptlet in rpm package unbound-libs
    May 06 16:29:49 INFO Installed: unbound-libs-1.5.3-3.fc23.x86_64
    May 06 16:31:54 INFO Installed: shadow-utils-2:4.2.1-1.fc23.x86_64

'getent' is also required, but since that's provided by glibc-common it will
probably always be there in time.

BTW, unbound-libs is actually *not* installed; that results in a dependency
PROBLEM reported by 'rpm -V gnutls-dane'.  That would seem to be a dnf or
rpm bug.

Comment 1 Fedora Update System 2015-05-11 22:33:54 UTC
unbound-1.5.3-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/unbound-1.5.3-4.fc20

Comment 2 Fedora Update System 2015-05-11 22:34:23 UTC
unbound-1.5.3-4.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/unbound-1.5.3-4.fc21

Comment 3 Fedora Update System 2015-05-12 20:47:37 UTC
Package unbound-1.5.3-4.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing unbound-1.5.3-4.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-8065/unbound-1.5.3-4.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-05-21 17:32:20 UTC
unbound-1.5.3-4.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-05-28 15:21:24 UTC
unbound-1.5.3-4.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/unbound-1.5.3-4.fc22

Comment 6 Fedora Update System 2015-05-30 15:44:34 UTC
unbound-1.5.3-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-06-09 15:14:16 UTC
unbound-1.5.3-4.fc22 has been pushed to the Fedora 22 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.