Skip to contentSkip to conversation

vgabios: don't override the compiler ldflags

PATCH In review Dariusz Pelowski 2 participants 6 messages Oct 17, 2017 – Oct 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vgabios: don't override the compiler ldflags

---
 recipes-extended/vgabios/biossums_0.7a.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/vgabios/biossums_0.7a.bb +1 -0
index 10bd014..e66bade 100644
@@ -20,6 +20,7 @@ do_configure() {
     # Don't override the compiler or its flags:
     sed 's,^CC,DISABLED_CC,' -i Makefile
     sed 's,^CFLAGS,DISABLED_CFLAGS,' -i Makefile
+    sed 's,^LDFLAGS,DISABLED_LDFLAGS,' -i Makefile
     # Supply the C flags to the compiler:
     sed 's,-o biossums,$(CFLAGS) -o biossums,' -i Makefile
 }
Signature · 1 line
2.7.4
#1 lore raw

This needs a long log.

What issue are you fixing ? What arches is that issue showing up on, etc.

Bruce

Quoted 24 lines · Dariusz Pelowski
---
 recipes-extended/vgabios/biossums_0.7a.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/vgabios/biossums_0.7a.bb +1 -1
index 10bd014..e66bade 100644
@@ -20,6 +20,7 @@ do_configure() {
     # Don't override the compiler or its flags:
     sed 's,^CC,DISABLED_CC,' -i Makefile
     sed 's,^CFLAGS,DISABLED_CFLAGS,' -i Makefile
+    sed 's,^LDFLAGS,DISABLED_LDFLAGS,' -i Makefile
     # Supply the C flags to the compiler:
     sed 's,-o biossums,$(CFLAGS) -o biossums,' -i Makefile
 }
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#2 lore raw

Hi,

When building biossums on genericx86-64 machine, I'm getting QA issue:
ERROR: biossums-0.7a-r0 do_package_qa: QA Issue: No GNU_HASH in the elf
binary:
'/home/darekp/yocto_builds/tmp/work/core2-64-poky-linux/biossums/0.7a-r0/packages-split/biossums/usr/bin/biossums' [ldflags]
ERROR: biossums-0.7a-r0 do_package_qa: QA run found fatal errors. Please
consider fixing them.
ERROR: biossums-0.7a-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in:
/home/darekp/yocto_builds/tmp/work/core2-64-poky-linux/biossums/0.7a-r0/temp/log.do_package_qa.19574
ERROR: Task (/home/darekp/yocto_builds/meta-virtualization/recipes-extended/vgabios/biossums_0.7a.bb:do_package_qa) failed with exit code '1'

It's caused by overriding LDFLAGS variable to empty value in project's makefile. In consequence there's missing LDFLAGS settings from bitbake (including -Wl,--hash-style=gnu, which causes showing this QA).

This patch takes into the use LDFLAGS provided by bitbake.

Is it okay for you? What do you think about replacing sed invocations with patch?

Dariusz

2017-10-17 19:12 GMT+02:00 Bruce Ashfield <[email protected]>:

Quoted 40 lines

This needs a long log.

What issue are you fixing ? What arches is that issue showing up on, etc.

Bruce

Review

Quoted 5 lines · Dariusz Pelowski
---
 recipes-extended/vgabios/biossums_0.7a.bb | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/recipes-extended/vgabios/biossums_0.7a.bb

Quoted 14 lines

index 10bd014..e66bade 100644

recipes-extended/vgabios/biossums_0.7a.bb +1 -1
@@ -20,6 +20,7 @@ do_configure() {
     # Don't override the compiler or its flags:
     sed 's,^CC,DISABLED_CC,' -i Makefile
     sed 's,^CFLAGS,DISABLED_CFLAGS,' -i Makefile
+    sed 's,^LDFLAGS,DISABLED_LDFLAGS,' -i Makefile
     # Supply the C flags to the compiler:
     sed 's,-o biossums,$(CFLAGS) -o biossums,' -i Makefile
 }
--

2.7.4

Quoted 5 lines

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#3 lore raw
Quoted 16 lines · Dariusz Pelowski

Hi,

When building biossums on genericx86-64 machine, I'm getting QA issue:
ERROR: biossums-0.7a-r0 do_package_qa: QA Issue: No GNU_HASH in the elf
binary:
'/home/darekp/yocto_builds/tmp/work/core2-64-poky-linux/biossums/0.7a-r0/packages-split/biossums/usr/bin/biossums' [ldflags]
ERROR: biossums-0.7a-r0 do_package_qa: QA run found fatal errors. Please
consider fixing them.
ERROR: biossums-0.7a-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in:
/home/darekp/yocto_builds/tmp/work/core2-64-poky-linux/biossums/0.7a-r0/temp/log.do_package_qa.19574
ERROR: Task (/home/darekp/yocto_builds/meta-virtualization/recipes-extended/vgabios/biossums_0.7a.bb:do_package_qa) failed with exit code '1'

Quoted 8 lines

It's caused by overriding LDFLAGS variable to empty value in project's makefile. In consequence there's missing LDFLAGS settings from bitbake (including -Wl,--hash-style=gnu, which causes showing this QA).

This patch takes into the use LDFLAGS provided by bitbake.

Is it okay for you? What do you think about replacing sed invocations with patch?

With that explanation in the long log of the patch, it is definitely ok with me.

Cheers,

Bruce

Quoted 47 lines

Dariusz

2017-10-17 19:12 GMT+02:00 Bruce Ashfield <[email protected]>:

Quoted 40 lines

This needs a long log.

What issue are you fixing ? What arches is that issue showing up on, etc.

Bruce

Quoted 20 lines · Dariusz Pelowski
---
 recipes-extended/vgabios/biossums_0.7a.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/vgabios/biossums_0.7a.bb +1 -1
index 10bd014..e66bade 100644
@@ -20,6 +20,7 @@ do_configure() {
     # Don't override the compiler or its flags:
     sed 's,^CC,DISABLED_CC,' -i Makefile
     sed 's,^CFLAGS,DISABLED_CFLAGS,' -i Makefile
+    sed 's,^LDFLAGS,DISABLED_LDFLAGS,' -i Makefile
     # Supply the C flags to the compiler:
     sed 's,-o biossums,$(CFLAGS) -o biossums,' -i Makefile
 }
--

2.7.4

Quoted 5 lines

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#4 lore raw

PATCH 1/1 vgabios: don't override the compiler ldflags

Fix for building biossums on genericx86-64 machine, due to QA issue:
ERROR: QA Issue: No GNU_HASH in the elf binary:
'.../0.7a-r0/packages-split/biossums/usr/bin/biossums' [ldflags] caused by overriding LDFLAGS variable to empty value in project's makefile.

In consequence there's missing LDFLAGS settings from bitbake (including -Wl,--hash-style=gnu, which causes showing this QA).

---
 recipes-extended/vgabios/biossums_0.7a.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/vgabios/biossums_0.7a.bb +1 -0
index 10bd014..e66bade 100644
@@ -20,6 +20,7 @@ do_configure() {
     # Don't override the compiler or its flags:
     sed 's,^CC,DISABLED_CC,' -i Makefile
     sed 's,^CFLAGS,DISABLED_CFLAGS,' -i Makefile
+    sed 's,^LDFLAGS,DISABLED_LDFLAGS,' -i Makefile
     # Supply the C flags to the compiler:
     sed 's,-o biossums,$(CFLAGS) -o biossums,' -i Makefile
 }
Signature · 1 line
2.7.4
#5 lore raw

merged.

Bruce

Quoted 33 lines · Dariusz Pelowski

Fix for building biossums on genericx86-64 machine, due to QA issue:
ERROR: QA Issue: No GNU_HASH in the elf binary:
'.../0.7a-r0/packages-split/biossums/usr/bin/biossums' [ldflags] caused by overriding LDFLAGS variable to empty value in project's makefile.

In consequence there's missing LDFLAGS settings from bitbake (including -Wl,--hash-style=gnu, which causes showing this QA).

---
 recipes-extended/vgabios/biossums_0.7a.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/vgabios/biossums_0.7a.bb +1 -1
index 10bd014..e66bade 100644
@@ -20,6 +20,7 @@ do_configure() {
     # Don't override the compiler or its flags:
     sed 's,^CC,DISABLED_CC,' -i Makefile
     sed 's,^CFLAGS,DISABLED_CFLAGS,' -i Makefile
+    sed 's,^LDFLAGS,DISABLED_LDFLAGS,' -i Makefile
     # Supply the C flags to the compiler:
     sed 's,-o biossums,$(CFLAGS) -o biossums,' -i Makefile
 }
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"