* [PATCH] Supply uclibc-thread-db package expected by task-sdk-base
@ 2009-04-14 20:05 David Huggins-Daines
2009-04-14 20:11 ` Koen Kooi
2009-04-16 16:29 ` Tom Rini
0 siblings, 2 replies; 6+ messages in thread
From: David Huggins-Daines @ 2009-04-14 20:05 UTC (permalink / raw)
To: openembedded-devel; +Cc: David Huggins-Daines
Currently, building task-sdk-base (and by extension meta-toolchain) fails
for uclibc targets. This is because task-sdk-base depends on the thread
debugging library uclibc-thread-db, but this is not built by the uclibc
recipe unless PTHREADS_DEBUG_SUPPORT is enabled. In addition, once it is
built, if you are using Debian version numbers, it will be helpfully
renamed to "libthread-db1" and the build will still fail.
This patch fixes these problems, it's against stable/2009 but will also
apply to .dev
---
recipes/uclibc/uclibc-0.9.30/uClibc.distro | 2 +-
recipes/uclibc/uclibc.inc | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/recipes/uclibc/uclibc-0.9.30/uClibc.distro b/recipes/uclibc/uclibc-0.9.30/uClibc.distro
index b072b2f..d8eed91 100644
--- a/recipes/uclibc/uclibc-0.9.30/uClibc.distro
+++ b/recipes/uclibc/uclibc-0.9.30/uClibc.distro
@@ -17,7 +17,7 @@ UCLIBC_CTOR_DTOR=y
LDSO_GNU_HASH_SUPPORT=y
# HAS_NO_THREADS is not set
UCLIBC_HAS_THREADS=y
-# PTHREADS_DEBUG_SUPPORT is not set
+PTHREADS_DEBUG_SUPPORT=y
LINUXTHREADS_OLD=y
UCLIBC_HAS_LFS=y
# MALLOC is not set
diff --git a/recipes/uclibc/uclibc.inc b/recipes/uclibc/uclibc.inc
index be085ab..46d36d2 100644
--- a/recipes/uclibc/uclibc.inc
+++ b/recipes/uclibc/uclibc.inc
@@ -55,6 +55,9 @@ FILES_uclibc-gconv = "${libdir}/gconv"
FILES_uclibc-thread-db = "/lib/libthread_db*"
RPROVIDES_uclibc-dev += "libc-dev virtual-libc-dev"
+# uclibc-thread-db will get renamed to libthread-db1, which we do not want
+DEBIANNAME_uclibc-thread-db = "uclibc-thread-db"
+
#
# This locale file gets copied into uClibc-${PV}/extra/locale/ prior to
# build, it does not need to be unpacked, but we can't inhibit the unpacking
--
1.5.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] Supply uclibc-thread-db package expected by task-sdk-base
2009-04-14 20:05 [PATCH] Supply uclibc-thread-db package expected by task-sdk-base David Huggins-Daines
@ 2009-04-14 20:11 ` Koen Kooi
2009-04-16 16:29 ` Tom Rini
1 sibling, 0 replies; 6+ messages in thread
From: Koen Kooi @ 2009-04-14 20:11 UTC (permalink / raw)
To: openembedded-devel
On 14-04-09 22:05, David Huggins-Daines wrote:
> Currently, building task-sdk-base (and by extension meta-toolchain) fails
> for uclibc targets. This is because task-sdk-base depends on the thread
> debugging library uclibc-thread-db, but this is not built by the uclibc
> recipe unless PTHREADS_DEBUG_SUPPORT is enabled. In addition, once it is
> built, if you are using Debian version numbers, it will be helpfully
> renamed to "libthread-db1" and the build will still fail.
> +# uclibc-thread-db will get renamed to libthread-db1, which we do not want
> +DEBIANNAME_uclibc-thread-db = "uclibc-thread-db"
Actually we *do* want the rename, and OE is perfectly capable of
including a renamed package in a task.
regards,
Koen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Supply uclibc-thread-db package expected by task-sdk-base
2009-04-14 20:05 [PATCH] Supply uclibc-thread-db package expected by task-sdk-base David Huggins-Daines
2009-04-14 20:11 ` Koen Kooi
@ 2009-04-16 16:29 ` Tom Rini
2009-04-16 17:00 ` David Huggins-Daines
1 sibling, 1 reply; 6+ messages in thread
From: Tom Rini @ 2009-04-16 16:29 UTC (permalink / raw)
To: openembedded-devel; +Cc: David Huggins-Daines
On Tue, Apr 14, 2009 at 04:05:18PM -0400, David Huggins-Daines wrote:
> Currently, building task-sdk-base (and by extension meta-toolchain) fails
> for uclibc targets. This is because task-sdk-base depends on the thread
> debugging library uclibc-thread-db, but this is not built by the uclibc
> recipe unless PTHREADS_DEBUG_SUPPORT is enabled. In addition, once it is
> built, if you are using Debian version numbers, it will be helpfully
> renamed to "libthread-db1" and the build will still fail.
>
> This patch fixes these problems, it's against stable/2009 but will also
> apply to .dev
That's interesting as when I pushed these changes I did test with a
uclibc target too. What DISTRO/MACHINE are you using?
--
Tom Rini
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Supply uclibc-thread-db package expected by task-sdk-base
2009-04-16 16:29 ` Tom Rini
@ 2009-04-16 17:00 ` David Huggins-Daines
2009-04-16 17:11 ` Tom Rini
0 siblings, 1 reply; 6+ messages in thread
From: David Huggins-Daines @ 2009-04-16 17:00 UTC (permalink / raw)
To: Tom Rini; +Cc: openembedded-devel
Tom Rini wrote:
> On Tue, Apr 14, 2009 at 04:05:18PM -0400, David Huggins-Daines wrote:
>
>
>> Currently, building task-sdk-base (and by extension meta-toolchain) fails
>> for uclibc targets. This is because task-sdk-base depends on the thread
>> debugging library uclibc-thread-db, but this is not built by the uclibc
>> recipe unless PTHREADS_DEBUG_SUPPORT is enabled. In addition, once it is
>> built, if you are using Debian version numbers, it will be helpfully
>> renamed to "libthread-db1" and the build will still fail.
>>
>>
As pointed out earlier on this thread (and verified - there was some
confusion on my part since I didn't fully clean before rebuilding), the
library renaming itself doesn't cause any problems. The only actual
problem is the lack of PTHREADS_DEBUG_SUPPORT.
> That's interesting as when I pushed these changes I did test with a
> uclibc target too. What DISTRO/MACHINE are you using?
>
I have a custom distro and machine, but broadly speaking it is
minimal-uclibc and ep93xx...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Supply uclibc-thread-db package expected by task-sdk-base
2009-04-16 17:00 ` David Huggins-Daines
@ 2009-04-16 17:11 ` Tom Rini
2009-04-17 22:35 ` Khem Raj
0 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2009-04-16 17:11 UTC (permalink / raw)
To: David Huggins-Daines; +Cc: openembedded-devel
On Thu, Apr 16, 2009 at 01:00:02PM -0400, David Huggins-Daines wrote:
> Tom Rini wrote:
> > On Tue, Apr 14, 2009 at 04:05:18PM -0400, David Huggins-Daines wrote:
> >
> >
> >> Currently, building task-sdk-base (and by extension meta-toolchain) fails
> >> for uclibc targets. This is because task-sdk-base depends on the thread
> >> debugging library uclibc-thread-db, but this is not built by the uclibc
> >> recipe unless PTHREADS_DEBUG_SUPPORT is enabled. In addition, once it is
> >> built, if you are using Debian version numbers, it will be helpfully
> >> renamed to "libthread-db1" and the build will still fail.
> >>
> >>
> As pointed out earlier on this thread (and verified - there was some
> confusion on my part since I didn't fully clean before rebuilding), the
> library renaming itself doesn't cause any problems. The only actual
> problem is the lack of PTHREADS_DEBUG_SUPPORT.
> > That's interesting as when I pushed these changes I did test with a
> > uclibc target too. What DISTRO/MACHINE are you using?
> >
> I have a custom distro and machine, but broadly speaking it is
> minimal-uclibc and ep93xx...
OK, that's what I was wondering. Khem, do we think
PTHREADS_DEBUG_SUPPORT should get enabled globally? If so, then we
should go and audit all of the distro uClibc.distro files and get this
fixed for everybody. Thanks.
--
Tom Rini
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Supply uclibc-thread-db package expected by task-sdk-base
2009-04-16 17:11 ` Tom Rini
@ 2009-04-17 22:35 ` Khem Raj
0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2009-04-17 22:35 UTC (permalink / raw)
To: openembedded-devel; +Cc: openembedded-devel, David Huggins-Daines
On (16/04/09 10:11), Tom Rini wrote:
> On Thu, Apr 16, 2009 at 01:00:02PM -0400, David Huggins-Daines wrote:
> > Tom Rini wrote:
> > > On Tue, Apr 14, 2009 at 04:05:18PM -0400, David Huggins-Daines wrote:
> > >
> > >
> > >> Currently, building task-sdk-base (and by extension meta-toolchain) fails
> > >> for uclibc targets. This is because task-sdk-base depends on the thread
> > >> debugging library uclibc-thread-db, but this is not built by the uclibc
> > >> recipe unless PTHREADS_DEBUG_SUPPORT is enabled. In addition, once it is
> > >> built, if you are using Debian version numbers, it will be helpfully
> > >> renamed to "libthread-db1" and the build will still fail.
> > >>
> > >>
> > As pointed out earlier on this thread (and verified - there was some
> > confusion on my part since I didn't fully clean before rebuilding), the
> > library renaming itself doesn't cause any problems. The only actual
> > problem is the lack of PTHREADS_DEBUG_SUPPORT.
> > > That's interesting as when I pushed these changes I did test with a
> > > uclibc target too. What DISTRO/MACHINE are you using?
> > >
> > I have a custom distro and machine, but broadly speaking it is
> > minimal-uclibc and ep93xx...
>
> OK, that's what I was wondering. Khem, do we think
> PTHREADS_DEBUG_SUPPORT should get enabled globally? If so, then we
> should go and audit all of the distro uClibc.distro files and get this
> fixed for everybody. Thanks.
yes I think it is needed for debugging threads so we have to enable it.
right we need to put it in all config files. I will take a look.
>
> --
> Tom Rini
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-04-17 22:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14 20:05 [PATCH] Supply uclibc-thread-db package expected by task-sdk-base David Huggins-Daines
2009-04-14 20:11 ` Koen Kooi
2009-04-16 16:29 ` Tom Rini
2009-04-16 17:00 ` David Huggins-Daines
2009-04-16 17:11 ` Tom Rini
2009-04-17 22:35 ` Khem Raj
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.