LinuxQuestions.org
Help answer threads with 0 replies.
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 10-12-2011, 07:44 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
How to rebuild a package from testing in Stable ( D3bi@nZ)


Hi

So, i wish to retain the stability of my Squeeze install, nonetheless building and installing packages from Sid into my machine.

The packages are :

http://packages.debian.org/search?se...eywords=salome

salome-common
salome-dev
salome-doc
salome-examples
salome-examples-common
salome-extras
salome-test


Some packages needed for building all this from source will be downloaded and installed also, prior to building the salome packages...

I just would like to avoid messing with a stable system as much as possible... so, no dist-upgrades pleeze...

I have already created my own debs from source, like the CAD package BRLCAD, with non Debian packages which install to prefixes like /usr/brlcad/*, or OpenFOAM CFD package...

But this is far more complicated since some of the required dependencies may not be present in squeeze...

In Fedora there are the src.rpms to do this... is there anything similar in Debian...?

Any ideas ?


BRGDS

Alex
 
Old 10-13-2011, 12:40 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

what you are describing is commonly called "backporting". Basically, you need to get the source package(s) from testing or unstable and build binary packages from them on a Debian stable box.

Add the appropriate deb-src lines to your sources.list and then downlaod the source package and build the binary pacakges.

Eg. As root
Code:
echo "deb-src http://ftp.us.debian.org/debian/ testing main contrib non-free" >> /etc/apt/sources.list
Then, as normal user
Code:
apt-get src salome
dpkg-buildpackage -rfakeroot -uc -b
Then install the resulting packages.

There's a huge amount of info on the web. For example: http://www.debian.org/doc/manuals/ap...ndling.en.html
Among other things this will tell you how to make sure have the build-depends (packages required to build the binary pacakges from the source package) installed .

In practice, you may find that the package you want to backport depends on newer libraries, so you may have to backport them too.

HTH,

Evo2.
 
1 members found this post helpful.
Old 10-13-2011, 03:38 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Debian 6 Squeeze.

su
echo "deb-src http://ftp.fi.debian.org/debian/ sid main contrib non-free" >> /etc/apt/sources.list
apt-get build-dep salome
apt-get install fakeroot && exit
$ cd <new-directory>/ ( Convinient as a lot of "salome" will appear.)
$ apt-get -b source salome=5.1.3-12
EDIT : The compiling went OK, but not the package build.

Regards.

Last edited by knudfl; 10-13-2011 at 08:41 AM.
 
1 members found this post helpful.
Old 10-13-2011, 12:42 PM   #4
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi @Evo2, @knudfl

Thanks for your feedback

Alex
 
Old 10-16-2011, 04:46 PM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi again @Evo2 and @knudfl,

I successfully built the packages, despite some problems in configuring Salome-Docs, tha package is completely functional.

Once again, thanks

BRGDS

Alex
 
Old 10-17-2011, 07:43 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Debian and has been moved accordingly to help your thread/question get the exposure it deserves.
 
1 members found this post helpful.
  


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
LXer: For me, Debian Testing is more stable than Stable LXer Syndicated Linux News 0 04-22-2008 05:20 AM
Stable to Testing mikieboy Debian 8 12-15-2006 05:54 PM
testing -> stable martine Debian 3 05-18-2005 10:46 AM
stable --> testing? koyi Debian 5 09-05-2004 10:03 AM
stable to testing,.??? ikkuh Debian 2 09-07-2003 07:53 PM

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

All times are GMT -5. The time now is 12:04 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