hacking a deb source package ( configure options )
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hacking a deb source package ( configure options )
hi
So, there are these source packages i downloaded, which i want to build with slightly different configure options due to a bug in debian: hfd5-serial and hdf5-openmpi cannot coexist, yet some packages require the serial version of the lib , others require the openmpi.
I downloaded the sources, in order to build them, without the hdf5 thing...
I have already built this from source in Scientific Linux, and i know this can be done without hdf5.
Where do i hack into the debian source tree of a package to remove a configure option...?
What are the source packages that you are talking about?
Hi,
I'm talking about Code-saturne, Code-saturne-bin, Code-saturne-doc, Code-saturne-include and Code-saturne-data and ecs...
These are part of a CFD simulation tool. and these require libraries for manipulating hdf5 meshes ( hierarchical data format ), in the with mpi capability, the mpi libs i have installed are serial ( incompatible with hdf5-openmpi ) which are also required for a lot of packages...
So, I give up of hdf5 mesh manipulation capability in Code-saturne... but to do this, i must rebuild from source w/ different configure options...
sure i can... but building from debianized source ( apt-get source <stuff>, dpkg-buildpackage -rfakeroot -uc -b ) yelds directly a deb package, and besides, libraries fvm, mei and bft are already present in the repos... already installed them... no need to build them from source, as well as package syrthes.
This is why i wanted to use a debianized source tree...
I've built .debs from sources "the debian way" only a couple of times, so I may be wrong, but I think the file you must edit in order to pass custom options to the configure script is the "rules" file (inside the "debian" subdirectory). Take a look at this, specifically, the section 4.4.3 (Customization of rules file), near the bottom of the document, they explain how to do it. According to the document, you should write somewhere in the rules file something like this:
Now, where exactly in the file does this go, is something I'm not sure about (Probably your knowledge of the whole process is fresher than mine at this moment ).
The Debian way, should be called DebianJutsu Do... I will try yr link...
@corp769: I will hack into that file and try to build this...
I have also used OpenFOAM, but it is n00b-k1ll3r... i mean.. it is workable... but takes a lot to build the simulation i want... code-saturne does-nt have so many capabilities, but then again, they wont be needed for this particular scenario...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.