guile-native: added missing gettext-native dependency
PATCH 1/1 guile-native: added missing gettext-native dependency
--- recipes/guile/guile-native_1.8.5.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/guile/guile-native_1.8.5.bb +1 -1
@@ -1,6 +1,6 @@ SECTION = "unknown" LICENSE = "GPL" -DEPENDS = "gmp-native" +DEPENDS = "gmp-native gettext-native" SRC_URI = "http://ftp.gnu.org/pub/gnu/guile/guile-${PV}.tar.gz \ file://configure-fix.patch;patch=1 \ "
Signature · 1 line
1.6.3.1
Quoted 10 lines · Ihar Hrachyshka
Signed-off-by Ihar Hrachyshka<[email protected]>--- recipes/guile/guile-native_1.8.5.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)recipes/guile/guile-native_1.8.5.bb +0
-0
recipes/guile/guile-native_1.8.5.bb line 6
Quoted 7 lines
recipes/guile/guile-native_1.8.5.bb +1
-1@@ -1,6 +1,6 @@ SECTION = "unknown" LICENSE = "GPL" -DEPENDS = "gmp-native" +DEPENDS = "gmp-native gettext-native" SRC_URI = "http://ftp.gnu.org/pub/gnu/guile/guile-${PV}.tar.gz \ file://configure-fix.patch;patch=1 \ "
I already have that fix queued up: http://dominion.thruhere.net/git/cgit.cgi/openembedded/commit/?id=c1643b0dba7286af8c7a9e26e6aa96c0315df14f
regards,
Koen
PATCH 1/1 autotools: detect missing depends for aclocal packages
In reply to Ihar HrachyshkaReview
Quoted 2 lines · Ihar Hrachyshka
(quoted diff) +1
-1-DEPENDS = "gmp-native" +DEPENDS = "gmp-native gettext-native"
For laughs, here's a small patch to detect this kind of thing automatically in at least some cases.
p.
--
classes/autotools.bbclass +52 -1
@@ -67,6 +67,49 @@ oe_runconf () { fi } +python autotools_do_check_aclocal() { + frags = bb.data.expand('${T}/acfragments', d) + bb.note(frags) + if os.path.exists(frags): + pcproviders = {} + needed = [] + f = open(frags, "r") + import re + sr = re.compile("aclocal: saw macro (.*)") + fr = re.compile("aclocal: found macro (.*) in .*/(.*).m4") + for l in f.readlines(): + l = l.rstrip() + m = sr.match(l) + if m: + if not m.group(1) in needed: + needed.append(m.group(1)) + else: + m = fr.match(l) + if m: + pcproviders[m.group(1)] = m.group(2) + f.close() + needed_pkgs = [] + for n in needed: + if not pcproviders.has_key(n): + continue + fn = bb.data.expand("${STAGING_DIR}/${HOST_SYS}/acdeps/%s.m4" % pcproviders[n], d) + if os.path.exists(fn): + f = open(fn, "r") + p = f.readline().rstrip() + f.close() + if not p in needed_pkgs: + needed_pkgs.append(p) + deps = bb.data.getVar("DEPENDS", d, True).split() + lost = [] + for n in needed_pkgs: + if not n in deps: + lost.append(n) + if lost: + bb.note("possibly missing dependencies: %s" % " ".join(lost)) +} + +addtask check_aclocal after do_configure + autotools_do_configure() { case ${PN} in autoconf*)
@@ -126,6 +169,8 @@ autotools_do_configure() { oenote Executing intltoolize --copy --force --automake intltoolize --copy --force --automake fi + oenote Extracting list of required m4 fragments + aclocal --output=/dev/null --verbose 2>&1 | egrep '(^aclocal: found macro)|(^aclocal: saw macro)' > ${T}/acfragments || true oenote Executing autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths mkdir -p m4 autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || oefatal "autoreconf execution failed."
@@ -239,8 +284,14 @@ autotools_stage_all() { rm -rf ${STAGE_TEMP}/${mandir} || true rm -rf ${STAGE_TEMP}/${infodir} || true autotools_stage_dir ${STAGE_TEMP}/${datadir} ${STAGING_DATADIR} + if [ -d ${STAGE_TEMP}/${datadir}/aclocal ]; then + mkdir -p ${STAGING_DIR}/${HOST_SYS}/acdeps + for i in `find ${STAGE_TEMP}/${datadir}/aclocal/ -name '*.m4'`; do + echo ${PN} > ${STAGING_DIR}/${HOST_SYS}/acdeps/`basename $i` + done + fi rm -rf ${STAGE_TEMP} } -EXPORT_FUNCTIONS do_configure do_install +EXPORT_FUNCTIONS do_configure do_install do_check_aclocal
Re: [patch] autotools: detect missing depends for aclocal packages
Quoted 8 lines · On Thursday 04 June 2009 18:18:03 Phil Blundell wrote:
Review
Quoted 2 lines · Ihar Hrachyshka
(quoted diff) +1
-1-DEPENDS = "gmp-native" +DEPENDS = "gmp-native gettext-native"For laughs, here's a small patch to detect this kind of thing automatically in at least some cases.
p.
Quoted 92 lines
--
classes/autotools.bbclass +25
-0@@ -67,6 +67,49 @@ oe_runconf () { fi } +python autotools_do_check_aclocal() { + frags = bb.data.expand('${T}/acfragments', d) + bb.note(frags) + if os.path.exists(frags): + pcproviders = {} + needed = [] + f = open(frags, "r") + import re + sr = re.compile("aclocal: saw macro (.*)") + fr = re.compile("aclocal: found macro (.*) in .*/(.*).m4") + for l in f.readlines(): + l = l.rstrip() + m = sr.match(l) + if m: + if not m.group(1) in needed: + needed.append(m.group(1)) + else: + m = fr.match(l) + if m: + pcproviders[m.group(1)] = m.group(2) + f.close() + needed_pkgs = [] + for n in needed: + if not pcproviders.has_key(n): + continue + fn = bb.data.expand("${STAGING_DIR}/${HOST_SYS}/acdeps/%s.m4" % pcproviders[n],d) + if
os.path.exists(fn):classes/autotools.bbclass +12
-0+ f = open(fn, "r") + p = f.readline().rstrip() + f.close() + if not p in needed_pkgs: + needed_pkgs.append(p) + deps = bb.data.getVar("DEPENDS", d, True).split() + lost = [] + for n in needed_pkgs: + if not n in deps: + lost.append(n) + if lost: + bb.note("possibly missing dependencies: %s" % "".join(lost)) +}
classes/autotools.bbclass +5
-0+ +addtask check_aclocal after do_configure + autotools_do_configure() { case ${PN} in autoconf*)@@ -126,6 +169,8 @@ autotools_do_configure() { oenote Executing intltoolize --copy --force --automake intltoolize --copy --force --automake fi + oenote Extracting list of required m4 fragments + aclocal --output=/dev/null --verbose 2>&1 | egrep'(^aclocal: found macro)|(^aclocal: saw macro)' > ${T}/acfragments || true oenote Executing autoreconf --verbose --install --force ${EXTRA_AUTORECONF} $acpaths mkdir -p m4
autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF}
$acpaths || oefatal "autoreconf execution failed." @@ -239,8 +284,14 @@autotools_stage_all(){classes/autotools.bbclass +3
-0rm -rf ${STAGE_TEMP}/${mandir} || true rm -rf ${STAGE_TEMP}/${infodir} || true autotools_stage_dir ${STAGE_TEMP}/${datadir} ${STAGING_DATADIR} + if [ -d ${STAGE_TEMP}/${datadir}/aclocal ]; then + mkdir -p ${STAGING_DIR}/${HOST_SYS}/acdeps + for i in `find ${STAGE_TEMP}/${datadir}/aclocal/ -name'*.m4'`; do + echo ${PN} >
${STAGING_DIR}/${HOST_SYS}/acdeps/basename $i+ doneclasses/autotools.bbclass +2
-1+ fi rm -rf ${STAGE_TEMP} } -EXPORT_FUNCTIONS do_configure do_install +EXPORT_FUNCTIONS do_configure do_install do_check_aclocal_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [patch] autotools: detect missing depends for aclocal packages
Hello.
Quoted 8 lines · Holger Hans Peter Freyther
Quoted 7 lines · On Thursday 04 June 2009 18:18:03 Phil Blundell wrote:
Review
Quoted 2 lines · Ihar Hrachyshka
(quoted diff) +1
-1-DEPENDS = "gmp-native" +DEPENDS = "gmp-native gettext-native"For laughs, here's a small patch to detect this kind of thing automatically in at least some cases.
Quoted 4 lines
Quoted 1 line
p.
Signed-off-by Holger Freyther <[email protected]>
I just found this one in patchwork as one of the oldest patches siting in there. I like the check and Holger did sign it off as well. Anyone a problem with this going in?
regards
Stefan Schmidt