diff options
| author | Andre McCurdy <armccurdy@gmail.com> | 2018-04-26 10:49:40 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-04 13:28:05 +0100 |
| commit | b6c35d1c5bea5c651c5261cd034f4848180c8664 (patch) | |
| tree | 38ccd82157333553ff0aedaf70c59bcf9efd6f5f /meta/recipes-extended/tar | |
| parent | d49bfa2eaeb99b6cadf9f65053d2066b22c52e07 (diff) | |
| download | poky-b6c35d1c5bea5c651c5261cd034f4848180c8664.tar.gz | |
tar: merge tar.inc into tar recipe
There's only one user of tar.inc (meta-gplv2 has its own copy), so
merge the .inc file into the tar recipe.
(From OE-Core rev: cce7b627f9046c15dde49c001481003cee33fc9c)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/tar')
| -rw-r--r-- | meta/recipes-extended/tar/tar.inc | 52 | ||||
| -rw-r--r-- | meta/recipes-extended/tar/tar_1.30.bb | 70 |
2 files changed, 60 insertions, 62 deletions
diff --git a/meta/recipes-extended/tar/tar.inc b/meta/recipes-extended/tar/tar.inc deleted file mode 100644 index 93e4da114b..0000000000 --- a/meta/recipes-extended/tar/tar.inc +++ /dev/null | |||
| @@ -1,52 +0,0 @@ | |||
| 1 | SUMMARY = "GNU file archiving program" | ||
| 2 | DESCRIPTION = "GNU tar saves many files together into a single tape \ | ||
| 3 | or disk archive, and can restore individual files from the archive." | ||
| 4 | HOMEPAGE = "http://www.gnu.org/software/tar/" | ||
| 5 | SECTION = "base" | ||
| 6 | |||
| 7 | SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2" | ||
| 8 | |||
| 9 | inherit autotools gettext texinfo | ||
| 10 | |||
| 11 | EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}" | ||
| 12 | |||
| 13 | # Let aclocal use the relative path for the m4 file rather than the | ||
| 14 | # absolute since tar has a lot of m4 files, otherwise there might | ||
| 15 | # be an "Argument list too long" error when it is built in a long/deep | ||
| 16 | # directory. | ||
| 17 | acpaths = "-I ./m4" | ||
| 18 | |||
| 19 | do_install () { | ||
| 20 | autotools_do_install | ||
| 21 | ln -s tar ${D}${bindir}/gtar | ||
| 22 | } | ||
| 23 | |||
| 24 | do_install_append_class-target() { | ||
| 25 | if [ "${base_bindir}" != "${bindir}" ]; then | ||
| 26 | install -d ${D}${base_bindir} | ||
| 27 | mv ${D}${bindir}/tar ${D}${base_bindir}/tar | ||
| 28 | mv ${D}${bindir}/gtar ${D}${base_bindir}/gtar | ||
| 29 | rmdir ${D}${bindir}/ | ||
| 30 | fi | ||
| 31 | } | ||
| 32 | |||
| 33 | PACKAGES =+ "${PN}-rmt" | ||
| 34 | |||
| 35 | FILES_${PN}-rmt = "${base_sbindir}/rmt*" | ||
| 36 | |||
| 37 | inherit update-alternatives | ||
| 38 | |||
| 39 | ALTERNATIVE_PRIORITY = "100" | ||
| 40 | |||
| 41 | ALTERNATIVE_${PN} = "tar" | ||
| 42 | ALTERNATIVE_${PN}-rmt = "rmt" | ||
| 43 | ALTERNATIVE_${PN}_class-nativesdk = "" | ||
| 44 | ALTERNATIVE_${PN}-rmt_class-nativesdk = "" | ||
| 45 | |||
| 46 | ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar" | ||
| 47 | ALTERNATIVE_LINK_NAME[rmt] = "${base_sbindir}/rmt" | ||
| 48 | |||
| 49 | PROVIDES_append_class-native = " tar-replacement-native" | ||
| 50 | NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" | ||
| 51 | |||
| 52 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-extended/tar/tar_1.30.bb b/meta/recipes-extended/tar/tar_1.30.bb index e743a6d0d0..3f31622c1d 100644 --- a/meta/recipes-extended/tar/tar_1.30.bb +++ b/meta/recipes-extended/tar/tar_1.30.bb | |||
| @@ -1,18 +1,68 @@ | |||
| 1 | require tar.inc | 1 | SUMMARY = "GNU file archiving program" |
| 2 | 2 | DESCRIPTION = "GNU tar saves many files together into a single tape \ | |
| 3 | PACKAGECONFIG ??= "" | 3 | or disk archive, and can restore individual files from the archive." |
| 4 | PACKAGECONFIG[acl] = "--with-posix-acls, --without-posix-acls, acl," | 4 | HOMEPAGE = "http://www.gnu.org/software/tar/" |
| 5 | 5 | SECTION = "base" | |
| 6 | LICENSE = "GPLv3" | 6 | LICENSE = "GPLv3" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 8 | 8 | ||
| 9 | SRC_URI += "file://remove-gets.patch \ | 9 | SRC_URI = "${GNU_MIRROR}/tar/tar-${PV}.tar.bz2 \ |
| 10 | file://musl_dirent.patch \ | 10 | file://remove-gets.patch \ |
| 11 | " | 11 | file://musl_dirent.patch \ |
| 12 | " | ||
| 13 | |||
| 12 | SRC_URI[md5sum] = "8404e4c1fc5a3000228ab2b8ad674a65" | 14 | SRC_URI[md5sum] = "8404e4c1fc5a3000228ab2b8ad674a65" |
| 13 | SRC_URI[sha256sum] = "87592b86cb037c554375f5868bdd3cc57748aef38d6cb741c81065f0beac63b7" | 15 | SRC_URI[sha256sum] = "87592b86cb037c554375f5868bdd3cc57748aef38d6cb741c81065f0beac63b7" |
| 14 | 16 | ||
| 17 | inherit autotools gettext texinfo | ||
| 18 | |||
| 19 | PACKAGECONFIG ??= "" | ||
| 20 | PACKAGECONFIG[acl] = "--with-posix-acls,--without-posix-acls,acl" | ||
| 21 | |||
| 22 | EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}" | ||
| 23 | |||
| 24 | # Let aclocal use the relative path for the m4 file rather than the | ||
| 25 | # absolute since tar has a lot of m4 files, otherwise there might | ||
| 26 | # be an "Argument list too long" error when it is built in a long/deep | ||
| 27 | # directory. | ||
| 28 | acpaths = "-I ./m4" | ||
| 29 | |||
| 30 | do_install () { | ||
| 31 | autotools_do_install | ||
| 32 | ln -s tar ${D}${bindir}/gtar | ||
| 33 | } | ||
| 34 | |||
| 35 | do_install_append_class-target() { | ||
| 36 | if [ "${base_bindir}" != "${bindir}" ]; then | ||
| 37 | install -d ${D}${base_bindir} | ||
| 38 | mv ${D}${bindir}/tar ${D}${base_bindir}/tar | ||
| 39 | mv ${D}${bindir}/gtar ${D}${base_bindir}/gtar | ||
| 40 | rmdir ${D}${bindir}/ | ||
| 41 | fi | ||
| 42 | } | ||
| 43 | |||
| 15 | do_install_append_libc-musl() { | 44 | do_install_append_libc-musl() { |
| 16 | rm -f ${D}${libdir}/charset.alias | 45 | rm -f ${D}${libdir}/charset.alias |
| 17 | rmdir ${D}${libdir} | 46 | rmdir ${D}${libdir} |
| 18 | } | 47 | } |
| 48 | |||
| 49 | PACKAGES =+ "${PN}-rmt" | ||
| 50 | |||
| 51 | FILES_${PN}-rmt = "${base_sbindir}/rmt*" | ||
| 52 | |||
| 53 | inherit update-alternatives | ||
| 54 | |||
| 55 | ALTERNATIVE_PRIORITY = "100" | ||
| 56 | |||
| 57 | ALTERNATIVE_${PN} = "tar" | ||
| 58 | ALTERNATIVE_${PN}-rmt = "rmt" | ||
| 59 | ALTERNATIVE_${PN}_class-nativesdk = "" | ||
| 60 | ALTERNATIVE_${PN}-rmt_class-nativesdk = "" | ||
| 61 | |||
| 62 | ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar" | ||
| 63 | ALTERNATIVE_LINK_NAME[rmt] = "${base_sbindir}/rmt" | ||
| 64 | |||
| 65 | PROVIDES_append_class-native = " tar-replacement-native" | ||
| 66 | NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" | ||
| 67 | |||
| 68 | BBCLASSEXTEND = "native nativesdk" | ||
