> I appreciate the response. It's likely easier to use a pandoc-citeproc
> package right from the repos when it arrives
pandoc-citeproc is now in the F20 updates-testing repo btw.
So if you want you should be able to install it now with
"yum install --enablerepo=updates-testing pandoc-citeproc".
https://bugzilla.redhat.com/show_bug.cgi?id=1098854https://admin.fedoraproject.org/updates/pandoc-citeproc-0.3.1-1.fc20
Or if you wait a week then it should reach the stable repos.
Thanks to Ben for reviewing the package. :)
Jens
Hi Andrew
> It's likely easier to use a pandoc-citeproc
> package right from the repos when it arrives, however I'm interested
> in this cabal method. I use pip a ton in python (in a virtualenv) and
> i bet there is a wonderful world of packages available for haskell.
Yes
> I tried what you suggested, however I'm getting an error about
> versioning on the install. I don't mean for this to be a big support
> discussion, so I converted my document over to LaTex so that I could
> get it finished without relying on pandoc-citeproc being available
> quickly.
Okay it is easy to get into dependency hell with cabal install
without sandboxing. So I suggest either you try to yum install
cabal-dev, or newer cabal-install from my copr repo [1] which has
support for sandboxes.
> https://gist.github.com/storrgie/80e57c8a230dbe84754c
Okay, I am not sure where the List dependency is coming from.
I managed to cabal install pandoc-citeproc on my F20 machine.
You might want to look through the ghc-pkg check output first
to work out what is broken in your user-installed libs.
Most people now suggest to use sandbox to build projects
anyway to avoid these kind of problems.
Hope that helps,
Jens
[1] http://copr.fedoraproject.org/coprs/petersen/cabal-install/
Hi Andrew,
I hope you don't mind I cc'ed Fedora Haskell list too
in case anyone else is looking for this. Thanks for your mail.
> I'm trying to use pandoc with a biblatex bibliography and it appears
> that on Fedora 20 there isn't a package for pandoc-citeproc.
That's right since pandoc 1.12 the bibtex citeproc support was separated
out into pandoc-citeproc, so there was a slight functional regression
when we moved from 1.11 to 1.12.
> I'm wondering if there is an alternative available, or if there is another
> method (other than using the local package manager) for getting
> citations working in pandoc.
A couple of options. (1) There is a Fedora Package Review Request open
for pandoc-citeproc: https://bugzilla.redhat.com/show_bug.cgi?id=1098854
So you could build yourself from the srpm there. Hopefully it will get
reviewed soon and then it will appear in Fedora Updates after that.
(2) Otherwise you could use the cabal-install (or cabal-rpm, which will
install the packaged dependencies for you) to build it locally for yourself:
$ sudo yum install cabal-install
$ cabal update
$ cabal install pandoc-citeproc
If you need more help do ask, I am happy to answer more questions.
Jens
Hi all,
I'm trying to package Bustle[1], and so I first need to package
ghc-hgettext and ghc-setlocale as dependencies.
I can generate a ghc-setlocale package[2] easily enough using cabal-rpm,
but when I try to package ghc-hgettext[3], I get:
+ ./Setup build
Building hgettext-0.1.30...
Preprocessing library hgettext-0.1.30...
[1 of 2] Compiling Distribution.Simple.I18N.GetText
( src/Distribution/Simple/I18N/GetText.hs,
dist/build/Distribution/Simple/I18N/GetText.o )
[2 of 2] Compiling Text.I18N.GetText ( src/Text/I18N/GetText.hs,
dist/build/Text/I18N/GetText.o )
[1 of 2] Compiling Distribution.Simple.I18N.GetText
( src/Distribution/Simple/I18N/GetText.hs,
dist/build/Distribution/Simple/I18N/GetText.p_o )
[2 of 2] Compiling Text.I18N.GetText ( src/Text/I18N/GetText.hs,
dist/build/Text/I18N/GetText.p_o )
[1 of 2] Compiling Distribution.Simple.I18N.GetText
( src/Distribution/Simple/I18N/GetText.hs,
dist/build/Distribution/Simple/I18N/GetText.dyn_o )
[2 of 2] Compiling Text.I18N.GetText ( src/Text/I18N/GetText.hs,
dist/build/Text/I18N/GetText.dyn_o )
/usr/bin/ld: cannot find -lHSsetlocale-0.0.3-ghc7.4.2
collect2: error: ld returned 1 exit status
That's with my ghc-setlocale package installed:
$ ls -l /usr/lib64/ghc-7.4.2/setlocale-0.0.3/
total 500
-rw-r--r--. 1 root root 152134 Jun 28 10:44
libHSsetlocale-0.0.3.a
-rwxr-xr-x. 1 root root 91384 Jun 28 10:44
libHSsetlocale-0.0.3-ghc7.4.2.so
-rw-r--r--. 1 root root 259548 Jun 28 10:44
libHSsetlocale-0.0.3_p.a
drwxr-xr-x. 1 root root 12 Jun 28 10:47 System
I'm stumped. If I rebuild ghc-hgettext with shared libraries disabled,
it works, but that's not really acceptable. I'm afraid I don't know
enough about the Cabal/rpmbuild/Haskell build and linking process to be
able to diagnose this without spending too much time on it. Hopefully
the answer is obvious to someone else!
Thanks,
Philip
[1]: http://willthompson.co.uk/bustle/
[2]: http://people.collabora.com/~pwith/packaging/ghc-setlocale.spec
[3]: http://people.collabora.com/~pwith/packaging/ghc-hgettext.spec