Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65708 - cernlib-2005.ebuild (New package)
Summary: cernlib-2005.ebuild (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: EBUILD
: 137730 177047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-28 11:28 UTC by Sébastien Fabbro (RETIRED)
Modified: 2007-08-26 13:30 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cernlib-2003.ebuild (cernlib-2003.ebuild,3.69 KB, text/plain)
2004-09-28 11:29 UTC, Sébastien Fabbro (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Fabbro (RETIRED) gentoo-dev 2004-09-28 11:28:41 UTC
The full CERN program library compiled from sources. It includes a variety of data analysis packages, PAW, minuit, geant, very commonly used in High Energy Physics.
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2004-09-28 11:29:21 UTC
Created attachment 40643 [details]
cernlib-2003.ebuild
Comment 2 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-04-06 09:13:09 UTC
I have been looking at this, but unfortunately it fails for me here quite early on. This is on amd64 with the new 2005.0 profile. I will test it on x86 when I get chance too, but it does not seem to be ready for amd64. Alse the make tests should be moved to src_test, and this package could benefit from local USE flags to choose which components are built.

I would like to see this added to portage though. I tested the 2004 sources. Error is below for your information,

gmake[3]: Leaving directory `/var/tmp/portage/cernlib-2004/work/2004/build/packlib/cspack/xz'
checking /packlib/cspack/tcpaw
gmake[3]: Entering directory `/var/tmp/portage/cernlib-2004/work/2004/build/packlib/cspack/tcpaw'
Makefile:454: archive/tcpaw.d: No such file or directory
makedepend -farchive/tcpaw.d.tmp -p archive/ --   -I/var/tmp/portage/cernlib-2004/work/2004/build/packlib/cspack -I/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack -I/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw -I/var/tmp/portage/cernlib-2004/work/2004/src/include    -DFUNCPROTO=15 -DNARROWPROTO    -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC -DCERNLIB_QMLXIA64  /var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c
makedepend: warning:  /usr/include/gentoo-multilib/amd64/gnu/stubs.h:  non-portable whitespace encountered at line 7
gmake[3]: Leaving directory `/var/tmp/portage/cernlib-2004/work/2004/build/packlib/cspack/tcpaw'
gmake[3]: Entering directory `/var/tmp/portage/cernlib-2004/work/2004/build/packlib/cspack/tcpaw'
rm -f archive/tcpaw.o
gcc -c -O1 -fomit-frame-pointer    -I/var/tmp/portage/cernlib-2004/work/2004/build/packlib/cspack -I/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack -I/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw -I/var/tmp/portage/cernlib-2004/work/2004/src/include    -DFUNCPROTO=15 -DNARROWPROTO    -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC -DCERNLIB_QMLXIA64 /var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c -o archive/tcpaw.o
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:1738:13: warning: trigraph ??( ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:1738:18: warning: trigraph ??) ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2196:10: warning: trigraph ??( ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2196:14: warning: trigraph ??) ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2202:12: warning: trigraph ??( ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2202:16: warning: trigraph ??) ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2203:10: warning: trigraph ??( ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2203:14: warning: trigraph ??) ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2216:9: warning: trigraph ??( ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2216:13: warning: trigraph ??) ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2219:37: warning: trigraph ??( ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2219:41: warning: trigraph ??) ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2220:11: warning: trigraph ??( ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2220:15: warning: trigraph ??) ignored, use -trigraphs to enable
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c: In function `isetup':
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:518: warning: passing arg 2 of `getpeername' from incompatible pointer type
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c: In function `ssetup':
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:797: warning: passing arg 2 of `bind' from incompatible pointer type
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:826: warning: passing arg 2 of `accept' from incompatible pointer type
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c: In function `csetup':
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:1287: warning: passing arg 2 of `connect' from incompatible pointer type
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:1310: warning: passing arg 2 of `getsockname' from incompatible pointer type
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c: At top level:
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2368: error: conflicting types for 'malloc'
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2368: error: conflicting types for 'malloc'
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c: In function `ruserpass':
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2386: warning: assignment makes integer from pointer without a cast
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c: At top level:
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2415: warning: static declaration of 'rnetrc' follows non-static declaration
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2378: warning: previous implicit declaration of 'rnetrc' was here
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2495: warning: static declaration of 'token' follows non-static declaration
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2438: warning: previous implicit declaration of 'token' was here
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2547: error: conflicting types for 'ioctl'
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2547: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/usr/include/sys/../gentoo-multilib/amd64/sys/ioctl.h:42: error: previous declaration of 'ioctl' was here
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2547: error: conflicting types for 'ioctl'
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2547: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/usr/include/sys/../gentoo-multilib/amd64/sys/ioctl.h:42: error: previous declaration of 'ioctl' was here
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2614: warning: static declaration of 'catch' follows non-static declaration
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2570: warning: previous declaration of 'catch' was here
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c: In function `_rexec':
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:2682: warning: passing arg 2 of `connect' from incompatible pointer type
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c: In function `tsosub':
/var/tmp/portage/cernlib-2004/work/2004/src/packlib/cspack/tcpaw/tcpaw.c:3346: warning: passing arg 2 of `connect' from incompatible pointer type
gmake[3]: *** [archive/tcpaw.o] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/cernlib-2004/work/2004/build/packlib/cspack/tcpaw'
gmake[2]: *** [tcpaw/archive/objects.list] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/cernlib-2004/work/2004/build/packlib/cspack'
gmake[1]: *** [cspack/archive/objects.list] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/cernlib-2004/work/2004/build/packlib'
make: *** [install.lib] Error 2

!!! ERROR: sci-libs/cernlib-2004 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2006-02-02 23:46:07 UTC
Looking at SRC_URI I wonder if this shouldn't better be split into its parts.
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2006-02-03 00:53:54 UTC
In reply to comments #3:
Yes it could for sure, although very tricky. There is a lot of inter-dependencies between each source. I just have not yet got the courage and time to deep more into this package. My idea was to also get the nice patches from the debian package (See http://people.debian.org/~kmccarty/cernlib/), write an eclass, and split into 4 packages: cernlib-core, cernlib-geant, cernlib-paw, and cernlib-mc. Well the patches are also inter-dependent. If anyone is interested in working out this package, I have a early eclass prototype. 

Note each of the source has some licensing problems as well.
Comment 5 Marco Calviani 2006-02-04 06:05:27 UTC
Hi,
  i'm having trouble compiling cernlib. In particular it gives me errors in the phase of make -k install.bin with this result:

rm -f /home/mirtux/cernlib_2005_source/tar/2005/bin/paw
install -c -s  /home/mirtux/cernlib_2005_source/tar/2005/src/scripts/paw /home/mirtux/cernlib_2005_source/tar/2005/bin/paw
strip: /home/mirtux/cernlib_2005_source/tar/2005/bin/paw: File format not recognized
install: strip failed
gmake: *** [/home/mirtux/cernlib_2005_source/tar/2005/bin/paw] Error 1
gmake: Target `install.bin' not remade because of errors.
rm -f /home/mirtux/cernlib_2005_source/tar/2005/bin/cernlib
install -c -s  /home/mirtux/cernlib_2005_source/tar/2005/src/scripts/cernlib /home/mirtux/cernlib_2005_source/tar/2005/bin/cernlib
strip: /home/mirtux/cernlib_2005_source/tar/2005/bin/cernlib: File format not recognized
install: strip failed
gmake: *** [/home/mirtux/cernlib_2005_source/tar/2005/bin/cernlib] Error 1
gmake: Target `install.bin' not remade because of errors.
rm -f /home/mirtux/cernlib_2005_source/tar/2005/bin/gxint
install -c -s  /home/mirtux/cernlib_2005_source/tar/2005/src/scripts/gxint /home/mirtux/cernlib_2005_source/tar/2005/bin/gxint
strip: /home/mirtux/cernlib_2005_source/tar/2005/bin/gxint: File format not recognized
install: strip failed
gmake: *** [/home/mirtux/cernlib_2005_source/tar/2005/bin/gxint] Error 1
gmake: Target `install.bin' not remade because of errors.

Any hints?
Regards,
MC
Comment 6 Marco Calviani 2006-02-05 02:11:57 UTC
(In reply to comment #5)

thanks to spyderous's suggestion, i've managed to install it. I had to modify the scripts/Makefile in order to eliminate the -s option to the INSTPGMFLAGS variable. After that the compile process went well.

Regards,
MC
Comment 7 Marco Calviani 2006-03-13 11:19:28 UTC
Hi,
   i'm trying to build on another machine that has gcc 3.4.5. 
During the make phase i'm encountering this problem:

g77 -c -O -fno-automatic -fno-second-underscore -fugly-complex    -I/usr/local/cernlib/2005/build/mclibs/cojets -I/usr/local/cernlib/2005/src/mclibs/cojets -I/usr/local/cernlib/2005/src/mclibs/cojets/code -I/usr/local/cernlib/2005/src/include  -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC   -o archive/bgpair.o /usr/local/cernlib/2005/src/mclibs/cojets/code/bgpair.F
/usr/local/cernlib/2005/src/mclibs/cojets/code/bgpair.F: In subroutine `bgpair':
/usr/local/cernlib/2005/src/mclibs/cojets/code/bgpair.F:34:
   [\0]
   ^
Null character at (^) -- line ignored
/usr/local/cernlib/2005/src/mclibs/cojets/code/bgpair.F:34:
   [\0]     DO 8 J=6,7
   ^
Invalid first character at (^) [info -f g77 M LEX]
gmake[3]: *** [archive/bgpair.o] Error 1
gmake[3]: Leaving directory `/usr/local/cernlib/2005/build/mclibs/cojets/code'
gmake[2]: *** [code/archive/objects.list] Error 2
gmake[2]: Leaving directory `/usr/local/cernlib/2005/build/mclibs/cojets'
gmake[1]: *** [install.lib] Error 2
gmake[1]: Leaving directory `/usr/local/cernlib/2005/build/mclibs'
make: *** [install.lib] Error 2

What can be the cause of this problem?

Regards,
MC
Comment 8 Sébastien Fabbro (RETIRED) gentoo-dev 2006-04-22 13:27:44 UTC
I updated the ebuild and put it on the gentoo scientific overlay: http://gentooscience.org.
I decided to install the package as a whole, with the full debian patch set, which allows to build it in several architectures (among many other improvements).
Splitting the package was asking too much for a package with such a nasty installation procedure with little time I want to spend on it.
I tested on amd64 and x86. Test and report in this bug.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-06-23 07:00:03 UTC
*** Bug 137730 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-05-04 16:04:30 UTC
*** Bug 177047 has been marked as a duplicate of this bug. ***
Comment 11 Øystein Senneset Haaland 2007-07-02 15:41:47 UTC
It seems like cernlib depends on x11-misc/makedepend.

This change made it compile for me:

--- cernlib-2006-r1.ebuild.old  2007-07-02 19:22:01.000000000 +0200
+++ cernlib-2006-r1.ebuild      2007-07-02 19:20:46.000000000 +0200
@@ -5,7 +5,8 @@
 DEB_PV="${PV}.dfsg.2"
 DEB_PR="1"
 inherit cernlib
-DEPEND="app-admin/eselect-blas"
+DEPEND="app-admin/eselect-blas
+               x11-misc/makedepend"
 KEYWORDS="~x86 ~amd64"

 src_unpack() {
Comment 12 Sébastien Fabbro (RETIRED) gentoo-dev 2007-08-26 13:30:09 UTC
cernlib-2006 along with derived packages (paw, geant and cernlib-montecarlo) in main tree.