Discussion:
[blfs-support] Chapter 24: Installation of Xorg Libraries for XFCE
Marcos Menendez
2014-08-14 10:47:11 UTC
Permalink
Hello,

I want to install the XFCE desktop and managed to install the first two packages of the list mentioned in

http://www.linuxfromscratch.org/blfs/view/stable/xfce/xfce-core.html

libxfce4util-4.10.1
Xfconf-4.10.0

For the third one,

libxfce4ui-4.10.0

I installed the required 'GTK+-2.24.22', which in turn requires 'gdk-pixbuf-2.30.4'. For the last one, a recommended dependency is the 'Xorg Libraries' and I decided to install them too.

I followed the instructions found in

http://www.linuxfromscratch.org/blfs/view/stable/x/x7lib.html

I added the as_root() function to my non root user .bash_profile and started the installation.
It did the make fine for the first library but it asked for the non user password continuously for the 'make install' step. Since I don't want to mess with sudo at this point of my installation, I decided to remove that line from the as_root() function and leave it like this:

as_root()
{
if [ $EUID = 0 ]; then $*
# elif [ -x /usr/bin/sudo ]; then? sudo $*
else su -c \\"$*\\"
fi
}

export -f as_root


Now, it asks me for the root password for the 'make install' and continues to the next library to install.

The problem was with the second library, 'libX11-1.6.2', that stops during the 'make' with the following message:

...
...
checking for launchd... no
checking for getpwuid_r in -lc... yes
checking for pthread_self in -lc... yes
checking for poll... yes
checking keysym definitions... Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xproto' found
configure: error: /X11 doesn't exist or isn't a directory


Why is it looking for the /X11 folder? Are there any more dependencies for these libs that are not mentioned in that page or did I something wrong?


Any help would be appreciated.

Marcos
David Brodie
2014-08-14 14:29:25 UTC
Permalink
On 14/08/14 11:47, Marcos Menendez wrote:
> Hello,
>
> I want to install the XFCE desktop and managed to install the first two packages of the list mentioned in
>
> http://www.linuxfromscratch.org/blfs/view/stable/xfce/xfce-core.html
...

You need to install the entire X Window System Environment, in the order
specified in Chapter 24. I would also advise installing 'sudo', so that
you will only be asked once for your root password.

David
Marcos Menendez
2014-08-15 17:47:13 UTC
Permalink
> You need to install the entire X Window System Environment, in the order
> specified in Chapter 24. I would also advise installing 'sudo', so that
> you will only be asked once for your root password.
>
Ok, thank you for the answer.
Marcos Menendez
2014-08-17 13:28:00 UTC
Permalink
Now, in Chapter 24: X Window System Environment page
http://www.linuxfromscratch.org/blfs/view/stable/x/xorg7.html
we can read
'Create an /etc/profile.d/xorg.sh configuration file containing these variables as the root user: '

When I run it, it complains with
'-su: /etc/profile.d/xorg.sh: No such file or directory'

And that is right because directory '/etc/profile.d' does not exist in my LFS installation.

Is it part of another needed package or can I proceed with the installation of Xorg by ignoring it?


Marcos
David Brodie
2014-08-17 14:13:17 UTC
Permalink
On 17/08/14 14:28, Marcos Menendez wrote:
> Now, in Chapter 24: X Window System Environment page
> http://www.linuxfromscratch.org/blfs/view/stable/x/xorg7.html
> we can read
> 'Create an /etc/profile.d/xorg.sh configuration file containing these variables as the root user:'
>
> When I run it, it complains with
> '-su: /etc/profile.d/xorg.sh: No such file or directory'
>
> And that is right because directory '/etc/profile.d' does not exist in my LFS installation.
>
> Is it part of another needed package or can I proceed with the installation of Xorg by ignoring it?

You can just create it now with 'mkdir' (as root, of course). (It would
normally have been created in 'The Bash Shell Startup Files' in BLFS
Chapter 3)

David
David Brodie
2014-08-17 15:01:53 UTC
Permalink
On 17/08/14 15:13, David Brodie wrote:
> On 17/08/14 14:28, Marcos Menendez wrote:
>> Now, in Chapter 24: X Window System Environment page
>> http://www.linuxfromscratch.org/blfs/view/stable/x/xorg7.html
>> we can read
>> 'Create an /etc/profile.d/xorg.sh configuration file containing these
>> variables as the root user:'
>>
>> When I run it, it complains with
>> '-su: /etc/profile.d/xorg.sh: No such file or directory'
>>
>> And that is right because directory '/etc/profile.d' does not exist in
>> my LFS installation.
>>
>> Is it part of another needed package or can I proceed with the
>> installation of Xorg by ignoring it?
>
> You can just create it now with 'mkdir' (as root, of course). (It would
> normally have been created in 'The Bash Shell Startup Files' in BLFS
> Chapter 3)
>
> David

Actually, you will need at least some code from the /etc/profile from Ch
3 to 'source' the 'dropin' files, and you'll probably need the functions
for path manipulation at some stage, if not for Xorg. But do have a good
read through the first few chapters of the BLFS book, anyhow, before you
go any further.

David
Christopher Gregory
2014-08-17 14:39:56 UTC
Permalink
On Sun, 2014-08-17 at 15:28 +0200, Marcos Menendez wrote:
> Now, in Chapter 24: X Window System Environment page
> http://www.linuxfromscratch.org/blfs/view/stable/x/xorg7.html
> we can read
> 'Create an /etc/profile.d/xorg.sh configuration file containing these variables as the root user: '
>
> When I run it, it complains with
> '-su: /etc/profile.d/xorg.sh: No such file or directory'
>
> And that is right because directory '/etc/profile.d' does not exist in my LFS installation.
>
> Is it part of another needed package or can I proceed with the installation of Xorg by ignoring it?
>
>
> Marcos

Hello Marcos,

This may sound rather harsh, but it needs to be said. When we put the
books together the packages and all the information required to get both
the base LFS and BLFS systems up and running.

It is stated in a number of places in the LFS book that you need to
actually follow things through and not just jump ahead to what YOU think
should be done.

You are obviously not following the instructions, because if you were,
then you would not be posting on the list.

These lists are for genuine issues with regards to the published
instructions, and not for us to teach you how to follow printed
instructions.

A number of us have spent many hours putting together this material.

Some have been with linux from scratch for a number of years.

Christopher.
akhiezer
2014-08-17 15:02:34 UTC
Permalink
> From: Christopher Gregory <me at pc-networking-services.com>
> To: blfs-support at lists.linuxfromscratch.org
> Date: Mon, 18 Aug 2014 02:39:56 +1200
> Subject: Re: [blfs-support] Chapter 24: Installation of Xorg Libraries for
> XFCE
>
> On Sun, 2014-08-17 at 15:28 +0200, Marcos Menendez wrote:
> > Now, in Chapter 24: X Window System Environment page
> > http://www.linuxfromscratch.org/blfs/view/stable/x/xorg7.html
> > we can read
> > 'Create an /etc/profile.d/xorg.sh configuration file containing these variables as the root user: '
> >
> > When I run it, it complains with
> > '-su: /etc/profile.d/xorg.sh: No such file or directory'
> >
> > And that is right because directory '/etc/profile.d' does not exist in my LFS installation.
> >
> > Is it part of another needed package or can I proceed with the installation of Xorg by ignoring it?
> >
> >
> > Marcos
>
> Hello Marcos,
>
> This may sound rather harsh, but it needs to be said. When we put the
> books together the packages and all the information required to get both
> the base LFS and BLFS systems up and running.
>
> It is stated in a number of places in the LFS book that you need to
> actually follow things through and not just jump ahead to what YOU think
> should be done.
>
> You are obviously not following the instructions, because if you were,
> then you would not be posting on the list.
>
> These lists are for genuine issues with regards to the published
> instructions, and not for us to teach you how to follow printed
> instructions.
>
> A number of us have spent many hours putting together this material.
>
> Some have been with linux from scratch for a number of years.
>
> Christopher.
>


Hmmm. Is that possibly being a bit unfair?

*IF* /etc/profile.d/ is created in LFS, then fair enough. I've just grepped
through lfs 7.5 incl bootscripts, and no mention of 'profile.d' .

But *IF* it's only created in BLFS, then perhaps arguably much less so.

For, of course, LFS is intended to be followed in a linear
fashion, doing basically all items en route: whereas of
course BLFS is well-known and openly acknowledged to be
non-linear; even e.g. BLFS "Which Sections of the Book Do I Want?"
('http://www.linuxfromscratch.org/blfs/view/svn/introduction/which.html')
doesn't give anywhere-near-direct instructions _to_ create /etc/profile.d/ .



rgds,

akh





--
Marcos Menendez
2014-08-17 15:57:12 UTC
Permalink
> > This may sound rather harsh, but it needs to be said. When we put the
> > books together the packages and all the information required to get both
> > the base LFS and BLFS systems up and running.
> >
> > It is stated in a number of places in the LFS book that you need to
> > actually follow things through and not just jump ahead to what YOU think
> > should be done.

> > You are obviously not following the instructions, because if you were,
> > then you would not be posting on the list.
> >
> > These lists are for genuine issues with regards to the published
> > instructions, and not for us to teach you how to follow printed
> > instructions.
> >
> > A number of us have spent many hours putting together this material.
> >
> > Some have been with linux from scratch for a number of years.
> >
> > Christopher.
> >

Well, Christopher..., nice to meet you too.

I don't see the point in all the previous 'speech', really. I must recognize that your answer surprised me quite a lot, showing such an aggressive attitude, since I'm convinced that nothing justifies it (not in my case at least). You give the impression that you were just waiting, hiding in the corner, for the first person in this list to ask something that triggers your 'alarm sensor' to dump all your stored complains on him/her (for a man that claims he has 'spent many hours putting together this material',...man..., you should have think more before answering).


I think Akh below, clarifies why your answer was unfair and unjustifiable.

>
> Hmmm. Is that possibly being a bit unfair?
>
> *IF* /etc/profile.d/ is created in LFS, then fair enough. I've just grepped
> through lfs 7.5 incl bootscripts, and no mention of 'profile.d' .
>
> But *IF* it's only created in BLFS, then perhaps arguably much less so.
>
> For, of course, LFS is intended to be followed in a linear
> fashion, doing basically all items en route: whereas of
> course BLFS is well-known and openly acknowledged to be
> non-linear; even e.g. BLFS "Which Sections of the Book Do I Want?"
> ('http://www.linuxfromscratch.org/blfs/view/svn/introduction/which.html')
> doesn't give anywhere-near-direct instructions _to_ create /etc/profile.d/ .
>

Thanks for your answer Akh.

Yes, as you very well mentioned, in the introduction of BLFS states exactly that, giving the new user the idea that you can directly jump , or at least I understand it that way, to the package you need and compile/install it right away, leaving the linear way used for the LFS, since you already have a working LFS system.
That's why I started directly from X Windows. I think (maybe) that it should be made more clear in that intro that, despite of that non-linear way of adding things from BLFS, you still need to read chapter 3 and do what it is stated there (thanks to David Brodie for pointing me to it).

Marcos
Armin K.
2014-08-17 16:06:38 UTC
Permalink
On 17.08.2014 17:57, Marcos Menendez wrote:
>>> This may sound rather harsh, but it needs to be said. When we put the
>>> books together the packages and all the information required to get both
>>> the base LFS and BLFS systems up and running.
>>>
>>> It is stated in a number of places in the LFS book that you need to
>>> actually follow things through and not just jump ahead to what YOU think
>>> should be done.
>
>>> You are obviously not following the instructions, because if you were,
>>> then you would not be posting on the list.
>>>
>>> These lists are for genuine issues with regards to the published
>>> instructions, and not for us to teach you how to follow printed
>>> instructions.
>>>
>>> A number of us have spent many hours putting together this material.
>>>
>>> Some have been with linux from scratch for a number of years.
>>>
>>> Christopher.
>>>
>
> Well, Christopher..., nice to meet you too.
>
> I don't see the point in all the previous 'speech', really. I must recognize that your answer surprised me quite a lot, showing such an aggressive attitude, since I'm convinced that nothing justifies it (not in my case at least). You give the impression that you were just waiting, hiding in the corner, for the first person in this list to ask something that triggers your 'alarm sensor' to dump all your stored complains on him/her (for a man that claims he has 'spent many hours putting together this material',...man..., you should have think more before answering).
>
>
> I think Akh below, clarifies why your answer was unfair and unjustifiable.
>
>>
>> Hmmm. Is that possibly being a bit unfair?
>>
>> *IF* /etc/profile.d/ is created in LFS, then fair enough. I've just grepped
>> through lfs 7.5 incl bootscripts, and no mention of 'profile.d' .
>>
>> But *IF* it's only created in BLFS, then perhaps arguably much less so.
>>
>> For, of course, LFS is intended to be followed in a linear
>> fashion, doing basically all items en route: whereas of
>> course BLFS is well-known and openly acknowledged to be
>> non-linear; even e.g. BLFS "Which Sections of the Book Do I Want?"
>> ('http://www.linuxfromscratch.org/blfs/view/svn/introduction/which.html')
>> doesn't give anywhere-near-direct instructions _to_ create /etc/profile.d/ .
>>
>
> Thanks for your answer Akh.
>
> Yes, as you very well mentioned, in the introduction of BLFS states exactly that, giving the new user the idea that you can directly jump , or at least I understand it that way, to the package you need and compile/install it right away, leaving the linear way used for the LFS, since you already have a working LFS system.
> That's why I started directly from X Windows. I think (maybe) that it should be made more clear in that intro that, despite of that non-linear way of adding things from BLFS, you still need to read chapter 3 and do what it is stated there (thanks to David Brodie for pointing me to it).
>
> Marcos
>

In think it would be nice to link to "Bash Startup Files" page from the
first page in Xorg section as well as any other that creates/modifies
files in /etc/profile.d to ensure that /etc/profile and /etc/profile.d/*
scripts exist before trying to create new and modify existing files.

CC'ing -dev.

--
Note: My last name is not Krejzi.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-support/attachments/20140817/6232e998/attachment.sig>
Loading...