mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 22:01:29 +00:00
talloc: upgrade to 2.1.1
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
This commit is contained in:
parent
dbbdf3d241
commit
3a22c67fe3
@ -1,23 +0,0 @@
|
|||||||
Using the way swig interface is installed leads to a bad path in ${D}.
|
|
||||||
The interface ended up in ${D}/${STAGING_DIR_NATIVE} which is wrong. The
|
|
||||||
fix is to define a variable in recipe which is used in install rule by
|
|
||||||
talloc.
|
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [build system specific]
|
|
||||||
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
|
|
||||||
|
|
||||||
Index: talloc-2.0.1/talloc.mk
|
|
||||||
===================================================================
|
|
||||||
--- talloc-2.0.1.orig/talloc.mk 2009-10-11 16:42:24.000000000 +0300
|
|
||||||
+++ talloc-2.0.1/talloc.mk 2012-09-13 23:15:05.283539702 +0300
|
|
||||||
@@ -23,8 +23,8 @@
|
|
||||||
${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
|
|
||||||
if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
|
|
||||||
if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
|
|
||||||
- which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)`swig -swiglib` || true
|
|
||||||
- which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true
|
|
||||||
+ which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)/$(SWIGLIBDIR) || true
|
|
||||||
+ which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 $(srcdir)/$(tallocdir)/talloc.i $(DESTDIR)/$(SWIGLIBDIR) || true
|
|
||||||
|
|
||||||
doc:: talloc.3 talloc.3.html
|
|
||||||
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
Index: talloc-2.0.1/Makefile.in
|
|
||||||
===================================================================
|
|
||||||
--- talloc-2.0.1.orig/Makefile.in
|
|
||||||
+++ talloc-2.0.1/Makefile.in
|
|
||||||
@@ -33,8 +33,8 @@ EXPORTSFILE = @EXPORTSFILE@
|
|
||||||
|
|
||||||
all:: showflags $(EXTRA_TARGETS)
|
|
||||||
|
|
||||||
-include $(tallocdir)/rules.mk
|
|
||||||
-include $(tallocdir)/talloc.mk
|
|
||||||
+include $(srcdir)/$(tallocdir)/rules.mk
|
|
||||||
+include $(srcdir)/$(tallocdir)/talloc.mk
|
|
||||||
|
|
||||||
@TALLOC_COMPAT1_MK@
|
|
||||||
|
|
||||||
Index: talloc-2.0.1/libtalloc.m4
|
|
||||||
===================================================================
|
|
||||||
--- talloc-2.0.1.orig/libtalloc.m4
|
|
||||||
+++ talloc-2.0.1/libtalloc.m4
|
|
||||||
@@ -33,6 +33,6 @@ if test $ac_cv_sizeof_size_t -lt $ac_cv_
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x"$VERSIONSCRIPT" != "x"; then
|
|
||||||
- EXPORTSFILE=talloc.exports
|
|
||||||
+ EXPORTSFILE=$srcdir/$tallocdir/talloc.exports
|
|
||||||
AC_SUBST(EXPORTSFILE)
|
|
||||||
fi
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
|
|
||||||
HOMEPAGE = "http://talloc.samba.org"
|
|
||||||
LICENSE = "LGPL-3.0"
|
|
||||||
LIC_FILES_CHKSUM = "file://NEWS;md5=5fe776b23a711c9153ee94bc87e47334"
|
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
|
||||||
|
|
||||||
SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz \
|
|
||||||
file://install-swig-interface-in-SWINGLIBDIR.patch \
|
|
||||||
file://sepbuild.patch \
|
|
||||||
"
|
|
||||||
SRC_URI[md5sum] = "c6e736540145ca58cb3dcb42f91cf57b"
|
|
||||||
SRC_URI[sha256sum] = "5b810527405f29d54f50efd78bf2c89e318f2cd8bed001f22f2a1412fd27c9b4"
|
|
||||||
|
|
||||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
|
||||||
|
|
||||||
PR = "r2"
|
|
||||||
|
|
||||||
EXTRA_AUTORECONF = "--exclude=autopoint --exclude=aclocal"
|
|
||||||
|
|
||||||
DEPENDS += "swig-native"
|
|
||||||
|
|
||||||
do_install_prepend() {
|
|
||||||
# Hack the way swig interface for talloc is installed
|
|
||||||
# This hack is accompanied by install-swig-interface-in-SWINGLIBDIR.patch
|
|
||||||
if which swig > /dev/null; then
|
|
||||||
SWIGLIBDIR="$(echo $(readlink -f $(swig -swiglib)) | \
|
|
||||||
sed -e 's#^${STAGING_DIR_NATIVE}##')"
|
|
||||||
fi
|
|
||||||
if [ -n "$SWIGLIBDIR" ]; then
|
|
||||||
export SWIGLIBDIR
|
|
||||||
else
|
|
||||||
echo "No swig found"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install_append() {
|
|
||||||
install -d ${D}${libdir}
|
|
||||||
ln -s libtalloc.so.2.0.1 ${D}${libdir}/libtalloc.so.2.0
|
|
||||||
ln -s libtalloc.so.2.0 ${D}${libdir}/libtalloc.so.2
|
|
||||||
ln -s libtalloc.so.2 ${D}${libdir}/libtalloc.so
|
|
||||||
}
|
|
||||||
|
|
||||||
PACKAGES += "${PN}-swig"
|
|
||||||
FILES_${PN}-swig += "${datadir}"
|
|
||||||
45
meta-oe/recipes-support/talloc/talloc_2.1.1.bb
Normal file
45
meta-oe/recipes-support/talloc/talloc_2.1.1.bb
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
|
||||||
|
HOMEPAGE = "http://talloc.samba.org"
|
||||||
|
SECTION = "libs"
|
||||||
|
LICENSE = "LGPL-3.0+ & GPL-3.0+"
|
||||||
|
|
||||||
|
SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz"
|
||||||
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \
|
||||||
|
file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
|
||||||
|
|
||||||
|
SRC_URI[md5sum] = "5dffb86414218a91864ed4453ba9be07"
|
||||||
|
SRC_URI[sha256sum] = "3e29ce6c3ba3c4f7c2d57ce8cf0fbc24c86618c519f2b2fb6a459025488b6174"
|
||||||
|
|
||||||
|
inherit waf-samba
|
||||||
|
|
||||||
|
EXTRA_OECONF += "--disable-rpath \
|
||||||
|
--disable-rpath-install \
|
||||||
|
--bundled-libraries=NONE \
|
||||||
|
--builtin-libraries=replace \
|
||||||
|
--disable-silent-rules \
|
||||||
|
--with-libiconv=${STAGING_DIR_HOST}${prefix}\
|
||||||
|
"
|
||||||
|
|
||||||
|
PACKAGES += "libtalloc libtalloc-dbg libtalloc-dev pytalloc pytalloc-dbg pytalloc-dev"
|
||||||
|
|
||||||
|
#ALLOW_EMPTY_${PN} = "1"
|
||||||
|
FILES_${PN} = ""
|
||||||
|
FILES_${PN}-dev = ""
|
||||||
|
FILES_${PN}-dbg = ""
|
||||||
|
|
||||||
|
FILES_libtalloc = "${libdir}/libtalloc.so.2 \
|
||||||
|
${libdir}/libtalloc.so.2.1.1"
|
||||||
|
FILES_libtalloc-dbg = "/usr/src/debug/ \
|
||||||
|
${libdir}/.debug/libtalloc.so.2.1.1"
|
||||||
|
FILES_libtalloc-dev = "${includedir}/ \
|
||||||
|
${libdir}/libtalloc.so \
|
||||||
|
${libdir}/pkgconfig/"
|
||||||
|
|
||||||
|
FILES_pytalloc = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \
|
||||||
|
${libdir}/libpytalloc-util.so.2 \
|
||||||
|
${libdir}/libpytalloc-util.so.2.1.1 \
|
||||||
|
"
|
||||||
|
FILES_pytalloc-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
|
||||||
|
${libdir}/.debug/libpytalloc-util.so.2.1.1"
|
||||||
|
FILES_pytalloc-dev = "${libdir}/libpytalloc-util.so"
|
||||||
|
RDEPENDS_pytalloc = "python"
|
||||||
Loading…
x
Reference in New Issue
Block a user