diff options
author | Ross Burton <ross.burton@intel.com> | 2016-05-19 11:43:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-19 22:32:07 +0100 |
commit | a53a9ddbdd4a04dc06de169553fcb82cd871c0cb (patch) | |
tree | c6e3cc3f7179d5295ffe1bd57c812371f16cbdd7 /meta | |
parent | 8949d253f661bcb446e399f6670639a4fc57ef34 (diff) | |
download | poky-a53a9ddbdd4a04dc06de169553fcb82cd871c0cb.tar.gz |
zip: update SRC_URI
The infozip FTP server appears to have been taken down, so change the SRC_URI to
point at their SourceForge project.
Also as the SRC_URI can't be generated from the version and there is no other
user of the .inc, merge the .bb and .inc together.
[ YOCTO #9655 ]
(From OE-Core rev: 5cb1e0ec46e4fde1c15aeb6812eaaece4840ac1c)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/zip/zip.inc | 27 | ||||
-rw-r--r-- | meta/recipes-extended/zip/zip_3.0.bb | 40 |
2 files changed, 32 insertions, 35 deletions
diff --git a/meta/recipes-extended/zip/zip.inc b/meta/recipes-extended/zip/zip.inc deleted file mode 100644 index 21985a4a08..0000000000 --- a/meta/recipes-extended/zip/zip.inc +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | SUMMARY = "Compressor/archiver for creating and modifying .zip files" | ||
2 | HOMEPAGE = "http://www.info-zip.org" | ||
3 | SECTION = "console/utils" | ||
4 | |||
5 | LICENSE = "BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=04d43c5d70b496c032308106e26ae17d" | ||
7 | |||
8 | SRC_URI = "ftp://ftp.info-zip.org/pub/infozip/src/zip${@d.getVar('PV',1).replace('.', '')}.tgz \ | ||
9 | file://fix-security-format.patch" | ||
10 | |||
11 | EXTRA_OEMAKE = "'CC=${CC}' 'BIND=${CC}' 'AS=${CC} -c' 'CPP=${CPP}' \ | ||
12 | 'CFLAGS=-I. -DUNIX ${CFLAGS}' 'INSTALL=install' \ | ||
13 | 'BINFLAGS=0755' 'INSTALL_D=install -d'" | ||
14 | |||
15 | do_compile() { | ||
16 | oe_runmake -f unix/Makefile flags IZ_BZIP2=no_such_directory | ||
17 | sed -i 's#LFLAGS1=""#LFLAGS1="${LDFLAGS}"#' flags | ||
18 | oe_runmake -f unix/Makefile generic IZ_BZIP2=no_such_directory | ||
19 | } | ||
20 | |||
21 | do_install() { | ||
22 | oe_runmake -f unix/Makefile prefix=${D}${prefix} \ | ||
23 | BINDIR=${D}${bindir} MANDIR=${D}${mandir}/man1 \ | ||
24 | install | ||
25 | } | ||
26 | |||
27 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-extended/zip/zip_3.0.bb b/meta/recipes-extended/zip/zip_3.0.bb index 383da4b89e..087423a045 100644 --- a/meta/recipes-extended/zip/zip_3.0.bb +++ b/meta/recipes-extended/zip/zip_3.0.bb | |||
@@ -1,18 +1,42 @@ | |||
1 | require zip.inc | 1 | SUMMARY = "Compressor/archiver for creating and modifying .zip files" |
2 | HOMEPAGE = "http://www.info-zip.org" | ||
3 | SECTION = "console/utils" | ||
2 | 4 | ||
3 | PR="r2" | 5 | LICENSE = "BSD-3-Clause" |
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=04d43c5d70b496c032308106e26ae17d" | ||
7 | |||
8 | PR = "r2" | ||
4 | 9 | ||
5 | # zip-2.32 still uses directory name of zip-2.30 | ||
6 | S = "${WORKDIR}/zip30" | 10 | S = "${WORKDIR}/zip30" |
7 | 11 | ||
12 | SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz \ | ||
13 | file://fix-security-format.patch" | ||
14 | |||
8 | SRC_URI[md5sum] = "7b74551e63f8ee6aab6fbc86676c0d37" | 15 | SRC_URI[md5sum] = "7b74551e63f8ee6aab6fbc86676c0d37" |
9 | SRC_URI[sha256sum] = "f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369" | 16 | SRC_URI[sha256sum] = "f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369" |
10 | 17 | ||
11 | # exclude version 2.3.2 which triggers a false positive | ||
12 | UPSTREAM_CHECK_REGEX = "^zip(?P<pver>(?!232).+)\.tgz" | ||
13 | |||
14 | # zip.inc sets CFLAGS, but what Makefile actually uses is | 18 | # zip.inc sets CFLAGS, but what Makefile actually uses is |
15 | # CFLAGS_NOOPT. It will also force -O3 optimization, overriding | 19 | # CFLAGS_NOOPT. It will also force -O3 optimization, overriding |
16 | # whatever we set. | 20 | # whatever we set. |
17 | # | 21 | EXTRA_OEMAKE = "'CC=${CC}' 'BIND=${CC}' 'AS=${CC} -c' 'CPP=${CPP}' \ |
18 | EXTRA_OEMAKE_append = " 'CFLAGS_NOOPT=-I. -DUNIX ${CFLAGS}'" | 22 | 'CFLAGS=-I. -DUNIX ${CFLAGS}' \ |
23 | 'CFLAGS_NOOPT=-I. -DUNIX ${CFLAGS}' \ | ||
24 | 'INSTALL=install' 'INSTALL_D=install -d' \ | ||
25 | 'BINFLAGS=0755'" | ||
26 | |||
27 | do_compile() { | ||
28 | oe_runmake -f unix/Makefile flags IZ_BZIP2=no_such_directory | ||
29 | sed -i 's#LFLAGS1=""#LFLAGS1="${LDFLAGS}"#' flags | ||
30 | oe_runmake -f unix/Makefile generic IZ_BZIP2=no_such_directory | ||
31 | } | ||
32 | |||
33 | do_install() { | ||
34 | oe_runmake -f unix/Makefile prefix=${D}${prefix} \ | ||
35 | BINDIR=${D}${bindir} MANDIR=${D}${mandir}/man1 \ | ||
36 | install | ||
37 | } | ||
38 | |||
39 | BBCLASSEXTEND = "native" | ||
40 | |||
41 | # exclude version 2.3.2 which triggers a false positive | ||
42 | UPSTREAM_CHECK_REGEX = "^zip(?P<pver>(?!232).+)\.tgz" | ||