Skip to contentSkip to conversation

libiconv: drop EXTRA_OECONF as it is handled by gettext class

PATCH Applied Otavio Salvador 2 participants 6 messages May 15, 2011 – May 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 libiconv: drop EXTRA_OECONF as it is handled by gettext class

---
 .../recipes-support/libiconv/libiconv_1.13.1.bb    |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
meta-oe/recipes-support/libiconv/libiconv_1.13.1.bb +1 -3
index 868314b..35f4e2d 100644
@@ -8,9 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
 BBCLASSEXTEND = "native nativesdk"
 
 PROVIDES = "virtual/libiconv"
-PR = "r2"
-
-EXTRA_OECONF +=  "${@['--disable-nls','--enable-nls'][bb.data.getVar('USE_NLS', d, 1) == 'yes']}"
+PR = "r3"
 
 SRC_URI += "file://autoconf.patch"
 
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 2/3 libpcsclite: add version 1.7.2

The recipe name libpcsclite has been choosen since this is the most important and used part of the project. The daemon itself is optional and not always required to be installed.

---
 meta-oe/recipes-support/pcsc-lite/files/pcscd.init |   32 +++++++++++++++++
 .../recipes-support/pcsc-lite/libpcsclite_1.7.2.bb |   36 ++++++++++++++++++++
 2 files changed, 68 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-support/pcsc-lite/files/pcscd.init
 create mode 100644 meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb
meta-oe/recipes-support/pcsc-lite/files/pcscd.init new file +32 -0
new file mode 100644
index 0000000..92385ab
@@ -0,0 +1,32 @@
+#!/bin/sh
+DAEMON=/usr/sbin/pcscd
+NAME=pcscd
+DESC="PCSC Daemon"
+PIDFILE=/var/run/pcscd/pcscd.pid
+ARGS=""
+
+test -f $DAEMON || exit 0
+
+case "$1" in
+    start)
+        echo -n "Starting $DESC: $NAME"
+        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $ARGS
+        echo "."
+        ;;
+    stop)
+        echo -n "Stopping $DESC: $NAME"
+        start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
+        echo "."
+        ;;
+    restart)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+    *)
+        echo "Usage: $0 {start|stop|restart}"
+        exit 1
+        ;;
+esac
+
+exit 0
meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb new file +36 -0
new file mode 100644
index 0000000..6326152
@@ -0,0 +1,36 @@
+DESCRIPTION = "PC/SC Lite smart card framework and applications"
+HOMEPAGE = "http://pcsclite.alioth.debian.org/"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=c8e551349dc346258274f0007679e149"
+DEPENDS = "udev"
+PR = "r0"
+
+SRC_URI = "https://alioth.debian.org/frs/download.php/3533/pcsc-lite-${PV}.tar.bz2 \
+           file://pcscd.init "
+
+SRC_URI[md5sum] = "47e7055cfc14399fdaa1b7a4aa06e5aa"
+SRC_URI[sha256sum] = "41f13d552eaa2c3978fbb6f2125e81903a0767011d999052fd1a6ee03880b398"
+
+inherit autotools update-rc.d
+
+INITSCRIPT_PACKAGES = "pcscd"
+INITSCRIPT_NAME_pcscd = "pcscd"
+INITSCRIPT_PARAMS_pcscd = "defaults"
+
+EXTRA_OECONF = " \
+	--enable-libusb \
+	--disable-libudev \
+	--enable-usbdropdir=${libdir}/pcsc/drivers \
+	"
+
+S = "${WORKDIR}/pcsc-lite-${PV}"
+
+do_install() {
+	oe_runmake DESTDIR="${D}" install
+	install -d "${D}/etc/init.d"
+	install -m 755 "${WORKDIR}/pcscd.init" "${D}/etc/init.d/pcscd"
+}
+
+PACKAGES =+ "pcscd"
+
+FILES_pcscd = "${bindir}/pscsd ${sysconfdir}/init.d"
Signature · 1 line
1.7.2.5
#2 lore raw

Re: [meta-oe][PATCH v1 2/3] libpcsclite: add version 1.7.2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Otavio Salvador

The recipe name libpcsclite has been choosen since this is the most important and used part of the project. The daemon itself is optional and not always required to be installed.

Wouldn't debian.bbclass already take care of such renaming with proper packaging?

meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb line 18

Quoted 5 lines

+++ b/meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb

meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb new file +3 -0
+INITSCRIPT_PACKAGES = "pcscd"
+INITSCRIPT_NAME_pcscd = "pcscd"
+INITSCRIPT_PARAMS_pcscd = "defaults"

These should go near the other _pscsd entries

meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb line 22

Quoted 4 lines
meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb new file +4 -0
+
+EXTRA_OECONF = " \
+	--enable-libusb \
+	--disable-libudev \

Please add the proper libusb to DEPENDS and a comment why udev is in DEPENDS, but disabled
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFN0M8GMkyGM64RGpERAsJXAJ9aFHqXmtSGZ2rDgvTSnu+5DAPK/wCeNonq weHpoQIB5GTXDvMvOjT4d/w=
=rHle
-----END PGP SIGNATURE-----

#3 lore raw

Re: [meta-oe][PATCH v1 2/3] libpcsclite: add version 1.7.2

Quoted 10 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Otavio Salvador

The recipe name libpcsclite has been choosen since this is the most important and used part of the project. The daemon itself is optional and not always required to be installed.

Wouldn't debian.bbclass already take care of such renaming with proper packaging?

It does for soname but not for -dev and -doc that is mostly related to the library, not the daemon.

Quoted 8 lines

meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb line 18

Quoted 5 lines

+++ b/meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb

meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb new file +3 -0
+INITSCRIPT_PACKAGES = "pcscd"
+INITSCRIPT_NAME_pcscd = "pcscd"
+INITSCRIPT_PARAMS_pcscd = "defaults"

These should go near the other _pscsd entries

Quoted 7 lines

meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb line 22

Quoted 4 lines
meta-oe/recipes-support/pcsc-lite/libpcsclite_1.7.2.bb new file +4 -0
+
+EXTRA_OECONF = " \
+     --enable-libusb \
+     --disable-libudev \

Please add the proper libusb to DEPENDS and a comment why udev is in DEPENDS, but disabled

Fixed. Will post it again.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#4 lore raw

PATCH 3/3 freerdp: update to 2011-05-14 snapshot

In reply to Otavio Salvador

This version includes major improvements since last version packages. It also had the plugins packages redone so they can be choosen depending on the environment needs.

---
 meta-oe/recipes-support/freerdp/freerdp.inc    |   40 +++++++++++++++++++----
 meta-oe/recipes-support/freerdp/freerdp_git.bb |    4 +-
 2 files changed, 35 insertions(+), 9 deletions(-)
meta-oe/recipes-support/freerdp/freerdp.inc +33 -7
index f8402c7..15ceadd 100644
@@ -3,22 +3,48 @@
 
 DESCRIPTION = "FreeRDP RDP client"
 HOMEPAGE = "http://freerdp.sourceforge.net"
-DEPENDS = "virtual/libx11 openssl libxcursor cups alsa-lib"
+DEPENDS = "virtual/libx11 openssl libxcursor libxv cups alsa-lib pulseaudio libpcsclite"
 SECTION = "x11/network"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
-INC_PR = "r0"
+INC_PR = "r1"
 
 inherit pkgconfig autotools
 
-do_configure_prepend() {
-	# workaround gcc linking bug
-	find ${S} -name 'Makefile.am' | xargs -n 1 sed 's,-pthread,-lpthread -D_REENTRANT,g' -i
-}
+EXTRA_OECONF += "--with-smartcard --with-xvideo"
 
 do_install_append() {
 	rm ${D}${libdir}/freerdp/*.a ${D}${libdir}/freerdp/*.la
 }
 
-RDEPENDS_${PN} += "xprop"
+PACKAGES =+ "libfreerdp"
+
+LEAD_SONAME = "libfreerdp.so"
+FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
+
+PACKAGES_DYNAMIC = "libfreerdp-plugin-*"
+
+python populate_packages_prepend () {
+        freerdp_root = bb.data.expand('${libdir}/freerdp', d)
+
+        do_split_packages(d, freerdp_root, '^(audin_.*)\.so$',
+                output_pattern='libfreerdp-plugin-%s',
+                description='FreeRDP plugin %s',
+                prepend=True, extra_depends='libfreerdp-plugin-audin')
+
+        do_split_packages(d, freerdp_root, '^(rdpsnd_.*)\.so$',
+                output_pattern='libfreerdp-plugin-%s',
+                description='FreeRDP plugin %s',
+                prepend=True, extra_depends='libfreerdp-plugin-rdpsnd')
+
+        do_split_packages(d, freerdp_root, '^(tsmf_.*)\.so$',
+                output_pattern='libfreerdp-plugin-%s',
+                description='FreeRDP plugin %s',
+                prepend=True, extra_depends='libfreerdp-plugin-tsmf')
+
+        do_split_packages(d, freerdp_root, '^([^-]*)\.so$',
+                output_pattern='libfreerdp-plugin-%s',
+                description='FreeRDP plugin %s',
+                prepend=True, extra_depends='')
+}
meta-oe/recipes-support/freerdp/freerdp_git.bb +2 -2
index fa4ba9a..5bdb0af 100644
@@ -7,9 +7,9 @@ inherit gitpkgv
 
 PV = "gitr${SRCPV}"
 PKGV = "${GITPKGVTAG}"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
-SRCREV = "7bbde4fb3bc3a781364d0a626c49bc165cc507fd"
+SRCREV = "18e9d76c1936b6efc4ab6d91d127be20173ec903"
 SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;protocol=git"
 
 S = "${WORKDIR}/git"
Signature · 1 line
1.7.2.5
Applied
#5 lore raw
In reply to Otavio Salvador

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Otavio Salvador

Applied, thanks

Quoted 9 lines
---
 .../recipes-support/libiconv/libiconv_1.13.1.bb    |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
meta-oe/recipes-support/libiconv/libiconv_1.13.1.bb +0 -0
index 868314b..35f4e2d 100644

meta-oe/recipes-support/libiconv/libiconv_1.13.1.bb LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ · line 14

Quoted 10 lines
meta-oe/recipes-support/libiconv/libiconv_1.13.1.bb +1 -3
@@ -8,9 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
 BBCLASSEXTEND = "native nativesdk"
 
 PROVIDES = "virtual/libiconv"
-PR = "r2"
-
-EXTRA_OECONF +=  "${@['--disable-nls','--enable-nls'][bb.data.getVar('USE_NLS', d, 1) == 'yes']}"
+PR = "r3"
 
 SRC_URI += "file://autoconf.patch"
 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFN0M0TMkyGM64RGpERAhakAJ0TcMMQGhMJwVr2N85Ji9g9pLT3uACfWpZY flqGMSqF2HjX9RgJ8wjV4ik=
=WuEb
-----END PGP SIGNATURE-----