LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-22-2008, 11:34 PM   #1
Registered: Jul 2008
Location: Berkeley, CA
Distribution: Slackware 12.1
Posts: 35

Rep: Reputation: 16
building X from source code on a Slack Box


Has anyone built Xorg's X server from source on their Slack 12.1 box.

It there a HOWTO, or lessons learned, or forum somewhere to help
the process?

Why? you may ask. Be cause I "maybe" can!

Old 07-23-2008, 01:54 AM   #2
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 838
Blog Entries: 4

Rep: Reputation: 96
Hello Chris,

Slackware packages are built from source using scripts called Slackbuilds.

For the X server, here is a mirror of the official slackbuild with its source:

To know more about slackbuilds, there are various resources on the web, but I would suggest:


Old 07-23-2008, 03:23 AM   #3
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 312

Rep: Reputation: 59
General howto about slackbuilds scripts can be found here
Old 07-23-2008, 10:53 AM   #4
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,824

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
For a better overview of building X, you might do weel to checks out jong357's jaguar linux and also the slackx project. Both of these projects were building modular x for slackware before PatV was and I suspect that PatV may have based his builds on the work of one of them. The slackx project has probably not been upüdated to the latest release of X, but his material includes much better description files (slcak-desc) which you might want to use.
Old 07-23-2008, 12:09 PM   #5
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
The hardest part is determining $VERSION numbers for each module. Last I checked, Slackware was doing rolling-current releases. Meaning, using development versions intended for the next stable release. I tried that for quite a few months at first but it's way too problematic so I started to build stable $VERSIONS only as defined by the Xorg Foundation.

I'm also not remotely interested in modular packages so I build monolithic 'package sets'. That leaves me with these packages for Xorg:


With each Xorg version, someone different is assigned to release, and up to this point, uploading the correct module versions is nothing more than an after thought. I was told, in a nut shell, by Alan C @ Xorg that they couldn't be bothered with having the correct version modules listed at the above link because they were too busy with the actuall development to care about such things. It's up to the packagers to find out what builds with what apparently.

It's like going to the abiword ftp site and finding abiword-2.6.4, abiword-plugins-2.6.2, abiword-docs-2.6.3 and abiword-extras-2.6.1 all in the same 2.6.4 release directory.

Anyway... My point being that's it's frustrating to build for that reason alone. Your going to need an automated way to grab all tarballs (and correct versions) otherwise you might as well forget about it. I wrote picklist for just this purpose so it may be of use to you. I know Vector uses it and possibly others.

Dan N @ Xorg told me that he would try to crack the whip with each release upload to get all this stuff sorted. He has a vested interest in things being correct as well since he's also a developer @ {B}LFS. (think wget files).

Last edited by jong357; 07-23-2008 at 12:10 PM.
Old 07-23-2008, 02:51 PM   #6
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,824

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
jong357, I'm glad you chipped in to this thread. I had noticed that Vector was building monolithic packages. Though I am interested in modularity, in the case of X I think they went too far and I deplore the mess of replacing what were 5-7 packages with 237 packages -it even caused a breakage in pkgtools which couldn't handle so many file names.
Seeing your nice short list makes me resolve to re-visit your build system for X.
Old 07-23-2008, 03:17 PM   #7
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea, technically their is nothing wrong with modular packages; I'm just stubborn and was too used to the imake way of doing things. That and I can't stand to have a cluttered package listing under pkgtool. So, after much trial and error, nothing much has changed over here... Still short and sweet.

If I want to just update, say for instance, pixman, then I can spare 20 minutes to rebuild all of xorg-lib... Going modular was only intended to make things easier on the xorg devs, not packagers.


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
LXer: Building UNIX Software from Source Code LXer Syndicated Linux News 0 08-22-2007 11:50 AM
Slack 11.0 patch source code freetype-2.3.4 acummings Slackware 9 04-22-2007 10:51 AM
building source code, getting a little lost in it fognight Linux - Newbie 12 01-16-2006 01:01 PM
Source-code error in Tripwire when building Ephracis Linux - Software 2 02-24-2005 12:02 PM
Hmm. I don't think my Slack has the kernel source code Brakki Slackware 8 07-06-2003 07:04 PM

All times are GMT -5. The time now is 10:40 AM.

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