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(a)redhat.com
Reporter: sash.opensource(a)googlemail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: haskell-devel(a)lists.fedoraproject.org,
petersen(a)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:
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=fwzeCRjoBA&a=cc_unsubscribe