Skip to contentSkip to conversation

package/efl/libelementary: disable on static lib only build

PATCH New Samuel Martin 3 participants 4 messages May 23, 2015 – May 25, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/efl/libelementary: disable on static lib only build

libelementary sources include dlfcn.h header when HAVE_FORK symbol is defined; this is always the case because elf already depends on BR2_USE_MMU.

Fixes:
http://autobuild.buildroot.org/results/07c/07c97918dab24215f5c5130a9cd2788adca0a27d/

---
 package/efl/libelementary/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/efl/libelementary/Config.in +3 -2
index c193ef1..4f62592 100644
@@ -1,5 +1,5 @@
-comment "libelementary needs a toolchain w/ threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS
+comment "libelementary needs a toolchain w/ threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
 
 config BR2_PACKAGE_LIBELEMENTARY
 	bool "libelementary"
@@ -8,6 +8,7 @@ config BR2_PACKAGE_LIBELEMENTARY
 	select BR2_PACKAGE_LIBECORE
 	select BR2_PACKAGE_LIBEDJE
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libevas
+	depends on !BR2_STATIC_LIBS
 	help
 	  Elementary is a widget toolkit and EFL wrapper and convenience
 	  library to make it easy to build applications and tools with UIs
Signature · 1 line
2.4.1
#1 lore raw

PATCH 1/1 package/efl/libelementary: disable on static lib only build

Samuel, All,

On 2015-05-23 15:56 +0200, Samuel Martin spake thusly:

Quoted 2 lines

libelementary sources include dlfcn.h header when HAVE_FORK symbol is defined; this is always the case because elf already depends on BR2_USE_MMU.

Although I understand the thechnical reason to require !STATIC, I fail to see the how this commit log describes the actual change.

That is, I fail to see why "fork + ELF + MMU" implies we need to depend on !STATIC.

Also, ELF requiring an MMU is absolutely wrong. You can run ELF files on MMU-less systems.

Regards,
Yann E. MORIN.

Quoted 35 lines

Fixes:
http://autobuild.buildroot.org/results/07c/07c97918dab24215f5c5130a9cd2788adca0a27d/

---
 package/efl/libelementary/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/efl/libelementary/Config.in +3 -2
index c193ef1..4f62592 100644
@@ -1,5 +1,5 @@
-comment "libelementary needs a toolchain w/ threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS
+comment "libelementary needs a toolchain w/ threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
 
 config BR2_PACKAGE_LIBELEMENTARY
 	bool "libelementary"
@@ -8,6 +8,7 @@ config BR2_PACKAGE_LIBELEMENTARY
 	select BR2_PACKAGE_LIBECORE
 	select BR2_PACKAGE_LIBEDJE
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libevas
+	depends on !BR2_STATIC_LIBS
 	help
 	  Elementary is a widget toolkit and EFL wrapper and convenience
 	  library to make it easy to build applications and tools with UIs
Signature · 6 lines
2.4.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 package/efl/libelementary: disable on static lib only build

Yann, all,

Quoted 5 lines · Yann E. MORIN

Samuel, All,

On 2015-05-23 15:56 +0200, Samuel Martin spake thusly:

Quoted 2 lines

libelementary sources include dlfcn.h header when HAVE_FORK symbol is defined; this is always the case because elf already depends on BR2_USE_MMU.

Ooops, sorry for the typo, i mean efl (not elf), and more specifically [1]:

Quoted 4 lines

Although I understand the thechnical reason to require !STATIC, I fail to see the how this commit log describes the actual change.

Quoted 9 lines

That is, I fail to see why "fork + ELF + MMU" implies we need to depend on !STATIC.

Also, ELF requiring an MMU is absolutely wrong. You can run ELF files on MMU-less systems.

Regards,
Yann E. MORIN.

So, in the end, it is: MMU + efl enables fork support in efl; thus libelementary includes dlfcn.h. So libelementary should depend on !STATIC.

[1] http://git.buildroot.net/buildroot/tree/package/efl/Config.in#n5

Regards,

Signature · 1 line
Samuel
#3 lore raw

PATCH 1/1 package/efl/libelementary: disable on static lib only build

In reply to Samuel Martin
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Samuel" == Samuel Martin <[email protected]> writes:

libelementary sources include dlfcn.h header when HAVE_FORK symbol is defined; this is always the case because elf already depends on BR2_USE_MMU.

Committed with the elf/efl typo fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard