* best way to comile userspace to use lib64 for x86_64
@ 2009-08-03 15:41 Justin P. Mattock
2009-08-03 16:09 ` Stephen Smalley
2009-08-03 17:17 ` Dennis Wronka
0 siblings, 2 replies; 8+ messages in thread
From: Justin P. Mattock @ 2009-08-03 15:41 UTC (permalink / raw)
To: SE-Linux
As an experimanet I'm building an x86_64 system, in doing so
I'm noticing I need to have the libs point to /lib64 and /usr/lib64
what is the easiest way to do this for the
userspace from git. looking at the Makefiles seems a bit confusing,
using LIBDIR=/lib64 does make /usr/lib64 but does not make /lib64.
any ideas?
Justin P. Mattock
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: best way to comile userspace to use lib64 for x86_64
2009-08-03 15:41 best way to comile userspace to use lib64 for x86_64 Justin P. Mattock
@ 2009-08-03 16:09 ` Stephen Smalley
2009-08-03 16:40 ` Justin P. Mattock
2009-08-03 17:17 ` Dennis Wronka
1 sibling, 1 reply; 8+ messages in thread
From: Stephen Smalley @ 2009-08-03 16:09 UTC (permalink / raw)
To: Justin P. Mattock; +Cc: SE-Linux
On Mon, 2009-08-03 at 08:41 -0700, Justin P. Mattock wrote:
> As an experimanet I'm building an x86_64 system, in doing so
> I'm noticing I need to have the libs point to /lib64 and /usr/lib64
> what is the easiest way to do this for the
> userspace from git. looking at the Makefiles seems a bit confusing,
> using LIBDIR=/lib64 does make /usr/lib64 but does not make /lib64.
>
> any ideas?
make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: best way to comile userspace to use lib64 for x86_64
2009-08-03 16:09 ` Stephen Smalley
@ 2009-08-03 16:40 ` Justin P. Mattock
0 siblings, 0 replies; 8+ messages in thread
From: Justin P. Mattock @ 2009-08-03 16:40 UTC (permalink / raw)
To: Stephen Smalley; +Cc: SE-Linux
Stephen Smalley wrote:
> On Mon, 2009-08-03 at 08:41 -0700, Justin P. Mattock wrote:
>
>> As an experimanet I'm building an x86_64 system, in doing so
>> I'm noticing I need to have the libs point to /lib64 and /usr/lib64
>> what is the easiest way to do this for the
>> userspace from git. looking at the Makefiles seems a bit confusing,
>> using LIBDIR=/lib64 does make /usr/lib64 but does not make /lib64.
>>
>> any ideas?
>>
>
> make LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install
>
ahhh..
Thank you so much for that.
Seems I needed to do this:
make DESTDIR=/home/justin/test LIBDIR=/home/justin/test/usr/lib64 \
SHLIBDIR=/home/justin/test/lib64 install
or else the libs would be put in /lib64 /usr/lib64 of the host system.
Anyways seems more of a pain to build such a system due to the
multilib thing.
(but what the heck might as well)
Thanks again.
Justin P. Mattock
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: best way to comile userspace to use lib64 for x86_64
2009-08-03 15:41 best way to comile userspace to use lib64 for x86_64 Justin P. Mattock
2009-08-03 16:09 ` Stephen Smalley
@ 2009-08-03 17:17 ` Dennis Wronka
2009-08-03 18:21 ` Justin P. Mattock
1 sibling, 1 reply; 8+ messages in thread
From: Dennis Wronka @ 2009-08-03 17:17 UTC (permalink / raw)
To: Justin P. Mattock; +Cc: SE-Linux
This can be quite hard at times. For most packages you can use --libdir with
configure, but some packages still want to put their stuff into /lib or /usr/lib
OpenSSL for example seems to require quite a few edits in the Makefiles.
Here's what I have to "rape" OpenSSL into installing into /usr/lib64
if [ "$(uname -a | grep x86_64)" != "" ]; then
for FILE in $(find . -name Makefile); do
sed -i 's@$(INSTALLTOP)/lib@&64@g' ${FILE}
sed -i 's@$${exec_prefix}/lib@&64@g' ${FILE}
done
fi
Btw, if you compile a pure 64-bit system I suggest simply linking /lib to
/lib64 and /usr/lib to /usr/lib64
Saves you lots of headaches with misplaced stuff...
> As an experimanet I'm building an x86_64 system, in doing so
> I'm noticing I need to have the libs point to /lib64 and /usr/lib64
> what is the easiest way to do this for the
> userspace from git. looking at the Makefiles seems a bit confusing,
> using LIBDIR=/lib64 does make /usr/lib64 but does not make /lib64.
>
> any ideas?
>
> Justin P. Mattock
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov
> with the words "unsubscribe selinux" without quotes as the message.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: best way to comile userspace to use lib64 for x86_64
2009-08-03 17:17 ` Dennis Wronka
@ 2009-08-03 18:21 ` Justin P. Mattock
2009-08-03 18:29 ` Stephen Smalley
2009-08-03 18:32 ` Dennis Wronka
0 siblings, 2 replies; 8+ messages in thread
From: Justin P. Mattock @ 2009-08-03 18:21 UTC (permalink / raw)
To: Dennis Wronka; +Cc: SE-Linux
Dennis Wronka wrote:
> This can be quite hard at times. For most packages you can use --libdir with
> configure, but some packages still want to put their stuff into /lib or /usr/lib
> OpenSSL for example seems to require quite a few edits in the Makefiles.
>
> Here's what I have to "rape" OpenSSL into installing into /usr/lib64
>
> if [ "$(uname -a | grep x86_64)" != "" ]; then
> for FILE in $(find . -name Makefile); do
> sed -i 's@$(INSTALLTOP)/lib@&64@g' ${FILE}
> sed -i 's@$${exec_prefix}/lib@&64@g' ${FILE}
> done
> fi
>
> Btw, if you compile a pure 64-bit system I suggest simply linking /lib to
> /lib64 and /usr/lib to /usr/lib64
> Saves you lots of headaches with misplaced stuff...
>
>
>
>> As an experimanet I'm building an x86_64 system, in doing so
>> I'm noticing I need to have the libs point to /lib64 and /usr/lib64
>> what is the easiest way to do this for the
>> userspace from git. looking at the Makefiles seems a bit confusing,
>> using LIBDIR=/lib64 does make /usr/lib64 but does not make /lib64.
>>
>> any ideas?
>>
>> Justin P. Mattock
>>
>> --
>> This message was distributed to subscribers of the selinux mailing list.
>> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov
>> with the words "unsubscribe selinux" without quotes as the message.
>>
>
>
Cool thanks,
The linking to lib like what you had said
is probably the best bet(noticed ubuntu does that,
but fedora does not) especially with the file relabeling.
(unless the file relabeling is already aware of lib64's).
As for openssl(thanks for that)
I had a bit of a headache with perl already.
not sure if I have the patience for this.
Justin P. Mattock
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: best way to comile userspace to use lib64 for x86_64
2009-08-03 18:21 ` Justin P. Mattock
@ 2009-08-03 18:29 ` Stephen Smalley
2009-08-03 22:11 ` Justin P. Mattock
2009-08-03 18:32 ` Dennis Wronka
1 sibling, 1 reply; 8+ messages in thread
From: Stephen Smalley @ 2009-08-03 18:29 UTC (permalink / raw)
To: Justin P. Mattock; +Cc: Dennis Wronka, SE-Linux
On Mon, 2009-08-03 at 11:21 -0700, Justin P. Mattock wrote:
> Dennis Wronka wrote:
> > This can be quite hard at times. For most packages you can use --libdir with
> > configure, but some packages still want to put their stuff into /lib or /usr/lib
> > OpenSSL for example seems to require quite a few edits in the Makefiles.
> >
> > Here's what I have to "rape" OpenSSL into installing into /usr/lib64
> >
> > if [ "$(uname -a | grep x86_64)" != "" ]; then
> > for FILE in $(find . -name Makefile); do
> > sed -i 's@$(INSTALLTOP)/lib@&64@g' ${FILE}
> > sed -i 's@$${exec_prefix}/lib@&64@g' ${FILE}
> > done
> > fi
> >
> > Btw, if you compile a pure 64-bit system I suggest simply linking /lib to
> > /lib64 and /usr/lib to /usr/lib64
> > Saves you lots of headaches with misplaced stuff...
> >
> >
> >
> >> As an experimanet I'm building an x86_64 system, in doing so
> >> I'm noticing I need to have the libs point to /lib64 and /usr/lib64
> >> what is the easiest way to do this for the
> >> userspace from git. looking at the Makefiles seems a bit confusing,
> >> using LIBDIR=/lib64 does make /usr/lib64 but does not make /lib64.
> >>
> >> any ideas?
> >>
> >> Justin P. Mattock
> >>
> >> --
> >> This message was distributed to subscribers of the selinux mailing list.
> >> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov
> >> with the words "unsubscribe selinux" without quotes as the message.
> >>
> >
> >
> Cool thanks,
> The linking to lib like what you had said
> is probably the best bet(noticed ubuntu does that,
> but fedora does not) especially with the file relabeling.
> (unless the file relabeling is already aware of lib64's).
The file contexts configuration already includes patterns that cover
lib64 or lib variants.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: best way to comile userspace to use lib64 for x86_64
2009-08-03 18:29 ` Stephen Smalley
@ 2009-08-03 22:11 ` Justin P. Mattock
0 siblings, 0 replies; 8+ messages in thread
From: Justin P. Mattock @ 2009-08-03 22:11 UTC (permalink / raw)
To: Stephen Smalley; +Cc: Dennis Wronka, SE-Linux
Stephen Smalley wrote:
> On Mon, 2009-08-03 at 11:21 -0700, Justin P. Mattock wrote:
>
>> Dennis Wronka wrote:
>>
>>> This can be quite hard at times. For most packages you can use --libdir with
>>> configure, but some packages still want to put their stuff into /lib or /usr/lib
>>> OpenSSL for example seems to require quite a few edits in the Makefiles.
>>>
>>> Here's what I have to "rape" OpenSSL into installing into /usr/lib64
>>>
>>> if [ "$(uname -a | grep x86_64)" != "" ]; then
>>> for FILE in $(find . -name Makefile); do
>>> sed -i 's@$(INSTALLTOP)/lib@&64@g' ${FILE}
>>> sed -i 's@$${exec_prefix}/lib@&64@g' ${FILE}
>>> done
>>> fi
>>>
>>> Btw, if you compile a pure 64-bit system I suggest simply linking /lib to
>>> /lib64 and /usr/lib to /usr/lib64
>>> Saves you lots of headaches with misplaced stuff...
>>>
>>>
>>>
>>>
>>>> As an experimanet I'm building an x86_64 system, in doing so
>>>> I'm noticing I need to have the libs point to /lib64 and /usr/lib64
>>>> what is the easiest way to do this for the
>>>> userspace from git. looking at the Makefiles seems a bit confusing,
>>>> using LIBDIR=/lib64 does make /usr/lib64 but does not make /lib64.
>>>>
>>>> any ideas?
>>>>
>>>> Justin P. Mattock
>>>>
>>>> --
>>>> This message was distributed to subscribers of the selinux mailing list.
>>>> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov
>>>> with the words "unsubscribe selinux" without quotes as the message.
>>>>
>>>>
>>>
>>>
>> Cool thanks,
>> The linking to lib like what you had said
>> is probably the best bet(noticed ubuntu does that,
>> but fedora does not) especially with the file relabeling.
>> (unless the file relabeling is already aware of lib64's).
>>
>
> The file contexts configuration already includes patterns that cover
> lib64 or lib variants.
>
>
Cool, glad to hear that..
At the moment SELinux userspace tools/libs should be
in its appropriate location. Now its a matter of just building
the rest of the libs/apps to make the system boot(hopefully).
Justin P. Mattock
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: best way to comile userspace to use lib64 for x86_64
2009-08-03 18:21 ` Justin P. Mattock
2009-08-03 18:29 ` Stephen Smalley
@ 2009-08-03 18:32 ` Dennis Wronka
1 sibling, 0 replies; 8+ messages in thread
From: Dennis Wronka @ 2009-08-03 18:32 UTC (permalink / raw)
To: Justin P. Mattock; +Cc: SE-Linux
I found quite a good source of information for this is the CLFS-documentation.
There you can find lots of stuff on how to make things go where you want them.
> Dennis Wronka wrote:
> > This can be quite hard at times. For most packages you can use --libdir
> > with configure, but some packages still want to put their stuff into /lib
> > or /usr/lib OpenSSL for example seems to require quite a few edits in the
> > Makefiles.
> >
> > Here's what I have to "rape" OpenSSL into installing into /usr/lib64
> >
> > if [ "$(uname -a | grep x86_64)" != "" ]; then
> > for FILE in $(find . -name Makefile); do
> > sed -i 's@$(INSTALLTOP)/lib@&64@g' ${FILE}
> > sed -i 's@$${exec_prefix}/lib@&64@g' ${FILE}
> > done
> > fi
> >
> > Btw, if you compile a pure 64-bit system I suggest simply linking /lib to
> > /lib64 and /usr/lib to /usr/lib64
> > Saves you lots of headaches with misplaced stuff...
> >
> >> As an experimanet I'm building an x86_64 system, in doing so
> >> I'm noticing I need to have the libs point to /lib64 and /usr/lib64
> >> what is the easiest way to do this for the
> >> userspace from git. looking at the Makefiles seems a bit confusing,
> >> using LIBDIR=/lib64 does make /usr/lib64 but does not make /lib64.
> >>
> >> any ideas?
> >>
> >> Justin P. Mattock
> >>
> >> --
> >> This message was distributed to subscribers of the selinux mailing list.
> >> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov
> >> with the words "unsubscribe selinux" without quotes as the message.
>
> Cool thanks,
> The linking to lib like what you had said
> is probably the best bet(noticed ubuntu does that,
> but fedora does not) especially with the file relabeling.
> (unless the file relabeling is already aware of lib64's).
>
> As for openssl(thanks for that)
> I had a bit of a headache with perl already.
> not sure if I have the patience for this.
>
> Justin P. Mattock
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-08-03 22:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 15:41 best way to comile userspace to use lib64 for x86_64 Justin P. Mattock
2009-08-03 16:09 ` Stephen Smalley
2009-08-03 16:40 ` Justin P. Mattock
2009-08-03 17:17 ` Dennis Wronka
2009-08-03 18:21 ` Justin P. Mattock
2009-08-03 18:29 ` Stephen Smalley
2009-08-03 22:11 ` Justin P. Mattock
2009-08-03 18:32 ` Dennis Wronka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.