Bug 1402472 - znc-1.6.5-4.fc27 FTBFS: Directory not found: /builddir/build/BUILDROOT/znc-1.6.5-4.fc27.x86_64/var/lib/znc
Summary: znc-1.6.5-4.fc27 FTBFS: Directory not found: /builddir/build/BUILDROOT/znc-1....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: znc
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-07 15:53 UTC by Jason Tibbitts
Modified: 2017-06-23 01:55 UTC (History)
3 users (show)

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:
Clone Of:
Environment:
Last Closed: 2017-06-19 14:32:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
quick patch (556 bytes, patch)
2016-12-07 15:53 UTC, Jason Tibbitts
no flags Details | Diff

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.


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