LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-21-2011, 03:25 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
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...?

./configure ... ... --without-hdf5 ...
 
Old 02-21-2011, 03:40 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
What are the source packages that you are talking about?
 
Old 02-21-2011, 04:17 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by corp769 View Post
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...
 
Old 02-21-2011, 04:21 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Can't you download the source and compile it by hand? It would make it much easier.

http://research.edf.com/research-and...rne-80059.html
 
Old 02-21-2011, 04:30 PM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by corp769 View Post
Can't you download the source and compile it by hand? It would make it much easier.

http://research.edf.com/research-and...rne-80059.html
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...
 
Old 02-21-2011, 04:42 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Oh ok. Well in that case, can't you go through the source tree and use the find command to locate the configure files?
 
Old 02-21-2011, 07:22 PM   #7
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
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:

Code:
     override_dh_auto_configure:
             dh_auto_configure -- --without-hdf5
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 ).
 
Old 02-21-2011, 07:40 PM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Code:
debian/rules
I think that's it within the source directory?
 
Old 02-21-2011, 08:01 PM   #9
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Thx ppl

@odiseo77:

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...

Thx ppl
 
Old 02-21-2011, 08:14 PM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
No problem!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Source on top of deb package question? richinsc Debian 3 09-15-2008 05:38 PM
creating deb package from kernel source fakie_flip Linux - Kernel 2 12-31-2007 03:31 AM
Possible to build deb package from source files? davidas Debian 9 12-09-2006 06:27 PM
How to package a .deb file from source? hkl8324 Debian 1 06-09-2005 05:13 PM
how to create a deb package from a source abd_bela Debian 1 03-04-2005 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration