Skip to contentSkip to conversation

proper way to report(?) conflicting files being installed?

PATCH Robert P. J. Day 3 participants 8 messages Mar 19, 2020

lore
Share & tools
lore
#0 lore raw

long story short, colleague was adding packages to a build and ran
into error wherein both of:

* autoconf-archive
* gnome-common

were trying to install a couple identical m4-related files. some quick googling produced this:

https://patchwork.openembedded.org/patch/142467/

with the self-evident solution being applied to gnome-common to "uninstall" the two conflicting files:

meta-oe/recipes-gnome/gnome-common/gnome-common_3.18.0.bb +11 -0
@@ -17,4 +17,15 @@  DEPENDS = ""
 FILES_${PN} += "${datadir}/aclocal"
 FILES_${PN}-dev = ""
 
+# ax_code_coverage.m4 and ax_check_enable_debug.m4 are in gnome-common only
+# because older versions of autoconf-archive didn't have them yet. Now they
+# are in autoconf-archive from OE-core. We depend on that below to ensure
+# that recipes which only depend on gnome-common still get them.
+do_install_append () {
+    rm -f ${D}${datadir}/aclocal/ax_code_coverage.m4
+    rm -f ${D}${datadir}/aclocal/ax_check_enable_debug.m4
+}
+RDEPENDS_${PN} += "autoconf-archive"
+DEPENDS_append_class-native = " autoconf-archive-native"
+
 

it *appears* that solved the problem, which raises the question --
should this patch be applied to the current gnome-common recipe? that patchwork entry dates back to 2017 ... should it have been applied at some point?

rday

#1 lore raw
Quoted 14 lines · Robert P. J. Day

...

meta-oe/recipes-gnome/gnome-common/gnome-common_3.18.0.bb +11 -0
+# ax_code_coverage.m4 and ax_check_enable_debug.m4 are in gnome-common only
+# because older versions of autoconf-archive didn't have them yet. Now they
+# are in autoconf-archive from OE-core. We depend on that below to ensure
+# that recipes which only depend on gnome-common still get them.
+do_install_append () {
+    rm -f ${D}${datadir}/aclocal/ax_code_coverage.m4
+    rm -f ${D}${datadir}/aclocal/ax_check_enable_debug.m4
+}
+RDEPENDS_${PN} += "autoconf-archive"
+DEPENDS_append_class-native = " autoconf-archive-native"
+
 
  it *appears* that solved the problem, which raises the question --
Quoted 3 lines

should this patch be applied to the current gnome-common recipe? that patchwork entry dates back to 2017 ... should it have been applied at some point?

The currently implemented solution is:
# Default to enable autoconf-archive to avoid conflicts
PACKAGECONFIG ??= "autoconf-archive"
PACKAGECONFIG[autoconf-archive] = "--with-autoconf-archive, --without-autoconf-archive, autoconf-archive"

It is not clear to me why this gives the user to disable it instead of unconditionally enabling it.

Quoted 1 line

rday

cu
Adrian

#2 lore raw
Quoted 24 lines · Adrian Bunk
Quoted 14 lines · Robert P. J. Day

...

meta-oe/recipes-gnome/gnome-common/gnome-common_3.18.0.bb +11 -0
+# ax_code_coverage.m4 and ax_check_enable_debug.m4 are in gnome-common only
+# because older versions of autoconf-archive didn't have them yet. Now they
+# are in autoconf-archive from OE-core. We depend on that below to ensure
+# that recipes which only depend on gnome-common still get them.
+do_install_append () {
+    rm -f ${D}${datadir}/aclocal/ax_code_coverage.m4
+    rm -f ${D}${datadir}/aclocal/ax_check_enable_debug.m4
+}
+RDEPENDS_${PN} += "autoconf-archive"
+DEPENDS_append_class-native = " autoconf-archive-native"
+
 
  it *appears* that solved the problem, which raises the question --
Quoted 3 lines

should this patch be applied to the current gnome-common recipe? that patchwork entry dates back to 2017 ... should it have been applied at some point?

The currently implemented solution is:
# Default to enable autoconf-archive to avoid conflicts
PACKAGECONFIG ??= "autoconf-archive"
PACKAGECONFIG[autoconf-archive] = "--with-autoconf-archive, --without-autoconf-archive, autoconf-archive"

Quoted 2 lines

It is not clear to me why this gives the user to disable it instead of unconditionally enabling it.

i was a bit confused by that as well, but i figured i just didn't
read it carefully enough.

rday

#3 lore raw
In reply to Adrian Bunk
Quoted 24 lines · Adrian Bunk
Quoted 14 lines · Robert P. J. Day

...

meta-oe/recipes-gnome/gnome-common/gnome-common_3.18.0.bb +11 -0
+# ax_code_coverage.m4 and ax_check_enable_debug.m4 are in gnome-common only
+# because older versions of autoconf-archive didn't have them yet. Now they
+# are in autoconf-archive from OE-core. We depend on that below to ensure
+# that recipes which only depend on gnome-common still get them.
+do_install_append () {
+    rm -f ${D}${datadir}/aclocal/ax_code_coverage.m4
+    rm -f ${D}${datadir}/aclocal/ax_check_enable_debug.m4
+}
+RDEPENDS_${PN} += "autoconf-archive"
+DEPENDS_append_class-native = " autoconf-archive-native"
+
 
  it *appears* that solved the problem, which raises the question --
Quoted 3 lines

should this patch be applied to the current gnome-common recipe? that patchwork entry dates back to 2017 ... should it have been applied at some point?

The currently implemented solution is:
# Default to enable autoconf-archive to avoid conflicts
PACKAGECONFIG ??= "autoconf-archive"
PACKAGECONFIG[autoconf-archive] = "--with-autoconf-archive, --without-autoconf-archive, autoconf-archive"

Quoted 2 lines

It is not clear to me why this gives the user to disable it instead of unconditionally enabling it.

this does seem backwards ... if both gnome-common and
autoconf-archive currently try to install those two m4-related files, doing the above pretty much *assures* an installation conflict, unless you apply the patch i linked to earlier at:

https://patchwork.openembedded.org/patch/142467/

where (as i read it) the gnome-common patch uninstalls them, but then drags in autoconf-archive just to make sure they're installed. so what *should* this look like?

rday

#4 lore raw
Quoted 26 lines · Robert P. J. Day
Quoted 24 lines · Adrian Bunk
Quoted 14 lines · Robert P. J. Day

...

meta-oe/recipes-gnome/gnome-common/gnome-common_3.18.0.bb +11 -0
+# ax_code_coverage.m4 and ax_check_enable_debug.m4 are in gnome-common only
+# because older versions of autoconf-archive didn't have them yet. Now they
+# are in autoconf-archive from OE-core. We depend on that below to ensure
+# that recipes which only depend on gnome-common still get them.
+do_install_append () {
+    rm -f ${D}${datadir}/aclocal/ax_code_coverage.m4
+    rm -f ${D}${datadir}/aclocal/ax_check_enable_debug.m4
+}
+RDEPENDS_${PN} += "autoconf-archive"
+DEPENDS_append_class-native = " autoconf-archive-native"
+
 
  it *appears* that solved the problem, which raises the question --
Quoted 3 lines

should this patch be applied to the current gnome-common recipe? that patchwork entry dates back to 2017 ... should it have been applied at some point?

The currently implemented solution is:
# Default to enable autoconf-archive to avoid conflicts
PACKAGECONFIG ??= "autoconf-archive"
PACKAGECONFIG[autoconf-archive] = "--with-autoconf-archive, --without-autoconf-archive, autoconf-archive"

Quoted 7 lines
Quoted 2 lines

It is not clear to me why this gives the user to disable it instead of unconditionally enabling it.

this does seem backwards ... if both gnome-common and
autoconf-archive currently try to install those two m4-related files, doing the above pretty much *assures* an installation conflict,
...

No, --with-autoconf-archive makes gnome-common not install the conflicting files.

Quoted 1 line

rday

cu
Adrian

#5 lore raw
Quoted 7 lines · Adrian Bunk
Quoted 4 lines

this does seem backwards ... if both gnome-common and
autoconf-archive currently try to install those two m4-related files, doing the above pretty much *assures* an installation conflict,
...

No, --with-autoconf-archive makes gnome-common not install the conflicting files.

I should point out that gnome-common is dead upstream and mostly unused now, so if you find a recipe using it do check that it is actually needed.

Ross

#6 lore raw
Quoted 6 lines · Ross Burton
Quoted 5 lines · Adrian Bunk
Quoted 4 lines

this does seem backwards ... if both gnome-common and
autoconf-archive currently try to install those two m4-related files, doing the above pretty much *assures* an installation conflict,
...

Quoted 6 lines
Quoted 2 lines

No, --with-autoconf-archive makes gnome-common not install the conflicting files.

I should point out that gnome-common is dead upstream and mostly unused now, so if you find a recipe using it do check that it is actually needed.

in fact, just earlier this aft, i sent the short note, "um ...
what are you doing that needs that gnome-common thing?"

i await the reply.

rday

#7 lore raw
In reply to Adrian Bunk
Quoted 30 lines · Adrian Bunk
Quoted 29 lines · Robert P. J. Day
Quoted 26 lines · Adrian Bunk
Quoted 14 lines · Robert P. J. Day

...

meta-oe/recipes-gnome/gnome-common/gnome-common_3.18.0.bb +11 -0
+# ax_code_coverage.m4 and ax_check_enable_debug.m4 are in gnome-common only
+# because older versions of autoconf-archive didn't have them yet. Now they
+# are in autoconf-archive from OE-core. We depend on that below to ensure
+# that recipes which only depend on gnome-common still get them.
+do_install_append () {
+    rm -f ${D}${datadir}/aclocal/ax_code_coverage.m4
+    rm -f ${D}${datadir}/aclocal/ax_check_enable_debug.m4
+}
+RDEPENDS_${PN} += "autoconf-archive"
+DEPENDS_append_class-native = " autoconf-archive-native"
+
 
  it *appears* that solved the problem, which raises the question --
Quoted 3 lines

should this patch be applied to the current gnome-common recipe? that patchwork entry dates back to 2017 ... should it have been applied at some point?

The currently implemented solution is:
# Default to enable autoconf-archive to avoid conflicts
PACKAGECONFIG ??= "autoconf-archive"
PACKAGECONFIG[autoconf-archive] = "--with-autoconf-archive, --without-autoconf-archive, autoconf-archive"

It is not clear to me why this gives the user to disable it instead of unconditionally enabling it.

Quoted 7 lines
Quoted 4 lines

this does seem backwards ... if both gnome-common and
autoconf-archive currently try to install those two m4-related files, doing the above pretty much *assures* an installation conflict,
...

No, --with-autoconf-archive makes gnome-common not install the conflicting files.

ah, right, i was just reading (and thinking) backwards.

rday