diff options
| author | Ross Burton <ross.burton@arm.com> | 2021-12-13 16:49:49 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-12-13 21:20:02 -0800 |
| commit | e4bb3f7985ec308fb7f3c6d2d39fb1d272166e73 (patch) | |
| tree | fcd042e99eee31c32198ce9541d01301c0e45985 /meta-oe | |
| parent | 07034939efb97c421133b26e099765fe9c3af643 (diff) | |
| download | meta-openembedded-e4bb3f7985ec308fb7f3c6d2d39fb1d272166e73.tar.gz | |
srecord: properly initialize libtool
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/srecord/files/libtool.patch | 67 | ||||
| -rw-r--r-- | meta-oe/recipes-support/srecord/srecord_1.64.bb | 7 |
2 files changed, 74 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/srecord/files/libtool.patch b/meta-oe/recipes-support/srecord/files/libtool.patch new file mode 100644 index 0000000000..95063cea59 --- /dev/null +++ b/meta-oe/recipes-support/srecord/files/libtool.patch | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | Instead of just looking for a libtool binary, actually configure libtool. | ||
| 2 | |||
| 3 | As the build doesn't use automake we need to manually set top_builddir in the Makefile. | ||
| 4 | |||
| 5 | Upstream-Status: Inactive-Upstream [2014] | ||
| 6 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 7 | |||
| 8 | diff --git a/Makefile.in b/Makefile.in | ||
| 9 | index a2b5494..aa0b8ca 100644 | ||
| 10 | --- a/Makefile.in | ||
| 11 | +++ b/Makefile.in | ||
| 12 | @@ -36,6 +36,7 @@ | ||
| 13 | # | ||
| 14 | srcdir = @srcdir@ | ||
| 15 | VPATH = @srcdir@ | ||
| 16 | +top_builddir = @srcdir@ | ||
| 17 | |||
| 18 | # | ||
| 19 | # the name of the install program to use | ||
| 20 | diff --git a/etc/configure.ac b/etc/configure.ac | ||
| 21 | index e444543..b137443 100644 | ||
| 22 | --- a/etc/configure.ac | ||
| 23 | +++ b/etc/configure.ac | ||
| 24 | @@ -161,42 +161,7 @@ AS_IF([test "x$with_gcrypt" != xno], AC_GCRYPT_SETUP()) | ||
| 25 | dnl! | ||
| 26 | dnl! Now look for libtool. | ||
| 27 | dnl! | ||
| 28 | -AC_CHECK_PROGS(LIBTOOL, libtool) | ||
| 29 | -if test -z "$LIBTOOL" | ||
| 30 | -then | ||
| 31 | - AC_MSG_RESULT([ | ||
| 32 | - You must have GNU Libtool installed to build srecord. | ||
| 33 | - Homepage: http://www.gnu.org/software/libtool/]) | ||
| 34 | - OK=no | ||
| 35 | - if apt-get --version > /dev/null 2> /dev/null; then | ||
| 36 | - AC_MSG_RESULT([ | ||
| 37 | - The following command may be used to install it: | ||
| 38 | - sudo apt-get install libtool | ||
| 39 | - ]) | ||
| 40 | - OK=yes | ||
| 41 | - fi | ||
| 42 | - if yum --version > /dev/null 2> /dev/null; then | ||
| 43 | - AC_MSG_RESULT([ | ||
| 44 | - The following command may be used to install it: | ||
| 45 | - sudo yum install libtool | ||
| 46 | - ]) | ||
| 47 | - OK=yes | ||
| 48 | - fi | ||
| 49 | - if pkg_info -a > /dev/null 2> /dev/null; then | ||
| 50 | - AC_MSG_RESULT([ | ||
| 51 | - The following command may be used to install it: | ||
| 52 | - sudo pkg_add -r libtool | ||
| 53 | - ]) | ||
| 54 | - OK=yes | ||
| 55 | - fi | ||
| 56 | - if test "$OK" != "yes"; then | ||
| 57 | - AC_MSG_RESULT([ | ||
| 58 | - If you are using a package based install, you will need the | ||
| 59 | - libtool package. | ||
| 60 | - ]) | ||
| 61 | - fi | ||
| 62 | - exit 1 | ||
| 63 | -fi | ||
| 64 | +LT_INIT | ||
| 65 | |||
| 66 | dnl | ||
| 67 | dnl If the soelim program exists, and understands the -I option, | ||
diff --git a/meta-oe/recipes-support/srecord/srecord_1.64.bb b/meta-oe/recipes-support/srecord/srecord_1.64.bb index 3ad2d72777..6f9418b718 100644 --- a/meta-oe/recipes-support/srecord/srecord_1.64.bb +++ b/meta-oe/recipes-support/srecord/srecord_1.64.bb | |||
| @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8dfcbf2f0a144b97f0931b6394debea7" | |||
| 6 | SRC_URI = " \ | 6 | SRC_URI = " \ |
| 7 | http://srecord.sourceforge.net/srecord-${PV}.tar.gz \ | 7 | http://srecord.sourceforge.net/srecord-${PV}.tar.gz \ |
| 8 | file://add-option-to-remove-docs.patch \ | 8 | file://add-option-to-remove-docs.patch \ |
| 9 | file://libtool.patch \ | ||
| 9 | " | 10 | " |
| 10 | 11 | ||
| 11 | SRC_URI[md5sum] = "4de4a7497472d7972645c2af91313769" | 12 | SRC_URI[md5sum] = "4de4a7497472d7972645c2af91313769" |
| @@ -17,6 +18,12 @@ DEPENDS = "boost groff-native" | |||
| 17 | 18 | ||
| 18 | inherit autotools-brokensep | 19 | inherit autotools-brokensep |
| 19 | 20 | ||
| 21 | do_configure:prepend() { | ||
| 22 | # To autoreconf we need the script in ${S}, we can't tell autotools to use | ||
| 23 | # etc/ because then it can't find the Makefile.in | ||
| 24 | ln -s ${S}/etc/configure.ac ${S} | ||
| 25 | } | ||
| 26 | |||
| 20 | PACKAGECONFIG ??= "gcrypt" | 27 | PACKAGECONFIG ??= "gcrypt" |
| 21 | PACKAGECONFIG[gcrypt] = "--with-gcrypt,--without-gcrypt,libgcrypt" | 28 | PACKAGECONFIG[gcrypt] = "--with-gcrypt,--without-gcrypt,libgcrypt" |
| 22 | 29 | ||
