Skip to contentSkip to conversation

package/elfutils: set program-prefix to default ("eu-")

PATCH New Marcin Nowakowski 3 participants 3 messages Aug 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/elfutils: set program-prefix to default ("eu-")

Elfutils program names collide with binutils' binaries. By default applications provided by elfutils are prefixed with "eu-", but in Buildroot that setting is overridden by pkg-autotools.
The option in pkg-autotools rules was added to avoid including a target triple in some packages as a prefix, so restore elfutils default behaviour by adding a "eu-" program-prefix.

---
 package/elfutils/elfutils.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/elfutils/elfutils.mk +3 -1
index b999d0f..0aa11a6 100644
@@ -14,7 +14,9 @@ ELFUTILS_DEPENDENCIES = zlib
 
 # We patch configure.ac
 ELFUTILS_AUTORECONF = YES
-ELFUTILS_CONF_OPTS += --disable-werror
+ELFUTILS_CONF_OPTS += \
+	--disable-werror \
+	--program-prefix="eu-"
 
 # elfutils gets confused when lfs mode is forced, so don't
 ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 package/elfutils: set program-prefix to default ("eu-")

Quoted 8 lines · Marcin Nowakowski

Elfutils program names collide with binutils' binaries. By default applications provided by elfutils are prefixed with "eu-", but in Buildroot that setting is overridden by pkg-autotools.
The option in pkg-autotools rules was added to avoid including a target triple in some packages as a prefix, so restore elfutils default behaviour by adding a "eu-" program-prefix.

I didn't test, but looks sane to me.

Probably for -next though.

A comment in the .mk file would have been nice, but myself, I generally consult
the log when in doubt so it's OK for me.

Regards,
Arnout

Quoted 20 lines
---
 package/elfutils/elfutils.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/elfutils/elfutils.mk +3 -1
index b999d0f..0aa11a6 100644
@@ -14,7 +14,9 @@ ELFUTILS_DEPENDENCIES = zlib
 
 # We patch configure.ac
 ELFUTILS_AUTORECONF = YES
-ELFUTILS_CONF_OPTS += --disable-werror
+ELFUTILS_CONF_OPTS += \
+	--disable-werror \
+	--program-prefix="eu-"
 
 # elfutils gets confused when lfs mode is forced, so don't
 ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 package/elfutils: set program-prefix to default ("eu-")

In reply to Marcin Nowakowski

Hello,

Quoted 11 lines · Marcin Nowakowski

Elfutils program names collide with binutils' binaries. By default applications provided by elfutils are prefixed with "eu-", but in Buildroot that setting is overridden by pkg-autotools.
The option in pkg-autotools rules was added to avoid including a target triple in some packages as a prefix, so restore elfutils default behaviour by adding a "eu-" program-prefix.

---
 package/elfutils/elfutils.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

As suggested by Arnout, I've added a comment in the .mk file that explains why we're passing a custom program prefix. I've then applied your patch to the next branch. Thanks!

Thomas

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