https://bugzilla.redhat.com/show_bug.cgi?id=1222382
Bug ID: 1222382 Summary: cabal unpack fails Product: Fedora Version: 22 Component: cabal-rpm Assignee: petersen@redhat.com Reporter: sash.opensource@googlemail.com QA Contact: extras-qa@fedoraproject.org CC: haskell-devel@lists.fedoraproject.org, petersen@redhat.com
Description of problem: I try to create an rpm package for pandoc-citeproc because Fedoras current version fails for me. In order to do so, I also need to create an rpm of xml-conduit. I read about Haskell package creation on https://fedoraproject.org/wiki/Packaging:Haskell and tried to create a spec file for xml-conduit with cabal rpm. The following happens:
cabal-rpm is not able to unpack the tgz:
[makerpm@L420 SOURCES]$ cabal-rpm spec xml-conduit-1.3.0.tar.gz cabal: The file does not exist 'xml-conduit-1.3.0.tar.gz'. cabal-rpm: user error ("cabal unpack -v0 xml-conduit-1.3.0.tar.gz" failed with status 1)
But when I run cabal unpack manually, it works:
[makerpm@L420 SOURCES]$ cabal unpack -v0 xml-conduit-1.3.0.tar.gz [makerpm@L420 SOURCES]$ ls -l xml-conduit-1.3.0 total 28 -rw-rw-r--. 1 makerpm makerpm 533 May 17 14:35 ChangeLog.md -rw-rw-r--. 1 makerpm makerpm 1368 May 17 14:35 LICENSE -rw-rw-r--. 1 makerpm makerpm 1170 May 17 14:35 README.md -rw-rw-r--. 1 makerpm makerpm 114 May 17 14:35 Setup.lhs drwxrwxr-x. 2 makerpm makerpm 4096 May 17 14:35 test drwxrwxr-x. 3 makerpm makerpm 4096 May 17 14:35 Text -rw-rw-r--. 1 makerpm makerpm 2648 May 17 14:35 xml-conduit.cabal
When I then try to run cblrpm spec on the .cabal file itself, this happens:
[makerpm@L420 xml-conduit-1.3.0]$ cblrpm spec xml-conduit.cabal cabal: The file does not exist 'xml-conduit.cabal'. cblrpm: user error ("cabal unpack -v0 xml-conduit.cabal" failed with status 1)
Version-Release number of selected component (if applicable): 0.9.5
How reproducible: Always, see description.
Steps to Reproduce: 1. 2. 3.
Actual results: cabal-rpm fails
Expected results: cabal-rpm should create a spec file.
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1222382
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |UPSTREAM Last Closed| |2015-05-18 06:17:46
--- Comment #1 from Jens Petersen petersen@redhat.com --- please just run "cabal spec xml-conduit"
I may re-add tarball arg support in a future version of cabal-rpm perhaps but it is not a high priority currently (though in the TODO list).
See https://github.com/juhp/cabal-rpm/issues/10
https://bugzilla.redhat.com/show_bug.cgi?id=1222382
--- Comment #2 from Jens Petersen petersen@redhat.com --- (In reply to Jens Petersen from comment #1)
please just run "cabal spec xml-conduit"
sorry I meant "cabal-rpm spec xml-conduit".
haskell-devel@lists.fedoraproject.org