LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-22-2016, 07:19 PM   #1
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
How to build an all debug slackware current


Is there a single flag to initiate an entire slackware debug build? I looked at the source and I feel I am missing something. But then again maybe it's not done often.
 
Old 08-22-2016, 08:09 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
No, because there isn't any one script to build Slackware. You would have to find the debug compilation flag for each program, edit the SlackBuild accordingly, then recompile the package.
 
Old 08-24-2016, 01:17 PM   #3
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Original Poster
Rep: Reputation: Disabled
That's too bad. It is basically impossible without a lot of work then. I might try setting CFLAGS = CPPFLAGS = CXXFLAGS = -g and then just see what happens.
 
Old 08-24-2016, 02:00 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
The issue is that Slackware is not designed to be rebuilt all at once. Pat only upgrades individual packages as needed, he never recompiles the whole OS at once (in fact, some packages haven't been recompiled for several versions of Slackware because they don't need to be recompiled and work fine). There are a few massive build scripts, like for X and KDE (probably others, but those are the only two I've dealt with) that can be used build a multitude of packages from one SlackBuild (while also being able to compile individual packages as needed), but everything else is managed individually.

If you're interested in a debug build of Slackware, it might be worth looking into the Slackware from Scratch thread. They might have a more automated build process where you could easily add debugging to the programs.
 
1 members found this post helpful.
Old 08-24-2016, 03:13 PM   #5
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
So slackware isn't like other distributions, providing both debug and non-debug packages. And you have recognized that most packages don't provide them, and you'll need to rebuild to get the symbols. But rebuilding the entire OS to have them will require alot more disk space. Are you sure you need them? Usually I just focus on the application I am concerned with fix it, and move on.
 
1 members found this post helpful.
Old 08-24-2016, 06:55 PM   #6
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Original Poster
Rep: Reputation: Disabled
@bassmadrigal interesting that there is not already a SFS (slackware from scratch) distro out there.

I have not tried LFS in a long time but I do recall that you pointed it to repos and then you step through the build. Now I wonder if it's feasible to point LFS build scripts at slackware repos. But then I might as well just use LFS.
 
Old 08-24-2016, 07:04 PM   #7
suppy
Member
 
Registered: Mar 2012
Location: Sweden
Distribution: Slackware
Posts: 83

Rep: Reputation: 60
If you want to rebuild all of slackware with debug symbols, you're basically going to be doing all the work of an LFS install anyway, except with less support available.
 
Old 08-26-2016, 05:51 PM   #8
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suppy
If you want to rebuild all of slackware with debug symbols, you're basically going to be doing all the work of an LFS install anyway, except with less support available.
Yes, but then again LFS takes a long time to go through unless you have a large block of time to do it all at once it's hard to do LFS with hours, days or weeks in between steps or start and completion. One mistake and it's over.
 
  


Reply

Tags
build, debug



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] spice-gtk on slackware current won't build TarFile Slackware 14 04-11-2016 12:29 PM
How do i build a 32 slackware package on 64 bit current? fogpipe Slackware 2 10-28-2015 07:51 PM
[SOLVED] GRUB2 build errors running slackware64-current (slackware 14) squid890 Slackware 10 07-02-2013 11:23 PM
[SOLVED] Fail2Ban or Similar build for slackware 14-Current cooholio Slackware 13 06-26-2013 05:24 PM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM

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

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