Add packages and fix failures of LSB.
From: Jingdong Lu <[email protected]>
* Add mailx, msmtp, cups based on Open Embedded
* Enable "--with-legacy" for libxml2 in order to pass LSB test
* Add "--enable-clocale=gnu" option explicitly for gcc
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: jingdonglu/distro
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=jingdonglu/distro
Thanks,
Jingdong Lu <[email protected]>
---
Jingdong Lu (5):
gcc: Add "--enable-clocale=gnu" option explicitly
mailx: add mailx 12.4
msmtp: add msmtp 1.4.23
cups: add cups 1.4.6
libxml2: Enable "--with-legacy" for LSB test.
PATCH 1/5 gcc: Add "--enable-clocale=gnu" option explicitly
From: Jingdong Lu <[email protected]>
Add "--enable-clocale=gun" option for gcc configuration explicitly in order to make sure C++ library can use correct locale module.
--- meta/recipes-devtools/gcc/gcc-configure-common.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-devtools/gcc/gcc-configure-common.inc +1 -1
@@ -27,7 +27,7 @@ EXTRA_OECONF_INTERMEDIATE ?= "" GCCMULTILIB = "--disable-multilib" -EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ +EXTRA_OECONF = "${@['--enable-clocale=generic', ' --enable-clocale=gnu'][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ --with-gnu-ld \ --enable-shared \ --enable-languages=${LANGUAGES} \
Signature · 1 line
1.7.0.4
PATCH 2/5 mailx: add mailx 12.4
In reply to Jingdong LuFrom: Jingdong Lu <[email protected]>
This package has been added from Open Embedded.
Changes from the Open Embedded version:
* Update version to 12.4(mailx has been replaced by heirloom-mailx)
* Add SUMMARY, LIC_FILES_CHKSUM
* Remove patch(install.patch)
--- meta/recipes-extended/mailx/mailx_12.4.bb | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-extended/mailx/mailx_12.4.bb
meta/recipes-extended/mailx/mailx_12.4.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "mailx is the traditional command-line-mode mail user agent." + +DESCRIPTION = "Mailx is derived from Berkeley Mail and is intended provide the \ +functionality of the POSIX mailx command with additional support \ +for MIME, IMAP, POP3, SMTP, and S/MIME." + +HOMEPAGE = "http://heirloom.sourceforge.net/mailx.html" +SECTION = "console/network" +PRIORITY = "required" +PR = "r0" +LICENSE = "GPL" +LIC_FILES_CHKSUM = "file://COPYING;md5=4202a0a62910cf94f7af8a3436a2a2dd" + +SRC_URI = "${DEBIAN_MIRROR}/main/h/heirloom-mailx/heirloom-mailx_${PV}.orig.tar.gz;name=archive \ + ${DEBIAN_MIRROR}/main/h/heirloom-mailx/heirloom-mailx_${PV}-2.diff.gz;name=patch \ + " +SRC_URI[archive.md5sum] = "17b8ff86795a118b199e041b66b7d1aa" +SRC_URI[archive.sha256sum] = "946d822cbff70df2ecf5b78c8347fdd01fdc5873f7a7cf55932b3e07030fa370" +SRC_URI[patch.md5sum] = "3233d1a85fcb4dcde689132a1bba7fc9" +SRC_URI[patch.sha256sum] = "b15fac77973b7d787469e51bbbeae7ddbe922b02a0c23208b9779ce837eba861" + +S = "${WORKDIR}/mailx-${PV}" + +inherit autotools + +CFLAGS_append = " -D_BSD_SOURCE -DDEBIAN -I${S}/EXT"
Signature · 1 line
1.7.0.4
PATCH 3/5 msmtp: add msmtp 1.4.23
In reply to Jingdong LuFrom: Jingdong Lu <[email protected]>
This package has been added from Open Embedded in order to replace sendmail. Changes from the Open Embedded version:
* Update version to 1.4.23
* Add SUMMARY, LIC_FILES_CHKSUM
--- meta/recipes-extended/msmtp/msmtp_1.4.23.bb | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-extended/msmtp/msmtp_1.4.23.bb
meta/recipes-extended/msmtp/msmtp_1.4.23.bb new file +21 -0
@@ -0,0 +1,21 @@ +SUMMARY = "msmtp is an SMTP client." +DESCRIPTION = "A sendmail replacement for use in MTAs like mutt" +HOMEPAGE = "http://msmtp.sourceforge.net/" +SECTION = "console/network" + +PRIORITY = "required" +LICENSE = "GPLv3" +DEPENDS = "zlib gnutls" +PR = "r0" + + +#COPYING or Licence +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +SRC_URI = "http://sourceforge.net/projects/msmtp/files/msmtp/${PV}/${PN}-${PV}.tar.bz2 \ + " + +SRC_URI[md5sum] = "5fb7ae88186624cdb125d3efad3fdc16" +SRC_URI[sha256sum] = "269cd30eeb867167c6a599e23399f4fc24196fcdef3bac5b120d806b3b421810" + +inherit gettext autotools
Signature · 1 line
1.7.0.4
PATCH 4/5 cups: add cups 1.4.6
In reply to Jingdong LuFrom: Jingdong Lu <[email protected]>
This package has been added from Open Embedded. Changes from the Open Embedded version:
* Update to version 1.4.6
* Add SUMMARY, LIC_FILES_CHKSUM, checksum of source
* Remove skip_tools.patch
* Remove fakeroot and rename libusb0 to libusb for dependence.
--- .../cups/cups-1.4.6/configure.patch | 117 ++++++++++++++++++++ .../cups/cups-1.4.6/use_echo_only_in_init.patch | 11 ++ meta/recipes-extended/cups/cups.inc | 88 +++++++++++++++ meta/recipes-extended/cups/cups_1.4.6.bb | 17 +++ 4 files changed, 233 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-extended/cups/cups-1.4.6/configure.patch create mode 100644 meta/recipes-extended/cups/cups-1.4.6/use_echo_only_in_init.patch create mode 100644 meta/recipes-extended/cups/cups.inc create mode 100644 meta/recipes-extended/cups/cups_1.4.6.bb
meta/recipes-extended/cups/cups-1.4.6/configure.patch new file +117 -0
@@ -0,0 +1,117 @@ +--- cups-1.4.3/configure.orig 2010-04-08 11:14:19.092296014 +0200 ++++ cups-1.4.3/configure 2010-04-08 11:19:02.661417938 +0200 +@@ -10940,114 +10940,6 @@ + OPTIM="-fPIC $OPTIM" + fi + +- # The -fstack-protector option is available with some versions of +- # GCC and adds "stack canaries" which detect when the return address +- # has been overwritten, preventing many types of exploit attacks. +- { echo "$as_me:$LINENO: checking if GCC supports -fstack-protector" >&5 +-echo $ECHO_N "checking if GCC supports -fstack-protector... $ECHO_C" >&6; } +- OLDCFLAGS="$CFLAGS" +- CFLAGS="$CFLAGS -fstack-protector" +- cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext conftest$ac_exeext +-if { (ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_link") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest$ac_exeext && +- $as_test_x conftest$ac_exeext; then +- OPTIM="$OPTIM -fstack-protector" +- { echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6; } +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- { echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6; } +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +- conftest$ac_exeext conftest.$ac_ext +- CFLAGS="$OLDCFLAGS" +- +- # The -pie option is available with some versions of GCC and adds +- # randomization of addresses, which avoids another class of exploits +- # that depend on a fixed address for common functions. +- { echo "$as_me:$LINENO: checking if GCC supports -pie" >&5 +-echo $ECHO_N "checking if GCC supports -pie... $ECHO_C" >&6; } +- OLDCFLAGS="$CFLAGS" +- CFLAGS="$CFLAGS -pie -fPIE" +- cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext +-if { (ac_try="$ac_compile" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_compile") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then +- PIEFLAGS="-pie -fPIE" +- { echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6; } +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- { echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6; } +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="$OLDCFLAGS" +- + if test "x$with_optim" = x; then + # Add useful warning options for tracking down problems... + OPTIM="-Wall -Wno-format-y2k $OPTIM"
meta/recipes-extended/cups/cups-1.4.6/use_echo_only_in_init.patch new file +11 -0
@@ -0,0 +1,11 @@ +--- a/init/cups.sh.in.orig 2008-10-04 16:50:46.000000000 -0300 ++++ b/init/cups.sh.in 2008-10-04 16:51:39.000000000 -0300 +@@ -68,7 +68,7 @@ + ECHO_ERROR=: + ;; + +- Linux*) ++ DISABLELinux*) + IS_ON=/bin/true + if test -f /etc/init.d/functions; then + . /etc/init.d/functions
meta/recipes-extended/cups/cups.inc new file +88 -0
88 lines not on this page · raw message
meta/recipes-extended/cups/cups_1.4.6.bb new file +17 -0
@@ -0,0 +1,17 @@ +require cups.inc + +SRC_URI += " \ + file://use_echo_only_in_init.patch \ + file://configure.patch \ + " +PR = "r0" + +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=956e7600195e6139f12de8c2a5bbefa9" + +SRC_URI[md5sum] = "de8fb5a29c36554925c0c6a6e2c0dae1" +SRC_URI[sha256sum] = "f08711702a77b52c7150f96fe1f45482f6151cb95ef601268c528607fe6ad514" + +DEFAULT_PREFERENCE = "-1" +DEPENDS += "libusb" +EXTRA_OECONF += " --disable-gssapi --disable-largefile --enable-debug --disable-relro --enable-libusb" +CONFFILES_${PN} += "${sysconfdir}/cups/cupsd.conf"
Signature · 1 line
1.7.0.4
PATCH 5/5 libxml2: Enable "--with-legacy" for LSB test.
In reply to Jingdong LuFrom: Jingdong Lu <[email protected]>
Enable "--with-legacy" in order to pass library check of LSB.
--- meta/recipes-core/libxml/libxml2.inc | 2 +- meta/recipes-core/libxml/libxml2_2.7.7.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/libxml/libxml2.inc +1 -1
@@ -21,7 +21,7 @@ inherit autotools pkgconfig binconfig EXTRA_OECONF = "--without-python --without-debug --without-legacy --without-catalog --without-docbook --with-c14n" EXTRA_OECONF_virtclass-native = "--with-python=${STAGING_BINDIR}/python --without-legacy --with-catalog --without-docbook --with-c14n" -EXTRA_OECONF_poky-lsb = "--without-python --with-debug --without-legacy --with-catalog --with-docbook --with-c14n" +EXTRA_OECONF_poky-lsb = "--without-python --with-debug --with-legacy --with-catalog --with-docbook --with-c14n" # required for pythong binding export HOST_SYS
meta/recipes-core/libxml/libxml2_2.7.7.bb +1 -1
@@ -1,6 +1,6 @@ require libxml2.inc -PR = "r3" +PR = "r4" SRC_URI[md5sum] = "9abc9959823ca9ff904f1fbcf21df066" SRC_URI[sha256sum] = "af5b781418ba4fff556fa43c50086658ea8a2f31909c2b625c2ce913a1d9eb68"
Signature · 1 line
1.7.0.4
Re: [PATCH 1/5] gcc: Add "--enable-clocale=gnu" option explicitly
In reply to Jingdong LuQuoted 30 lines
From: Jingdong Lu
Sent: Sunday, January 30, 2011 3:36 PMFrom: Jingdong Lu <[email protected]>
Add "--enable-clocale=gun" option for gcc configuration explicitly in order to make sure C++ library can use correct locale module.
Signed-off-by Jingdong Lu <[email protected]>--- meta/recipes-devtools/gcc/gcc-configure-common.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)meta/recipes-devtools/gcc/gcc-configure-common.inc +1
-3@@ -27,7 +27,7 @@ EXTRA_OECONF_INTERMEDIATE ?= "" GCCMULTILIB = "--disable-multilib" -EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ +EXTRA_OECONF = "${@['--enable-clocale=generic', ' --enable-clocale=gnu'][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ --with-gnu-ld \ --enable-shared \ --enable-languages=${LANGUAGES} \ --
Quoted 2 lines
1.7.0.4
PR bump is expected for all gcc recipes affected by this change.
Thanks
Kevin
Re: [PATCH 4/5] cups: add cups 1.4.6
In reply to Jingdong LuFWIW, there's also a cleaned-up cups in meta-oe
Op 30 jan 2011, om 08:36 heeft Jingdong Lu het volgende geschreven:
Quoted 285 lines
From: Jingdong Lu <[email protected]>
This package has been added from Open Embedded. Changes from the Open Embedded version:
* Update to version 1.4.6
* Add SUMMARY,LIC_FILES_CHKSUM, checksum of source
* Remove skip_tools.patch
* Remove fakeroot and rename libusb0 to libusb for dependence.Signed-off-by Jingdong Lu <[email protected]>---
.../cups/cups-1.4.6/configure.patch | 117 ++++++++++++++++++++ .../cups/cups-1.4.6/use_echo_only_in_init.patch | 11 ++ meta/recipes-extended/cups/cups.inc | 88 +++++++++++++++ meta/recipes-extended/cups/cups_1.4.6.bb | 17 +++ 4 files changed, 233 insertions(+), 0 deletions(-)create mode 100644
meta/recipes-extended/cups/cups-1.4.6/configure.patchcreate mode 100644meta/recipes-extended/cups/cups-1.4.6/use_echo_only_in_init.patchcreate mode 100644 meta/recipes-extended/cups/cups.inc
create mode 100644 meta/recipes-extended/cups/cups_1.4.6.bbmeta/recipes-extended/cups/cups-1.4.6/configure.patch new file +117
-0@@ -0,0 +1,117 @@ +--- cups-1.4.3/configure.orig 2010-04-08 11:14:19.092296014 +0200 ++++ cups-1.4.3/configure 2010-04-08 11:19:02.661417938 +0200 +@@ -10940,114 +10940,6 @@ + OPTIM="-fPIC $OPTIM" + fi + +- # The -fstack-protector option is available with some versions of +- # GCC and adds "stack canaries" which detect when the return address +- # has been overwritten, preventing many types of exploit attacks. +- { echo "$as_me:$LINENO: checking if GCC supports -fstack-protector" >&5 +-echo $ECHO_N "checking if GCC supports -fstack-protector... $ECHO_C" >&6; } +- OLDCFLAGS="$CFLAGS" +- CFLAGS="$CFLAGS -fstack-protector" +- cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext conftest$ac_exeext +-if { (ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_link") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest$ac_exeext && +- $as_test_x conftest$ac_exeext; then +- OPTIM="$OPTIM -fstack-protector" +- { echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6; } +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- { echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6; } +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ +- conftest$ac_exeext conftest.$ac_ext +- CFLAGS="$OLDCFLAGS" +- +- # The -pie option is available with some versions of GCC and adds +- # randomization of addresses, which avoids another class of exploits +- # that depend on a fixed address for common functions. +- { echo "$as_me:$LINENO: checking if GCC supports -pie" >&5 +-echo $ECHO_N "checking if GCC supports -pie... $ECHO_C" >&6; } +- OLDCFLAGS="$CFLAGS" +- CFLAGS="$CFLAGS -pie -fPIE" +- cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.$ac_objext +-if { (ac_try="$ac_compile" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +- (eval "$ac_compile") 2>conftest.er1 +- ac_status=$? +- grep -v '^ *+' conftest.er1 >conftest.err +- rm -f conftest.er1 +- cat conftest.err >&5 +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then +- PIEFLAGS="-pie -fPIE" +- { echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6; } +-else +- echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- { echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6; } +-fi +- +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="$OLDCFLAGS" +- + if test "x$with_optim" = x; then + # Add useful warning options for tracking down problems... + OPTIM="-Wall -Wno-format-y2k $OPTIM"meta/recipes-extended/cups/cups-1.4.6/use_echo_only_in_init.patch new file +11
-0@@ -0,0 +1,11 @@ +--- a/init/cups.sh.in.orig 2008-10-04 16:50:46.000000000 -0300 ++++ b/init/cups.sh.in 2008-10-04 16:51:39.000000000 -0300 +@@ -68,7 +68,7 @@ + ECHO_ERROR=: + ;; + +- Linux*) ++ DISABLELinux*) + IS_ON=/bin/true + if test -f /etc/init.d/functions; then + . /etc/init.d/functionsmeta/recipes-extended/cups/cups.inc new file +88
-0@@ -0,0 +1,88 @@ +SUMMARY = "An Internet printing system for Unix" +DESCRIPTION = "CUPS is a standards-based, open source printing system \ +developed by Apple Inc. for Mac OS® X and other UNIX®-like operating systems.\ +CUPS uses the Internet Printing Protocol ("IPP") and provides System V and Berkeley \ +command-line interfaces, a web interface, and a C API to manage printers and \ +print jobs." +SECTION = "console/utils" +LICENSE = "GPL LGPL" +DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib" +PROVIDES = "cups" + +SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2" + +LEAD_SONAME = "libcupsdriver.so" + +inherit autotools binconfig + +EXTRA_OECONF = " \ + --enable-gnutls \ + --enable-dbus \ + --enable-browsing \ + --disable-openssl \ + --disable-tiff \ + --without-php \ + --without-perl \ + --without-python \ + --without-java \ + " + + +do_configure() { + gnu-configize + libtoolize --force + DSOFLAGS="${LDFLAGS}" oe_runconf +} + +do_compile () { + sed -i s:STRIP:NOSTRIP: Makedefs + sed -i s:serial:: backend/Makefile + + echo "all:" > man/Makefile + echo "libs:" >> man/Makefile + echo "install:" >> man/Makefile + echo "install-data:" >> man/Makefile + echo "install-exec:" >> man/Makefile + echo "install-headers:" >> man/Makefile + echo "install-libs:" >> man/Makefile + + oe_runmake "SSLLIBS=-lgnutls -L${STAGING_LIBDIR}" \ + "LIBPNG=-lpng -lm -L${STAGING_LIBDIR}" \ + "LIBJPEG=-ljpeg -L${STAGING_LIBDIR}" \ + "LIBZ=-lz -L${STAGING_LIBDIR}" \ + "-I." +} + +do_install () { + oe_runmake "DSTROOT=${D}" install + + # This directory gets installed with perms 511, which makes packaging fail + chmod 0711 "${D}/${localstatedir}/run/cups/certs" +} + +python do_package_append() { + # Change permissions back the way they were, they probably had a reason... + workdir = bb.data.getVar('WORKDIR', d, 1) + os.system('chmod 0511 %s/install/cups/var/run/cups/certs' % workdir) +} + +PACKAGES =+ "${PN}-lib ${PN}-libimage" + +FILES_${PN}-lib = "${libdir}/libcups.so.*" + +FILES_${PN}-libimage = "${libdir}/libcupsimage.so.*" + +FILES_${PN}-dbg += "${libdir}/cups/backend/.debug \ + ${libdir}/cups/cgi-bin/.debug \ + ${libdir}/cups/filter/.debug \ + ${libdir}/cups/monitor/.debug \ + ${libdir}/cups/notifier/.debug \ + ${libdir}/cups/daemon/.debug \ + " +#package the html for the webgui inside the main packages (~1MB uncompressed) + +FILES_${PN} += "${datadir}/doc/cups/images \ + ${datadir}/doc/cups/*html \ + ${datadir}/doc/cups/*.css \ + ${datadir}/icons/ \ + "meta/recipes-extended/cups/cups_1.4.6.bb new file +17
-0@@ -0,0 +1,17 @@ +require cups.inc + +SRC_URI += " \ + file://use_echo_only_in_init.patch \ + file://configure.patch \ + " +PR = "r0" + +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=956e7600195e6139f12de8c2a5bbefa9" + +SRC_URI[md5sum] = "de8fb5a29c36554925c0c6a6e2c0dae1" +SRC_URI[sha256sum] = "f08711702a77b52c7150f96fe1f45482f6151cb95ef601268c528607fe6ad514" + +DEFAULT_PREFERENCE = "-1" +DEPENDS += "libusb" +EXTRA_OECONF += " --disable-gssapi --disable-largefile --enable-debug --disable-relro --enable-libusb" +CONFFILES_${PN} += "${sysconfdir}/cups/cupsd.conf"Signature · 6 lines
1.7.0.4 _______________________________________________ poky mailing list [email protected] https://lists.yoctoproject.org/listinfo/poky
Re: [poky] [PATCH 4/5] cups: add cups 1.4.6
In reply to a message not in the archiveOp 30 jan 2011, om 10:56 heeft Frans Meulenbroeks het volgende geschreven:
Quoted 4 lines
2011/1/30 Koen Kooi <[email protected]>:
Quoted 2 lines
FWIW, there's also a cleaned-up cups in meta-oe
It is not that clean as it has QA issues.
The cups in meta-oe is 1.4.x, you are posting 1.2.x QA errors.
Quoted 31 lines
I posted the message below a few days ago to the OE mailing list. I've not too much knowledge on .desktop files, so I have no idea how to fix it.
Frans.
--- forwarded message
Hi,
I got this while building cups, but I am not a gnome person (actually I am only intterested in the server part).
ERROR: QA Issue with cups:
/home/hudson/jobs/FM_TEST/workspace/tmp/work/ppce500v2-oe-linux-gnuspe/cups-1.2.12-r7.2/packages-split/cups/usr/share/applications/cups.desktop:
warning: value "Application;System;X-Red-Hat-Base;" for key
"Categories" in group "Desktop Entry" contains a deprecated value
"Application"
ERROR: QA Issue with cups:/home/hudson/jobs/FM_TEST/workspace/tmp/work/ppce500v2-oe-linux-gnuspe/cups-1.2.12-r7.2/packages-split/cups/usr/share/applications/cups.desktop:
warning: key "Encoding" in group "Desktop Entry" is deprecated
ERROR: QA Issue with cups:/home/hudson/jobs/FM_TEST/workspace/tmp/work/ppce500v2-oe-linux-gnuspe/cups-1.2.12-r7.2/packages-split/cups/usr/share/applications/cups.desktop:
warning: value "" for key "Path" in group "Desktop Entry" does not
look like an absolute path
ERROR: QA Issue with cups:/home/hudson/jobs/FM_TEST/workspace/tmp/work/ppce500v2-oe-linux-gnuspe/cups-1.2.12-r7.2/packages-split/cups/usr/share/applications/cups.desktop:
warning: key "TerminalOptions" in group "Desktop Entry" is deprecatedAnyone care to fix this or provide a suggestion on how to fix ?
Thanks, Frans
Re: [PATCH 4/5] cups: add cups 1.4.6
In reply to Jingdong LuOp 30 jan 2011, om 08:36 heeft Jingdong Lu het volgende geschreven:
Quoted 7 lines
From: Jingdong Lu <[email protected]>
This package has been added from Open Embedded. Changes from the Open Embedded version:
* Update to version 1.4.6
* Add SUMMARY,LIC_FILES_CHKSUM, checksum of source
* Remove skip_tools.patch
The skip_tools patch is needed for cross-compiling, without it it will try to run genstrings and the ppd generator. I cleaned up the cups in meta-oe and that builds cleanly for armv7a now. You can steal the updated skip_tools patch from there.
I also updated the license to GPLv2 and LGPLv2, but I'm not sure how to add the apple and ssl exception is lists in LICENSE.txt.
regards,
Koen
Re: [PATCH 1/5] gcc: Add "--enable-clocale=gnu" option explicitly
In reply to Tian, KevinQuoted 22 lines · Kevin
Quoted 22 lines
From: Jingdong Lu
Sent: Sunday, January 30, 2011 3:36 PMFrom: Jingdong Lu<[email protected]>
Add "--enable-clocale=gun" option for gcc configuration explicitly in order to make sure C++ library can use correct locale module.
Signed-off-by Jingdong Lu<[email protected]>--- meta/recipes-devtools/gcc/gcc-configure-common.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)meta/recipes-devtools/gcc/gcc-configure-common.inc +0
-0@@ -27,7 +27,7 @@ EXTRA_OECONF_INTERMEDIATE ?= "" GCCMULTILIB = "--disable-multilib"
Quoted 13 lines
Quoted 10 lines
meta/recipes-devtools/gcc/gcc-configure-common.inc +1
-3-EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ +EXTRA_OECONF = "${@['--enable-clocale=generic', ' --enable-clocale=gnu'][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ --with-gnu-ld \ --enable-shared \ --enable-languages=${LANGUAGES} \ --1.7.0.4
PR bump is expected for all gcc recipes affected by this change.
Yes, I agree with Kevin on this, also what is the impact to generated binaries? Does this add any size to compiled binaries?
Sau!
Quoted 7 lines
Thanks
Kevin
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Re: [PATCH 4/5] cups: add cups 1.4.6
In reply to Koen KooiQuoted 5 lines · Koen Kooi
Op 30 jan 2011, om 08:36 heeft Jingdong Lu het volgende geschreven:
Quoted 2 lines
From: Jingdong Lu<[email protected]>
Quoted 8 lines
Quoted 5 lines
This package has been added from Open Embedded. Changes from the Open Embedded version:
* Update to version 1.4.6
* Add SUMMARY,LIC_FILES_CHKSUM, checksum of source
* Remove skip_tools.patchThe
skip_toolspatch is needed for cross-compiling, without it it will try to run genstrings and the ppd generator. I cleaned up the cups in meta-oe and that builds cleanly for armv7a now. You can steal the updatedskip_toolspatch from there.
Thanks for pointing this out.
Jingdong: can you please respin this one again with the input from Koen. (Thanks).
Quoted 2 lines
I also updated the license to GPLv2 and LGPLv2, but I'm not sure how to add the apple and ssl exception is lists in LICENSE.txt.
Koen,
Is seems we should also the mention KSC (Kerberos Support Code) since it has it's own copyright and license. As for the Apple and SSL exceptions, I am not sure they apply in this case since the cups work in this case targets a Linux based operating system, not an Apple one.
Remember this is an engineer's opinion, I am not a Lawyer, nor to I play one on TV! We can consult the lawyers if needed.
Sau!
Quoted 8 lines
regards,
Koen
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Re: [PATCH 4/5] cups: add cups 1.4.6
Op 30 jan 2011, om 22:20 heeft Saul Wold het volgende geschreven:
Quoted 18 lines · Koen Kooi
Quoted 5 lines
Op 30 jan 2011, om 08:36 heeft Jingdong Lu het volgende geschreven:
Quoted 2 lines
From: Jingdong Lu<[email protected]>
Quoted 8 lines
Quoted 5 lines
This package has been added from Open Embedded. Changes from the Open Embedded version:
* Update to version 1.4.6
* Add SUMMARY,LIC_FILES_CHKSUM, checksum of source
* Remove skip_tools.patchThe
skip_toolspatch is needed for cross-compiling, without it it will try to run genstrings and the ppd generator. I cleaned up the cups in meta-oe and that builds cleanly for armv7a now. You can steal the updatedskip_toolspatch from there.Thanks for pointing this out.
Jingdong: can you please respin this one again with the input from Koen. (Thanks).
Quoted 7 lines
Quoted 2 lines
I also updated the license to GPLv2 and LGPLv2, but I'm not sure how to add the apple and ssl exception is lists in LICENSE.txt.
Koen,
Is seems we should also the mention KSC (Kerberos Support Code) since it has it's own copyright and license. As for the Apple and SSL exceptions, I am not sure they apply in this case since the cups work in this case targets a Linux based operating system, not an Apple one.
Remember this is an engineer's opinion, I am not a Lawyer, nor to I play one on TV! We can consult the lawyers if needed.
It has 2 seperate exceptions, one for apple and one for ssl. If we decide to enable openssl support in cups it won't be a gpl violation :)
Re: [PATCH 1/5] gcc: Add "--enable-clocale=gnu" option explicitly
In reply to Saul WoldQuoted 39 lines
From: Wold, Saul
Sent: Monday, January 31, 2011 5:07 AMQuoted 22 lines · Kevin
Quoted 22 lines
From: Jingdong Lu
Sent: Sunday, January 30, 2011 3:36 PMFrom: Jingdong Lu<[email protected]>
Add "--enable-clocale=gun" option for gcc configuration explicitly in order to make sure C++ library can use correct locale module.
Signed-off-by Jingdong Lu<[email protected]>--- meta/recipes-devtools/gcc/gcc-configure-common.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)meta/recipes-devtools/gcc/gcc-configure-common.inc +0
-0@@ -27,7 +27,7 @@ EXTRA_OECONF_INTERMEDIATE ?= "" GCCMULTILIB = "--disable-multilib"Quoted 13 lines
Quoted 10 lines
meta/recipes-devtools/gcc/gcc-configure-common.inc +1
-3-EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ +EXTRA_OECONF = "${@['--enable-clocale=generic', ' --enable-clocale=gnu'][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ --with-gnu-ld \ --enable-shared \ --enable-languages=${LANGUAGES} \ --1.7.0.4
PR bump is expected for all gcc recipes affected by this change.
Quoted 3 lines
Yes, I agree with Kevin on this, also what is the impact to generated binaries? Does this add any size to compiled binaries?
This actually reminds me one optional task in original 1.0 planning, to provide a better option level configurability for user's deep customization requirement. Now similarly we need this level of configurability to extend one recipe for different purpose...
Thanks
Kevin