.deb from CAELinux 2009
- Joël Cugnoni
-
- Offline
- Moderator
-
15 years 8 months ago #3301
by Joël Cugnoni
Joël Cugnoni - a.k.a admin
www.caelinux.com
Replied by Joël Cugnoni on topic Re:.deb from CAELinux 2009
Thank you for your feedback
For CheckInstall, I have seen that one can also specify dependencies and pre/post install or removal scripts for the package to be built, which in fact would result in a proper "distributable" package.But for sure, without the dependencies, it could not be distributed on an heterogeneous set of configurations.
Then, one need to figure out which system libraries will be used for compiling and add proper dependencies; this is usually not so complicated as most developers list the required libraries in the documentation.
Finally for pre/post installation scripts, if we continue to install the CAE codes in /opt (safer way of proceeding if we need to manually "clean" an installation), it would mostly consist in changing access rights and ownership, and adding a few lines in bashrc to define the proper environment variables (and add gnome menu entries).
One can also specify "conflicting" / replacement packages if I understood it right, so it could also be used to "update" (=replace) the package. Unfortunatelly, I could not find much feedback on how CheckInstall should be used to build 100% "valid" package that could also be upgraded and so on... So it would require some testing.
For the official Debian packaging procedure, I don't know if I understand it right but it seems mostly done for single components that can be compiled with the traditionnal ./configure,./make,./make install. I can't figure out how to adapt this procedure to programs that use complex compile/install scripts like Aster or Saturne's setup.py which mostly automate everything in their own way (but it works really well!!).
Concerning your trial building aster on 9.04, if I remember correctly, you should install python-dev, python-numeric, lapack3-dev, atlas3-base-dev, gcc, gfortran (or g77 on 32bit systems), bison, flex, tcl8.4-dev, tk8.4-dev, xterm
and then run the "full" setup.py which compiles/install everything.
But to make it more "debian friendly", instead of trying to build MED (which is the default option), you could edit setup.cfg to specify the path to the system MED library (med-2.3.x). Unfortunatelly, I don't know if the current MED package for Ubuntu is up to date...
For more details on how to build Aster in Ubuntu, see
www.code-aster.org/wiki/doku.php
in Section En(glish)=>Code_Aster installation
Good luck<br /><br />Post edited by: Administrator, at: 2009/08/04 16:12
For CheckInstall, I have seen that one can also specify dependencies and pre/post install or removal scripts for the package to be built, which in fact would result in a proper "distributable" package.But for sure, without the dependencies, it could not be distributed on an heterogeneous set of configurations.
Then, one need to figure out which system libraries will be used for compiling and add proper dependencies; this is usually not so complicated as most developers list the required libraries in the documentation.
Finally for pre/post installation scripts, if we continue to install the CAE codes in /opt (safer way of proceeding if we need to manually "clean" an installation), it would mostly consist in changing access rights and ownership, and adding a few lines in bashrc to define the proper environment variables (and add gnome menu entries).
One can also specify "conflicting" / replacement packages if I understood it right, so it could also be used to "update" (=replace) the package. Unfortunatelly, I could not find much feedback on how CheckInstall should be used to build 100% "valid" package that could also be upgraded and so on... So it would require some testing.
For the official Debian packaging procedure, I don't know if I understand it right but it seems mostly done for single components that can be compiled with the traditionnal ./configure,./make,./make install. I can't figure out how to adapt this procedure to programs that use complex compile/install scripts like Aster or Saturne's setup.py which mostly automate everything in their own way (but it works really well!!).
Concerning your trial building aster on 9.04, if I remember correctly, you should install python-dev, python-numeric, lapack3-dev, atlas3-base-dev, gcc, gfortran (or g77 on 32bit systems), bison, flex, tcl8.4-dev, tk8.4-dev, xterm
and then run the "full" setup.py which compiles/install everything.
But to make it more "debian friendly", instead of trying to build MED (which is the default option), you could edit setup.cfg to specify the path to the system MED library (med-2.3.x). Unfortunatelly, I don't know if the current MED package for Ubuntu is up to date...
For more details on how to build Aster in Ubuntu, see
www.code-aster.org/wiki/doku.php
in Section En(glish)=>Code_Aster installation
Good luck<br /><br />Post edited by: Administrator, at: 2009/08/04 16:12
Joël Cugnoni - a.k.a admin
www.caelinux.com
- Alexey Balmashnov
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
15 years 8 months ago #3304
by Alexey Balmashnov
Replied by Alexey Balmashnov on topic Re:.deb from CAELinux 2009
Yep, I saw and read available info. And... Yep, there is package for MED, after you pointed it out, I found libmed
[code:1]$ aptitude search libmed
p libmed-dev - Development files for libmed
p libmed-doc - Documentation for the MED-fichier library
p libmed-tools - Runtime tools to handle MED files
p libmed1 - Library to exchange meshed data (Fortran v
p libmedc-dev - Development files for libmedc
p libmedc1 - Library to exchange meshed data (C version
[/code:1]
but a little outdated for Aster 10: v 2.3.1 is packaged. So, there is even less components that need actual initial packaging to have debian/ubuntu specific packages of Aster available
To the point of complex installers like Aster's setup.py: distribution package system should completely replace it, and give more possibilities like updates, for example. And I think that having such installer, although working really well!!
, is really unnecessary.
Returning back to my message: may be you know how one may check that built MED library/tools work correctly?
-- Added 2009/08/04 around 20:10 UTC+1
There is (was?) some effort on having aster packaged for Debian: bugs.debian.org/cgi-bin/bugreport.cgi?bug=458812
-- Another addition
There was also a huge effort to package Salome 3.2 for Debian/unstable, which, unfortunately, was stalled by unresponsive upstream, see the following discussion: bugs.debian.org/cgi-bin/bugreport.cgi?bug=457075
So, it looks like there is plenty of expertise in packaging OCC/Aster/Salome already out there, and it might be wise to take a look at work that has been done so far and build on top of it.<br /><br />Post edited by: Alexey Balmashnov, at: 2009/08/04 21:32
[code:1]$ aptitude search libmed
p libmed-dev - Development files for libmed
p libmed-doc - Documentation for the MED-fichier library
p libmed-tools - Runtime tools to handle MED files
p libmed1 - Library to exchange meshed data (Fortran v
p libmedc-dev - Development files for libmedc
p libmedc1 - Library to exchange meshed data (C version
[/code:1]
but a little outdated for Aster 10: v 2.3.1 is packaged. So, there is even less components that need actual initial packaging to have debian/ubuntu specific packages of Aster available

To the point of complex installers like Aster's setup.py: distribution package system should completely replace it, and give more possibilities like updates, for example. And I think that having such installer, although working really well!!

Returning back to my message: may be you know how one may check that built MED library/tools work correctly?
-- Added 2009/08/04 around 20:10 UTC+1
There is (was?) some effort on having aster packaged for Debian: bugs.debian.org/cgi-bin/bugreport.cgi?bug=458812
-- Another addition
There was also a huge effort to package Salome 3.2 for Debian/unstable, which, unfortunately, was stalled by unresponsive upstream, see the following discussion: bugs.debian.org/cgi-bin/bugreport.cgi?bug=457075
So, it looks like there is plenty of expertise in packaging OCC/Aster/Salome already out there, and it might be wise to take a look at work that has been done so far and build on top of it.<br /><br />Post edited by: Alexey Balmashnov, at: 2009/08/04 21:32
- Joël Cugnoni
-
- Offline
- Moderator
-
15 years 8 months ago #3307
by Joël Cugnoni
Joël Cugnoni - a.k.a admin
www.caelinux.com
Replied by Joël Cugnoni on topic Re:.deb from CAELinux 2009
Yes the Libmed package is outdated... If you want to update the package, starting from the existing source package, it should not be too complicated... at least from what I have read in Debian Packaging Docs but I have no experience...
Unfortunatelly, I have no proceedure to test MED alone, actually I have always compiled all Aster products in a row and test the final executabel... I know that there are a few tools provided with the med sources, like "dump" or something like that. Maybe you can test the library by building these tools (=test that the library is well formed) and execute the tool on a small "test" MED file (=check if you have runtime errors...). I suppose that the tools correspond to the libmed-tools package in the system repository.
Unfortunatelly, I have no proceedure to test MED alone, actually I have always compiled all Aster products in a row and test the final executabel... I know that there are a few tools provided with the med sources, like "dump" or something like that. Maybe you can test the library by building these tools (=test that the library is well formed) and execute the tool on a small "test" MED file (=check if you have runtime errors...). I suppose that the tools correspond to the libmed-tools package in the system repository.
Joël Cugnoni - a.k.a admin
www.caelinux.com
- Alexey Balmashnov
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
15 years 8 months ago #3308
by Alexey Balmashnov
Replied by Alexey Balmashnov on topic Re:.deb from CAELinux 2009
Thanks for info on MED.
Had a look at sources for packages available for previous versions of Salome and Aster (salome, aster, eficas, ...) currently pending review process in Debian. It is all so twisted
There is a bunch of patches just to make it build and install in a proper way respecting standards. Hence, I think that it won't be so easy to build packages for newer versions, since practice of Salome and Aster distribution looks for me very hostile (or at least ill-formed) for "proper" packaging and distribution on top of various available Linux-distributions.
Will continue to look into that. But there is sure a need in contact with Aster/Salome developers on improvements on the topic. At least initiation of conversation might be good, since it was not really the case before. So, if you have some links
You gave earlier link to code-aster.org wiki. There was another (as I understand it) attempt in building "dirty" packages for 8.04 as described at
www.code-aster.org wiki. Unfortunately, links on svn repository, where debian/* files controlling packaging were available, are dead now.
Post edited by: Alexey Balmashnov, at: 2009/08/05 16:27
Had a look at sources for packages available for previous versions of Salome and Aster (salome, aster, eficas, ...) currently pending review process in Debian. It is all so twisted

There is a bunch of patches just to make it build and install in a proper way respecting standards. Hence, I think that it won't be so easy to build packages for newer versions, since practice of Salome and Aster distribution looks for me very hostile (or at least ill-formed) for "proper" packaging and distribution on top of various available Linux-distributions.
Will continue to look into that. But there is sure a need in contact with Aster/Salome developers on improvements on the topic. At least initiation of conversation might be good, since it was not really the case before. So, if you have some links

You gave earlier link to code-aster.org wiki. There was another (as I understand it) attempt in building "dirty" packages for 8.04 as described at
www.code-aster.org wiki. Unfortunately, links on svn repository, where debian/* files controlling packaging were available, are dead now.
Post edited by: Alexey Balmashnov, at: 2009/08/05 16:27
- Alexey Balmashnov
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
15 years 8 months ago #3312
by Alexey Balmashnov
Replied by Alexey Balmashnov on topic Re:.deb from CAELinux 2009
Posted "RFC: Rethink Code Aster build/deployment practices" on Code_Aster forum. See www.code-aster.org/forum2/viewtopic.php?id=13292
- Peter Halverson
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 0
15 years 7 months ago #3442
by Peter Halverson
Replied by Peter Halverson on topic Re:.deb from CAELinux 2009
[code:1]
'metis-edf' : '4.1' : - : License? Copyright 1998, Regents of the University of Minnesota. + EDF adaptations, parmetis
'mumps' : '4.7.3' : - : Public domain.
[/code:1]
Mumps 4.8.4 is in karmic koala
libscotchmetis-dev (5.1.6.dfsg-1) is also in karmic although I'm not sure what it contains.
'metis-edf' : '4.1' : - : License? Copyright 1998, Regents of the University of Minnesota. + EDF adaptations, parmetis
'mumps' : '4.7.3' : - : Public domain.
[/code:1]
Mumps 4.8.4 is in karmic koala
libscotchmetis-dev (5.1.6.dfsg-1) is also in karmic although I'm not sure what it contains.
Moderators: catux
Time to create page: 0.138 seconds