[blfs-dev] libdrm dependencies

2012-05-12 Thread Ragnar Thomsen
I just updated libdrm, but I noticed libpthread-stubs and libatomic_ops are 
listed as required deps. I have neither of these installed, but libdrm still 
detects them on my system and builds without problems. Can they be removed as 
deps?

Configure output:
checking for PTHREADSTUBS... yes
..
checking for CAIRO... yes
checking for LIBUDEV... yes
checking for native atomic primitives... Intel
checking for PCIACCESS... yes
checking for VALGRIND... no
..

Cairo and valgrind seem to be dependencies too.

-Ragnar-
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Ragnar Thomsen
On Saturday 12 May 2012 14:49:47 Bruce Dubbs wrote:
 What is your host?  The dependencies say they are only needed on x86.
 I'm not sure tha tnote applies to libpthread or not.

Core i7: x64 capable, but I didn't install any 64-bit libs.

-Ragnar-

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Ken Moffat
On Sat, May 12, 2012 at 10:03:19PM +0200, Ragnar Thomsen wrote:
 On Saturday 12 May 2012 14:49:47 Bruce Dubbs wrote:
  What is your host?  The dependencies say they are only needed on x86.
  I'm not sure tha tnote applies to libpthread or not.
 
 Core i7: x64 capable, but I didn't install any 64-bit libs.
 
 -Ragnar-
 
 Just out of interest, do you built glibc for m486, or m686 ?

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Ragnar Thomsen
On Saturday 12 May 2012 21:30:31 Ken Moffat wrote:
  Just out of interest, do you built glibc for m486, or m686 ?

IIRC, m486

-Ragnar-
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Andrew Benton
On Sat, 12 May 2012 20:40:09 +0100
Ragnar Thomsen rthoms...@gmail.com wrote:

 I just updated libdrm, but I noticed libpthread-stubs and libatomic_ops are 
 listed as required deps. I have neither of these installed, but libdrm still 
 detects them on my system and builds without problems. Can they be removed as 
 deps?

A year or 2 ago libdrm went through a phase where it wouldn't build
without either libatomic_ops installed or you could pass a CFLAG to
configure (I forget the exact incantation). I think it can use it if
it's installed but I believe you're right that it should be listed as
an optional dep (haven't tested without it lately).

 Configure output:
 checking for PTHREADSTUBS... yes
 ..
 checking for CAIRO... yes
 checking for LIBUDEV... yes
 checking for native atomic primitives... Intel
 checking for PCIACCESS... yes
 checking for VALGRIND... no
 ..
 
 Cairo and valgrind seem to be dependencies too.

When I looked at libdrm a few weeks ago configure checked for Cairo but
it wasn't mentioned in the rest of the build log. grepping through the
libdrm source for mentions of Cairo there was one file in the tests
which didn't seem to be used. I don't think Cairo should be listed as a
dep if it doesn't use it at all.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Armin K.
On 05/12/2012 09:39 PM, Ragnar Thomsen wrote:
 I just updated libdrm, but I noticed libpthread-stubs and libatomic_ops are
 listed as required deps. I have neither of these installed, but libdrm still
 detects them on my system and builds without problems. Can they be removed as
 deps?

 Configure output:
 checking for PTHREADSTUBS... yes
 ..
 checking for CAIRO... yes
 checking for LIBUDEV... yes
 checking for native atomic primitives... Intel
 checking for PCIACCESS... yes
 checking for VALGRIND... no
 ..

 Cairo and valgrind seem to be dependencies too.

 -Ragnar-

http://paste.debian.net/plainh/b4e68a21

This is full build log from my libdrm build.

Here are some highlights:

checking for PTHREADSTUBS... yes

is actually using pkg-config for checking for existence of 
pthread-stubs.pc file which is provided by libpthread-stubs. It will 
fail if that one is not installed. But no worries, that one is installed 
with Xorg.

Then:

checking for CAIRO... yes

it is used only in one test - tests/modetest/modetest.c and that one is 
being run:

Making all in modetest
make[3]: Entering directory `/home/armin/src/libdrm-2.4.34/tests/modetest'
   CC modetest.o
   CCLD   modetest

And this one:

checking for native atomic primitives... Intel

It can use native compiler primitives, in this case Intel - provided by 
newer compilers (maybe) or fall back to libatomic-ops (checked in 
configure.ac).

Ones that are not listed are:

checking for PCIACCESS... yes

Is libpciaccess from Xorg Libraries. It is needed for libdrm_intel.

Mentioned in intel/intel_bufmgr.c

and as you said:

checking for VALGRIND... no

Optionally used by libdrm_intel to surpress false warnings.

Introduced with

http://cgit.freedesktop.org/mesa/drm/commit/?id=90b23cc24c19fbe131d84237c55311cafeb4ca21

I did not bother to upgrade it, since it introduces major nouveau change 
which will probably be available in linux 3.4.

http://cgit.freedesktop.org/nouveau/linux-2.6/log
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Ragnar Thomsen
On Sunday 13 May 2012 00:02:00 Armin K. wrote:
 
 checking for PTHREADSTUBS... yes
 
 is actually using pkg-config for checking for existence of
 pthread-stubs.pc file which is provided by libpthread-stubs. It will
 fail if that one is not installed. But no worries, that one is installed
 with Xorg.
 
 Then:
 
 checking for CAIRO... yes
 
 it is used only in one test - tests/modetest/modetest.c and that one is
 being run:
 
 Making all in modetest
 make[3]: Entering directory `/home/armin/src/libdrm-2.4.34/tests/modetest'
CC modetest.o
CCLD   modetest
 
 And this one:
 
 checking for native atomic primitives... Intel
 
 It can use native compiler primitives, in this case Intel - provided by
 newer compilers (maybe) or fall back to libatomic-ops (checked in
 configure.ac).
 
 Ones that are not listed are:
 
 checking for PCIACCESS... yes
 
 Is libpciaccess from Xorg Libraries. It is needed for libdrm_intel.
 
 Mentioned in intel/intel_bufmgr.c
 
 and as you said:
 
 checking for VALGRIND... no
 
 Optionally used by libdrm_intel to surpress false warnings.
 
 Introduced with
 
 http://cgit.freedesktop.org/mesa/drm/commit/?id=90b23cc24c19fbe131d84237c553
 11cafeb4ca21
 
 I did not bother to upgrade it, since it introduces major nouveau change
 which will probably be available in linux 3.4.

So I guess libpthreads and Xorg libraries should be required deps, while  
libatomic-ops, valgrind and cairo are optional. This sound about right?
A note could be added that cairo is req for tests.
Should we list pkg-config as a req dep as well?

-Ragnar-

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Armin K.
On 05/13/2012 12:38 AM, Ragnar Thomsen wrote:
 On Sunday 13 May 2012 00:02:00 Armin K. wrote:

 checking for PTHREADSTUBS... yes

 is actually using pkg-config for checking for existence of
 pthread-stubs.pc file which is provided by libpthread-stubs. It will
 fail if that one is not installed. But no worries, that one is installed
 with Xorg.

 Then:

 checking for CAIRO... yes

 it is used only in one test - tests/modetest/modetest.c and that one is
 being run:

 Making all in modetest
 make[3]: Entering directory `/home/armin/src/libdrm-2.4.34/tests/modetest'
 CC modetest.o
 CCLD   modetest

 And this one:

 checking for native atomic primitives... Intel

 It can use native compiler primitives, in this case Intel - provided by
 newer compilers (maybe) or fall back to libatomic-ops (checked in
 configure.ac).

 Ones that are not listed are:

 checking for PCIACCESS... yes

 Is libpciaccess from Xorg Libraries. It is needed for libdrm_intel.

 Mentioned in intel/intel_bufmgr.c

 and as you said:

 checking for VALGRIND... no

 Optionally used by libdrm_intel to surpress false warnings.

 Introduced with

 http://cgit.freedesktop.org/mesa/drm/commit/?id=90b23cc24c19fbe131d84237c553
 11cafeb4ca21

 I did not bother to upgrade it, since it introduces major nouveau change
 which will probably be available in linux 3.4.

 So I guess libpthreads and Xorg libraries should be required deps, while
 libatomic-ops, valgrind and cairo are optional. This sound about right?
 A note could be added that cairo is req for tests.
 Should we list pkg-config as a req dep as well?

 -Ragnar-


xorg libraries should be enough since it will pull pthread stubs via 
libxcb. As for the pkg-config, it should be set as required at protocol 
headers page since it is used for detection of util-macros. Also, libXau 
needs it to find protocol headers and such.

libatomic-ops are unnecesary if using new toolchain, and lfs stable has 
recent enough one so it can be removed from deps list.

As for cairo and valgrind, they can be set as optional with additional 
notes if desired.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Bruce Dubbs
Ragnar Thomsen wrote:

 So I guess libpthreads and Xorg libraries should be required deps, while  
 libatomic-ops, valgrind and cairo are optional. This sound about right?
 A note could be added that cairo is req for tests.
 Should we list pkg-config as a req dep as well?

pkg-config is a required dep of makedepend, an ancestor of Xorg libraries, so 
we 
don't need to list it explicitly.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] libdrm dependencies

2012-05-12 Thread Andrew Benton
On Sat, 12 May 2012 23:41:22 +0100
Ragnar Thomsen rthoms...@gmail.com wrote:

 So I guess libpthreads and Xorg libraries should be required deps, while  
 libatomic-ops, valgrind and cairo are optional. This sound about right?
 A note could be added that cairo is req for tests.
 Should we list pkg-config as a req dep as well?

All the tests run without Cairo. The one test that can use Cairo has
other code paths it can use if Cairo is not available.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page