All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] gcc: take out libiberty files from gcc packages
  2011-03-01 14:52 [PATCH 0/1] bugfix for bug#754 Nitin A Kamble
@ 2011-03-01 14:52 ` Nitin A Kamble
  2011-03-01 23:18   ` Khem Raj
  2011-03-03 19:13 ` [PATCH 0/1] bugfix for bug#754 Saul Wold
  1 sibling, 1 reply; 6+ messages in thread
From: Nitin A Kamble @ 2011-03-01 14:52 UTC (permalink / raw)
  To: poky

From: Nitin A Kamble <nitin.a.kamble@intel.com>

this Fixes [BUGID #754]

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
---
 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate.inc                 |    3 ++-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-package-cross.inc    |    4 ++++
 meta/recipes-devtools/gcc/gcc-package-target.inc   |    4 ++++
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 10 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
index b2c257d..38e0964 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
@@ -1,5 +1,5 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-initial.inc
 
-PR = "r2"
+PR = "r3"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
index 2e5283d..92c3ce2 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
@@ -35,7 +35,8 @@ do_install () {
 	rm -rf ${D}${datadir}/
 
 	# We use libiberty from binutils
-	rm -f ${D}${exec_prefix}/lib/lib/libiberty.a
+	find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
+	find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
 
 	# Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
 	# found. These need to be relative paths so they work in different locations.
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
index e65d5df..9a30cb5 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-cross-intermediate.inc
-PR = "r3"
+PR = "r4"
 
diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
index 399cdf9..78bb05a 100644
--- a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-cross4.inc
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
index 240caf5..fec53b9 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-crosssdk-initial.inc
 
-PR = "r2"
+PR = "r3"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
index a6653dd..161d870 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross-intermediate_${PV}.bb
 require gcc-crosssdk-intermediate.inc
 
-PR = "r2"
+PR = "r3"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
index 129e8d3..7069088 100644
--- a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
@@ -1,4 +1,4 @@
 require gcc-cross_${PV}.bb
 require gcc-crosssdk.inc
 
-PR = "r2"
+PR = "r3"
diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc b/meta/recipes-devtools/gcc/gcc-package-cross.inc
index 4f902fa..04c8101 100644
--- a/meta/recipes-devtools/gcc/gcc-package-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc
@@ -27,6 +27,10 @@ do_install () {
 		rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/$d
 	done
 
+	# We use libiberty from binutils
+	find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
+	find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
+
 	# gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
 	if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then
 		dest=${D}/${includedir}/gcc-build-internal-${MULTIMACH_TARGET_SYS}
diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc
index 3286da6..d61e96b 100644
--- a/meta/recipes-devtools/gcc/gcc-package-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-target.inc
@@ -86,6 +86,10 @@ do_install () {
 	# We don't care about the gcc-<version> ones for this
 	rm -f *gcc-?.?*
 
+	# We use libiberty from binutils
+	find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
+	find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
+
 	# Symlinks so we can use these trivially on the target
 	ln -sf ${TARGET_SYS}-g77 g77 || true
 	ln -sf ${TARGET_SYS}-gfortran gfortran || true
diff --git a/meta/recipes-devtools/gcc/gcc_4.5.1.bb b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
index 919d4b0..25e455c 100644
--- a/meta/recipes-devtools/gcc/gcc_4.5.1.bb
+++ b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 require gcc-${PV}.inc
 require gcc-configure-target.inc
 require gcc-package-target.inc
-- 
1.7.2.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 0/1] bugfix for bug#754
@ 2011-03-01 14:52 Nitin A Kamble
  2011-03-01 14:52 ` [PATCH 1/1] gcc: take out libiberty files from gcc packages Nitin A Kamble
  2011-03-03 19:13 ` [PATCH 0/1] bugfix for bug#754 Saul Wold
  0 siblings, 2 replies; 6+ messages in thread
From: Nitin A Kamble @ 2011-03-01 14:52 UTC (permalink / raw)
  To: poky

From: Nitin A Kamble <nitin.a.kamble@intel.com>

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: nitin/misc
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=nitin/misc

Thanks,
    Nitin A Kamble <nitin.a.kamble@intel.com>
---


Nitin A Kamble (1):
  gcc: take out libiberty files from gcc packages

 .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
 .../gcc/gcc-cross-intermediate.inc                 |    3 ++-
 .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
 .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
 .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
 meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
 meta/recipes-devtools/gcc/gcc-package-cross.inc    |    4 ++++
 meta/recipes-devtools/gcc/gcc-package-target.inc   |    4 ++++
 meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
 10 files changed, 17 insertions(+), 8 deletions(-)

-- 
1.7.2.2



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] gcc: take out libiberty files from gcc packages
  2011-03-01 14:52 ` [PATCH 1/1] gcc: take out libiberty files from gcc packages Nitin A Kamble
@ 2011-03-01 23:18   ` Khem Raj
  2011-03-01 23:40     ` Kamble, Nitin A
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2011-03-01 23:18 UTC (permalink / raw)
  To: Nitin A Kamble; +Cc: poky

On Tue, Mar 1, 2011 at 6:52 AM, Nitin A Kamble <nitin.a.kamble@intel.com> wrote:
> From: Nitin A Kamble <nitin.a.kamble@intel.com>
>
> this Fixes [BUGID #754]
>
> Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
> ---
>  .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
>  .../gcc/gcc-cross-intermediate.inc                 |    3 ++-
>  .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
>  meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
>  .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
>  .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
>  meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
>  meta/recipes-devtools/gcc/gcc-package-cross.inc    |    4 ++++
>  meta/recipes-devtools/gcc/gcc-package-target.inc   |    4 ++++
>  meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
>  10 files changed, 17 insertions(+), 8 deletions(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> index b2c257d..38e0964 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> @@ -1,5 +1,5 @@
>  require gcc-cross_${PV}.bb
>  require gcc-cross-initial.inc
>
> -PR = "r2"
> +PR = "r3"
>
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> index 2e5283d..92c3ce2 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> @@ -35,7 +35,8 @@ do_install () {
>        rm -rf ${D}${datadir}/
>
>        # We use libiberty from binutils
> -       rm -f ${D}${exec_prefix}/lib/lib/libiberty.a
> +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
> +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
>

why find ? Dont you have  paths known to these files. ?


>        # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
>        # found. These need to be relative paths so they work in different locations.
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> index e65d5df..9a30cb5 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> @@ -1,4 +1,4 @@
>  require gcc-cross_${PV}.bb
>  require gcc-cross-intermediate.inc
> -PR = "r3"
> +PR = "r4"
>
> diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> index 399cdf9..78bb05a 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> @@ -1,4 +1,4 @@
> -PR = "r2"
> +PR = "r3"
>
>  require gcc-${PV}.inc
>  require gcc-cross4.inc
> diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> index 240caf5..fec53b9 100644
> --- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> @@ -1,4 +1,4 @@
>  require gcc-cross-initial_${PV}.bb
>  require gcc-crosssdk-initial.inc
>
> -PR = "r2"
> +PR = "r3"
> diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
> index a6653dd..161d870 100644
> --- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
> @@ -1,4 +1,4 @@
>  require gcc-cross-intermediate_${PV}.bb
>  require gcc-crosssdk-intermediate.inc
>
> -PR = "r2"
> +PR = "r3"
> diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> index 129e8d3..7069088 100644
> --- a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> @@ -1,4 +1,4 @@
>  require gcc-cross_${PV}.bb
>  require gcc-crosssdk.inc
>
> -PR = "r2"
> +PR = "r3"
> diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc b/meta/recipes-devtools/gcc/gcc-package-cross.inc
> index 4f902fa..04c8101 100644
> --- a/meta/recipes-devtools/gcc/gcc-package-cross.inc
> +++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc
> @@ -27,6 +27,10 @@ do_install () {
>                rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/$d
>        done
>
> +       # We use libiberty from binutils
> +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
> +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
> +
>        # gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
>        if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then
>                dest=${D}/${includedir}/gcc-build-internal-${MULTIMACH_TARGET_SYS}
> diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc
> index 3286da6..d61e96b 100644
> --- a/meta/recipes-devtools/gcc/gcc-package-target.inc
> +++ b/meta/recipes-devtools/gcc/gcc-package-target.inc
> @@ -86,6 +86,10 @@ do_install () {
>        # We don't care about the gcc-<version> ones for this
>        rm -f *gcc-?.?*
>
> +       # We use libiberty from binutils
> +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
> +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
> +
>        # Symlinks so we can use these trivially on the target
>        ln -sf ${TARGET_SYS}-g77 g77 || true
>        ln -sf ${TARGET_SYS}-gfortran gfortran || true
> diff --git a/meta/recipes-devtools/gcc/gcc_4.5.1.bb b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
> index 919d4b0..25e455c 100644
> --- a/meta/recipes-devtools/gcc/gcc_4.5.1.bb
> +++ b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
> @@ -1,4 +1,4 @@
> -PR = "r2"
> +PR = "r3"
>  require gcc-${PV}.inc
>  require gcc-configure-target.inc
>  require gcc-package-target.inc
> --
> 1.7.2.2
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] gcc: take out libiberty files from gcc packages
  2011-03-01 23:18   ` Khem Raj
@ 2011-03-01 23:40     ` Kamble, Nitin A
  2011-03-01 23:47       ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Kamble, Nitin A @ 2011-03-01 23:40 UTC (permalink / raw)
  To: Khem Raj; +Cc: poky@yoctoproject.org



> -----Original Message-----
> From: Khem Raj [mailto:raj.khem@gmail.com]
> Sent: Tuesday, March 01, 2011 3:19 PM
> To: Kamble, Nitin A
> Cc: poky@yoctoproject.org
> Subject: Re: [poky] [PATCH 1/1] gcc: take out libiberty files from gcc
> packages
> 
> On Tue, Mar 1, 2011 at 6:52 AM, Nitin A Kamble
> <nitin.a.kamble@intel.com> wrote:
> > From: Nitin A Kamble <nitin.a.kamble@intel.com>
> >
> > this Fixes [BUGID #754]
> >
> > Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
> > ---
> >  .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
> >  .../gcc/gcc-cross-intermediate.inc                 |    3 ++-
> >  .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
> >  meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
> >  .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
> >  .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
> >  meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
> >  meta/recipes-devtools/gcc/gcc-package-cross.inc    |    4 ++++
> >  meta/recipes-devtools/gcc/gcc-package-target.inc   |    4 ++++
> >  meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
> >  10 files changed, 17 insertions(+), 8 deletions(-)
> >
> > diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> > index b2c257d..38e0964 100644
> > --- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> > +++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
> > @@ -1,5 +1,5 @@
> >  require gcc-cross_${PV}.bb
> >  require gcc-cross-initial.inc
> >
> > -PR = "r2"
> > +PR = "r3"
> >
> > diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> > index 2e5283d..92c3ce2 100644
> > --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> > +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
> > @@ -35,7 +35,8 @@ do_install () {
> >        rm -rf ${D}${datadir}/
> >
> >        # We use libiberty from binutils
> > -       rm -f ${D}${exec_prefix}/lib/lib/libiberty.a
> > +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
> > +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
> >
> 
> why find ? Dont you have  paths known to these files. ?


Khem,
 This is because I noticed paths variations like lib/lib/libiberty.a 
lib/lib64/libiberty.a on different machines/arches. And wanted to address 
them all in one shot.

Thanks,
Nitin

> 
> 
> >        # Insert symlinks into libexec so when tools without a prefix
> are searched for, the correct ones are
> >        # found. These need to be relative paths so they work in
> different locations.
> > diff --git a/meta/recipes-devtools/gcc/gcc-cross-
> intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-
> intermediate_4.5.1.bb
> > index e65d5df..9a30cb5 100644
> > --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> > +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
> > @@ -1,4 +1,4 @@
> >  require gcc-cross_${PV}.bb
> >  require gcc-cross-intermediate.inc
> > -PR = "r3"
> > +PR = "r4"
> >
> > diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> > index 399cdf9..78bb05a 100644
> > --- a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> > +++ b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
> > @@ -1,4 +1,4 @@
> > -PR = "r2"
> > +PR = "r3"
> >
> >  require gcc-${PV}.inc
> >  require gcc-cross4.inc
> > diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> > index 240caf5..fec53b9 100644
> > --- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> > +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
> > @@ -1,4 +1,4 @@
> >  require gcc-cross-initial_${PV}.bb
> >  require gcc-crosssdk-initial.inc
> >
> > -PR = "r2"
> > +PR = "r3"
> > diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-
> intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-
> intermediate_4.5.1.bb
> > index a6653dd..161d870 100644
> > --- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
> > +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
> > @@ -1,4 +1,4 @@
> >  require gcc-cross-intermediate_${PV}.bb
> >  require gcc-crosssdk-intermediate.inc
> >
> > -PR = "r2"
> > +PR = "r3"
> > diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> > index 129e8d3..7069088 100644
> > --- a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> > +++ b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
> > @@ -1,4 +1,4 @@
> >  require gcc-cross_${PV}.bb
> >  require gcc-crosssdk.inc
> >
> > -PR = "r2"
> > +PR = "r3"
> > diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc
> b/meta/recipes-devtools/gcc/gcc-package-cross.inc
> > index 4f902fa..04c8101 100644
> > --- a/meta/recipes-devtools/gcc/gcc-package-cross.inc
> > +++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc
> > @@ -27,6 +27,10 @@ do_install () {
> >                rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/$d
> >        done
> >
> > +       # We use libiberty from binutils
> > +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
> > +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
> > +
> >        # gcc-runtime installs libgcc into a special location in
> staging since it breaks doing a standalone build
> >        if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ];
> then
> >                dest=${D}/${includedir}/gcc-build-internal-
> ${MULTIMACH_TARGET_SYS}
> > diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc
> b/meta/recipes-devtools/gcc/gcc-package-target.inc
> > index 3286da6..d61e96b 100644
> > --- a/meta/recipes-devtools/gcc/gcc-package-target.inc
> > +++ b/meta/recipes-devtools/gcc/gcc-package-target.inc
> > @@ -86,6 +86,10 @@ do_install () {
> >        # We don't care about the gcc-<version> ones for this
> >        rm -f *gcc-?.?*
> >
> > +       # We use libiberty from binutils
> > +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
> > +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
> > +
> >        # Symlinks so we can use these trivially on the target
> >        ln -sf ${TARGET_SYS}-g77 g77 || true
> >        ln -sf ${TARGET_SYS}-gfortran gfortran || true
> > diff --git a/meta/recipes-devtools/gcc/gcc_4.5.1.bb b/meta/recipes-
> devtools/gcc/gcc_4.5.1.bb
> > index 919d4b0..25e455c 100644
> > --- a/meta/recipes-devtools/gcc/gcc_4.5.1.bb
> > +++ b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
> > @@ -1,4 +1,4 @@
> > -PR = "r2"
> > +PR = "r3"
> >  require gcc-${PV}.inc
> >  require gcc-configure-target.inc
> >  require gcc-package-target.inc
> > --
> > 1.7.2.2
> >
> > _______________________________________________
> > poky mailing list
> > poky@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/poky
> >

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] gcc: take out libiberty files from gcc packages
  2011-03-01 23:40     ` Kamble, Nitin A
@ 2011-03-01 23:47       ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2011-03-01 23:47 UTC (permalink / raw)
  To: Kamble, Nitin A; +Cc: poky@yoctoproject.org

On Tue, Mar 1, 2011 at 3:40 PM, Kamble, Nitin A
<nitin.a.kamble@intel.com> wrote:
>
>
>> -----Original Message-----
>> From: Khem Raj [mailto:raj.khem@gmail.com]
>> Sent: Tuesday, March 01, 2011 3:19 PM
>> To: Kamble, Nitin A
>> Cc: poky@yoctoproject.org
>> Subject: Re: [poky] [PATCH 1/1] gcc: take out libiberty files from gcc
>> packages
>>
>> On Tue, Mar 1, 2011 at 6:52 AM, Nitin A Kamble
>> <nitin.a.kamble@intel.com> wrote:
>> > From: Nitin A Kamble <nitin.a.kamble@intel.com>
>> >
>> > this Fixes [BUGID #754]
>> >
>> > Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
>> > ---
>> >  .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
>> >  .../gcc/gcc-cross-intermediate.inc                 |    3 ++-
>> >  .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
>> >  meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
>> >  .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
>> >  .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
>> >  meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
>> >  meta/recipes-devtools/gcc/gcc-package-cross.inc    |    4 ++++
>> >  meta/recipes-devtools/gcc/gcc-package-target.inc   |    4 ++++
>> >  meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
>> >  10 files changed, 17 insertions(+), 8 deletions(-)
>> >
>> > diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
>> b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
>> > index b2c257d..38e0964 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
>> > +++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
>> > @@ -1,5 +1,5 @@
>> >  require gcc-cross_${PV}.bb
>> >  require gcc-cross-initial.inc
>> >
>> > -PR = "r2"
>> > +PR = "r3"
>> >
>> > diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> > index 2e5283d..92c3ce2 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> > +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
>> > @@ -35,7 +35,8 @@ do_install () {
>> >        rm -rf ${D}${datadir}/
>> >
>> >        # We use libiberty from binutils
>> > -       rm -f ${D}${exec_prefix}/lib/lib/libiberty.a
>> > +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
>> > +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
>> >
>>
>> why find ? Dont you have  paths known to these files. ?
>
>
> Khem,
>  This is because I noticed paths variations like lib/lib/libiberty.a
> lib/lib64/libiberty.a on different machines/arches. And wanted to address
> them all in one shot.
>

IMO being specific is always better and it will have some performance
hit with find

> Thanks,
> Nitin
>
>>
>>
>> >        # Insert symlinks into libexec so when tools without a prefix
>> are searched for, the correct ones are
>> >        # found. These need to be relative paths so they work in
>> different locations.
>> > diff --git a/meta/recipes-devtools/gcc/gcc-cross-
>> intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-
>> intermediate_4.5.1.bb
>> > index e65d5df..9a30cb5 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
>> > +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
>> > @@ -1,4 +1,4 @@
>> >  require gcc-cross_${PV}.bb
>> >  require gcc-cross-intermediate.inc
>> > -PR = "r3"
>> > +PR = "r4"
>> >
>> > diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
>> b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
>> > index 399cdf9..78bb05a 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
>> > +++ b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
>> > @@ -1,4 +1,4 @@
>> > -PR = "r2"
>> > +PR = "r3"
>> >
>> >  require gcc-${PV}.inc
>> >  require gcc-cross4.inc
>> > diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
>> b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
>> > index 240caf5..fec53b9 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
>> > +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
>> > @@ -1,4 +1,4 @@
>> >  require gcc-cross-initial_${PV}.bb
>> >  require gcc-crosssdk-initial.inc
>> >
>> > -PR = "r2"
>> > +PR = "r3"
>> > diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-
>> intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-
>> intermediate_4.5.1.bb
>> > index a6653dd..161d870 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
>> > +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
>> > @@ -1,4 +1,4 @@
>> >  require gcc-cross-intermediate_${PV}.bb
>> >  require gcc-crosssdk-intermediate.inc
>> >
>> > -PR = "r2"
>> > +PR = "r3"
>> > diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
>> b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
>> > index 129e8d3..7069088 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
>> > +++ b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
>> > @@ -1,4 +1,4 @@
>> >  require gcc-cross_${PV}.bb
>> >  require gcc-crosssdk.inc
>> >
>> > -PR = "r2"
>> > +PR = "r3"
>> > diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc
>> b/meta/recipes-devtools/gcc/gcc-package-cross.inc
>> > index 4f902fa..04c8101 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-package-cross.inc
>> > +++ b/meta/recipes-devtools/gcc/gcc-package-cross.inc
>> > @@ -27,6 +27,10 @@ do_install () {
>> >                rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/$d
>> >        done
>> >
>> > +       # We use libiberty from binutils
>> > +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
>> > +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
>> > +
>> >        # gcc-runtime installs libgcc into a special location in
>> staging since it breaks doing a standalone build
>> >        if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ];
>> then
>> >                dest=${D}/${includedir}/gcc-build-internal-
>> ${MULTIMACH_TARGET_SYS}
>> > diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc
>> b/meta/recipes-devtools/gcc/gcc-package-target.inc
>> > index 3286da6..d61e96b 100644
>> > --- a/meta/recipes-devtools/gcc/gcc-package-target.inc
>> > +++ b/meta/recipes-devtools/gcc/gcc-package-target.inc
>> > @@ -86,6 +86,10 @@ do_install () {
>> >        # We don't care about the gcc-<version> ones for this
>> >        rm -f *gcc-?.?*
>> >
>> > +       # We use libiberty from binutils
>> > +       find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
>> > +       find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
>> > +
>> >        # Symlinks so we can use these trivially on the target
>> >        ln -sf ${TARGET_SYS}-g77 g77 || true
>> >        ln -sf ${TARGET_SYS}-gfortran gfortran || true
>> > diff --git a/meta/recipes-devtools/gcc/gcc_4.5.1.bb b/meta/recipes-
>> devtools/gcc/gcc_4.5.1.bb
>> > index 919d4b0..25e455c 100644
>> > --- a/meta/recipes-devtools/gcc/gcc_4.5.1.bb
>> > +++ b/meta/recipes-devtools/gcc/gcc_4.5.1.bb
>> > @@ -1,4 +1,4 @@
>> > -PR = "r2"
>> > +PR = "r3"
>> >  require gcc-${PV}.inc
>> >  require gcc-configure-target.inc
>> >  require gcc-package-target.inc
>> > --
>> > 1.7.2.2
>> >
>> > _______________________________________________
>> > poky mailing list
>> > poky@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/poky
>> >
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/1] bugfix for bug#754
  2011-03-01 14:52 [PATCH 0/1] bugfix for bug#754 Nitin A Kamble
  2011-03-01 14:52 ` [PATCH 1/1] gcc: take out libiberty files from gcc packages Nitin A Kamble
@ 2011-03-03 19:13 ` Saul Wold
  1 sibling, 0 replies; 6+ messages in thread
From: Saul Wold @ 2011-03-03 19:13 UTC (permalink / raw)
  To: poky

On 03/01/2011 06:52 AM, Nitin A Kamble wrote:
> From: Nitin A Kamble<nitin.a.kamble@intel.com>
>
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>    Branch: nitin/misc
>    Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=nitin/misc
>
> Thanks,
>      Nitin A Kamble<nitin.a.kamble@intel.com>
> ---
>
>
> Nitin A Kamble (1):
>    gcc: take out libiberty files from gcc packages
>
>   .../gcc/gcc-cross-initial_4.5.1.bb                 |    2 +-
>   .../gcc/gcc-cross-intermediate.inc                 |    3 ++-
>   .../gcc/gcc-cross-intermediate_4.5.1.bb            |    2 +-
>   meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb       |    2 +-
>   .../gcc/gcc-crosssdk-initial_4.5.1.bb              |    2 +-
>   .../gcc/gcc-crosssdk-intermediate_4.5.1.bb         |    2 +-
>   meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb    |    2 +-
>   meta/recipes-devtools/gcc/gcc-package-cross.inc    |    4 ++++
>   meta/recipes-devtools/gcc/gcc-package-target.inc   |    4 ++++
>   meta/recipes-devtools/gcc/gcc_4.5.1.bb             |    2 +-
>   10 files changed, 17 insertions(+), 8 deletions(-)
>
Merged into Bernard, OE-Core and Master

Thanks
	Sau!


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-03 19:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 14:52 [PATCH 0/1] bugfix for bug#754 Nitin A Kamble
2011-03-01 14:52 ` [PATCH 1/1] gcc: take out libiberty files from gcc packages Nitin A Kamble
2011-03-01 23:18   ` Khem Raj
2011-03-01 23:40     ` Kamble, Nitin A
2011-03-01 23:47       ` Khem Raj
2011-03-03 19:13 ` [PATCH 0/1] bugfix for bug#754 Saul Wold

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.