]> code.ossystems Code Review - openembedded-core.git/commitdiff
libgloss_3.0.0.bb: Fix up mv pattern to include libnosys
authorNathan Rossi <nathan@nathanrossi.com>
Mon, 10 Sep 2018 12:42:38 +0000 (12:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Sep 2018 08:05:29 +0000 (09:05 +0100)
When installing libgloss libraries handle the ${TARGET_SYS}/lib contents
so that it is placed in ${libdir} instead of ${libdir}/lib. This
resolves a packaging QA issue.

  ERROR: libgloss-3.0.0-r0 do_package: QA Issue: libgloss:
  Files/directories were installed but not shipped in any package:
    /usr/lib/lib
    /usr/lib/lib/libnosys.a
    /usr/lib/lib/nosys.specs
  Please set FILES such that these items are packaged. Alternatively
  if they are unneeded, avoid installing them or delete them within
  do_install.
  libgloss: 3 installed and not shipped files. [installed-vs-shipped]

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/newlib/libgloss_3.0.0.bb

index 664a9228154378af33c22b1726e91f157aaa56dc..727062ca5d15847b3bc351ff397ce470381ba198 100644 (file)
@@ -18,9 +18,10 @@ do_install_prepend() {
 
 do_install_append() {
        # Move libs to default directories so they can be picked up later
-       mv -v ${D}${prefix}/${TARGET_SYS}/lib ${D}${libdir}
+       mv -v ${D}${prefix}/${TARGET_SYS}/lib/* ${D}${libdir}
 
        # Remove original directory
+       rmdir ${D}${prefix}/${TARGET_SYS}/lib
        rmdir ${D}${prefix}/${TARGET_SYS}
 }