Bug 923552

Summary: 'cabal-rpm spec' fails on some Hackage packages, claiming 'getDirectoryContents: does not exist'
Product: [Fedora] Fedora Reporter: Michel Lind <michel>
Component: cabal-rpmAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: haskell-devel, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-05 00:02:28 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 923543    

Description Michel Lind 2013-03-20 05:11:42 UTC
Description of problem:
I'm batch-generating spec files for the yesod-platform components that do not exist in our package database yet (using yum-builddep on the cabal-rpm-generated spec for yesod-platform itself), and it fails on the following three packages:

cipher-rc4
pureMD5
word8

All three of which have valid-looking pages on Hackage.

Version-Release number of selected component (if applicable):
cabal-rpm-0.7.0-1.fc18.x86_64

How reproducible:
Always

Steps to Reproduce:
1. cabal-rpm spec cipher-rc4
2. cabal-rpm spec pureMD5
3. cabal-rpm spec word8
  
Actual results:
cabal-rpm: cipher-rc4: getDirectoryContents: does not exist (No such file or directory)
cabal-rpm: pureMD5: getDirectoryContents: does not exist (No such file or directory)
cabal-rpm: word8: getDirectoryContents: does not exist (No such file or directory)


Expected results:
cabal-rpm should generate spec files for each

Additional info:

Comment 1 Jens Petersen 2013-03-22 05:12:39 UTC
Thank you for reporting this.  Seems to be the number/digit in the package name.
I must be making some naughty assumption...

Comment 2 Jens Petersen 2013-03-22 05:27:26 UTC
I will fix this shortly in the next release: cabal-rpm-0.7.1

In the meantime a workaround is:

$ cabal unpack cipher-rc4
$ cblrpm spec cipher-rc4-*

etc

Comment 3 Fedora Update System 2013-03-22 06:55:09 UTC
cabal-rpm-0.7.1-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/cabal-rpm-0.7.1-1.fc17

Comment 4 Fedora Update System 2013-03-22 06:55:21 UTC
cabal-rpm-0.7.1-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/cabal-rpm-0.7.1-1.fc18

Comment 5 Fedora Update System 2013-03-22 21:13:47 UTC
Package cabal-rpm-0.7.1-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cabal-rpm-0.7.1-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-4253/cabal-rpm-0.7.1-1.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-04-05 00:02:30 UTC
cabal-rpm-0.7.1-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.