LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-20-2011, 09:14 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Build packages for Slackware and Slackware64 on a single box?


Hi,

I just bought a brandnew (well, only three years old ) PC that I intend to be a build box for some custom Slackware packages. Since I intend to use Slackware as well as Slackware64, depending on the hardware, I want to build all packages for both architectures.

Short question: is it possible to build packages for both architectures on Slackware64? Or do I have to setup something like a Slackware/Slackware64 double boot and then build 32bit-packages on the 32bit-system, and 64bit-packages on the 64-bit system? So far, the only 64bit-machines I'm using are servers (running CentOS 64bit), and all my desktop experience is 32-bit.

Cheers.
 
Old 06-20-2011, 10:29 AM   #2
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 354

Rep: Reputation: 198Reputation: 198
Yes, it's possible. You have several choices:
  • chroot
  • containers (LXC)
  • virtual machines (KVM, VirtualBox, etc)
Each has its pros and cons, choose what's appropriate to you.

For the first two it's a good idea to use btrfs to make a clone of clean Slackware install, build packages using it, and then delete it. Virtual machines often have snapshots or some similar feature for this.
 
Old 06-20-2011, 11:33 AM   #3
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 354

Rep: Reputation: 198Reputation: 198
Remembered there was a related discussion not long ago:

http://www.linuxquestions.org/questi...chroot-870960/
 
Old 06-20-2011, 03:26 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,678
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
There's also multilib. But for myself, I prefer the chroot method. It's simple, not secure (running a build of your own code shouldn't need security), and doesn't require any special handling after setting up. If someone needs more security, do LXC. Even more than that, use a VM. Still more, get an unconnected box.

My machine is actually a multi-boot (36 way, to be exact). I can boot into the 64-bit system, or the 32-bit system, or even the 32-bit system with a 64-bit kernel. I'm also going to add a multilib one in there, but haven't, yet. I'm putting older versions and other distros in there for expanded testing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] madwifi driver won;t build with slackware64 13.1 squid890 Linux - Wireless Networking 2 06-07-2010 04:46 PM
What changes must be made in a slackBuild from 11.x To build for Slackware64 current? Alexvader Slackware 5 12-30-2009 01:38 PM
How do I build Slackware source packages. RickKnight Slackware 3 10-16-2009 12:00 AM
Cannot build extreme tuxracer Slackware64 mlangdn Slackware 12 06-21-2009 04:42 AM
help me build a 24/7 Slackware box forrest44 Slackware 10 05-23-2006 08:32 AM

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

All times are GMT -5. The time now is 07:46 AM.

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