Bug 351361 (ghc-X11-extras) - Review Request: ghc-X11-extras - Haskell X11-extras library
Summary: Review Request: ghc-X11-extras - Haskell X11-extras library
Keywords:
Status: CLOSED WONTFIX
Alias: ghc-X11-extras
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-24 21:12 UTC by Till Maas
Modified: 2008-11-10 03:18 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-13 05:22:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Till Maas 2007-10-24 21:12:50 UTC
Spec URL: http://till.fedorapeople.org/review/X11-extras.spec
SRPM URL: http://till.fedorapeople.org/review/X11-extras-0.4-1.tillf7.src.rpm
Description:
Missing bindings to the X11 graphics library.

Comment 1 Patrice Dumas 2007-10-24 21:38:55 UTC
Shouldn't this be called haskell-X11-extras? The X11-extras is 
awfully badly chosen and too generic!

Comment 2 Till Maas 2007-10-24 21:50:38 UTC
(In reply to comment #1)
> Shouldn't this be called haskell-X11-extras? The X11-extras is 
> awfully badly chosen and too generic!

Maybe, but the packages this spec produces use ghc prefixes, so this may be only
a problem in CVS, but when the there is a guideline for naming Haskell
libraries, then this can be changed without the need of a rebuild. Using haskell
as prefix for the packages is not good, because there are different incompatible
haskell compilers. Using ghc-X11-extras for the spec may be a solution, but then
in case it should contain also other subpackages for other compilers, it would
not be good. If you demand a specific name for this package to finish review,
then I would prefer to rename it to ghc-X11-extras.


Comment 3 Patrice Dumas 2007-10-24 21:57:58 UTC
I proposed that name for consistency with perl or python,
but I don't have the slightest idea about what is haskell.
I can, however, see when a package has a generic naming 
although it is a binding...

Comment 4 Till Maas 2007-10-24 22:22:22 UTC
Here is a spec with the ghc prefix. This spec also uses %ghost in %files instead
of rm in %preun

Spec URL: http://till.fedorapeople.org/review/ghc-X11-extras.spec
SRPM URL: http://till.fedorapeople.org/review/ghc-X11-extras-0.4-2.tillf7.src.rpm

Thinking about it a little more, this is my favourite naming. I hope that
someone from the Haskell Sig noticed this review request (I added it to their
wiki page), but I will cc them, if it seems, that it is needed. Maybe there will
be some Haskell Guidelines, when the review of this package is finished.

Comment 5 Jens Petersen 2007-11-02 06:48:31 UTC
Thanks for submitting X11-extras. :)  I had been wanting to have in
Fedora for a while.

I Agree the ghc prefix makes sense here.

Currently we don't have any other Haskell compilers in Fedora,
though we do have hugs98 (an interpreter) and there could be
libraries packaged for it too.

The first library we have (had for a while) is gtk2hs for ghc,
but I expect there will surely be more coming.
Yes, we need packaging guidelines for Haskell, and I'd
like to see this review as a rehearsal to make a draft for that. :)


Comment 6 Michel Lind 2007-11-13 07:54:32 UTC
Build fails for me with the following:

+ runhaskell Setup.lhs copy
--destdir=/home/builder/packages/tmp/ghc-X11-extras-0.4-2.fc8-root-builder
Installing:
/home/builder/packages/tmp/ghc-X11-extras-0.4-2.fc8-root-builder/usr/lib64/X11-extras-0.4/ghc-6.8.1
+ install .installed-pkg-config
/home/builder/packages/tmp/ghc-X11-extras-0.4-2.fc8-root-builder/usr/lib64/X11-extras-0.4/ghc-6.8.1/X11-extras.pkg
install: cannot stat `.installed-pkg-config': No such file or directory
erreur: Mauvais status de sortie pour /home/builder/packages/tmp/rpm-tmp.2795
(%install)


Comment 7 Till Maas 2007-11-13 08:53:24 UTC
Spec URL: http://till.fedorapeople.org/review/ghc-X11-extras.spec
SRPM URL: http://till.fedorapeople.org/review/ghc-X11-extras-0.4-3.tillf7.src.rpm

Here is a new spec that builds on koji:

http://koji.fedoraproject.org/koji/taskinfo?taskID=239095
http://koji.fedoraproject.org/koji/taskinfo?taskID=239091

I needed to change the way %ghcver was defined because otherwise koji complained
about a multiple define package, because it tested %description before the BRs
were fulfilled.


(In reply to comment #6)
> Build fails for me with the following:
> 
> + runhaskell Setup.lhs copy
> --destdir=/home/builder/packages/tmp/ghc-X11-extras-0.4-2.fc8-root-builder
> Installing:
>
/home/builder/packages/tmp/ghc-X11-extras-0.4-2.fc8-root-builder/usr/lib64/X11-extras-0.4/ghc-6.8.1
> + install .installed-pkg-config
>
/home/builder/packages/tmp/ghc-X11-extras-0.4-2.fc8-root-builder/usr/lib64/X11-extras-0.4/ghc-6.8.1/X11-extras.pkg
> install: cannot stat `.installed-pkg-config': No such file or directory
> erreur: Mauvais status de sortie pour /home/builder/packages/tmp/rpm-tmp.2795
> (%install)

How did you build it? I do not know, why .installed-pkg-config is not there. Is
it maybe somewhere else or is there a similiar file in the source directory?


Comment 8 Michel Lind 2007-11-15 18:50:38 UTC
Using ghc-6.8.1 from updates-testing, just with rpmbuild.

Something is broken with the way RPM parses macros, by the way, and it's
happening here: your commented-out #%define ghc_version in line 2 actually
shadows the automatic detection in line 1 (occured to me in the past when trying
to comment out %configure in other packages)

Deleting line 2 (or just deleting the %) lets the build proceed, but fails the
same way as before -- .installed-pkg-config not found.

Comment 9 Till Maas 2007-11-26 23:44:14 UTC
Spec URL: http://till.fedorapeople.org/review/ghc-X11-extras.spec
SRPM URL: http://till.fedorapeople.org/review/ghc-X11-extras-0.4-4.tillf7.src.rpm

Here is a new spec that builds on koji:

F8:
http://koji.fedoraproject.org/koji/taskinfo?taskID=259984
F9:
http://koji.fedoraproject.org/koji/taskinfo?taskID=259983

The installed-pkg-config is at a different location when using the newer version
of ghc (or cabal)

Comment 10 Hans Ulrich Niedermann 2007-12-12 09:06:51 UTC
Running rpmlint on the packages built from ghc-X11-extras-0.4-4.tillf7.src.rpm:

ghc681-X11-extras.i386: W: devel-file-in-non-devel-package
/usr/lib/X11-extras-0.4/ghc-6.8.1/libHSX11-extras-0.4.a
ghc681-X11-extras.i386: E: script-without-shebang
/usr/lib/X11-extras-0.4/ghc-6.8.1/X11-extras.pkg
ghc681-X11-extras.i386: W: devel-file-in-non-devel-package
/usr/lib/X11-extras-0.4/ghc-6.8.1/include/XlibExtras.h
ghc-X11-extras.i386: W: no-documentation
ghc-X11-extras.i386: E: no-binary


Comment 11 Till Maas 2007-12-12 10:53:53 UTC
(In reply to comment #10)

> ghc681-X11-extras.i386: W: devel-file-in-non-devel-package
> /usr/lib/X11-extras-0.4/ghc-6.8.1/libHSX11-extras-0.4.a

The complete package is a haskell devel package afaik.

> ghc681-X11-extras.i386: E: script-without-shebang
> /usr/lib/X11-extras-0.4/ghc-6.8.1/X11-extras.pkg

Is this file executable? I will check this later.

> ghc681-X11-extras.i386: W: devel-file-in-non-devel-package
> /usr/lib/X11-extras-0.4/ghc-6.8.1/include/XlibExtras.h

see above.

> ghc-X11-extras.i386: W: no-documentation
> ghc-X11-extras.i386: E: no-binary

This is also intended, because the package is only there to make it easier to
get the latest package.

Nevertheless, it seem that ghc-X11-extras is not needed anymore, at least the
latest release of xmonad does not need it, but a newer version of "ghc-X11", but
I need to do some more research here - or does someone else know more about this?

Comment 12 Jens Petersen 2008-02-07 00:14:16 UTC
Sorry for neglecting this review too long...

(In reply to comment #11)
> Nevertheless, it seem that ghc-X11-extras is not needed anymore, at least the
> latest release of xmonad does not need it, but a newer version of "ghc-X11",
> but I need to do some more research here

Right I just noticed this myself.

I didn't search the haskell mailing-lists but I see:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464004

I think it would be good and straightforward to update your package to X11
instead since ghc-6.8.2 no longer seems to ship X11.

Comment 13 Jens Petersen 2008-02-13 04:31:49 UTC
Ah nevermind I see ghc-X11 in bug 426751.

So I think this bug can be closed.


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