LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-26-2013, 12:00 AM   #1
mshlinux
Member
 
Registered: Mar 2013
Location: Yangon, Myanmar.
Distribution: Fedora, Arch
Posts: 177

Rep: Reputation: Disabled
Can I compile slackware-install-dvd.iso out of slackware-source-code-dvd.iso


I think, it is likely to be funny how I'm freaky.

I currently installed Slackware 14.0 (32bit) on my machine.
Before that, to get Slackware installed on my computer,
I had to download totally about 6G in two times.

First time, I downloaded source-code-dvd.iso (3.4G).
I really didn't know what is install-dvd and what is source-code-dvd.
source-code-dvd says that it includes source codes for both of 32bit and 64bit. So, I downloaded that 3.4G torrent file on sleepless nights...haha.
after download, I found that I made mistake.
that's why, second time, I downloaded again slackware-install-dvd.iso (32bit), 2.4G torrent file.

Now, I want slackware-install-dvd.iso (64bit) for my another computer
with 64bit capable cpu.
It is like a nightmare to download another 2.6G torrent file again.

Fortunately (may be), I have slackware-source-code-dvd.iso which I downloaded mistakenly.

So, my question is that:
Is there any way to compile slackware-install-dvd.iso (64bit) out of slackware-source-code-dvd.iso.
If there is a way out there, how can I do it or learn to do it?
If there is no way, what is source-code-dvd.iso for?
 
Old 04-26-2013, 12:18 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801
I think compiling the whole slackware tree would take more than one day and by then you should be finish downloading the iso for slackware64-14.0

The source code is provided if you need to modify the slackbuild suppose you need additional configure parameter or if you want to learn more aout configuration parameter used to build the program

Last edited by willysr; 04-26-2013 at 12:19 AM.
 
Old 04-26-2013, 01:03 AM   #3
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 321

Rep: Reputation: 81
Quote:
Originally Posted by mshlinux View Post
I think, it is likely to be funny how I'm freaky.
So, my question is that:
Is there any way to compile slackware-install-dvd.iso (64bit) out of slackware-source-code-dvd.iso.
If there is a way out there, how can I do it or learn to do it?
These is no way to compile the whole source code, some packages won't compile at all (with the new gcc)

Quote:
Originally Posted by mshlinux View Post
I think, it is likely to be funny how I'm freaky.
If there is no way, what is source-code-dvd.iso for?
To have the source code (you may need it to patch it or just to have a look) and maybe one day we will have a stable gcc :P
But you can safely use 32bit slackware on your 64bit system.
 
Old 04-26-2013, 01:09 AM   #4
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
Hello mshlinux,

willysr already covered what the slackware-source-code-dvd.iso is for, and not only would it take to compile many of those programs (and take forever for some), but others fail to build (e.g. xchat).

Even if you did find a patch to make some of the ones that fail to build work (excluding the time it takes to find and/or make these patches), it would still take quite some time to finish.

I honestly think you should just use the 32-bit version (which works fine on 64-bit machines) or download the iso for slackware64-14.0 (if you really want to use the 64-bit version) instead of attempting to use the source code DVD. The only situation I would recommend using the source code DVD is if you have a download rate of 1 byte per second and know for a fact that making the iso from the source code DVD would work flawlessly.

Cheers and happy slacking.

Last edited by TommyC7; 04-26-2013 at 01:11 AM.
 
Old 04-26-2013, 04:18 AM   #5
mshlinux
Member
 
Registered: Mar 2013
Location: Yangon, Myanmar.
Distribution: Fedora, Arch
Posts: 177

Original Poster
Rep: Reputation: Disabled
ok!
thanks to all of your posts, I have been able to make a decision.
I am going to download another 2.6G torrent file.
thank u all!
 
Old 05-24-2013, 04:25 PM   #6
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Rep: Reputation: 6
In reality you can compile the system, but I do not recommend it for it would take longer than the download and use up to 1.5 gb of memory during compiling. But if you would like, I will give you instructions on how to do so, just reply asking, my reason: look at my signature.
 
Old 05-24-2013, 10:53 PM   #7
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by 13stein.j View Post
In reality you can compile the system, but I do not recommend it for it would take longer than the download and use up to 1.5 gb of memory during compiling. But if you would like, I will give you instructions on how to do so, just reply asking, my reason: look at my signature.
I'm not the original poster, but would like to know the best way to go about doing it.

If I tried it myself, I'd make a Makefile with make rules for the kernel Makefile and each Slackbuild .. but that would be a lot of effort, and if there's already a recipe out there, I'd rather use it!
 
Old 05-25-2013, 12:22 AM   #8
s3phir0th115
LQ Newbie
 
Registered: Jan 2007
Distribution: Slackware
Posts: 22

Rep: Reputation: 3
Quote:
Originally Posted by ttk View Post
I'm not the original poster, but would like to know the best way to go about doing it.

If I tried it myself, I'd make a Makefile with make rules for the kernel Makefile and each Slackbuild .. but that would be a lot of effort, and if there's already a recipe out there, I'd rather use it!
Makefiles are typically included with source code, and they're usually what slackbuilds use as part of the process.

For most packages, you can simply run the slackbuild and it'll compile it. You could of course alter the slackbuild if you wanted to add compile time options, etc. But by default they'll produce the binary package you see. on the install discs.

There are of course exceptions as I understand it, but generally speaking that's how you could go about it.
 
Old 05-25-2013, 05:43 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It won't work. Slackware is (at the current state) not a distribution that can be compiled as a whole from scratch, it is a distribution that develops evolutionary. There are packages that without patching or modifying the Slackbuilds won't compile in the current state. See here: http://www.linuxquestions.org/questi...0/#post4771280
Quote:
Originally Posted by Alien Bob
The problem with a "Slackware from scratch" is that several of the packages in a Slackware tree will not compile if you would try them now. This has no effect on the binaries in Slackware - the current packages work fine, even if recompiling them is sometimes impossible without applying patches for newer compilers and C libraries etc...
 
1 members found this post helpful.
Old 05-25-2013, 11:28 AM   #10
13stein.j
Member
 
Registered: May 2013
Location: Brooklyn, New York
Distribution: Linux Mint 15/Ubuntu 13.10/Debian 7/SUSE 11.x/openSUSE 12.3/RHEL 6.4/Fedora 18/Slackware, and 5 more
Posts: 111

Rep: Reputation: 6
Creating makefiles with the correct rules is the right way to go, but there is no generic recipe, for it depends on your needs. Figure out the rules you need, create such files, then compile using the terminal. But make sure you copy the contents of the iso to your hard drive first. Plus, you would need to figure out which file makes the dvd bootable, but that can be found by looking at the binary iso. But, you might be wondering, "what is the purpose of the compiling if you already downloaded the binary iso?", the purpose is to fit your specific needs, and possibly edit the source if nessecary.
 
1 members found this post helpful.
Old 05-25-2013, 12:09 PM   #11
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
13stein.j: Thank you :-)

s3phir0th115: Yes, but that leaves me with 1014 slackbuild scripts. It's better to have a single makefile with rules for each of those slackbuild scripts (which in turn run make(1) on their own makefiles), else picking up where I left off building things is too tedious. Also, grouping the slackbuild scripts into nested rules is useful for compiling things in parallel which can be (and refrain from compiling things in parallel when they will conflict).

Also, from what AlienBob (by way of TobiSGD) says, there is additional work for some packages in the form of upgrading/patching utilities and libraries which is not included in the slackbuild scripts. Tracking and applying these changes can be incorporated into the top-level makefile as well (especially if different packages require mutually incompatible changes for compilation).

Implementing a top-level makefile like this would be a big chore, essentially encoding a nontrivial chunk of the slackware development team's distro-compiling knowledge. I was hoping 13stein.j already had a recipe for doing it, but alas.

On the other hand, figuring it all out could be fun! :-)
 
Old 05-25-2013, 01:40 PM   #12
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Quote:
Originally Posted by ttk View Post
...but alas.

On the other hand, figuring it all out could be fun! :-)
Would you schedule your root canal before, during, or after?

cheers,
 
  


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
How to build a ISO DVD of Linux Fedora from source code? xlu2000 Fedora 11 09-22-2011 10:45 AM
How to build a ISO DVD of Linux Fedora from source code? xlu2000 Fedora 2 09-20-2011 03:15 PM
How to build a ISO DVD of Linux Fedora from source code? xlu2000 Fedora 2 09-20-2011 03:15 PM
dvdrecord & slackware-12.0-install-dvd.iso darklink2058 Slackware 11 01-19-2011 04:51 AM
Slackware 12 DVD iso Kedicik Slackware 11 07-09-2007 01:03 PM

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

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