All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] e2fsprogs: add packageconfig for -file-
@ 2016-09-17  1:37 Randy MacLeod
  2016-09-17  5:09 ` Christopher Larson
  0 siblings, 1 reply; 8+ messages in thread
From: Randy MacLeod @ 2016-09-17  1:37 UTC (permalink / raw)
  To: openembedded-core

Without a packageconfig dependency for the file utility, there's
a very rare compile faiure caused by a race where the magic.h
header file is not found:

 ../../../git/lib/support/plausible.c:33:19: fatal error: magic.h: No such file or directory

This file, plausible.c, is part of libsupport.a which is used by
many binaries produced by the e2fsprogs package. plausible.c attempts
to dynamically load libmagic.so if the e2fsprogs configure detects
that magic was available. Adding the packageconfig will eliminate
the build as well as the possible configure-time race condition.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
 meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb
index f4855bc..1707cb9 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb
@@ -23,6 +23,7 @@ EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \
 EXTRA_OECONF_darwin = "--libdir=${base_libdir} --sbindir=${base_sbindir} --enable-bsd-shlibs"
 
 PACKAGECONFIG ??= ""
+PACKAGECONFIG[file] = ',,file'
 PACKAGECONFIG[fuse] = '--enable-fuse2fs,--disable-fuse2fs,fuse'
 
 do_configure_prepend () {
-- 
1.9.1



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

end of thread, other threads:[~2016-09-19  7:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-17  1:37 [PATCH] e2fsprogs: add packageconfig for -file- Randy MacLeod
2016-09-17  5:09 ` Christopher Larson
2016-09-19  2:32   ` Randy MacLeod
2016-09-19  2:37     ` Christopher Larson
2016-09-19  3:32       ` Randy MacLeod
2016-09-19  3:42         ` Robert Yang
2016-09-19  5:00           ` Ulf Magnusson
2016-09-19  7:02             ` Ulf Magnusson

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.