Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 49282

Summary: [science overlay] sci-mathematics/gap-4.4.10.ebuild (New Package)
Product: Gentoo Linux Reporter: Thomas Veith (RETIRED) <xtv>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: normal CC: anton.kochkov, frp.bissey, kamensky.fb, mjo, sci-mathematics
Priority: Normal Keywords: InOverlay, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/gentoo/gentoo/pull/34472
Whiteboard: Science overlay
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 201321    
Attachments: gap-4.4.2.ebuild
gentoo-carat.diff
gentoo-gap-config.diff
New version
Updated patch
Another patch needed
New Version
Don't build gmp, updated
CLK_TCK patch, updated
Updated ebuild.
New version -- gap-4.5_p5
gap-4.5_p5.ebuild
gap-4.5_p5.ebuild

Description Thomas Veith (RETIRED) gentoo-dev 2004-04-28 07:39:45 UTC
Attached ebuild and patches build GAP, a system for computational discrete algebra with particular emphasis on, but not restricted to computational group theory.

Reproducible: Always
Steps to Reproduce:


Actual Results:  
The tests run okay, below a log: 
 
gap> 3^80; 
147808829414345923316083210206383297601 
gap> tst := Filename( DirectoriesLibrary("tst"), "testall.g" );; 
gap> Read(tst); 
You should start GAP4 using:  `gap -N -A -x 80 -r -m 100m'. The more 
GAP4stones you get, the faster your  system is.  The runtime of 
the following tests (in general)  increases.  You should expect 
about 100000 GAP4stones on a Pentium 3, 1GHz. 
The `next' time is an approximation of the running time for the next test. 
 
Architecture: i686-pc-linux-gnu-gcc 
 
test file         GAP4stones     time(msec) 
------------------------------------------- 
testing: /usr/share/gap-4.4.2/tst/zlattice.tst 
zlattice.tst               0             20 
. 
. 
grpmat.tst            175814           8873 
------------------------------------------- 
total                 158146          51684
Comment 1 Thomas Veith (RETIRED) gentoo-dev 2004-04-28 07:40:18 UTC
Created attachment 30243 [details]
gap-4.4.2.ebuild
Comment 2 Thomas Veith (RETIRED) gentoo-dev 2004-04-28 07:41:26 UTC
Created attachment 30244 [details, diff]
gentoo-carat.diff

fixes carat to be built with gmp
Comment 3 Thomas Veith (RETIRED) gentoo-dev 2004-04-28 07:42:08 UTC
Created attachment 30245 [details, diff]
gentoo-gap-config.diff

allows the main gap system to be built with user provided CFLAGS (make.conf)
Comment 4 Richard Lärkäng 2006-06-16 00:58:35 UTC
Created attachment 89284 [details]
New version

Here's an updated ebuild, since the files for 4.4.2 doesn't seem to be available anymore.
Comment 5 Richard Lärkäng 2006-06-16 01:00:03 UTC
Created attachment 89287 [details, diff]
Updated patch
Comment 6 Richard Lärkäng 2006-06-16 01:00:50 UTC
Created attachment 89288 [details, diff]
Another patch needed
Comment 7 jszwast 2007-10-20 00:05:48 UTC
This should be in sci-mathematics, not app-sci.
(or games-puzzle?)
Comment 8 Sebastián Magrí 2008-02-16 15:49:58 UTC
Created attachment 143669 [details]
New Version

There is a new version of this application, gap-4.4.10, and also for severe packages, as xtom, that now is in the 1.1.2 version, and the latest packages-2008_02_05-17_04_UTC.tar.bz2.
Comment 9 Sebastián Magrí 2008-02-17 04:01:50 UTC
The ebuild i've attached have severe errors... I'll  try to fix it, if somebody can do it earlier please do it.
Comment 10 Cyp 2008-07-04 06:19:16 UTC
Created attachment 159497 [details, diff]
Don't build gmp, updated

This patch works for me, the previous one seems to have stopped working.
Comment 11 Cyp 2008-07-04 06:20:46 UTC
Created attachment 159499 [details, diff]
CLK_TCK patch, updated

Bumped directory version number in the patch.
Comment 12 Cyp 2008-07-04 06:26:44 UTC
Created attachment 159501 [details]
Updated ebuild.

Bumped version of 'PACKAGES', since I couldn't download the old version. Made it build, except for building of 'pargap' which I commented out. (Think 'make' went ultra recursive on pargap, and called itself thousands of times deep.)

gap> tst := Filename( DirectoriesLibrary("tst"), "testall.g" );;
gap> Read(tst);
You should start GAP4 using:  `gap -N -A -x 80 -r -m 100m'.
The more GAP4stones you get, the faster your system is.
The runtime of the following tests (in general) increases.
You should expect about 100000 GAP4stones on a Pentium III/1 GHz.
The `next' time is an approximation of the running time for the next file.

Architecture: x86_64-pc-linux-gnu-gcc

test file         GAP4stones     time(msec)
-------------------------------------------
testing: /usr/share/gap-4.4.10/tst/gaussian.tst
gaussian.tst               0              4
...
testing: /usr/share/gap-4.4.10/tst/grppcnrm.tst
grppcnrm.tst          430175          24122
-------------------------------------------
total                 481504          35915

gap>
Comment 13 François Bissey 2008-07-04 21:14:06 UTC
(In reply to comment #12)
> Created an attachment (id=159501) [edit]
> Updated ebuild.
> 
> Bumped version of 'PACKAGES', since I couldn't download the old version. Made
> it build, except for building of 'pargap' which I commented out. (Think 'make'
> went ultra recursive on pargap, and called itself thousands of times deep.)
> 
> gap> tst := Filename( DirectoriesLibrary("tst"), "testall.g" );;
> gap> Read(tst);
> You should start GAP4 using:  `gap -N -A -x 80 -r -m 100m'.
> The more GAP4stones you get, the faster your system is.
> The runtime of the following tests (in general) increases.
> You should expect about 100000 GAP4stones on a Pentium III/1 GHz.
> The `next' time is an approximation of the running time for the next file.
> 
> Architecture: x86_64-pc-linux-gnu-gcc
> 
> test file         GAP4stones     time(msec)
> -------------------------------------------
> testing: /usr/share/gap-4.4.10/tst/gaussian.tst
> gaussian.tst               0              4
> ...
> testing: /usr/share/gap-4.4.10/tst/grppcnrm.tst
> grppcnrm.tst          430175          24122
> -------------------------------------------
> total                 481504          35915
> 
> gap>
> 
I know that may be a bit insane but could we split the packages?
Or even make them into separate ebuilds (I know more work).
I am making this bug a dependency of the sage bug and sage only
needs Guava. I also just read the list of packages you compile,
I would have thought from gap web page that there were more of them
in that tarball (will be checking later today).

Francois
Comment 14 François Bissey 2008-07-04 21:28:30 UTC
Funny that, I don't own this bug or bug #201321 so I cannot
make them depend on each other :(
Really thinking of becoming a dev just for this.
Comment 15 Sébastien Fabbro (RETIRED) gentoo-dev 2008-07-05 10:15:57 UTC
This ebuild has also been in the science overlay, but I haven't compared the two ones yet. Andrey any insights on this?

Comment 16 François Bissey 2008-07-05 11:13:21 UTC
(In reply to comment #15)
> This ebuild has also been in the science overlay, but I haven't compared the
> two ones yet. Andrey any insights on this?
> 
I have had a look as I also tried the science overlay one. There are 2
main differences:
*the science overlay ebuild is plain gap with the standard shipped package, 
this one includes optional, reviewed, gap packages.
*patch - in the science overlay no patch but an .el file for amd64.
Here we have a strange config patch that definitely need reviewing, and
2 patches on the optional packages.

For sage I want at least one optional package: Guava which is build with
this ebuild. Ideally we would want to either to have use flags for individual
optional package or separate ebuild (although it may take some figuring out).
Separate ebuild has the advantage that one can update a package without
updating gap.

Francois
Comment 17 Andrey Grozin gentoo-dev 2008-07-07 06:02:51 UTC
(In reply to comment #16)
> For sage I want at least one optional package: Guava which is build with
> this ebuild. Ideally we would want to either to have use flags for individual
> optional package or separate ebuild (although it may take some figuring out).
> Separate ebuild has the advantage that one can update a package without
> updating gap.
Exactly. I think separate ebuilds would be much better (or maybe ebuilds for some thematic groups of gap packages, like in texlive). Not everybody will want *all* gap packages. I planned to write such separate ebuilds, but has not yet done so.

I don't understand the configure patch here. gap compiles fine without it, so, why create future maintainance problems by patches? Patches for specific gap packages need to be reviewed by a gap (and group theory!) specialist, I am neither. Ideally, such patches should go upstream and be reviewed by the gap project.

I'll have a look if I can supplement the science overlay ebuild (which only installed the core gap) by ebuilds for gap packages (at least the most useful ones).
Comment 18 Riccardo Brasca 2012-06-12 07:08:13 UTC
Is there any news about gap coming in portage?
Comment 19 Justin Lecher (RETIRED) gentoo-dev 2012-06-12 07:39:19 UTC
(In reply to comment #18)
> Is there any news about gap coming in portage?

Is there something wrong with the version in sci overlay?
Comment 20 Marek 2012-09-18 12:44:57 UTC
Created attachment 324190 [details]
New version -- gap-4.5_p5

I used old ebuild (4.4.12) to create new one. 
However I am not programmer nor I know ebuild writing customs so please have a look inside and correct what should be!

In 4.5 version there were some changes, including readline support, gmp support and new packaging scheme.

Detailed instructions I followed while writing this ebuild are below.
http://www.gap-system.org/Download/INSTALL

Added USE flags:
readline: adds support for sys-libs/readline
static-gmp: builds dev-libs/gmp _shipped_ with gap (currently 5.0.5)
gmp: use system dev-libs/gmp
Comment 21 Marek 2012-09-18 12:52:54 UTC
There is an open issue with gap-packages. How should we deal with them?

(instalation as in Section 7 of 
http://www.gap-system.org/Download/INSTALL
)

packages USE flag? GAP_PACKAGES?

I don't use vim nor emacs so I didn't check 'magic' happening in ebuild when enabling related USE.

Cheers,

m
Comment 22 Marek 2012-09-18 14:02:03 UTC
Created attachment 324198 [details]
gap-4.5_p5.ebuild
Comment 23 Marek 2012-09-23 22:39:44 UTC
Created attachment 324750 [details]
gap-4.5_p5.ebuild
Comment 24 Anton Kochkov 2019-10-31 10:50:21 UTC
Latest GAP version is 4.10.2 (June 2019), please update your ebuild accordingly:

https://github.com/gap-system/gap/releases/tag/v4.10.2

Release notes here: https://www.gap-system.org/Manuals/doc/changes/chap2.html#X788B3576809DC149
Comment 25 François Bissey 2019-10-31 10:53:49 UTC
(In reply to Anton Kochkov from comment #24)
> Latest GAP version is 4.10.2 (June 2019), please update your ebuild
> accordingly:
> 
> https://github.com/gap-system/gap/releases/tag/v4.10.2
> 
> Release notes here:
> https://www.gap-system.org/Manuals/doc/changes/chap2.html#X788B3576809DC149


gap-4.10.2 and a collection of gap packages are available in the sage-on-gentoo overlay https://github.com/cschwan/sage-on-gentoo
Comment 26 Michael Orlitzky gentoo-dev 2023-12-25 17:58:08 UTC
There's now a pull request at https://github.com/gentoo/gentoo/pull/34472
Comment 27 Michael Orlitzky gentoo-dev 2024-01-22 11:33:41 UTC
As of a few minutes ago, GAP is in Gentoo.
Comment 28 François Bissey 2024-01-22 20:09:18 UTC
And by the end of today gap will be out of the sage-on-gentoo overlay. That may be a shock. Thanks Michael!