Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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!
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.
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.