All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library
@ 2014-08-28 12:21 Gregory CLEMENT
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency Gregory CLEMENT
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Gregory CLEMENT @ 2014-08-28 12:21 UTC (permalink / raw)
  To: buildroot

Hi,

The libelf is currently provided by 2 packages libelf and
elfutils. The first package provides an old version of the libelf
which is no more compatible with a recent version of ltrace. Having
both libraries could lead to the link on the wrong one during the
build. It is what happened for ltrace.

To avoid this kind of issue, this patch set switch the dependency from
libelf to elfutils and finally removed the libelf package.

I built and fully tested ltrace on ARM.
I built and just ran avrdude on ARM.
I didn't build kexec-lite.

Thanks,

Changelog:
v1 -> v2:
- Propagated the dependencies from elfutils for kexec-lite and avrdude
- Fixed the subject of the avrdude patch
- Use the -D flag to generate the patch: only the mention of the
  deleted files is kept. This allows to have a very light patch but
  one will be able to apply the patch only by using git.

v2 -> v3:
- moved the config option of the libelf package to Config.in.legacy

Gregory CLEMENT (4):
  ltrace: Removes the libelf dependency
  avrdude: Depend on elfutils instead of libelf to get the libelf
    library
  kexec-lite: Depends on elfutils instead of libelf to get the libelf
    library
  libelf: Removes the package

 Config.in.legacy                                |     9 +
 package/Config.in                               |     1 -
 package/avrdude/Config.in                       |     6 +-
 package/avrdude/avrdude.mk                      |     2 +-
 package/kexec-lite/Config.in                    |     4 +-
 package/kexec-lite/kexec-lite.mk                |     2 +-
 package/libelf/Config.in                        |     7 -
 package/libelf/libelf-0.8.10-Elf64-fixups.patch | 12361 ----------------------
 package/libelf/libelf.mk                        |    23 -
 package/ltrace/Config.in                        |     1 -
 package/ltrace/ltrace.mk                        |     2 +-
 11 files changed, 20 insertions(+), 12398 deletions(-)
 delete mode 100644 package/libelf/Config.in
 delete mode 100644 package/libelf/libelf-0.8.10-Elf64-fixups.patch
 delete mode 100644 package/libelf/libelf.mk

-- 
1.9.1

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

* [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency
  2014-08-28 12:21 [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Gregory CLEMENT
@ 2014-08-28 12:21 ` Gregory CLEMENT
  2014-09-10 20:14   ` Yann E. MORIN
  2014-09-13 21:58   ` Peter Korsgaard
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 2/4] avrdude: Depend on elfutils instead of libelf to get the libelf library Gregory CLEMENT
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 14+ messages in thread
From: Gregory CLEMENT @ 2014-08-28 12:21 UTC (permalink / raw)
  To: buildroot

The libelf is currently provided by 2 packages libelf and
elfutils. The first package provides an old version of the libelf
which is no more compatible with a recent version of ltrace. This
patch removes the dependency on the libelf package and only keep the
elfuils package which provides the accurate version of libelf for
ltrace.

It will also allow to remove the libelf package and to avoid conflicts
with two packages providing the same library.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 package/ltrace/Config.in | 1 -
 package/ltrace/ltrace.mk | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/ltrace/Config.in b/package/ltrace/Config.in
index 8cabfa2..dc759d8 100644
--- a/package/ltrace/Config.in
+++ b/package/ltrace/Config.in
@@ -6,7 +6,6 @@ config BR2_PACKAGE_LTRACE
 	# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756764.
 	depends on (BR2_i386 || BR2_arm \
 		|| BR2_powerpc || BR2_sparc || BR2_x86_64)
-	select BR2_PACKAGE_LIBELF
 	select BR2_PACKAGE_ELFUTILS
 	depends on BR2_LARGEFILE # elfutils
 	depends on BR2_USE_WCHAR # elfutils
diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk
index 0a3a90c..48bf7bd 100644
--- a/package/ltrace/ltrace.mk
+++ b/package/ltrace/ltrace.mk
@@ -6,7 +6,7 @@
 
 LTRACE_VERSION = 0896ce554f80afdcba81d9754f6104f863dea803
 LTRACE_SITE = git://anonscm.debian.org/collab-maint/ltrace.git
-LTRACE_DEPENDENCIES = libelf elfutils
+LTRACE_DEPENDENCIES = elfutils
 LTRACE_CONF_OPT = --disable-werror
 LTRACE_LICENSE = GPLv2
 LTRACE_LICENSE_FILES = COPYING
-- 
1.9.1

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

* [Buildroot] [PATCH V3 2/4] avrdude: Depend on elfutils instead of libelf to get the libelf library
  2014-08-28 12:21 [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Gregory CLEMENT
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency Gregory CLEMENT
@ 2014-08-28 12:21 ` Gregory CLEMENT
  2014-09-10 20:18   ` Yann E. MORIN
  2014-09-13 22:01   ` Peter Korsgaard
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 3/4] kexec-lite: Depends " Gregory CLEMENT
                   ` (2 subsequent siblings)
  4 siblings, 2 replies; 14+ messages in thread
From: Gregory CLEMENT @ 2014-08-28 12:21 UTC (permalink / raw)
  To: buildroot

The elfutils package provides a more recent version of the libelf, so
let's use it. It will allow to remove the libelf package and to avoid
conflicts with two packages providing the same library.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 package/avrdude/Config.in  | 6 +++++-
 package/avrdude/avrdude.mk | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/avrdude/Config.in b/package/avrdude/Config.in
index 8eac014..9a9b3fb 100644
--- a/package/avrdude/Config.in
+++ b/package/avrdude/Config.in
@@ -1,10 +1,14 @@
 config BR2_PACKAGE_AVRDUDE
 	bool "avrdude"
-	select BR2_PACKAGE_LIBELF
+	select BR2_PACKAGE_ELFUTILS
 	select BR2_PACKAGE_LIBUSB
 	select BR2_PACKAGE_LIBUSB_COMPAT
 	select BR2_PACKAGE_NCURSES
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_LARGEFILE # elfutils
+	depends on BR2_USE_WCHAR # elfutils
+	depends on !BR2_avr32 # elfutils
+	depends on !BR2_bfin # elfutils
 	help
 	  avrdude is a programmer for Atmel AVR microcontrollers
 	  this package provides a version with new linuxspi driver
diff --git a/package/avrdude/avrdude.mk b/package/avrdude/avrdude.mk
index 7876c1d..03d6490 100644
--- a/package/avrdude/avrdude.mk
+++ b/package/avrdude/avrdude.mk
@@ -12,7 +12,7 @@ AVRDUDE_SUBDIR = avrdude
 # Sources coming from git, without generated configure and Makefile.in
 # files.
 AVRDUDE_AUTORECONF = YES
-AVRDUDE_DEPENDENCIES = libelf libusb libusb-compat ncurses \
+AVRDUDE_DEPENDENCIES = elfutils libusb libusb-compat ncurses \
 	host-flex host-bison
 AVRDUDE_LICENSE = GPLv2+
 AVRDUDE_LICENSE_FILES = avrdude/COPYING
-- 
1.9.1

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

* [Buildroot] [PATCH V3 3/4] kexec-lite: Depends on elfutils instead of libelf to get the libelf library
  2014-08-28 12:21 [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Gregory CLEMENT
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency Gregory CLEMENT
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 2/4] avrdude: Depend on elfutils instead of libelf to get the libelf library Gregory CLEMENT
@ 2014-08-28 12:21 ` Gregory CLEMENT
  2014-09-10 22:12   ` Yann E. MORIN
  2014-09-13 22:08   ` Peter Korsgaard
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 4/4] libelf: Removes the package Gregory CLEMENT
  2014-08-28 14:14 ` [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Thomas Petazzoni
  4 siblings, 2 replies; 14+ messages in thread
From: Gregory CLEMENT @ 2014-08-28 12:21 UTC (permalink / raw)
  To: buildroot

The elfutils package provides a more recent version of the libelf, so
let's use it. It will allow to remove the libelf package and to avoid
conflicts with two packages providing the same library.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 package/kexec-lite/Config.in     | 4 +++-
 package/kexec-lite/kexec-lite.mk | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/kexec-lite/Config.in b/package/kexec-lite/Config.in
index 944ee29..dd9713e 100644
--- a/package/kexec-lite/Config.in
+++ b/package/kexec-lite/Config.in
@@ -2,7 +2,9 @@ config BR2_PACKAGE_KEXEC_LITE
 	bool "kexec-lite"
 	depends on BR2_powerpc || BR2_powerpc64
 	depends on !BR2_PREFER_STATIC_LIB # dtc
-	select BR2_PACKAGE_LIBELF
+	depends on BR2_LARGEFILE # elfutils
+	depends on BR2_USE_WCHAR # elfutils
+	select BR2_PACKAGE_ELFUTILS
 	select BR2_PACKAGE_DTC
 	select BR2_PACKAGE_DTC_PROGRAMS
 	help
diff --git a/package/kexec-lite/kexec-lite.mk b/package/kexec-lite/kexec-lite.mk
index 7028c6e..7e3c8d3 100644
--- a/package/kexec-lite/kexec-lite.mk
+++ b/package/kexec-lite/kexec-lite.mk
@@ -7,7 +7,7 @@
 KEXEC_LITE_VERSION = fb8543fea3beb0522b5a63a74ea1a845dbd7b954
 KEXEC_LITE_SITE = $(call github,antonblanchard,kexec-lite,$(KEXEC_LITE_VERSION))
 KEXEC_LITE_LICENSE = GPLv2+
-KEXEC_LITE_DEPENDENCIES = libelf dtc
+KEXEC_LITE_DEPENDENCIES = elfutils dtc
 
 define KEXEC_LITE_BUILD_CMDS
 	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
-- 
1.9.1

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

* [Buildroot] [PATCH V3 4/4] libelf: Removes the package
  2014-08-28 12:21 [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Gregory CLEMENT
                   ` (2 preceding siblings ...)
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 3/4] kexec-lite: Depends " Gregory CLEMENT
@ 2014-08-28 12:21 ` Gregory CLEMENT
  2014-09-13 21:01   ` Yann E. MORIN
  2014-09-13 22:09   ` Peter Korsgaard
  2014-08-28 14:14 ` [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Thomas Petazzoni
  4 siblings, 2 replies; 14+ messages in thread
From: Gregory CLEMENT @ 2014-08-28 12:21 UTC (permalink / raw)
  To: buildroot

The elfutils package provides a more recent version of the
libelf. Some packages such as ltrace need this more recent
version. Having two packages providing the same library leads to some
conflicts or dependency problems. For instance at the end we had only
one libelf.a when the 2 packages were selected.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 Config.in.legacy                                |     9 +
 package/Config.in                               |     1 -
 package/libelf/Config.in                        |     7 -
 package/libelf/libelf-0.8.10-Elf64-fixups.patch | 12361 ----------------------
 package/libelf/libelf.mk                        |    23 -
 5 files changed, 9 insertions(+), 12392 deletions(-)
 delete mode 100644 package/libelf/Config.in
 delete mode 100644 package/libelf/libelf-0.8.10-Elf64-fixups.patch
 delete mode 100644 package/libelf/libelf.mk

diff --git a/Config.in.legacy b/Config.in.legacy
index 23962a2..5b1460c 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -101,6 +101,15 @@ endif
 ###############################################################################
 comment "Legacy options removed in 2014.08"
 
+config BR2_PACKAGE_LIBELF
+	bool "libelf has been removed"
+	select BR2_PACKAGE_ELFUTILS
+	select BR2_LEGACY
+	help
+	  The libelf package provided an old version of the libelf library
+	  and is deprecated. The libelf library is now provided by the
+	  elfutils package.
+
 config BR2_KERNEL_HEADERS_3_8
 	bool "kernel headers version 3.8.x are no longer supported"
 	select BR2_KERNEL_HEADERS_3_9
diff --git a/package/Config.in b/package/Config.in
index 0e10cdf..da528ad 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -841,7 +841,6 @@ menu "Other"
 	source "package/libcofi/Config.in"
 	source "package/libdaemon/Config.in"
 	source "package/libee/Config.in"
-	source "package/libelf/Config.in"
 	source "package/libev/Config.in"
 	source "package/libevdev/Config.in"
 	source "package/libevent/Config.in"
diff --git a/package/libelf/Config.in b/package/libelf/Config.in
deleted file mode 100644
index 600ef68..0000000
diff --git a/package/libelf/libelf-0.8.10-Elf64-fixups.patch b/package/libelf/libelf-0.8.10-Elf64-fixups.patch
deleted file mode 100644
index 86a064a..0000000
diff --git a/package/libelf/libelf.mk b/package/libelf/libelf.mk
deleted file mode 100644
index 0c37697..0000000
-- 
1.9.1

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

* [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library
  2014-08-28 12:21 [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Gregory CLEMENT
                   ` (3 preceding siblings ...)
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 4/4] libelf: Removes the package Gregory CLEMENT
@ 2014-08-28 14:14 ` Thomas Petazzoni
  4 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2014-08-28 14:14 UTC (permalink / raw)
  To: buildroot

Jeremy, Wojciech,

As the original authors of the kexec-lite and avrdude packages
respectively, would you mind checking if the below patch series, which
removes the libelf package in favour of the libelf bundled with
elfutils does not break avrdude and kexec-lite ?

Thanks!

Thomas

On Thu, 28 Aug 2014 14:21:30 +0200, Gregory CLEMENT wrote:
> Hi,
> 
> The libelf is currently provided by 2 packages libelf and
> elfutils. The first package provides an old version of the libelf
> which is no more compatible with a recent version of ltrace. Having
> both libraries could lead to the link on the wrong one during the
> build. It is what happened for ltrace.
> 
> To avoid this kind of issue, this patch set switch the dependency from
> libelf to elfutils and finally removed the libelf package.
> 
> I built and fully tested ltrace on ARM.
> I built and just ran avrdude on ARM.
> I didn't build kexec-lite.
> 
> Thanks,
> 
> Changelog:
> v1 -> v2:
> - Propagated the dependencies from elfutils for kexec-lite and avrdude
> - Fixed the subject of the avrdude patch
> - Use the -D flag to generate the patch: only the mention of the
>   deleted files is kept. This allows to have a very light patch but
>   one will be able to apply the patch only by using git.
> 
> v2 -> v3:
> - moved the config option of the libelf package to Config.in.legacy
> 
> Gregory CLEMENT (4):
>   ltrace: Removes the libelf dependency
>   avrdude: Depend on elfutils instead of libelf to get the libelf
>     library
>   kexec-lite: Depends on elfutils instead of libelf to get the libelf
>     library
>   libelf: Removes the package
> 
>  Config.in.legacy                                |     9 +
>  package/Config.in                               |     1 -
>  package/avrdude/Config.in                       |     6 +-
>  package/avrdude/avrdude.mk                      |     2 +-
>  package/kexec-lite/Config.in                    |     4 +-
>  package/kexec-lite/kexec-lite.mk                |     2 +-
>  package/libelf/Config.in                        |     7 -
>  package/libelf/libelf-0.8.10-Elf64-fixups.patch | 12361 ----------------------
>  package/libelf/libelf.mk                        |    23 -
>  package/ltrace/Config.in                        |     1 -
>  package/ltrace/ltrace.mk                        |     2 +-
>  11 files changed, 20 insertions(+), 12398 deletions(-)
>  delete mode 100644 package/libelf/Config.in
>  delete mode 100644 package/libelf/libelf-0.8.10-Elf64-fixups.patch
>  delete mode 100644 package/libelf/libelf.mk
> 



-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency Gregory CLEMENT
@ 2014-09-10 20:14   ` Yann E. MORIN
  2014-09-13 21:58   ` Peter Korsgaard
  1 sibling, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2014-09-10 20:14 UTC (permalink / raw)
  To: buildroot

Gregory, All,

On 2014-08-28 14:21 +0200, Gregory CLEMENT spake thusly:
> The libelf is currently provided by 2 packages libelf and
> elfutils. The first package provides an old version of the libelf
> which is no more compatible with a recent version of ltrace. This
> patch removes the dependency on the libelf package and only keep the
> elfuils package which provides the accurate version of libelf for
> ltrace.
> 
> It will also allow to remove the libelf package and to avoid conflicts
> with two packages providing the same library.
> 
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/ltrace/Config.in | 1 -
>  package/ltrace/ltrace.mk | 2 +-
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/package/ltrace/Config.in b/package/ltrace/Config.in
> index 8cabfa2..dc759d8 100644
> --- a/package/ltrace/Config.in
> +++ b/package/ltrace/Config.in
> @@ -6,7 +6,6 @@ config BR2_PACKAGE_LTRACE
>  	# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756764.
>  	depends on (BR2_i386 || BR2_arm \
>  		|| BR2_powerpc || BR2_sparc || BR2_x86_64)
> -	select BR2_PACKAGE_LIBELF
>  	select BR2_PACKAGE_ELFUTILS
>  	depends on BR2_LARGEFILE # elfutils
>  	depends on BR2_USE_WCHAR # elfutils
> diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk
> index 0a3a90c..48bf7bd 100644
> --- a/package/ltrace/ltrace.mk
> +++ b/package/ltrace/ltrace.mk
> @@ -6,7 +6,7 @@
>  
>  LTRACE_VERSION = 0896ce554f80afdcba81d9754f6104f863dea803
>  LTRACE_SITE = git://anonscm.debian.org/collab-maint/ltrace.git
> -LTRACE_DEPENDENCIES = libelf elfutils
> +LTRACE_DEPENDENCIES = elfutils
>  LTRACE_CONF_OPT = --disable-werror
>  LTRACE_LICENSE = GPLv2
>  LTRACE_LICENSE_FILES = COPYING
> -- 
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH V3 2/4] avrdude: Depend on elfutils instead of libelf to get the libelf library
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 2/4] avrdude: Depend on elfutils instead of libelf to get the libelf library Gregory CLEMENT
@ 2014-09-10 20:18   ` Yann E. MORIN
  2014-09-13 22:01   ` Peter Korsgaard
  1 sibling, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2014-09-10 20:18 UTC (permalink / raw)
  To: buildroot

Gregory, All,

On 2014-08-28 14:21 +0200, Gregory CLEMENT spake thusly:
> The elfutils package provides a more recent version of the libelf, so
> let's use it. It will allow to remove the libelf package and to avoid
> conflicts with two packages providing the same library.
> 
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/avrdude/Config.in  | 6 +++++-
>  package/avrdude/avrdude.mk | 2 +-
>  2 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/package/avrdude/Config.in b/package/avrdude/Config.in
> index 8eac014..9a9b3fb 100644
> --- a/package/avrdude/Config.in
> +++ b/package/avrdude/Config.in
> @@ -1,10 +1,14 @@
>  config BR2_PACKAGE_AVRDUDE
>  	bool "avrdude"
> -	select BR2_PACKAGE_LIBELF
> +	select BR2_PACKAGE_ELFUTILS
>  	select BR2_PACKAGE_LIBUSB
>  	select BR2_PACKAGE_LIBUSB_COMPAT
>  	select BR2_PACKAGE_NCURSES
>  	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_LARGEFILE # elfutils
> +	depends on BR2_USE_WCHAR # elfutils
> +	depends on !BR2_avr32 # elfutils

At first, I was very surprised that an AVR-related package would be
unavaivlable for avr32. But that's not incoherent, in fact: this can be
used on the target to program an AVR (not avr32!) device.

That it does not work on avr32 is a pity, though... :-(

Anyway, acked.

Regards,
Yann E. MORIN.

> +	depends on !BR2_bfin # elfutils
>  	help
>  	  avrdude is a programmer for Atmel AVR microcontrollers
>  	  this package provides a version with new linuxspi driver
> diff --git a/package/avrdude/avrdude.mk b/package/avrdude/avrdude.mk
> index 7876c1d..03d6490 100644
> --- a/package/avrdude/avrdude.mk
> +++ b/package/avrdude/avrdude.mk
> @@ -12,7 +12,7 @@ AVRDUDE_SUBDIR = avrdude
>  # Sources coming from git, without generated configure and Makefile.in
>  # files.
>  AVRDUDE_AUTORECONF = YES
> -AVRDUDE_DEPENDENCIES = libelf libusb libusb-compat ncurses \
> +AVRDUDE_DEPENDENCIES = elfutils libusb libusb-compat ncurses \
>  	host-flex host-bison
>  AVRDUDE_LICENSE = GPLv2+
>  AVRDUDE_LICENSE_FILES = avrdude/COPYING
> -- 
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH V3 3/4] kexec-lite: Depends on elfutils instead of libelf to get the libelf library
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 3/4] kexec-lite: Depends " Gregory CLEMENT
@ 2014-09-10 22:12   ` Yann E. MORIN
  2014-09-13 22:08   ` Peter Korsgaard
  1 sibling, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2014-09-10 22:12 UTC (permalink / raw)
  To: buildroot

Gregory, All,

On 2014-08-28 14:21 +0200, Gregory CLEMENT spake thusly:
> The elfutils package provides a more recent version of the libelf, so
> let's use it. It will allow to remove the libelf package and to avoid
> conflicts with two packages providing the same library.
> 
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/kexec-lite/Config.in     | 4 +++-
>  package/kexec-lite/kexec-lite.mk | 2 +-
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/package/kexec-lite/Config.in b/package/kexec-lite/Config.in
> index 944ee29..dd9713e 100644
> --- a/package/kexec-lite/Config.in
> +++ b/package/kexec-lite/Config.in
> @@ -2,7 +2,9 @@ config BR2_PACKAGE_KEXEC_LITE
>  	bool "kexec-lite"
>  	depends on BR2_powerpc || BR2_powerpc64
>  	depends on !BR2_PREFER_STATIC_LIB # dtc
> -	select BR2_PACKAGE_LIBELF
> +	depends on BR2_LARGEFILE # elfutils
> +	depends on BR2_USE_WCHAR # elfutils
> +	select BR2_PACKAGE_ELFUTILS
>  	select BR2_PACKAGE_DTC
>  	select BR2_PACKAGE_DTC_PROGRAMS
>  	help
> diff --git a/package/kexec-lite/kexec-lite.mk b/package/kexec-lite/kexec-lite.mk
> index 7028c6e..7e3c8d3 100644
> --- a/package/kexec-lite/kexec-lite.mk
> +++ b/package/kexec-lite/kexec-lite.mk
> @@ -7,7 +7,7 @@
>  KEXEC_LITE_VERSION = fb8543fea3beb0522b5a63a74ea1a845dbd7b954
>  KEXEC_LITE_SITE = $(call github,antonblanchard,kexec-lite,$(KEXEC_LITE_VERSION))
>  KEXEC_LITE_LICENSE = GPLv2+
> -KEXEC_LITE_DEPENDENCIES = libelf dtc
> +KEXEC_LITE_DEPENDENCIES = elfutils dtc
>  
>  define KEXEC_LITE_BUILD_CMDS
>  	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
> -- 
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH V3 4/4] libelf: Removes the package
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 4/4] libelf: Removes the package Gregory CLEMENT
@ 2014-09-13 21:01   ` Yann E. MORIN
  2014-09-13 22:09   ` Peter Korsgaard
  1 sibling, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2014-09-13 21:01 UTC (permalink / raw)
  To: buildroot

Gregory, All,

On 2014-08-28 14:21 +0200, Gregory CLEMENT spake thusly:
> The elfutils package provides a more recent version of the
> libelf. Some packages such as ltrace need this more recent
> version. Having two packages providing the same library leads to some
> conflicts or dependency problems. For instance at the end we had only
> one libelf.a when the 2 packages were selected.
> 
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Sorry for the delay for that last review...

Regards,
Yann E. MORIN.

> ---
>  Config.in.legacy                                |     9 +
>  package/Config.in                               |     1 -
>  package/libelf/Config.in                        |     7 -
>  package/libelf/libelf-0.8.10-Elf64-fixups.patch | 12361 ----------------------
>  package/libelf/libelf.mk                        |    23 -
>  5 files changed, 9 insertions(+), 12392 deletions(-)
>  delete mode 100644 package/libelf/Config.in
>  delete mode 100644 package/libelf/libelf-0.8.10-Elf64-fixups.patch
>  delete mode 100644 package/libelf/libelf.mk
> 
> diff --git a/Config.in.legacy b/Config.in.legacy
> index 23962a2..5b1460c 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -101,6 +101,15 @@ endif
>  ###############################################################################
>  comment "Legacy options removed in 2014.08"
>  
> +config BR2_PACKAGE_LIBELF
> +	bool "libelf has been removed"
> +	select BR2_PACKAGE_ELFUTILS
> +	select BR2_LEGACY
> +	help
> +	  The libelf package provided an old version of the libelf library
> +	  and is deprecated. The libelf library is now provided by the
> +	  elfutils package.
> +
>  config BR2_KERNEL_HEADERS_3_8
>  	bool "kernel headers version 3.8.x are no longer supported"
>  	select BR2_KERNEL_HEADERS_3_9
> diff --git a/package/Config.in b/package/Config.in
> index 0e10cdf..da528ad 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -841,7 +841,6 @@ menu "Other"
>  	source "package/libcofi/Config.in"
>  	source "package/libdaemon/Config.in"
>  	source "package/libee/Config.in"
> -	source "package/libelf/Config.in"
>  	source "package/libev/Config.in"
>  	source "package/libevdev/Config.in"
>  	source "package/libevent/Config.in"
> diff --git a/package/libelf/Config.in b/package/libelf/Config.in
> deleted file mode 100644
> index 600ef68..0000000
> diff --git a/package/libelf/libelf-0.8.10-Elf64-fixups.patch b/package/libelf/libelf-0.8.10-Elf64-fixups.patch
> deleted file mode 100644
> index 86a064a..0000000
> diff --git a/package/libelf/libelf.mk b/package/libelf/libelf.mk
> deleted file mode 100644
> index 0c37697..0000000
> -- 
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency Gregory CLEMENT
  2014-09-10 20:14   ` Yann E. MORIN
@ 2014-09-13 21:58   ` Peter Korsgaard
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2014-09-13 21:58 UTC (permalink / raw)
  To: buildroot

>>>>> "Gregory" == Gregory CLEMENT <gregory.clement@free-electrons.com> writes:

 > The libelf is currently provided by 2 packages libelf and
 > elfutils. The first package provides an old version of the libelf
 > which is no more compatible with a recent version of ltrace. This
 > patch removes the dependency on the libelf package and only keep the
 > elfuils package which provides the accurate version of libelf for
 > ltrace.

 > It will also allow to remove the libelf package and to avoid conflicts
 > with two packages providing the same library.

 > Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH V3 2/4] avrdude: Depend on elfutils instead of libelf to get the libelf library
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 2/4] avrdude: Depend on elfutils instead of libelf to get the libelf library Gregory CLEMENT
  2014-09-10 20:18   ` Yann E. MORIN
@ 2014-09-13 22:01   ` Peter Korsgaard
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2014-09-13 22:01 UTC (permalink / raw)
  To: buildroot

>>>>> "Gregory" == Gregory CLEMENT <gregory.clement@free-electrons.com> writes:

 > The elfutils package provides a more recent version of the libelf, so
 > let's use it. It will allow to remove the libelf package and to avoid
 > conflicts with two packages providing the same library.

 > Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
 > ---
 >  package/avrdude/Config.in  | 6 +++++-
 >  package/avrdude/avrdude.mk | 2 +-
 >  2 files changed, 6 insertions(+), 2 deletions(-)

 > diff --git a/package/avrdude/Config.in b/package/avrdude/Config.in
 > index 8eac014..9a9b3fb 100644
 > --- a/package/avrdude/Config.in
 > +++ b/package/avrdude/Config.in
 > @@ -1,10 +1,14 @@
 >  config BR2_PACKAGE_AVRDUDE
 >  	bool "avrdude"
 > -	select BR2_PACKAGE_LIBELF
 > +	select BR2_PACKAGE_ELFUTILS
 >  	select BR2_PACKAGE_LIBUSB
 >  	select BR2_PACKAGE_LIBUSB_COMPAT
 >  	select BR2_PACKAGE_NCURSES
 >  	depends on BR2_TOOLCHAIN_HAS_THREADS
 > +	depends on BR2_LARGEFILE # elfutils
 > +	depends on BR2_USE_WCHAR # elfutils
 > +	depends on !BR2_avr32 # elfutils
 > +	depends on !BR2_bfin # elfutils
 >  	help
 >  	  avrdude is a programmer for Atmel AVR microcontrollers
 >  	  this package provides a version with new linuxspi driver

You forgot to update the toolchain options comment below.

Committed with that fixed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH V3 3/4] kexec-lite: Depends on elfutils instead of libelf to get the libelf library
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 3/4] kexec-lite: Depends " Gregory CLEMENT
  2014-09-10 22:12   ` Yann E. MORIN
@ 2014-09-13 22:08   ` Peter Korsgaard
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2014-09-13 22:08 UTC (permalink / raw)
  To: buildroot

>>>>> "Gregory" == Gregory CLEMENT <gregory.clement@free-electrons.com> writes:

 > The elfutils package provides a more recent version of the libelf, so
 > let's use it. It will allow to remove the libelf package and to avoid
 > conflicts with two packages providing the same library.

 > Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
 > ---
 >  package/kexec-lite/Config.in     | 4 +++-
 >  package/kexec-lite/kexec-lite.mk | 2 +-
 >  2 files changed, 4 insertions(+), 2 deletions(-)

 > diff --git a/package/kexec-lite/Config.in b/package/kexec-lite/Config.in
 > index 944ee29..dd9713e 100644
 > --- a/package/kexec-lite/Config.in
 > +++ b/package/kexec-lite/Config.in
 > @@ -2,7 +2,9 @@ config BR2_PACKAGE_KEXEC_LITE
 >  	bool "kexec-lite"
 >  	depends on BR2_powerpc || BR2_powerpc64
 >  	depends on !BR2_PREFER_STATIC_LIB # dtc
 > -	select BR2_PACKAGE_LIBELF
 > +	depends on BR2_LARGEFILE # elfutils
 > +	depends on BR2_USE_WCHAR # elfutils
 > +	select BR2_PACKAGE_ELFUTILS
 >  	select BR2_PACKAGE_DTC
 >  	select BR2_PACKAGE_DTC_PROGRAMS
 >  	help

Same as for avrdude, we should update the toolchain options comment to
match.

Committed with that fixed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH V3 4/4] libelf: Removes the package
  2014-08-28 12:21 ` [Buildroot] [PATCH V3 4/4] libelf: Removes the package Gregory CLEMENT
  2014-09-13 21:01   ` Yann E. MORIN
@ 2014-09-13 22:09   ` Peter Korsgaard
  1 sibling, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2014-09-13 22:09 UTC (permalink / raw)
  To: buildroot

>>>>> "Gregory" == Gregory CLEMENT <gregory.clement@free-electrons.com> writes:

 > The elfutils package provides a more recent version of the
 > libelf. Some packages such as ltrace need this more recent
 > version. Having two packages providing the same library leads to some
 > conflicts or dependency problems. For instance at the end we had only
 > one libelf.a when the 2 packages were selected.

 > Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2014-09-13 22:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-28 12:21 [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Gregory CLEMENT
2014-08-28 12:21 ` [Buildroot] [PATCH V3 1/4] ltrace: Removes the libelf dependency Gregory CLEMENT
2014-09-10 20:14   ` Yann E. MORIN
2014-09-13 21:58   ` Peter Korsgaard
2014-08-28 12:21 ` [Buildroot] [PATCH V3 2/4] avrdude: Depend on elfutils instead of libelf to get the libelf library Gregory CLEMENT
2014-09-10 20:18   ` Yann E. MORIN
2014-09-13 22:01   ` Peter Korsgaard
2014-08-28 12:21 ` [Buildroot] [PATCH V3 3/4] kexec-lite: Depends " Gregory CLEMENT
2014-09-10 22:12   ` Yann E. MORIN
2014-09-13 22:08   ` Peter Korsgaard
2014-08-28 12:21 ` [Buildroot] [PATCH V3 4/4] libelf: Removes the package Gregory CLEMENT
2014-09-13 21:01   ` Yann E. MORIN
2014-09-13 22:09   ` Peter Korsgaard
2014-08-28 14:14 ` [Buildroot] [PATCH V3 0/4] Use only elfutils package to provide the libelf library Thomas Petazzoni

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.