LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-05-2015, 01:10 AM   #1
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 121

Rep: Reputation: 29
Slackware from Scratch and X11


I have succeeded in building X11 under Slackware from Scratch.
It was built in one step and seems to run fine. Blackbox came
up smoothly and there were no problems in the half hour I played
with it.

Still not sure that everything got built, but apparently nothing
vital was left out.

There were a few problems along the way:

1) Some programs, although not all, (didn't make a list ),
needed LD_LIBRARY_PATH="/lib64:/usr/lib64" to find the
libraries.

2) Mesa needs libelf, which doesn't seem to be in -Current.
I used the source package from SW-14.1.

3) I had to recompile m4 and libtool. They thought they
should be in the tools directory which had been deleted.

4) Can't read my own handwriting. Anyway, two files (invocation.cpp
and radeon-elf-util.c) needed "include <gelf.h>" and
"include <libelf.h>" changed to "include <libelf/gelf.h>"
and "include <libelf/libelf.h>" respectively. I'll try to
run them down tomorrow. (It's midnight here in Washington state.)

5) xserver needed libepoxy installed.

6) Also had to recompile glib2 before gtk-pixbuf2 would compile.

The list and scripts I used are attached. If anyone wants to use
them, be careful. They're quite picky about changes and I'm not to
sure that the build order is optimal.

Worsel
Attached Files
File Type: txt buildx.sh.txt (1.1 KB, 145 views)
File Type: txt x11-1.sh.txt (1.7 KB, 87 views)
File Type: txt x11-2.sh.txt (1.5 KB, 73 views)
File Type: txt build5.list.txt (454 Bytes, 76 views)
 
Old 12-05-2015, 01:13 AM   #2
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 121

Original Poster
Rep: Reputation: 29
Oops another file

This one didn't want to go!
Attached Files
File Type: txt sfsbuildx.sh.txt (866 Bytes, 106 views)
 
Old 12-05-2015, 06:59 AM   #3
nobodino
Member
 
Registered: Jul 2010
Posts: 123

Rep: Reputation: 104Reputation: 104
comments:
- nice job!
- 2/ and 4/ did you install elfutils? libelf was for Sl-14.1 and elfutils for Sl-14.2 (current)
- 2/ if you built mesa only once, I think mesa-demo doesn't build. You may build it once, install it and build a second time to have mesa-demo built, and then upgradepkg mesa (maybe a second "x mesa" after "x freeglut" in your build5list?)
- I'm surprised you manage to build "dbus" directly, without the need to modify the SlackBuild and execute "dbus-uuidgen --ensure" to build dbus-glib/dbus-python?
- did you manage to build xcm-0.5.2?
- at the end, everything should compile without a hitch, on x32 version, at least.

Last edited by nobodino; 12-05-2015 at 07:06 AM. Reason: orthograph
 
Old 12-05-2015, 07:19 PM   #4
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 121

Original Poster
Rep: Reputation: 29
Aah, peer review. It's a wonderful thing.

Quote:
- 2/ and 4/ did you install elfutils? libelf was for Sl-14.1 and elfutils for Sl-14.2 (current)
No. Somewhere I missed this one. Looked for it too, when I couldn't fined libelf on the
64 bit system. Probably because I didn't know what to look for. Wonder what else I missed?

Cancel 4) above. With elfutils installed, it should build without modifying the files.
Don't know if a 32 bit build needs the files changed or not.

Quote:
- 2/ if you built mesa only once, I think mesa-demo doesn't build.
You are correct. Mesa-demo did not build.

Quote:
- I'm surprised you manage to build "dbus" directly, without the need to modify the SlackBuild and execute "dbus-uuidgen --ensure" to build dbus-glib/dbus-python?
- did you manage to build xcm-0.5.2?
Okay, I missed commenting on this. I did modify dbus per your instructions. "dbus-uuidgen --ensure" was in my scripts somewhere. Must have deleted it
and not noticed. Still dbus-glib & dbus-python seemed to build normally.

Yes, xcm-0.5.2 compiled. At least it made a package that appears to be okay visually. I'll test it later today.

I will correct my system and rebuild X11. Probably won't happen until sometime next week with my schedule.
 
Old 12-07-2015, 12:51 AM   #5
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 3,888

Rep: Reputation: 1903Reputation: 1903Reputation: 1903Reputation: 1903Reputation: 1903Reputation: 1903Reputation: 1903Reputation: 1903Reputation: 1903Reputation: 1903Reputation: 1903
Quote:
Originally Posted by worsel View Post
Still not sure that everything got built, but apparently nothing
vital was left out.
You should be able to check /tmp/x11-build for any *.failed files to see if anything failed to build.

Code:
ls -la /tmp/x11-build/*.failed
 
Old 12-09-2015, 10:20 PM   #6
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 121

Original Poster
Rep: Reputation: 29
Quote:
You should be able to check /tmp/x11-build for any *.failed files to see if anything failed to build.
Why didn't I think of this before removing /tmp/x11-build?
 
Old 12-13-2015, 01:18 AM   #7
nobodino
Member
 
Registered: Jul 2010
Posts: 123

Rep: Reputation: 104Reputation: 104
Is net-tools working correctly, as it should?
Don't you have that kind of message:

root@darkstar_noob:/tmp# ifconfig
No usable address families found.
socket: Success

Id doesn't compile correctly in slackware as well.

Solution:
grab sources from debian net-tools_1.60+git20150829.73cef8a.orig.tar.gz and net-tools_1.60+git20150829.73cef8a-2.debian.tar.xz, apply the patches and it builds and works normally.

SlackBuild modified with:

# debian patches
zcat $CWD/Bug#805377-man-pt_BR-ifconfig.8.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/Bug#541172-netstat.c-exit-codes.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/translations.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/Add_missing_headers.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/Bug#443075-ifconfig.c-pointtopoint_spelling.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/Bug#500913-man-en_US-route.8-EXAMPLES-Add-single-route-del.patch.gz | patch -p1 --verbose || exit 1

Last edited by nobodino; 12-13-2015 at 02:42 AM. Reason: found a solution : modify slackBuild
 
Old 12-13-2015, 05:41 AM   #8
nobodino
Member
 
Registered: Jul 2010
Posts: 123

Rep: Reputation: 104Reputation: 104
I've updated the build of "Slackware from scratch" memo. I did it manually this time, didn't use my scripts to see what's new.
It's been built from LFS-7.8 for the first part and slackware-current up to 03/12/2015 for the build of Slackware.
There are fewer patches, but new ones.
Works pretty well.
Attached Files
File Type: txt Slackware from scratch -v06122015-first.txt (16.2 KB, 200 views)

Last edited by nobodino; 12-13-2015 at 05:42 AM. Reason: forgot the memo!
 
2 members found this post helpful.
Old 12-13-2015, 10:23 PM   #9
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 121

Original Poster
Rep: Reputation: 29
Sorry I couldn't get right back to you, but I see you found a solution for net-tools.
Better than mine. I went in and modified "by hand".

Your new memo looks good. I'm going to rebuild mine from "scratch" (No pun intended)
after the 1st of the year. Just as soon as I find time.
 
Old 12-21-2015, 01:20 AM   #10
nobodino
Member
 
Registered: Jul 2010
Posts: 123

Rep: Reputation: 104Reputation: 104
I've updated the second part, the building of X11 up to xfce functional.
No problem with building X11, no *.failed package if you respect the correct order described here under.
Couldn't get llvm-3.7.0 to build, get back to 3.6 version.
Very few SlackBuilds modified.
Attached Files
File Type: txt Slackware from scratch -v11122015-second.txt (10.6 KB, 54 views)
 
2 members found this post helpful.
Old 02-07-2016, 05:59 AM   #11
nobodino
Member
 
Registered: Jul 2010
Posts: 123

Rep: Reputation: 104Reputation: 104
I've improved the memos to build slackware from scratch. They are rather clean now, I believe.
No more x11 failure, just a few patches included.
The system has complete gcc subsystem, and the xfce environment.
Feel free to test.
Attached Files
File Type: txt Slackware from scratch -v03022016-first.txt (26.3 KB, 116 views)
File Type: txt Slackware from scratch -v02022016-second.txt (12.2 KB, 87 views)
 
3 members found this post helpful.
Old 02-11-2016, 04:02 PM   #12
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 121

Original Poster
Rep: Reputation: 29
Looks good, Nobodino.

I modified my scripts to follow your latest. Didn't take much for the first part.
Last night I built the basic system with no problems. In the next couple of days
I'm going to do the X11 section.

Up to installing BlackBox, it seems pretty much the same. Some work to do after that
though.
 
Old 02-12-2016, 09:28 AM   #13
nobodino
Member
 
Registered: Jul 2010
Posts: 123

Rep: Reputation: 104Reputation: 104
Please, share your scripts when you've finished the two parts. I'm interested in.
 
Old 02-15-2016, 12:59 AM   #14
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2
Posts: 121

Original Poster
Rep: Reputation: 29
Nobodino,

In your second text you call for a patch to rcs, upstream-260704a916.diff.gz.

I can't seem to locate this patch. Would you be so kind as to provide a link?

TIA,

Worsel
 
Old 02-15-2016, 01:16 AM   #15
nobodino
Member
 
Registered: Jul 2010
Posts: 123

Rep: Reputation: 104Reputation: 104
see enclosed diff.
Attached Files
File Type: txt upstream-260704a916.diff.txt (2.8 KB, 62 views)
 
1 members found this post helpful.
  


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] /usr/bin/X11/X11/....... 10 X11 subsets & counting walter74 Linux - General 2 06-07-2015 12:36 AM
How do I get the /etc/X11/X file rebuilt from scratch rickh Debian 4 05-07-2006 11:06 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM


All times are GMT -5. The time now is 09:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration