Bug 1222382 - cabal unpack fails
Summary: cabal unpack fails
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: cabal-rpm
Version: 22
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-18 05:50 UTC by Sascha Zantis
Modified: 2015-05-18 10:36 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-18 10:17:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sascha Zantis 2015-05-18 05:50:24 UTC
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:

Comment 1 Jens Petersen 2015-05-18 10:17:46 UTC
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

Comment 2 Jens Petersen 2015-05-18 10:36:42 UTC
(In reply to Jens Petersen from comment #1)
> please just run "cabal spec xml-conduit"

sorry I meant "cabal-rpm spec xml-conduit".


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