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 07-22-2008, 11:34 PM   #1
User0x45
Member
 
Registered: Jul 2008
Location: Berkeley, CA
Distribution: Slackware 12.1
Posts: 35

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


Hello,

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!

--Chris
 
Old 07-23-2008, 01:54 AM   #2
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
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:

http://slackware.osuosl.org/slackwar.../source/x/x11/

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

www.slackbuilds.org

Regards,

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

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

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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
jong357
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.

http://xorg.freedesktop.org/releases/

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

dejavu-fonts-ttf-2.23-noarch-1.tgz
fontconfig-2.5.0-i686-1.tgz
freetype2-2.3.5-i686-1.tgz
libdrm-2.3.0-i686-1.tgz
mesa-7.0.2-i686-1.tgz
ttf-bitstream-vera-1.10-noarch-1.tgz
xorg-app-7.3-i686-5.tgz
xorg-data-7.3-noarch-1.tgz
xorg-driver-7.3-i686-1.tgz
xorg-font-7.3-i686-1.tgz
xorg-lib-7.3-i686-3.tgz
xorg-proto-7.3-noarch-1.tgz
xorg-server-1.4-i686-3.tgz
xorg-util-7.3-i686-1.tgz

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
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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
jong357
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.
 
  


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: 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

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

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