LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-22-2017, 05:28 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
blfs8: first xorg package: possible failure


So I finally got to a point where I could start on the xorg compile process. Fetched the first package: util-xorg. Compiled, did a su ...

Code:
bob@artemis:~/xc/util-macros-1.19.1 $ su -c "make install"
Password:
make[1]: Entering directory '/home/bob/xc/util-macros-1.19.1'
make[1]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p 'ORG_PREFIX/share/aclocal'
 /usr/bin/install -c -m 644 xorg-macros.m4 'ORG_PREFIX/share/aclocal'
 /bin/mkdir -p 'ORG_PREFIX/share/util-macros'
 /usr/bin/install -c -m 644 INSTALL 'ORG_PREFIX/share/util-macros'
 /bin/mkdir -p 'ORG_PREFIX/share/pkgconfig'
 /usr/bin/install -c -m 644 xorg-macros.pc 'ORG_PREFIX/share/pkgconfig'
make  install-data-hook
make[2]: Entering directory '/home/bob/xc/util-macros-1.19.1'
rm -f ORG_PREFIX/share/aclocal/xorgversion.m4
make[2]: Leaving directory '/home/bob/xc/util-macros-1.19.1'
make[1]: Leaving directory '/home/bob/xc/util-macros-1.19.1'
bob@artemis:~/xc/util-macros-1.19.1 $
bob@artemis:~/xc/util-macros-1.19.1 $ ls /usr
bin  include  lib  libexec  local  sbin  share  src
bob@artemis:~/xc/util-macros-1.19.1 $ ls /usr/share/pkgconfig/
mariadb.pc  udev.pc
bob@artemis:~/xc/util-macros-1.19.1 $ ls /usr/share/util-macros
ls: cannot access '/usr/share/util-macros': No such file or directory
bob@artemis:~/xc/util-macros-1.19.1 $ echo $XORG_PREFIX
/usr
bob@artemis:~/xc/util-macros-1.19.1 $ echo $XORG_CONFIG
--prefix=$XORG_PREFIX --sysconfdir=/etc --localstatedir=/var --disable-static
bob@artemis:~/xc/util-macros-1.19.1 $
So in the above, there are no files placed where they ought to be *and* the util-macros directory off of /usr/share was never created, yet the book says:

Quote:
Contents

Installed Programs: None
Installed Libraries: None
Installed Directory: $XORG_PREFIX/share/pkgconfig and $XORG_PREFIX/share/util-macros
Also note the echos in the code above that the XORG_CONFIG and XORG_PREFIX environment variables were already defined.

So it looks like something has gone wrong. Help!

Thank you.
 
Old 05-22-2017, 07:54 PM   #2
Terry Coats
Member
 
Registered: Mar 2017
Posts: 122

Rep: Reputation: 54
The line

/bin/mkdir -p 'ORG_PREFIX/share/aclocal'

says that you mistyped or miscopied XORG as ORG somewhere along the way.
Start there.
 
Old 05-22-2017, 08:49 PM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
D'oh!

Thank you.

I guess I will just have to restore from backup and try again, since I still can't find out what files the "make install" put where.
 
Old 05-22-2017, 09:11 PM   #4
Terry Coats
Member
 
Registered: Mar 2017
Posts: 122

Rep: Reputation: 54
If there are any they'd be in ORG_PREFIX/share.
Do an

ls ORG_PREFIX/share

and see if anything there.
I don't know what "make install-data-hook"
did but probably nothing was hurt.
 
Old 05-23-2017, 05:29 PM   #5
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
Thank you.

I double checked things by restoring a backup to a temporary partition and then running diff. Turns out the make install installed to a directory off of the compile directory. Which is just about exactly what you were saying. Whew!

Last edited by jr_bob_dobbs; 05-23-2017 at 05:31 PM.
 
Old 05-23-2017, 11:07 PM   #6
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
I think I figured out the cause of the problem. In the BLFS8 book, one creates that script in profile.d to set the XORG-whatever environment variables. Well, the book has one declaring XORG_PREFIX by typing a command, and then creating that script via piping stdin. I instead used a text editor. So instead of using the actual $XORG_PREFIX to define XORG_PREFIX in the file (which is rather indirect and convoluted) the text editor put $XORG_PREFIX in as a literal. D'oh!
 
Old 05-23-2017, 11:42 PM   #7
Terry Coats
Member
 
Registered: Mar 2017
Posts: 122

Rep: Reputation: 54
I've done that several times, copy into an editor and then save it as a file but I
haven't been bit by anything bad yet. Something to watch out for I guess.
 
Old 05-24-2017, 10:19 PM   #8
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
First, take a second look at the instructions for setting up XORG_CONFIG, I think you missed the part below, it is about half way down the page.

Quote:
If you've decided to use the standard /usr prefix, you can omit the remainder of this page and continue at util-macros-1.19.1.
Next, you should get Sudo installed. Some additional useful configure flags for it: --disable-root-sudo --enable-pie --enable-shell-sets-home --without-sendmail
If PAM or an MTA is installed, change accordingly: --with-sendmail=/usr/sbin/sendmail --with-pam

I've made scripts to make sudo work better during the build process. If you're interested, I'll post them here. They're designed for a dedicated account to build software before installing.
 
  


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
bash-completion-1.3-noarch-1 causes xorg failure andrewthomas Slackware 12 04-19-2011 01:09 AM
xorg-server 1.6 = resolution failure babalot Linux - Desktop 3 06-29-2009 11:03 AM
xorg upgrade/install failure on amd64 Azizcoos Debian 2 11-14-2006 07:33 PM
Xorg installation failure novacrasher Linux - Software 2 02-07-2005 05:30 PM
FreeBSD: XOrg failure. I have no control over my computer Harpune *BSD 4 12-14-2004 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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