Skip to contentSkip to conversation

attr: Fix build failure when image includes man-pages pkg

PATCH New Mark Asselstine 1 participant 1 message Jun 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 attr: Fix build failure when image includes man-pages pkg

If you attempt to build an image with both attr(-doc) and man-pages packages your rootfs might fail to assemble. The error will be something like:

Error: Transaction check error:

  file /usr/share/man/man2/fgetxattr.2 from install of \
    attr-doc-2.4.47-r0.core2_64 conflicts with file from \
    package man-pages-4.11-r0.core2_64

(the error is usually only seen on builders which don't have manpages installed, if you have /usr/share/man/man1/man.1.gz your build will complete but you will have duplicate manpages, just one zipped and one not)

Backporting changes from upstream attr removes the conflicted files in favour of those in the man-pages package.

---

v2: Fixed case in Upstream-Status

 meta/recipes-support/attr/attr_2.4.47.bb           |   2 +
 ...ve-the-attr.5-man-page-moved-to-man-pages.patch | 240 ++++++++
 .../files/Remove-the-section-2-man-pages.patch     | 666 +++++++++++++++++++++
 3 files changed, 908 insertions(+)
 create mode 100644 meta/recipes-support/attr/files/Remove-the-attr.5-man-page-moved-to-man-pages.patch
 create mode 100644 meta/recipes-support/attr/files/Remove-the-section-2-man-pages.patch
meta/recipes-support/attr/attr_2.4.47.bb +2 -0
index 556c8e4..2dada7a 100644
@@ -4,6 +4,8 @@ require attr.inc
 # future releases of attr, remove this when updating the recipe.
 SRC_URI += "file://attr-Missing-configure.ac.patch \
             file://dont-use-decl-macros.patch \
+            file://Remove-the-section-2-man-pages.patch \
+            file://Remove-the-attr.5-man-page-moved-to-man-pages.patch \
            "
 
 SRC_URI[md5sum] = "84f58dec00b60f2dc8fd1c9709291cc7"
meta/recipes-support/attr/files/Remove-the-attr.5-man-page-moved-to-man-pages.patch new file +240 -0

240 lines not on this page · raw message

meta/recipes-support/attr/files/Remove-the-section-2-man-pages.patch new file +666 -0

666 lines not on this page · raw message

Signature · 1 line
2.7.4