Bug 1402472

Summary: znc-1.6.5-4.fc27 FTBFS: Directory not found: /builddir/build/BUILDROOT/znc-1.6.5-4.fc27.x86_64/var/lib/znc
Product: [Fedora] Fedora Reporter: Jason Tibbitts <j>
Component: zncAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: elyscape, nb, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: znc-1.6.5-5.fc27 znc-1.6.5-4.fc26 znc-1.6.5-3.fc24 znc-1.6.5-3.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-19 14:32:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
quick patch none

Description Jason Tibbitts 2016-12-07 15:53:21 UTC
Created attachment 1229111 [details]
quick patch

The %pre scriptlet creates and changes the ownership of /var/lib/znc, which is kind of an odd way to do it.  This results in nothing owning that directory, which is probably not a good idea.

It sort of looks like whoever wrote that scriptlet didn't realize that you can use %attr(-,znc,znc) in %files even though that user doesn't exist until %pre runs.  But, like magic, it works fine.

I've attached a quick patch.

Comment 1 Fedora End Of Life 2017-02-28 10:44:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 2 Petr Pisar 2017-06-12 15:11:01 UTC
The patch is applied in dist-git and building this package fails now with:

Processing files: znc-1.6.5-4.fc27.x86_64
error: Directory not found: /builddir/build/BUILDROOT/znc-1.6.5-4.fc27.x86_64/var/lib/znc

Comment 3 Petr Pisar 2017-06-12 15:22:12 UTC
The directory was not created in the %install section.

Comment 4 Fedora Update System 2017-06-13 07:06:27 UTC
znc-1.6.5-4.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f7edf76260

Comment 5 Fedora Update System 2017-06-13 07:06:47 UTC
znc-1.6.5-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-9ac8209bf4

Comment 6 Fedora Update System 2017-06-13 07:06:59 UTC
znc-1.6.5-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-5d1a7e81ca

Comment 7 Fedora Update System 2017-06-14 01:37:05 UTC
znc-1.6.5-4.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f7edf76260

Comment 8 Fedora Update System 2017-06-14 08:27:09 UTC
znc-1.6.5-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5d1a7e81ca

Comment 9 Fedora Update System 2017-06-14 08:28:45 UTC
znc-1.6.5-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-9ac8209bf4

Comment 10 Fedora Update System 2017-06-19 14:32:49 UTC
znc-1.6.5-4.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2017-06-22 20:23:42 UTC
znc-1.6.5-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2017-06-23 01:55:46 UTC
znc-1.6.5-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.