diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-06-17 15:01:05 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-17 17:55:08 +0100 |
commit | 46ec6e5601b88d4270d58586f25626349474d769 (patch) | |
tree | 295df4cc4ae755639160c8279ddcb5feb1e981fe /meta | |
parent | cdbd772492812d2bd16ce9f3d5641910f9df240f (diff) | |
download | openembedded-core-46ec6e5601b88d4270d58586f25626349474d769.tar.gz openembedded-core-46ec6e5601b88d4270d58586f25626349474d769.tar.bz2 openembedded-core-46ec6e5601b88d4270d58586f25626349474d769.zip |
libnewt/libnewt-python: upgrade to 0.52.17
- The company address has changed in COPYING.
- Rebase fix_SHAREDDIR.patch to 0.52.17
- Rebase cross_ar.patch to 0.52.17
- Obsolete fix_python_fpic.patch, since the patch has been
merged by upstream;
- The upstream rename snackmodule to snack in 0.52.17, so tweak
libnewt-python_0.52.17.bb;
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/newt/files/cross_ar.patch | 19 | ||||
-rw-r--r-- | meta/recipes-extended/newt/files/fix_SHAREDDIR.patch | 12 | ||||
-rw-r--r-- | meta/recipes-extended/newt/files/fix_python_fpic.patch | 24 | ||||
-rw-r--r-- | meta/recipes-extended/newt/libnewt-python_0.52.17.bb (renamed from meta/recipes-extended/newt/libnewt-python_0.52.14.bb) | 4 | ||||
-rw-r--r-- | meta/recipes-extended/newt/libnewt_0.52.17.bb (renamed from meta/recipes-extended/newt/libnewt_0.52.14.bb) | 8 |
5 files changed, 29 insertions, 38 deletions
diff --git a/meta/recipes-extended/newt/files/cross_ar.patch b/meta/recipes-extended/newt/files/cross_ar.patch index f67239abda..03007aa4f4 100644 --- a/meta/recipes-extended/newt/files/cross_ar.patch +++ b/meta/recipes-extended/newt/files/cross_ar.patch @@ -12,11 +12,13 @@ Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Upstream-Status: Pending +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> --- - Makefile.in | 3 ++- - configure.ac | 4 ++++ + Makefile.in | 3 ++- + configure.ac | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) +diff --git a/Makefile.in b/Makefile.in --- a/Makefile.in +++ b/Makefile.in @@ -7,6 +7,7 @@ CFLAGS = @CFLAGS@ @@ -27,8 +29,8 @@ Upstream-Status: Pending VERSION = @VERSION@ TAG = r$(subst .,-,$(VERSION)) -@@ -95,7 +96,7 @@ whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH) - $(CC) -shared $(SHCFLAGS) $(LDFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L. -lnewt $(LIBTCL) -lpopt $(LIBS) +@@ -109,7 +110,7 @@ whiptcl.$(SOEXT): $(WHIPTCLOBJS) $(LIBNEWTSH) + $(CC) -shared $(SHCFLAGS) $(LDFLAGS) -o whiptcl.$(SOEXT) $(WHIPTCLOBJS) -L. -lnewt $(LIBTCL) -lpopt $(LIBS) $(LIBNEWT): $(LIBOBJS) - ar rv $@ $^ @@ -36,12 +38,14 @@ Upstream-Status: Pending newt.o $(SHAREDDIR)/newt.o: newt.c Makefile +diff --git a/configure.ac b/configure.ac +index 92e6da8..cd83d57 100644 --- a/configure.ac +++ b/configure.ac -@@ -14,6 +14,10 @@ AC_PROG_CC - AC_PROG_INSTALL +@@ -15,6 +15,10 @@ AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_GREP + AC_SYS_LARGEFILE +AN_MAKEVAR([AR], [AC_PROG_AR]) +AN_PROGRAM([ar], [AC_PROG_AR]) +AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)]) @@ -49,3 +53,6 @@ Upstream-Status: Pending # Are we using GNU ld? AC_MSG_CHECKING([for GNU ld]) +-- +1.8.1.2 + diff --git a/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch b/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch index 7795260388..b0a1e8c105 100644 --- a/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch +++ b/meta/recipes-extended/newt/files/fix_SHAREDDIR.patch @@ -9,17 +9,22 @@ ensure the directory ${SHAREDDIR} exists. We need to push the patch to upstream. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> +--- + Makefile.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) +diff --git a/Makefile.in b/Makefile.in --- a/Makefile.in +++ b/Makefile.in -@@ -114,12 +114,12 @@ +@@ -128,12 +128,12 @@ $(SHAREDDIR): sharedlib: $(LIBNEWTSH) -$(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS) +$(LIBNEWTSH): $(SHAREDOBJS) $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS) - ln -fs $(LIBNEWTSONAME) libnewt.so + ln -fs $(LIBNEWTSONAME) libnewt.$(SOEXT) ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME) -$(SHAREDDIR)/%.o : %.c @@ -27,3 +32,6 @@ Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> $(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< install: $(LIBNEWT) install-sh whiptail +-- +1.8.1.2 + diff --git a/meta/recipes-extended/newt/files/fix_python_fpic.patch b/meta/recipes-extended/newt/files/fix_python_fpic.patch deleted file mode 100644 index 3ef94e0c56..0000000000 --- a/meta/recipes-extended/newt/files/fix_python_fpic.patch +++ /dev/null @@ -1,24 +0,0 @@ -Fix relocations warning when compile python module - -After enable python support in newt, bitbake complains warning: - -WARNING: QA Issue: ELF binary '/mnt/sda10/poky-all-platform/build/tmp/work/i586-poky-linux/libnewt/0.52.14-r2/packages-split/libnewt-python/usr/lib/python2.7/site-packages/_snackmodule.so' has relocations in .text - -Add flag -fPIC to compile _snackmodule.so to fix the warning. - -Signed-off-by: Kang Kai <kai.kang@windriver.com> - -Upstream-Status: Pending - ---- ---- newt-0.52.14/Makefile.in 2012-12-04 17:27:27.578915801 +0800 -+++ newt-0.52.14/Makefile.in.new 2012-12-04 17:28:43.274918472 +0800 -@@ -84,7 +84,7 @@ - PIFLAGS=`$$ver-config --includes`; \ - PLDFLAGS=`$$ver-config --ldflags`; \ - PLFLAGS=`$$ver-config --libs`; \ -- $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\ -+ $(CC) $(SHCFLAGS) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\ - $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L. -lnewt $(LIBS);\ - done || : - touch $@ diff --git a/meta/recipes-extended/newt/libnewt-python_0.52.14.bb b/meta/recipes-extended/newt/libnewt-python_0.52.17.bb index 871b1958eb..d591fbd3d2 100644 --- a/meta/recipes-extended/newt/libnewt-python_0.52.14.bb +++ b/meta/recipes-extended/newt/libnewt-python_0.52.17.bb @@ -12,12 +12,12 @@ EXTRA_OEMAKE += "PYTHONVERS=${PYTHON_DIR}" do_compile () { VERSION="$(sed -n 's/^VERSION = //p' Makefile)" - oe_runmake "LIBNEWTSH=${STAGING_LIBDIR}/libnewt.so.$VERSION" _snackmodule.so + oe_runmake "LIBNEWTSH=${STAGING_LIBDIR}/libnewt.so.$VERSION" _snack.so } do_install () { install -d ${D}${PYTHON_SITEPACKAGES_DIR} - install -m 0755 ${PYTHON_DIR}/_snackmodule.so ${D}${PYTHON_SITEPACKAGES_DIR}/ + install -m 0755 ${PYTHON_DIR}/_snack.so ${D}${PYTHON_SITEPACKAGES_DIR}/ install -m 0644 snack.py ${D}${PYTHON_SITEPACKAGES_DIR}/ } diff --git a/meta/recipes-extended/newt/libnewt_0.52.14.bb b/meta/recipes-extended/newt/libnewt_0.52.17.bb index 65bcf40428..09b017e24e 100644 --- a/meta/recipes-extended/newt/libnewt_0.52.14.bb +++ b/meta/recipes-extended/newt/libnewt_0.52.17.bb @@ -12,7 +12,7 @@ HOMEPAGE = "https://fedorahosted.org/newt/" SECTION = "libs" LICENSE = "LGPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605" +LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" # slang needs to be >= 2.2 DEPENDS = "slang popt" @@ -23,10 +23,10 @@ SRC_URI = "https://fedorahosted.org/releases/n/e/newt/newt-${PV}.tar.gz \ file://remove_slang_include.patch \ file://fix_SHAREDDIR.patch \ file://cross_ar.patch \ - file://fix_python_fpic.patch" +" -SRC_URI[md5sum] = "eb78c6bb658b92ec7198908b5b8d0e37" -SRC_URI[sha256sum] = "f70f4f58baa60388ddf2e39249ffb00898fb40f2b2767e42e2ab51fe4b40978e" +SRC_URI[md5sum] = "f36d4d908965a0c89fd6fd8b61a6118b" +SRC_URI[sha256sum] = "69837973ef2ee2fa644426f1c3e48d2b18785ebcd382ef7fd01eb2e67d2d632b" S = "${WORKDIR}/newt-${PV}" |