LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-05-2014, 10:59 PM   #1
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Rep: Reputation: 37
Help with rebuilding xorg-server


Hi I want to apply a simple patch to the xserver, hopefully to correct stability problems I'm having with Slackware 14.1 http://cgit.freedesktop.org/xorg/xse...6219d88aa1091d

I was looking through the Slackware source tree and I don't see a slackbuild just for xorg-server, I just see an x11.slackbuild which is huge and contains tons of stuff.

How do I rebuild just the xorg-server? I'm out of my depth on this. Thanks.
 
Old 01-05-2014, 11:59 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Slackware still uses the monolithic SlackBuild but you can easily use the BLFS method on Slackware here to build the modular specific package:

http://www.linuxfromscratch.org/blfs...nstalling.html

Follow the introduction to X11 and check Slackware's ldconfig files and use the directions to install to /usr. Then rebuild x-server as described here:

http://www.linuxfromscratch.org/blfs...rg-server.html

LFS build methods are very similar to Slackware, so it should work without any issues.

Last edited by ReaperX7; 01-06-2014 at 12:08 AM.
 
1 members found this post helpful.
Old 01-06-2014, 12:34 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,331

Rep: Reputation: Disabled
No don't do that. Just run
Code:
./x11.SlackBuild xserver
after patching the source (or simply put your patch in directory slackware-14.1/source/x/x11/patch/xorg-server before running the command).

You'll get only xorg-server packages, not the whole X stack, and build doesn't take long.

Have a look at x11.SlackBuild, you'll see it's modular, it builds either all sources or all sources in a directory of./src or a specific source in a directory of ./src

Last edited by Didier Spaier; 01-06-2014 at 02:40 PM. Reason: typo
 
2 members found this post helpful.
Old 01-06-2014, 01:01 AM   #4
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Didier Spaier View Post
No don't do that. Just run
Code:
./x11.SlackBuild xserver
after patching the source (or simply put your patch in directory slackware-14.1/source/x/x11/patch/xorg-server before running the command).

You'll get only xorg-server packages, not the whole X stack, and build doesn't take long.

Have a look at x11.SlackBuild, you'll see it's modular, it builds either all sources or all source in a directory of./src or a specific source in a directory of ./src
Thanks bro. Should make this a little easier.
 
Old 01-06-2014, 03:10 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120
Quote:
Originally Posted by ReaperX7 View Post
Slackware still uses the monolithic SlackBuild but you can easily use the BLFS method on Slackware here to build the modular specific package:

http://www.linuxfromscratch.org/blfs...nstalling.html

Follow the introduction to X11 and check Slackware's ldconfig files and use the directions to install to /usr. Then rebuild x-server as described here:

http://www.linuxfromscratch.org/blfs...rg-server.html

LFS build methods are very similar to Slackware, so it should work without any issues.
I know you switched from Slackware to LFS but please avoid giving biased answers like this one. Tell people how to do it the Slackware way. That is better in the long run.

Eric
 
Old 01-06-2014, 05:38 AM   #6
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 186

Original Poster
Rep: Reputation: 37
Yikes. I was using wget -r to download the x11 directory from a slackware mirror and I didn't know it recursively downloads everything both ways. I only downloaded about 160MB before realizing this, but live and learn, I learned the --no-parent option. Anyway marking this as solved and thank you.
 
Old 01-06-2014, 06:38 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,331

Rep: Reputation: Disabled
Quote:
Originally Posted by narz View Post
Yikes. I was using wget -r to download the x11 directory from a slackware mirror and I didn't know it recursively downloads everything both ways. I only downloaded about 160MB before realizing this, but live and learn, I learned the --no-parent option
For that, lftp comes handy:
Code:
lftp -c "mirror  http://mirrors.slackware.com/slackware/slackware-14.1/source/x/x11/"
Even easier, just mount the DVD or the ISO image that you could have at hand
 
Old 01-07-2014, 03:43 PM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Quote:
Originally Posted by Alien Bob View Post
I know you switched from Slackware to LFS but please avoid giving biased answers like this one. Tell people how to do it the Slackware way. That is better in the long run.

Eric
There should not be any real difference as long as it's the Linux way Eric. Saying there is a Slackware way, is saying that the SlackBuilds have some magic difference between the traditional ./configure, make, and make install method other than installed path and build options. From past reading into how Slackware does things, Slackware attempts to hold true to the traditional Linux or UNIX way of doing things.

I'm not going to argue that point, but it just seems a bit outside the norm to say that the traditional methods are not going to work on Slackware that emphasizes the traditional as norm.

I did misread the x11.SlackBuild file as completely monolithic, but it is structured to be just that, with standalone arguments for individual packages within.

Last edited by ReaperX7; 01-07-2014 at 03:45 PM.
 
Old 01-07-2014, 03:57 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,331

Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Saying there is a Slackware way, is saying that the SlackBuilds have some magic difference between the traditional ./configure, make, and make install method other than installed path and build options.
You completely miss the point here. Slackware packaging system brings both ease of maintenance and ease of customization. Maybe you don't value that, but most Slackware users do.

Last edited by Didier Spaier; 01-07-2014 at 04:11 PM.
 
Old 01-07-2014, 09:09 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Yes, but aside from packaging how is doing it the traditional UNIX/Linux way going to differ than using a SlackBuild with equal or near-equal results?

The point I made and clearly was missed was that make install and make uninstall should have nearly the same effect on a source package as installpkg and removepkg against a pre-built from source package minus documentation which often is installed with copy-pasting sometimes.

Package management is fickle as an argument to make anything easier or more difficult. That's almost like saying the Ubuntu way, the Red Hat way, or the Arch way is superior to the traditional Linux/UNIX way.

If I'm not mistaken, or taking this out of context, even Alien BOB himself said once somewhere that using a SlackBuild should produce the same results as traditional ./configure && make && make install against a package minus the additions of options, paths, and extra dependencies used.

Last edited by ReaperX7; 01-07-2014 at 09:14 PM.
 
Old 01-08-2014, 01:24 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,331

Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
The point I made and clearly was missed was that make install and make uninstall should have nearly the same effect on a source package as installpkg and removepkg against a pre-built from source package minus documentation which often is installed with copy-pasting sometimes.
This sentence clearly shows that you don't know how Slackware packaging system works. It maintains a database of files installed and removed in:
/var/log/{packages,scripts,removed_packages,removed_scripts}
so that you can any time put back your system in a previous state, with no need to keep a note of everything you did, no need to keep source bundles, nor packages themselves but to ease re-installing them. This works both ways:
  • You know instantly what each and any individual installed file came from.
  • You know instantly which files were installed or removed by an installpkg or removepkg command.
Plus, you should know that using relying on make install & make uninstall only:
  • Makes you depend on skills & methods of upstream packager (if any), that widely vary. Just think that sometimes there is no uninstall target, or another tool than make is supposed to be used.
  • Won't give you a database of what has been installed/removed.
  • Make you need to keep each and every source bundle to be able to use make uninstall.
Still, you are free not to use the Slackware packaging system, but then IMO there is no point in running Slackware (that is consistent with your decision to switch to LFS :-)

Last edited by Didier Spaier; 01-08-2014 at 01:27 AM.
 
Old 01-08-2014, 02:57 AM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
A database can easily be maintained with a simple text file if you're willing to do so. I keep my entire collection of source packs in my /sources directory, and manually log and track where packages are installed. It's extra work on my part, but I know my system inside and out.

Just because different tools offer to ease the workload doesn't mean you shouldn't learn for yourself how packages install and file tracking.

As anyone knows there are times you don't have the luxury of a SlackBuild script and have a raw package. You should know how things install without a script set and without a package manager. Just because a script set doesn't exist is no excuse for not being willing and/or able to know basic administration skills and techniques.
 
Old 01-08-2014, 03:16 AM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120
What I meant with "the Slackware way" was not to dismiss the use of "./configure && make && make install". The strong point of Slackware is that it is absolutely painless to use this - there is no package database like RPM which enforces you to use the package manager exclusively "or else". I do this a lot, for quick tests of software.

Having said that, messing with X.Org is not the same as compiling a simple program from source and installing it (possibly even in /usr/local). The X.Org subsystem is complex with lots if inter-dependencies. Knowing how Slackware builds and installs X.Org, and using that knowledge (i.e. use x11.SlackBuild) wisely is the best way to minimize breakage. Also using the Slackware x11.SlackBuild to rebuild individual components allows you to revert easily to the original situation, should breakage occur.

Note: "make uninstall" requires that you keep the program's sources and compiled binaries on your computer indefinitely, while "removepkg" does not require you to retain anything at all.

Eric
 
Old 01-08-2014, 05:17 AM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,331

Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
As anyone knows there are times you don't have the luxury of a SlackBuild script and have a raw package. You should know how things install without a script set and without a package manager. Just because a script set doesn't exist is no excuse for not being willing and/or able to know basic administration skills and techniques.
Then you can write a SlackBuild yourself.
 
2 members found this post helpful.
Old 01-08-2014, 03:39 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Quote:
Originally Posted by Didier Spaier View Post
Then you can write a SlackBuild yourself.
Yes, once you know what paths you need, and can draft up not only the script, and maybe installer specific scripts also, provided, but that's still not an excuse for not knowing.

Politics about it aside, if you have a GNU/Linux system, you should know the administrative basics, period. Relying on someone to do everything for you, and relying too much on automation only promotes ineptness and lacking of critical knowledge.
 
  


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] SAMBA problem â?? rebuilding server â?? How to configure SAMBA share with writing - Win Alvin88 Linux - Newbie 5 04-04-2012 12:51 AM
[SOLVED] xorg-server-1.7.1 shows only blank screen after update from xorg-server-1.6.3 irmin Linux - Software 2 01-07-2010 11:23 AM
[SOLVED] Error with xorg-x11-server-Xorg callumacrae Fedora 1 10-13-2009 02:22 PM
the new xorg-server packages specialized Slackware 15 07-06-2008 08:14 PM
rebuilding a raid5 array for file server. javaholic Linux - Server 5 04-21-2008 09:01 AM

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

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