Skip to contentSkip to conversation

autoconf-archive: drop m4files confliction with gnome-common

PATCH In review Zhixiong Chi 2 participants 3 messages Apr 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autoconf-archive: drop m4files confliction with gnome-common

Delete the conflicting m4files with gnome-common to avoid the confliction, and the two m4 files will be installed by gnome-common that comes from oe-core, then set rdepends to gnome-common.

---
 .../autoconf-archive/autoconf-archive.inc          |  2 +-
 .../autoconf-archive/delete-some-m4-files.patch    | 23 ++++++++++++++++++++++
 .../autoconf-archive_2016.09.16.bb                 |  4 ++++
 3 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-devtools/autoconf-archive/autoconf-archive/delete-some-m4-files.patch
meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc +1 -1
index 779115a..9684d1f 100644
@@ -6,7 +6,7 @@ DEPENDS += "m4-native"
 DEPENDS_class-native = "m4-native gnu-config-native"
 DEPENDS_class-nativesdk = "m4-nativesdk gnu-config-nativesdk"
 
-RDEPENDS_${PN} = "m4 gnu-config"
+RDEPENDS_${PN} = "m4 gnu-config gnome-common"
 RDEPENDS_${PN}_class-native = "m4-native gnu-config-native"
 RDEPENDS_${PN}_class-nativesdk = "m4-nativesdk gnu-config-nativesdk"
 
meta-oe/recipes-devtools/autoconf-archive/autoconf-archive/delete-some-m4-files.patch new file +23 -0
new file mode 100644
index 0000000..2aa788b
@@ -0,0 +1,23 @@
+Delete two m4files ax_code_coverage.m4 and ax_check_enable_debug.m4
+to avoid installing conflicts. These two files can be installed by
+gnome-common from oe-core, even if the files in gnmoe-common is
+copied from autoconf-archive(the reason is that the old version
+autoconf-archive don't provide the two files).
+After upgrading to the new version, we need to drop them in meta-oe
+and then set rdepends to gnome-common(oe-core)
+
+Signed-off-by: Zhixiong Chi <[email protected]>
+
+Index: a/configure.ac
+===================================================================
+--- a/configure.ac     2016-09-16 06:00:00.000000000 +0800
++++ b/configure.ac     2017-04-18 17:43:05.946290554 +0800
+@@ -19,7 +19,7 @@
+ 
+ AC_PROG_SED
+ 
+-M4FILES="m4_esyscmd([echo -n m4/*.m4])"
++M4FILES="m4_esyscmd([echo -n m4/*.m4 | sed -e 's:m4/ax_code_coverage.m4 ::g'|sed -e 's:m4/ax_check_enable_debug.m4 ::g'])"
+ AC_SUBST([M4FILES])
+ 
+ TEXIFILES="m4_esyscmd([cd m4 && echo -n *.m4 | sed -e 's/\.m4/.texi/g'])"
meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb +4 -0
index 0a1a771..561b57b 100644
@@ -9,5 +9,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 SRC_URI[md5sum] = "bf19d4cddce260b3c3e1d51d42509071"
 SRC_URI[sha256sum] = "e8f2efd235f842bad2f6938bf4a72240a5e5fcd248e8444335e63beb60fabd82"
 
+SRC_URI += "\
+        file://delete-some-m4-files.patch \
+"
+
 EXTRA_OECONF += "ac_cv_path_M4=m4"
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Zhixiong Chi

Delete the conflicting m4files with gnome-common to avoid the confliction, and the two m4 files will be installed by gnome-common that comes from oe-core, then set rdepends to gnome-common.

For those who missed it, there was a discussion on oe-core already (a suggested logical dependency from gnome-common to autoconf-archive was not accepted because oe-core should not depend on meta-oe).

The real solution might be to get rid of gnome-common altogether -- at least for oe-core this will be relatively easy as its usage is historical. Maybe something in meta-oe still requires gnome-common but at least the dependencies could be more correct if the gnome-common recipe was in the same repo as autoconf-archive: the files could be deleted in gnome-common and gnome-common could rdepend on autoconf-archive as was originally suggested.

If we weren't so close to Pyro release I would suggest the above... even now I personally wouldn't object if someone sent patches for that but I can see how this hack may be less invasive. In any case I've filed a bug for removing gnome-common and will do that during next cycle if no-one else gets to it before.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=11380

Cheers,
Jussi

Quoted 86 lines
---
 .../autoconf-archive/autoconf-archive.inc          |  2 +-
 .../autoconf-archive/delete-some-m4-files.patch    | 23
++++++++++++++++++++++
 .../autoconf-archive_2016.09.16.bb                 |  4 ++++
 3 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-devtools/autoconf-archive/autoconf-

archive/delete-some-m4-files.patch

meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc +1 -1
index 779115a..9684d1f 100644
@@ -6,7 +6,7 @@ DEPENDS += "m4-native"
 DEPENDS_class-native = "m4-native gnu-config-native"
 DEPENDS_class-nativesdk = "m4-nativesdk gnu-config-nativesdk"
 
-RDEPENDS_${PN} = "m4 gnu-config"
+RDEPENDS_${PN} = "m4 gnu-config gnome-common"
 RDEPENDS_${PN}_class-native = "m4-native gnu-config-native"
 RDEPENDS_${PN}_class-nativesdk = "m4-nativesdk gnu-config-nativesdk"
 
(quoted diff) +0 -0

archive/delete-some-m4-files.patch b/meta-oe/recipes-devtools/ autoconf-archive/autoconf-archive/delete-some-m4-files.patch new file mode 100644
index 0000000..2aa788b

meta-oe/recipes-devtools/autoconf-archive/autoconf- new file +0 -0

archive/delete-some-m4-files.patch

meta-oe/recipes-devtools/autoconf-archive/autoconf- new file +20 -0
@@ -0,0 +1,23 @@
+Delete two m4files ax_code_coverage.m4 and ax_check_enable_debug.m4
+to avoid installing conflicts. These two files can be installed by
+gnome-common from oe-core, even if the files in gnmoe-common is
+copied from autoconf-archive(the reason is that the old version
+autoconf-archive don't provide the two files).
+After upgrading to the new version, we need to drop them in meta-oe
+and then set rdepends to gnome-common(oe-core)
+
+Signed-off-by: Zhixiong Chi <[email protected]>
+
+Index: a/configure.ac
+===================================================================
+--- a/configure.ac     2016-09-16 06:00:00.000000000 +0800
++++ b/configure.ac     2017-04-18 17:43:05.946290554 +0800
+@@ -19,7 +19,7 @@
+
+ AC_PROG_SED
+
+-M4FILES="m4_esyscmd([echo -n m4/*.m4])"
++M4FILES="m4_esyscmd([echo -n m4/*.m4 | sed -e 's:m4/ax_code_coverage.m4

::g'|sed -e 's:m4/ax_check_enable_debug.m4 ::g'])"
+ AC_SUBST([M4FILES])

meta-oe/recipes-devtools/autoconf-archive/autoconf- new file +2 -0
+
+ TEXIFILES="m4_esyscmd([cd m4 && echo -n *.m4 | sed -e 's/\.m4/.texi/g'])"
(quoted diff) +0 -0

archive_2016.09.16.bb b/meta-oe/recipes-devtools/autoconf-archive/ autoconf-archive_2016.09.16.bb
index 0a1a771..561b57b 100644
--- a/meta-oe/recipes-devtools/autoconf-archive/autoconf- archive_2016.09.16.bb
+++ b/meta-oe/recipes-devtools/autoconf-archive/autoconf- archive_2016.09.16.bb

(quoted diff) +0 -0
@@ -9,5 +9,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=

d32239bcb673463ab874e80d47fae504"
SRC_URI[md5sum] = "bf19d4cddce260b3c3e1d51d42509071" SRC_URI[sha256sum] = "e8f2efd235f842bad2f6938bf4a722
40a5e5fcd248e8444335e63beb60fabd82"

meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb +4 -1
+SRC_URI += "\
+        file://delete-some-m4-files.patch \
+"
+
 EXTRA_OECONF += "ac_cv_path_M4=m4"
 BBCLASSEXTEND = "native nativesdk"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 8 lines · Jussi Kukkonen

On 19 April 2017 at 09:28, Zhixiong Chi <[email protected] <mailto:[email protected]>> wrote:

Delete the conflicting m4files with gnome-common to avoid the confliction,
and the two m4 files will be installed by gnome-common that comes from oe-core, then set rdepends to gnome-common.

Quoted 8 lines

For those who missed it, there was a discussion on oe-core already (a suggested logical dependency from gnome-common to autoconf-archive was not accepted because oe-core should not depend on meta-oe).

The real solution might be to get rid of gnome-common altogether -- at least for oe-core this will be relatively easy as its usage is historical. Maybe something in meta-oe still requires gnome-common but at least the dependencies could be more correct if the gnome-common recipe was in the same repo as autoconf-archive: the files could be deleted in gnome-common and gnome-common could rdepend on autoconf-archive as was originally suggested.

If we weren't so close to Pyro release I would suggest the above... even now I personally wouldn't object if someone sent patches for that but I can see how this hack may be less invasive. In any case I've filed a bug for removing gnome-common and will do that during next cycle if no-one else gets to it before.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=11380

OK, I got it, if we will drop gnome-common from oe-core next cycle, indeed this patch is useless.

Thanks.

Quoted 106 lines

Cheers,
Jussi

    Signed-off-by: Zhixiong Chi <[email protected]
    <mailto:[email protected]>>
    ---
     .../autoconf-archive/autoconf-archive.inc |  2 +-
     .../autoconf-archive/delete-some-m4-files.patch    | 23
    ++++++++++++++++++++++
     .../autoconf-archive_2016.09.16.bb
    <http://autoconf-archive_2016.09.16.bb>                |  4 ++++
     3 files changed, 28 insertions(+), 1 deletion(-)
     create mode 100644
    meta-oe/recipes-devtools/autoconf-archive/autoconf-archive/delete-some-m4-files.patch

    diff --git
    a/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc
    b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc
    index 779115a..9684d1f 100644
    --- a/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc
    +++ b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive.inc
    @@ -6,7 +6,7 @@ DEPENDS += "m4-native"
     DEPENDS_class-native = "m4-native gnu-config-native"
     DEPENDS_class-nativesdk = "m4-nativesdk gnu-config-nativesdk"

    -RDEPENDS_${PN} = "m4 gnu-config"
    +RDEPENDS_${PN} = "m4 gnu-config gnome-common"
     RDEPENDS_${PN}_class-native = "m4-native gnu-config-native"
     RDEPENDS_${PN}_class-nativesdk = "m4-nativesdk gnu-config-nativesdk"

    diff --git
    a/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive/delete-some-m4-files.patch
    b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive/delete-some-m4-files.patch
    new file mode 100644
    index 0000000..2aa788b
    --- /dev/null
    +++
    b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive/delete-some-m4-files.patch
    @@ -0,0 +1,23 @@
    +Delete two m4files ax_code_coverage.m4 and ax_check_enable_debug.m4
    +to avoid installing conflicts. These two files can be installed by
    +gnome-common from oe-core, even if the files in gnmoe-common is
    +copied from autoconf-archive(the reason is that the old version
    +autoconf-archive don't provide the two files).
    +After upgrading to the new version, we need to drop them in meta-oe
    +and then set rdepends to gnome-common(oe-core)
    +
    +Signed-off-by: Zhixiong Chi <[email protected]
    <mailto:[email protected]>>
    +
    +Index: a/configure.ac <http://configure.ac>
    +===================================================================
    +--- a/configure.ac <http://configure.ac>     2016-09-16
    06:00:00.000000000 +0800
    ++++ b/configure.ac <http://configure.ac>     2017-04-18
    17:43:05.946290554 +0800
    +@@ -19,7 +19,7 @@
    +
    + AC_PROG_SED
    +
    +-M4FILES="m4_esyscmd([echo -n m4/*.m4])"
    ++M4FILES="m4_esyscmd([echo -n m4/*.m4 | sed -e
    's:m4/ax_code_coverage.m4 ::g'|sed -e
    's:m4/ax_check_enable_debug.m4 ::g'])"
    + AC_SUBST([M4FILES])
    +
    + TEXIFILES="m4_esyscmd([cd m4 && echo -n *.m4 | sed -e
    's/\.m4/.texi/g'])"
    diff --git
    a/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb
    <http://autoconf-archive_2016.09.16.bb>
    b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb
    <http://autoconf-archive_2016.09.16.bb>
    index 0a1a771..561b57b 100644
    ---
    a/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb
    <http://autoconf-archive_2016.09.16.bb>
    +++
    b/meta-oe/recipes-devtools/autoconf-archive/autoconf-archive_2016.09.16.bb
    <http://autoconf-archive_2016.09.16.bb>
    @@ -9,5 +9,9 @@ LIC_FILES_CHKSUM =
    "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
     SRC_URI[md5sum] = "bf19d4cddce260b3c3e1d51d42509071"
     SRC_URI[sha256sum] =
    "e8f2efd235f842bad2f6938bf4a72240a5e5fcd248e8444335e63beb60fabd82"

    +SRC_URI += "\
    +        file://delete-some-m4-files.patch \
    +"
    +
     EXTRA_OECONF += "ac_cv_path_M4=m4"
     BBCLASSEXTEND = "native nativesdk"
    --
    1.9.1

    --
    _______________________________________________
    Openembedded-devel mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-devel
    <http://lists.openembedded.org/mailman/listinfo/openembedded-devel>
Signature · 4 lines
---------------------
Thanks,
Zhixiong Chi
Tel: +86-10-8477-7036