Skip to contentSkip to conversation

xkeyboard-config: avoid recipe code duplication and depends on intltool-native

PATCH In review Otavio Salvador 4 participants 39 messages Feb 16, 2011 – Feb 17, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/13 xkeyboard-config: avoid recipe code duplication and depends on intltool-native

---
 recipes/xkeyboard-config/xkeyboard-config.inc    |   18 ++++++++++++++++++
 recipes/xkeyboard-config/xkeyboard-config_1.4.bb |   18 +++---------------
 recipes/xkeyboard-config/xkeyboard-config_1.8.bb |   18 +++---------------
 recipes/xkeyboard-config/xkeyboard-config_git.bb |   17 +++--------------
 4 files changed, 27 insertions(+), 44 deletions(-)
 create mode 100644 recipes/xkeyboard-config/xkeyboard-config.inc
recipes/xkeyboard-config/xkeyboard-config.inc new file +18 -0
new file mode 100644
index 0000000..a236cd5
@@ -0,0 +1,18 @@
+DESCRIPTION = "Common X11 Keyboard layouts"
+LICENSE = "MIT"
+DEPENDS = "intltool-native xkbcomp-native"
+RDEPENDS_${PN} = "xkbcomp"
+INC_PR = "r6"
+
+SRC_URI = "http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${PV}.tar.bz2"
+
+S = "${WORKDIR}/${PN}-${PV}"
+
+inherit autotools
+
+do_install_append () {
+    install -d ${D}/usr/share/X11/xkb/compiled
+    cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
+}
+
+FILES_${PN} += "${datadir}/X11/xkb"
recipes/xkeyboard-config/xkeyboard-config_1.4.bb +3 -15
index 3bca763..d8b9e3f 100644
@@ -1,20 +1,8 @@
-DESCRIPTION = "Common X11 Keyboard layouts"
-LICENSE = "MIT"
-DEPENDS = "intltool xkbcomp-native"
-RDEPENDS_${PN} = "xkbcomp"
-PR = "r5"
+require xkeyboard-config.inc
 
-SRC_URI = "http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${PV}.tar.bz2 \
-           file://abnt2-fixes.patch"
+PR = "${INC_PR}.0"
 
-inherit autotools
-
-do_install_append () {
-    install -d ${D}/usr/share/X11/xkb/compiled
-    cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
-}
-
-FILES_${PN} += "${datadir}/X11/xkb"
+SRC_URI += "file://abnt2-fixes.patch"
 
 SRC_URI[md5sum] = "a9fe7efbc67a6966c4d4501f0cf88073"
 SRC_URI[sha256sum] = "921a857dcf90a59df7feb26da5aabcf0bbfb749c46e2a46c3bc7a0280b83b0e1"
recipes/xkeyboard-config/xkeyboard-config_1.8.bb +3 -15
index fbf4f1d..fdeb667 100644
@@ -1,20 +1,8 @@
-DESCRIPTION = "Common X11 Keyboard layouts"
-LICENSE = "MIT"
-DEPENDS = "intltool xkbcomp-native"
-RDEPENDS_${PN} = "xkbcomp"
-PR = "r0"
+require xkeyboard-config.inc
 
-SRC_URI = "http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${PV}.tar.bz2 \
-           file://abnt2-fixes.patch"
+PR = "${INC_PR}.0"
 
-inherit autotools
-
-do_install_append () {
-    install -d ${D}/usr/share/X11/xkb/compiled
-    cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
-}
-
-FILES_${PN} += "${datadir}/X11/xkb"
+SRC_URI += "file://abnt2-fixes.patch"
 
 SRC_URI[md5sum] = "37ae41628cd2ce35d202d30b1820c8ba"
 SRC_URI[sha256sum] = "7dc3e6ca00adb105f46e40f8382e83d50b3fcd626bc8654293dae8b1e80506ce"
recipes/xkeyboard-config/xkeyboard-config_git.bb +3 -14
index b92bdc1..ac8d03f 100644
@@ -1,20 +1,9 @@
-DESCRIPTION = "Common X11 Keyboard layouts"
-LICENSE = "MIT"
-DEPENDS = "intltool xkbcomp-native"
-RDEPENDS_${PN} = "xkbcomp"
+require xkeyboard-config.inc
+
 SRCREV = "547ae8589afb208d7b44ffe1e0ff7aba466c2ee3"
 PV = "2.0+gitr${SRCPV}"
-PR = "r0"
+PR = "${INC_PR}.0"
 
 SRC_URI = "git://anongit.freedesktop.org/xkeyboard-config;protocol=git;branch=master"
 
 S = "${WORKDIR}/git"
-
-inherit autotools
-
-do_install_append () {
-    install -d ${D}/usr/share/X11/xkb/compiled
-    cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
-}
-
-FILES_${PN} += "${datadir}/X11/xkb"
Signature · 1 line
1.7.2.3
#1 lore raw

PATCH 2/13 python-dbus: update to 0.83.2 and fix rpath to use absolute path

In case prefix and exec_prefix are empty, rpath can end up with no absolute paths thus failing to build due a linking issue.

---
 recipes/python/python-dbus_0.83.0.bb |   29 -----------------------------
 recipes/python/python-dbus_0.83.2.bb |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 29 deletions(-)
 delete mode 100644 recipes/python/python-dbus_0.83.0.bb
 create mode 100644 recipes/python/python-dbus_0.83.2.bb
recipes/python/python-dbus_0.83.0.bb deleted +0 -29
deleted file mode 100644
index 9766604..0000000
@@ -1,29 +0,0 @@
-DESCRIPTION = "Python bindings for DBus, a socket-based message bus system for interprocess communication"
-SECTION = "devel/python"
-HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
-LICENSE = "MIT"
-DEPENDS = "expat dbus dbus-glib virtual/libintl python-pyrex-native python-epydoc-native"
-PR = "ml2"
-
-SRC_URI = "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-${PV}.tar.gz"
-S = "${WORKDIR}/dbus-python-${PV}"
-
-inherit distutils-base autotools pkgconfig
-
-export BUILD_SYS
-export HOST_SYS
-
-RDEPENDS_${PN} = "\
-  python-io \
-  python-lang \
-  python-logging \
-  python-threading \
-  python-xml \
-"
-
-FILES_${PN}-dev += "\
-  ${libdir}/pkgconfig \
-"
-
-SRC_URI[md5sum] = "562c78876219bf458d79a041af18293d"
-SRC_URI[sha256sum] = "89dd1d5aa5c2ba04677d1aa2616caa50274d8c08f3d6bc164e6f7b9930776191"
recipes/python/python-dbus_0.83.2.bb new file +33 -0
new file mode 100644
index 0000000..c2495dc
@@ -0,0 +1,33 @@
+DESCRIPTION = "Python bindings for DBus, a socket-based message bus system for interprocess communication"
+SECTION = "devel/python"
+HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
+LICENSE = "MIT"
+DEPENDS = "expat dbus dbus-glib virtual/libintl python-pyrex-native python-epydoc-native"
+PR = "r1"
+
+SRC_URI = "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-${PV}.tar.gz"
+S = "${WORKDIR}/dbus-python-${PV}"
+
+inherit distutils-base autotools pkgconfig
+
+export BUILD_SYS
+export HOST_SYS
+
+RDEPENDS_${PN} = "\
+  python-io \
+  python-lang \
+  python-logging \
+  python-threading \
+  python-xml \
+"
+
+FILES_${PN}-dev += "\
+  ${libdir}/pkgconfig \
+"
+
+do_configure_append() {
+	find ${S} -name Makefile | xargs -n 1 sed -i 's,prefix}lib,prefix}/lib,g'
+}
+
+SRC_URI[md5sum] = "4ebcaa905bdcb4132b915196b0a3691b"
+SRC_URI[sha256sum] = "883729c98f40790021e3be0f7028ae863ee1c4a7b922a5578c1342592adfff64"
Signature · 1 line
1.7.2.3
#2 lore raw

Re: [PATCH 02/13] python-dbus: update to 0.83.2 and fix rpath to use absolute path

Quoted 52 lines · Otavio Salvador

In case prefix and exec_prefix are empty, rpath can end up with no absolute paths thus failing to build due a linking issue.

---
 recipes/python/python-dbus_0.83.0.bb |   29 -----------------------------
 recipes/python/python-dbus_0.83.2.bb |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 29 deletions(-)
 delete mode 100644 recipes/python/python-dbus_0.83.0.bb
 create mode 100644 recipes/python/python-dbus_0.83.2.bb
recipes/python/python-dbus_0.83.0.bb deleted +0 -29
deleted file mode 100644
index 9766604..0000000
@@ -1,29 +0,0 @@
-DESCRIPTION = "Python bindings for DBus, a socket-based message bus system for interprocess communication"
-SECTION = "devel/python"
-HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
-LICENSE = "MIT"
-DEPENDS = "expat dbus dbus-glib virtual/libintl python-pyrex-native python-epydoc-native"
-PR = "ml2"
-
-SRC_URI = "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-${PV}.tar.gz"
-S = "${WORKDIR}/dbus-python-${PV}"
-
-inherit distutils-base autotools pkgconfig
-
-export BUILD_SYS
-export HOST_SYS
-
-RDEPENDS_${PN} = "\
-  python-io \
-  python-lang \
-  python-logging \
-  python-threading \
-  python-xml \
-"
-
-FILES_${PN}-dev += "\
-  ${libdir}/pkgconfig \
-"
-
-SRC_URI[md5sum] = "562c78876219bf458d79a041af18293d"
-SRC_URI[sha256sum] = "89dd1d5aa5c2ba04677d1aa2616caa50274d8c08f3d6bc164e6f7b9930776191"
recipes/python/python-dbus_0.83.2.bb new file +0 -0
new file mode 100644
index 0000000..c2495dc

recipes/python/python-dbus_0.83.2.bb line 6

Quoted 6 lines
recipes/python/python-dbus_0.83.2.bb new file +6 -0
@@ -0,0 +1,33 @@
+DESCRIPTION = "Python bindings for DBus, a socket-based message bus system for interprocess communication"
+SECTION = "devel/python"
+HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
+LICENSE = "MIT"
+DEPENDS = "expat dbus dbus-glib virtual/libintl python-pyrex-native python-epydoc-native"
+PR = "r1"

why is PR different then 'mlX'

Quoted 35 lines
recipes/python/python-dbus_0.83.2.bb new file +27 -0
+
+SRC_URI = "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-${PV}.tar.gz"
+S = "${WORKDIR}/dbus-python-${PV}"
+
+inherit distutils-base autotools pkgconfig
+
+export BUILD_SYS
+export HOST_SYS
+
+RDEPENDS_${PN} = "\
+  python-io \
+  python-lang \
+  python-logging \
+  python-threading \
+  python-xml \
+"
+
+FILES_${PN}-dev += "\
+  ${libdir}/pkgconfig \
+"
+
+do_configure_append() {
+	find ${S} -name Makefile | xargs -n 1 sed -i 's,prefix}lib,prefix}/lib,g'
+}
+
+SRC_URI[md5sum] = "4ebcaa905bdcb4132b915196b0a3691b"
+SRC_URI[sha256sum] = "883729c98f40790021e3be0f7028ae863ee1c4a7b922a5578c1342592adfff64"
Signature · 7 lines
1.7.2.3


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
#3 lore raw

Re: [PATCH 02/13] python-dbus: update to 0.83.2 and fix rpath to use absolute path

Quoted 1 line · Khem Raj

why is PR different then 'mlX'

Any specific reason to use mlX? Most recipes use rX so I changed it while on it.

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

Re: [PATCH 02/13] python-dbus: update to 0.83.2 and fix rpath to use absolute path

Quoted 4 lines · Otavio Salvador
Quoted 1 line · Khem Raj

why is PR different then 'mlX'

Any specific reason to use mlX? Most recipes use rX so I changed it while on it.

thats been python's lingua I will leave that to it still it should have started at 0

Quoted 5 lines
Signature · 4 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
Signature · 1 line
-Khem
#5 lore raw

Re: [PATCH 02/13] python-dbus: update to 0.83.2 and fix rpath to use absolute path

Quoted 8 lines · Khem Raj
Quoted 4 lines · Otavio Salvador
Quoted 1 line · Khem Raj

why is PR different then 'mlX'

Any specific reason to use mlX? Most recipes use rX so I changed it while on it.

thats been python's lingua I will leave that to it still it should have started at 0

Changed it to:

PR = "ml0"

Seems OK otherwise?

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
#6 lore raw

PATCH 3/13 cups: drop unused versions

In reply to Otavio Salvador

Drop versions not being in use:

- 1.1.23 and 1.2.7 - old and not preferred by any distro
- 1.3.8 and 1.4.3 - D_P -1 and not preferred by any distro

---
 recipes/cups/cups-1.1.23/strftime_fix.patch        |   26 -----
 .../cups/cups-1.3.8/use_echo_only_in_init.patch    |   11 --
 recipes/cups/cups-1.4.3/configure.patch            |  117 --------------------
 recipes/cups/cups-1.4.3/skip_tools.patch           |   51 ---------
 .../cups/cups-1.4.3/use_echo_only_in_init.patch    |   11 --
 recipes/cups/cups_1.1.23.bb                        |   51 ---------
 recipes/cups/cups_1.2.7.bb                         |   80 -------------
 recipes/cups/cups_1.3.8.bb                         |   11 --
 recipes/cups/cups_1.4.3.bb                         |   15 ---
 9 files changed, 0 insertions(+), 373 deletions(-)
 delete mode 100644 recipes/cups/cups-1.1.23/strftime_fix.patch
 delete mode 100644 recipes/cups/cups-1.3.8/use_echo_only_in_init.patch
 delete mode 100644 recipes/cups/cups-1.4.3/configure.patch
 delete mode 100644 recipes/cups/cups-1.4.3/skip_tools.patch
 delete mode 100644 recipes/cups/cups-1.4.3/use_echo_only_in_init.patch
 delete mode 100644 recipes/cups/cups_1.1.23.bb
 delete mode 100644 recipes/cups/cups_1.2.7.bb
 delete mode 100644 recipes/cups/cups_1.3.8.bb
 delete mode 100644 recipes/cups/cups_1.4.3.bb
recipes/cups/cups-1.1.23/strftime_fix.patch deleted +0 -26
deleted file mode 100644
index 81f224f..0000000
@@ -1,26 +0,0 @@
-Index: cups-1.1.23/scheduler/classes.c
-===================================================================
---- cups-1.1.23.orig/scheduler/classes.c
-+++ cups-1.1.23/scheduler/classes.c
-@@ -622,7 +622,7 @@ SaveAllClasses(void)
- 
-   curtime = time(NULL);
-   curdate = localtime(&curtime);
--  strftime(temp, sizeof(temp) - 1, CUPS_STRFTIME_FORMAT, curdate);
-+  strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", curdate);
- 
-   cupsFilePuts(fp, "# Class configuration file for " CUPS_SVERSION "\n");
-   cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp);
-Index: cups-1.1.23/scheduler/printers.c
-===================================================================
---- cups-1.1.23.orig/scheduler/printers.c
-+++ cups-1.1.23/scheduler/printers.c
-@@ -1066,7 +1066,7 @@ SaveAllPrinters(void)
- 
-   curtime = time(NULL);
-   curdate = localtime(&curtime);
--  strftime(temp, sizeof(temp) - 1, CUPS_STRFTIME_FORMAT, curdate);
-+  strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", curdate);
- 
-   cupsFilePuts(fp, "# Printer configuration file for " CUPS_SVERSION "\n");
-   cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp);
recipes/cups/cups-1.3.8/use_echo_only_in_init.patch deleted +0 -11
deleted file mode 100644
index 21ff0e5..0000000
@@ -1,11 +0,0 @@
---- 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
recipes/cups/cups-1.4.3/configure.patch deleted +0 -117

117 lines not on this page · raw message

recipes/cups/cups-1.4.3/skip_tools.patch deleted +0 -51

51 lines not on this page · raw message

recipes/cups/cups-1.4.3/use_echo_only_in_init.patch deleted +0 -11
deleted file mode 100644
index 21ff0e5..0000000
@@ -1,11 +0,0 @@
---- 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
recipes/cups/cups_1.1.23.bb deleted +0 -51

52 lines not on this page · raw message

recipes/cups/cups_1.2.7.bb deleted +0 -80

81 lines not on this page · raw message

recipes/cups/cups_1.3.8.bb deleted +0 -11
deleted file mode 100644
index fd37246..0000000
@@ -1,11 +0,0 @@
-require cups.inc
-
-SRC_URI += "file://use_echo_only_in_init.patch"
-PR = "${INC_PR}.1"
-
-DEFAULT_PREFERENCE = "-1"
-
-EXTRA_OECONF += " --disable-gssapi "
-
-SRC_URI[md5sum] = "90ed7449948994ad1b22b0b177ab6ba6"
-SRC_URI[sha256sum] = "d488980f84ad0e6044a67859144306980624cafb654eb0cab071b3e46fee6e1d"
recipes/cups/cups_1.4.3.bb deleted +0 -15
deleted file mode 100644
index f562725..0000000
@@ -1,15 +0,0 @@
-require cups14.inc
-
-SRC_URI += "file://use_echo_only_in_init.patch \
-		    file://skip_tools.patch \
-		    file://configure.patch \
-			"
-
-SRC_URI[md5sum] = "e70b1c3f60143d7310c1d74c111a21ab"
-SRC_URI[sha256sum] = "47a559b1c50192b94479ae7dab132ea0008727045d4993501cf0a6df0c64db97"
-
-PR = "r3"
-
-DEFAULT_PREFERENCE = "-1"
-
-EXTRA_OECONF += " --disable-gssapi --disable-largefile --enable-debug --disable-relro "
Signature · 1 line
1.7.2.3
Acked-by on v1 3/13
#7 lore raw

Re: [PATCH 03/13] cups: drop unused versions

2011/2/16 Otavio Salvador <[email protected]>:

Quoted 6 lines

Drop versions not being in use:

 - 1.1.23 and 1.2.7 - old and not preferred by any distro
 - 1.3.8 and 1.4.3 - D_P -1 and not preferred by any distro

Quoted 459 lines

---
 recipes/cups/cups-1.1.23/strftime_fix.patch        |   26 ----- .../cups/cups-1.3.8/use_echo_only_in_init.patch    |   11 -- recipes/cups/cups-1.4.3/configure.patch            |  117 -------------------- recipes/cups/cups-1.4.3/skip_tools.patch           |   51 --------- .../cups/cups-1.4.3/use_echo_only_in_init.patch    |   11 --

 recipes/cups/cups_1.1.23.bb                        |   51 ---------
 recipes/cups/cups_1.2.7.bb                         |   80 -------------
 recipes/cups/cups_1.3.8.bb                         |   11 --
 recipes/cups/cups_1.4.3.bb                         |   15 ---
 9 files changed, 0 insertions(+), 373 deletions(-)

 delete mode 100644 recipes/cups/cups-1.1.23/strftime_fix.patch delete mode 100644 recipes/cups/cups-1.3.8/use_echo_only_in_init.patch delete mode 100644 recipes/cups/cups-1.4.3/configure.patch delete mode 100644 recipes/cups/cups-1.4.3/skip_tools.patch delete mode 100644 recipes/cups/cups-1.4.3/use_echo_only_in_init.patch delete mode 100644 recipes/cups/cups_1.1.23.bb
 delete mode 100644 recipes/cups/cups_1.2.7.bb
 delete mode 100644 recipes/cups/cups_1.3.8.bb
 delete mode 100644 recipes/cups/cups_1.4.3.bb

recipes/cups/cups-1.1.23/strftime_fix.patch deleted +0 -26
deleted file mode 100644
index 81f224f..0000000
@@ -1,26 +0,0 @@
-Index: cups-1.1.23/scheduler/classes.c
-===================================================================
---- cups-1.1.23.orig/scheduler/classes.c
-+++ cups-1.1.23/scheduler/classes.c
-@@ -622,7 +622,7 @@ SaveAllClasses(void)
-
-   curtime = time(NULL);
-   curdate = localtime(&curtime);
--  strftime(temp, sizeof(temp) - 1, CUPS_STRFTIME_FORMAT, curdate);
-+  strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", curdate);
-
-   cupsFilePuts(fp, "# Class configuration file for " CUPS_SVERSION "\n");
-   cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp);
-Index: cups-1.1.23/scheduler/printers.c
-===================================================================
---- cups-1.1.23.orig/scheduler/printers.c
-+++ cups-1.1.23/scheduler/printers.c
-@@ -1066,7 +1066,7 @@ SaveAllPrinters(void)
-
-   curtime = time(NULL);
-   curdate = localtime(&curtime);
--  strftime(temp, sizeof(temp) - 1, CUPS_STRFTIME_FORMAT, curdate);
-+  strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", curdate);
-
-   cupsFilePuts(fp, "# Printer configuration file for " CUPS_SVERSION "\n");
-   cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp);
recipes/cups/cups-1.3.8/use_echo_only_in_init.patch deleted +0 -11
deleted file mode 100644
index 21ff0e5..0000000
@@ -1,11 +0,0 @@
---- 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
recipes/cups/cups-1.4.3/configure.patch deleted +0 -117
deleted file mode 100644
index 877e8d3..0000000
@@ -1,117 +0,0 @@
---- 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"
recipes/cups/cups-1.4.3/skip_tools.patch deleted +0 -51
deleted file mode 100644
index 2721101..0000000
@@ -1,51 +0,0 @@
---- cups-1.4.3/ppdc/Makefile.orig      2010-04-07 12:38:56.650327699 +0200
-+++ cups-1.4.3/ppdc/Makefile   2010-04-07 12:40:05.842418876 +0200
-@@ -243,8 +243,8 @@
-       $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o genstrings genstrings.o \
-               libcupsppdc.a ../cups/libcups.a $(LIBGSSAPI) $(SSLLIBS) \
-               $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
--      echo Generating localization strings...
--      ./genstrings >sample.c
-+#     echo Generating localization strings...
-+#     ./genstrings >sample.c
-
-
- #
-@@ -261,9 +261,9 @@
-       $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o ppdc-static ppdc.o libcupsppdc.a \
-               ../cups/libcups.a $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
-               $(COMMONLIBS) $(LIBZ)
--      echo Testing PPD compiler...
--      ./ppdc-static -l en,fr -I ../data foo.drv
--      ./ppdc-static -l en,fr -z -I ../data foo.drv
-+#     echo Testing PPD compiler...
-+#     ./ppdc-static -l en,fr -I ../data foo.drv
-+#     ./ppdc-static -l en,fr -z -I ../data foo.drv
-
-
- #
-@@ -291,15 +291,15 @@
-               $(COMMONLIBS) $(LIBZ)
-       echo Testing PPD importer...
-       $(RM) -r ppd ppd2 sample-import.drv
--      ./ppdc-static -I ../data sample.drv
--      ./ppdi-static -I ../data -o sample-import.drv ppd/*
--      ./ppdc-static -I ../data -d ppd2 sample-import.drv
--      if diff -qr ppd ppd2; then \
--              echo PPD import OK; \
--      else \
--              echo PPD import FAILED; \
--              exit 1; \
--      fi
-+#     ./ppdc-static -I ../data sample.drv
-+#     ./ppdi-static -I ../data -o sample-import.drv ppd/*
-+#     ./ppdc-static -I ../data -d ppd2 sample-import.drv
-+#     if diff -qr ppd ppd2; then \
-+#             echo PPD import OK; \
-+#     else \
-+#             echo PPD import FAILED; \
-+#             exit 1; \
-+#     fi
-
-
- #
recipes/cups/cups-1.4.3/use_echo_only_in_init.patch deleted +0 -11
deleted file mode 100644
index 21ff0e5..0000000
@@ -1,11 +0,0 @@
---- 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
recipes/cups/cups_1.1.23.bb deleted +0 -51
deleted file mode 100644
index 877187f..0000000
@@ -1,51 +0,0 @@
-DESCRIPTION = "An Internet printing system for Unix."
-SECTION = "console/utils"
-LICENSE = "GPL LGPL"
-DEPENDS = "openssl jpeg libpng zlib fakeroot-native"
-INC_PR = "r7"
-PR = "${INC_PR}.1"
-
-SRC_URI = "ftp://ftp3.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
-           file://strftime_fix.patch"
-
-inherit autotools binconfig
-
-LDFLAGS += " -L${STAGING_LIBDIR} "
-
-do_compile () {
-       #Eeeks! Hack alert!
-       grep CUPS config.h.in~ | grep define >> config.h
-       sed -i s:STRIP:NOSTRIP: Makedefs
-       sed -i s:serial:: backend/Makefile
-
-       oe_runmake "SSLLIBS=-lssl -lcrypto -L${STAGING_LIBDIR}" \
-                  "LIBPNG=-lpng -lm -L${STAGING_LIBDIR}" \
-                  "LIBJPEG=-ljpeg -L${STAGING_LIBDIR}" \
-                  "LIBZ=-lz -L${STAGING_LIBDIR}" \
-                  "-I."
-}
-
-fakeroot do_install () {
-       oe_runmake "DSTROOT=${D}" install
-}
-
-do_stage () {
-       install -d ${STAGING_INCDIR}/cups
-       install ${S}/cups/*.h ${STAGING_INCDIR}/cups/
-       install ${S}/filter/*.h ${STAGING_INCDIR}/cups/
-       oe_libinstall -C cups -so libcups ${STAGING_LIBDIR}
-       oe_libinstall -C filter -so libcupsimage ${STAGING_LIBDIR}
-}
-
-#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 \
-               "
-
-
-
-
-
-SRC_URI[md5sum] = "4ce09b1dce09b6b9398af0daae9adf63"
-SRC_URI[sha256sum] = "87da0f7b1e03236e183045f1e787957132658ead56c4b0f80ac7f86c1574a85e"
\ No newline at end of file
recipes/cups/cups_1.2.7.bb deleted +0 -80
deleted file mode 100644
index 3f9c120..0000000
@@ -1,80 +0,0 @@
-DESCRIPTION = "An Internet printing system for Unix."
-SECTION = "console/utils"
-LICENSE = "GPL LGPL"
-DEPENDS = "gnutls jpeg dbus dbus-glib libpng zlib fakeroot-native"
-INC_PR = "r7"
-PR = "${INC_PR}.1"
-
-SRC_URI = "ftp://ftp3.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
-         "
-
-inherit autotools binconfig
-
-LDFLAGS += " -L${STAGING_LIBDIR} "
-
-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
-       oe_runconf
-}
-
-do_compile () {
-       sed -i s:STRIP:NOSTRIP: Makedefs
-       sed -i s:serial:: backend/Makefile
-
-       echo "all:"    >  man/Makefile
-       echo "install:" >> 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."
-}
-
-fakeroot do_install () {
-       oe_runmake "DSTROOT=${D}" install
-}
-
-do_stage () {
-       install -d ${STAGING_INCDIR}/cups
-       install ${S}/cups/*.h ${STAGING_INCDIR}/cups/
-       install ${S}/filter/*.h ${STAGING_INCDIR}/cups/
-       oe_libinstall -C cups -so libcups ${STAGING_LIBDIR}
-       oe_libinstall -C filter -so libcupsimage ${STAGING_LIBDIR}
-}
-
-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/ \
-              "
-
-
-
-
-
-SRC_URI[md5sum] = "bf44783d9b46130bee9f2995e6055470"
-SRC_URI[sha256sum] = "e7485d6b3dcbd338a2361aff66c516f8dfafc1c81ea5b01396f6ee5f365c4eb3"
\ No newline at end of file
recipes/cups/cups_1.3.8.bb deleted +0 -11
deleted file mode 100644
index fd37246..0000000
@@ -1,11 +0,0 @@
-require cups.inc
-
-SRC_URI += "file://use_echo_only_in_init.patch"
-PR = "${INC_PR}.1"
-
-DEFAULT_PREFERENCE = "-1"
-
-EXTRA_OECONF += " --disable-gssapi "
-
-SRC_URI[md5sum] = "90ed7449948994ad1b22b0b177ab6ba6"
-SRC_URI[sha256sum] = "d488980f84ad0e6044a67859144306980624cafb654eb0cab071b3e46fee6e1d"
recipes/cups/cups_1.4.3.bb deleted +0 -16
deleted file mode 100644
index f562725..0000000
@@ -1,15 +0,0 @@
-require cups14.inc
-
-SRC_URI += "file://use_echo_only_in_init.patch \
-                   file://skip_tools.patch \
-                   file://configure.patch \
-                       "
-
-SRC_URI[md5sum] = "e70b1c3f60143d7310c1d74c111a21ab"
-SRC_URI[sha256sum] = "47a559b1c50192b94479ae7dab132ea0008727045d4993501cf0a6df0c64db97"
-
-PR = "r3"
-
-DEFAULT_PREFERENCE = "-1"
-
-EXTRA_OECONF += " --disable-gssapi --disable-largefile --enable-debug --disable-relro "
--

1.7.2.3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Acked-by on v1 3/13
#8 lore raw

Re: [PATCH 03/13] cups: drop unused versions

In reply to Otavio Salvador
Quoted 6 lines · Otavio Salvador

Drop versions not being in use:

- 1.1.23 and 1.2.7 - old and not preferred by any distro
- 1.3.8 and 1.4.3 - D_P -1 and not preferred by any distro

Quoted 458 lines
---
 recipes/cups/cups-1.1.23/strftime_fix.patch        |   26 -----
 .../cups/cups-1.3.8/use_echo_only_in_init.patch    |   11 --
 recipes/cups/cups-1.4.3/configure.patch            |  117 --------------------
 recipes/cups/cups-1.4.3/skip_tools.patch           |   51 ---------
 .../cups/cups-1.4.3/use_echo_only_in_init.patch    |   11 --
 recipes/cups/cups_1.1.23.bb                        |   51 ---------
 recipes/cups/cups_1.2.7.bb                         |   80 -------------
 recipes/cups/cups_1.3.8.bb                         |   11 --
 recipes/cups/cups_1.4.3.bb                         |   15 ---
 9 files changed, 0 insertions(+), 373 deletions(-)
 delete mode 100644 recipes/cups/cups-1.1.23/strftime_fix.patch
 delete mode 100644 recipes/cups/cups-1.3.8/use_echo_only_in_init.patch
 delete mode 100644 recipes/cups/cups-1.4.3/configure.patch
 delete mode 100644 recipes/cups/cups-1.4.3/skip_tools.patch
 delete mode 100644 recipes/cups/cups-1.4.3/use_echo_only_in_init.patch
 delete mode 100644 recipes/cups/cups_1.1.23.bb
 delete mode 100644 recipes/cups/cups_1.2.7.bb
 delete mode 100644 recipes/cups/cups_1.3.8.bb
 delete mode 100644 recipes/cups/cups_1.4.3.bb
recipes/cups/cups-1.1.23/strftime_fix.patch deleted +0 -26
deleted file mode 100644
index 81f224f..0000000
@@ -1,26 +0,0 @@
-Index: cups-1.1.23/scheduler/classes.c
-===================================================================
---- cups-1.1.23.orig/scheduler/classes.c
-+++ cups-1.1.23/scheduler/classes.c
-@@ -622,7 +622,7 @@ SaveAllClasses(void)
- 
-   curtime = time(NULL);
-   curdate = localtime(&curtime);
--  strftime(temp, sizeof(temp) - 1, CUPS_STRFTIME_FORMAT, curdate);
-+  strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", curdate);
- 
-   cupsFilePuts(fp, "# Class configuration file for " CUPS_SVERSION "\n");
-   cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp);
-Index: cups-1.1.23/scheduler/printers.c
-===================================================================
---- cups-1.1.23.orig/scheduler/printers.c
-+++ cups-1.1.23/scheduler/printers.c
-@@ -1066,7 +1066,7 @@ SaveAllPrinters(void)
- 
-   curtime = time(NULL);
-   curdate = localtime(&curtime);
--  strftime(temp, sizeof(temp) - 1, CUPS_STRFTIME_FORMAT, curdate);
-+  strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", curdate);
- 
-   cupsFilePuts(fp, "# Printer configuration file for " CUPS_SVERSION "\n");
-   cupsFilePrintf(fp, "# Written by cupsd on %s\n", temp);
recipes/cups/cups-1.3.8/use_echo_only_in_init.patch deleted +0 -11
deleted file mode 100644
index 21ff0e5..0000000
@@ -1,11 +0,0 @@
---- 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
recipes/cups/cups-1.4.3/configure.patch deleted +0 -117
deleted file mode 100644
index 877e8d3..0000000
@@ -1,117 +0,0 @@
---- 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"
recipes/cups/cups-1.4.3/skip_tools.patch deleted +0 -51
deleted file mode 100644
index 2721101..0000000
@@ -1,51 +0,0 @@
---- cups-1.4.3/ppdc/Makefile.orig	2010-04-07 12:38:56.650327699 +0200
-+++ cups-1.4.3/ppdc/Makefile	2010-04-07 12:40:05.842418876 +0200
-@@ -243,8 +243,8 @@
- 	$(CXX) $(ARCHFLAGS) $(LDFLAGS) -o genstrings genstrings.o \
- 		libcupsppdc.a ../cups/libcups.a $(LIBGSSAPI) $(SSLLIBS) \
- 		$(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
--	echo Generating localization strings...
--	./genstrings >sample.c
-+#	echo Generating localization strings...
-+#	./genstrings >sample.c
- 
- 
- #
-@@ -261,9 +261,9 @@
- 	$(CXX) $(ARCHFLAGS) $(LDFLAGS) -o ppdc-static ppdc.o libcupsppdc.a \
- 		../cups/libcups.a $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
- 		$(COMMONLIBS) $(LIBZ)
--	echo Testing PPD compiler...
--	./ppdc-static -l en,fr -I ../data foo.drv
--	./ppdc-static -l en,fr -z -I ../data foo.drv
-+#	echo Testing PPD compiler...
-+#	./ppdc-static -l en,fr -I ../data foo.drv
-+#	./ppdc-static -l en,fr -z -I ../data foo.drv
- 
- 
- #
-@@ -291,15 +291,15 @@
- 		$(COMMONLIBS) $(LIBZ)
- 	echo Testing PPD importer...
- 	$(RM) -r ppd ppd2 sample-import.drv
--	./ppdc-static -I ../data sample.drv
--	./ppdi-static -I ../data -o sample-import.drv ppd/*
--	./ppdc-static -I ../data -d ppd2 sample-import.drv
--	if diff -qr ppd ppd2; then \
--		echo PPD import OK; \
--	else \
--		echo PPD import FAILED; \
--		exit 1; \
--	fi
-+#	./ppdc-static -I ../data sample.drv
-+#	./ppdi-static -I ../data -o sample-import.drv ppd/*
-+#	./ppdc-static -I ../data -d ppd2 sample-import.drv
-+#	if diff -qr ppd ppd2; then \
-+#		echo PPD import OK; \
-+#	else \
-+#		echo PPD import FAILED; \
-+#		exit 1; \
-+#	fi
- 
- 
- #
recipes/cups/cups-1.4.3/use_echo_only_in_init.patch deleted +0 -11
deleted file mode 100644
index 21ff0e5..0000000
@@ -1,11 +0,0 @@
---- 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
recipes/cups/cups_1.1.23.bb deleted +0 -51
deleted file mode 100644
index 877187f..0000000
@@ -1,51 +0,0 @@
-DESCRIPTION = "An Internet printing system for Unix."
-SECTION = "console/utils"
-LICENSE = "GPL LGPL"
-DEPENDS = "openssl jpeg libpng zlib fakeroot-native"
-INC_PR = "r7"
-PR = "${INC_PR}.1"
-
-SRC_URI = "ftp://ftp3.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
-           file://strftime_fix.patch"
-
-inherit autotools binconfig
-
-LDFLAGS += " -L${STAGING_LIBDIR} "
-
-do_compile () {
-	#Eeeks! Hack alert!
-	grep CUPS config.h.in~ | grep define >> config.h
-	sed -i s:STRIP:NOSTRIP: Makedefs
-	sed -i s:serial:: backend/Makefile
-
-	oe_runmake "SSLLIBS=-lssl -lcrypto -L${STAGING_LIBDIR}" \
-		   "LIBPNG=-lpng -lm -L${STAGING_LIBDIR}" \
-		   "LIBJPEG=-ljpeg -L${STAGING_LIBDIR}" \
-		   "LIBZ=-lz -L${STAGING_LIBDIR}" \
-		   "-I."
-}
-
-fakeroot do_install () {
-	oe_runmake "DSTROOT=${D}" install
-}
-
-do_stage () {
-	install -d ${STAGING_INCDIR}/cups
-	install ${S}/cups/*.h ${STAGING_INCDIR}/cups/
-	install ${S}/filter/*.h ${STAGING_INCDIR}/cups/
-	oe_libinstall -C cups -so libcups ${STAGING_LIBDIR}
-	oe_libinstall -C filter -so libcupsimage ${STAGING_LIBDIR}
-}
-
-#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 \
-		"
-
-
-
-
-
-SRC_URI[md5sum] = "4ce09b1dce09b6b9398af0daae9adf63"
-SRC_URI[sha256sum] = "87da0f7b1e03236e183045f1e787957132658ead56c4b0f80ac7f86c1574a85e"
\ No newline at end of file
recipes/cups/cups_1.2.7.bb deleted +0 -80
deleted file mode 100644
index 3f9c120..0000000
@@ -1,80 +0,0 @@
-DESCRIPTION = "An Internet printing system for Unix."
-SECTION = "console/utils"
-LICENSE = "GPL LGPL"
-DEPENDS = "gnutls jpeg dbus dbus-glib libpng zlib fakeroot-native"
-INC_PR = "r7"
-PR = "${INC_PR}.1"
-
-SRC_URI = "ftp://ftp3.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
-	  "
-
-inherit autotools binconfig
-
-LDFLAGS += " -L${STAGING_LIBDIR} "
-
-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
-	oe_runconf
-}
-
-do_compile () {
-	sed -i s:STRIP:NOSTRIP: Makedefs
-	sed -i s:serial:: backend/Makefile
-
-	echo "all:"    >  man/Makefile
-	echo "install:" >> 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."
-}
-
-fakeroot do_install () {
-	oe_runmake "DSTROOT=${D}" install
-}
-
-do_stage () {
-	install -d ${STAGING_INCDIR}/cups
-	install ${S}/cups/*.h ${STAGING_INCDIR}/cups/
-	install ${S}/filter/*.h ${STAGING_INCDIR}/cups/
-	oe_libinstall -C cups -so libcups ${STAGING_LIBDIR}
-	oe_libinstall -C filter -so libcupsimage ${STAGING_LIBDIR}
-}
-
-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/ \
-	       "
-
-
-
-
-
-SRC_URI[md5sum] = "bf44783d9b46130bee9f2995e6055470"
-SRC_URI[sha256sum] = "e7485d6b3dcbd338a2361aff66c516f8dfafc1c81ea5b01396f6ee5f365c4eb3"
\ No newline at end of file
recipes/cups/cups_1.3.8.bb deleted +0 -11
deleted file mode 100644
index fd37246..0000000
@@ -1,11 +0,0 @@
-require cups.inc
-
-SRC_URI += "file://use_echo_only_in_init.patch"
-PR = "${INC_PR}.1"
-
-DEFAULT_PREFERENCE = "-1"
-
-EXTRA_OECONF += " --disable-gssapi "
-
-SRC_URI[md5sum] = "90ed7449948994ad1b22b0b177ab6ba6"
-SRC_URI[sha256sum] = "d488980f84ad0e6044a67859144306980624cafb654eb0cab071b3e46fee6e1d"
recipes/cups/cups_1.4.3.bb deleted +0 -15
deleted file mode 100644
index f562725..0000000
@@ -1,15 +0,0 @@
-require cups14.inc
-
-SRC_URI += "file://use_echo_only_in_init.patch \
-		    file://skip_tools.patch \
-		    file://configure.patch \
-			"
-
-SRC_URI[md5sum] = "e70b1c3f60143d7310c1d74c111a21ab"
-SRC_URI[sha256sum] = "47a559b1c50192b94479ae7dab132ea0008727045d4993501cf0a6df0c64db97"
-
-PR = "r3"
-
-DEFAULT_PREFERENCE = "-1"
-
-EXTRA_OECONF += " --disable-gssapi --disable-largefile --enable-debug --disable-relro "
Signature · 7 lines
1.7.2.3


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
#9 lore raw

PATCH 4/13 cups: merge cups.inc into cups 1.2.12 recipe

In reply to Otavio Salvador
---
 recipes/cups/cups.inc       |   89 -----------------------------------------
 recipes/cups/cups_1.2.12.bb |   92 +++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 89 insertions(+), 92 deletions(-)
 delete mode 100644 recipes/cups/cups.inc
recipes/cups/cups.inc deleted +0 -89
deleted file mode 100644
index 0c7b103..0000000
@@ -1,89 +0,0 @@
-DESCRIPTION = "An Internet printing system for Unix."
-SECTION = "console/utils"
-LICENSE = "GPL LGPL"
-DEPENDS = "gnutls jpeg dbus dbus-glib libpng zlib fakeroot-native"
-
-INC_PR = "r7"
-
-SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
-	  "
-
-inherit autotools binconfig
-
-EXTRA_OECONF = " \
-                --enable-gnutls \
-		--enable-dbus \
-		--enable-browsing \
-                --disable-openssl \
-		--disable-tiff \
-		--disable-ssl \
-		--without-php \
-		--without-perl \
-		--without-python \
-		--without-java \
-               "
-
-
-do_configure() {
-    	export DSOFLAGS="${LDFLAGS}"
-	gnu-configize
-	libtoolize --force
-	oe_runconf
-}
-
-do_compile () {
-	sed -i s:STRIP:NOSTRIP: Makedefs
-	sed -i s:serial:: backend/Makefile
-
-	echo "all:"    >  man/Makefile
-	echo "install:" >> 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."
-}
-
-fakeroot 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...
-	pkgdest = bb.data.getVar('PKGDEST', d, 1)
-	os.system('chmod 0511 %s/cups/var/run/cups/certs' % pkgdest)
-}
-
-SYSROOT_PREPROCESS_FUNCS += "cups_config_mangle"
-
-cups_config_mangle() {
-	# Undo mangle of cups_datadir and cups_serverbin
-	sed -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:g' \
-	    -e 's:cups_serverbin=.*:cups_serverbin=${libdir}/cups:g' \
-	    -i  ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/cups-config
-}
-
-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/ \
-	       "
recipes/cups/cups_1.2.12.bb +89 -3

96 lines not on this page · raw message

Signature · 1 line
1.7.2.3
Acked-by on v1 4/13
#10 lore raw

Re: [PATCH 04/13] cups: merge cups.inc into cups 1.2.12 recipe

This is missing a signed-off.
Otherwise:

2011/2/16 Otavio Salvador <[email protected]>:

Quoted 211 lines

---
 recipes/cups/cups.inc       |   89 ----------------------------------------- recipes/cups/cups_1.2.12.bb |   92 +++++++++++++++++++++++++++++++++++++++++-

 2 files changed, 89 insertions(+), 92 deletions(-)

 delete mode 100644 recipes/cups/cups.inc

recipes/cups/cups.inc deleted +0 -89
deleted file mode 100644
index 0c7b103..0000000
@@ -1,89 +0,0 @@
-DESCRIPTION = "An Internet printing system for Unix."
-SECTION = "console/utils"
-LICENSE = "GPL LGPL"
-DEPENDS = "gnutls jpeg dbus dbus-glib libpng zlib fakeroot-native"
-
-INC_PR = "r7"
-
-SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
-         "
-
-inherit autotools binconfig
-
-EXTRA_OECONF = " \
-                --enable-gnutls \
-               --enable-dbus \
-               --enable-browsing \
-                --disable-openssl \
-               --disable-tiff \
-               --disable-ssl \
-               --without-php \
-               --without-perl \
-               --without-python \
-               --without-java \
-               "
-
-
-do_configure() {
-       export DSOFLAGS="${LDFLAGS}"
-       gnu-configize
-       libtoolize --force
-       oe_runconf
-}
-
-do_compile () {
-       sed -i s:STRIP:NOSTRIP: Makedefs
-       sed -i s:serial:: backend/Makefile
-
-       echo "all:"    >  man/Makefile
-       echo "install:" >> 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."
-}
-
-fakeroot 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...
-       pkgdest = bb.data.getVar('PKGDEST', d, 1)
-       os.system('chmod 0511 %s/cups/var/run/cups/certs' % pkgdest)
-}
-
-SYSROOT_PREPROCESS_FUNCS += "cups_config_mangle"
-
-cups_config_mangle() {
-       # Undo mangle of cups_datadir and cups_serverbin
-       sed -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:g' \
-           -e 's:cups_serverbin=.*:cups_serverbin=${libdir}/cups:g' \
-           -i  ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/cups-config
-}
-
-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/ \
-              "
recipes/cups/cups_1.2.12.bb +89 -3
index 167d353..1b06a53 100644
@@ -1,7 +1,93 @@
-require cups.inc
-PR = "${INC_PR}.3"
+DESCRIPTION = "An Internet printing system for Unix."
+SECTION = "console/utils"
+LICENSE = "GPL LGPL"
+DEPENDS = "gnutls jpeg dbus dbus-glib libpng zlib fakeroot-native"
 
-SRC_URI += "file://0001-cups-desktop-fix-cups-desktop-file.patch"
+PR = "r8"
+
+SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
+           file://0001-cups-desktop-fix-cups-desktop-file.patch \
+                  "
+
+inherit autotools binconfig
+
+EXTRA_OECONF = " \
+                --enable-gnutls \
+               --enable-dbus \
+               --enable-browsing \
+                --disable-openssl \
+               --disable-tiff \
+               --disable-ssl \
+               --without-php \
+               --without-perl \
+               --without-python \
+               --without-java \
+               "
+
+
+do_configure() {
+       export DSOFLAGS="${LDFLAGS}"
+       gnu-configize
+       libtoolize --force
+       oe_runconf
+}
+
+do_compile () {
+       sed -i s:STRIP:NOSTRIP: Makedefs
+       sed -i s:serial:: backend/Makefile
+
+       echo "all:"    >  man/Makefile
+       echo "install:" >> 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."
+}
+
+fakeroot 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...
+       pkgdest = bb.data.getVar('PKGDEST', d, 1)
+       os.system('chmod 0511 %s/cups/var/run/cups/certs' % pkgdest)
+}
+
+SYSROOT_PREPROCESS_FUNCS += "cups_config_mangle"
+
+cups_config_mangle() {
+       # Undo mangle of cups_datadir and cups_serverbin
+       sed -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:g' \
+           -e 's:cups_serverbin=.*:cups_serverbin=${libdir}/cups:g' \
+           -i  ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/cups-config
+}
+
+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/ \
+              "
 

 SRC_URI[md5sum] = "d410658468384b5ba5d04a808f6157fe"
 SRC_URI[sha256sum] = "b4ff8e934da7db32d5654360ea9068faa0ed5a00fde02161ae53c2052510d00f" --
1.7.2.3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#11 lore raw

PATCH 5/13 cups: merge cups14.inc into cups 1.4.4 recipe

In reply to Otavio Salvador
---
 recipes/cups/cups14.inc    |   83 --------------------------------------
 recipes/cups/cups_1.4.4.bb |   96 +++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 85 insertions(+), 94 deletions(-)
 delete mode 100644 recipes/cups/cups14.inc
recipes/cups/cups14.inc deleted +0 -83
deleted file mode 100644
index 0828187..0000000
@@ -1,83 +0,0 @@
-DESCRIPTION = "An Internet printing system for Unix."
-SECTION = "console/utils"
-LICENSE = "GPL LGPL"
-DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib fakeroot-native"
-PROVIDES = "cups14"
-
-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."
-}
-
-fakeroot 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/ \
-	       "
recipes/cups/cups_1.4.4.bb +85 -11

102 lines not on this page · raw message

Signature · 1 line
1.7.2.3
Acked-by on v1 5/13
#12 lore raw

Re: [PATCH 05/13] cups: merge cups14.inc into cups 1.4.4 recipe

This is missing a signed off.
otherwise:

2011/2/16 Otavio Salvador <[email protected]>:

Quoted 211 lines

---
 recipes/cups/cups14.inc    |   83 -------------------------------------- recipes/cups/cups_1.4.4.bb |   96 +++++++++++++++++++++++++++++++++++++++-----

 2 files changed, 85 insertions(+), 94 deletions(-)

 delete mode 100644 recipes/cups/cups14.inc

recipes/cups/cups14.inc deleted +0 -83
deleted file mode 100644
index 0828187..0000000
@@ -1,83 +0,0 @@
-DESCRIPTION = "An Internet printing system for Unix."
-SECTION = "console/utils"
-LICENSE = "GPL LGPL"
-DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib fakeroot-native"
-PROVIDES = "cups14"
-
-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."
-}
-
-fakeroot 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/ \
-              "
recipes/cups/cups_1.4.4.bb +13 -7
index bf23cc5..709edf1 100644
@@ -1,17 +1,91 @@
-require cups14.inc
-
-SRC_URI += " \
-       file://use_echo_only_in_init.patch \
-       file://skip_tools.patch \
-       file://configure.patch \
-       "
+#package the html for the webgui inside the main packages (~1MB uncompressed)
+DESCRIPTION = "An Internet printing system for Unix."
+SECTION = "console/utils"
+LICENSE = "GPL LGPL"
+DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib fakeroot-native"
+DEPENDS += "virtual/libusb0"
+PROVIDES = "cups14"
+PR = "r3"
 
+SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
+           file://use_echo_only_in_init.patch \
+           file://skip_tools.patch \
+           file://configure.patch \
+           "

 SRC_URI[md5sum] = "8776403ad60fea9e85eab9c04d88560d"
 SRC_URI[sha256sum] = "d25ffa35add3abeeec0eba60be2cffc89425b649c64ef3a73dfc724683a59aa3"

recipes/cups/cups_1.4.4.bb +0 -2
-PR = "r2"
-

 DEFAULT_PREFERENCE = "-1"

recipes/cups/cups_1.4.4.bb +58 -2
-DEPENDS += "virtual/libusb0"
-EXTRA_OECONF += " --disable-gssapi --disable-largefile --enable-debug --disable-relro --enable-libusb"
+
+inherit autotools binconfig
+
+EXTRA_OECONF = "--enable-gnutls \
+                --enable-dbus \
+                --enable-browsing \
+                --disable-openssl \
+                --disable-tiff \
+                --without-php \
+                --without-perl \
+                --without-python \
+                --without-java \
+                --disable-gssapi \
+                --disable-largefile \
+                --enable-debug \
+                --disable-relro \
+                --enable-libusb \
+                "
+
+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."
+}
+
+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 \
+                    "
+FILES_${PN} += "${datadir}/doc/cups/images \
+                ${datadir}/doc/cups/*html \
+                ${datadir}/doc/cups/*.css \
+                ${datadir}/icons/ \
+                "
+

 CONFFILES_${PN} += "${sysconfdir}/cups/cupsd.conf"

recipes/cups/cups_1.4.4.bb +14 -1
+
+LEAD_SONAME = "libcupsdriver.so"
+
+fakeroot 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)
+}
--

1.7.2.3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#13 lore raw

PATCH 6/13 cups: add textonly filter and split packages

In reply to Otavio Salvador
---
 recipes/cups/cups-1.4.4/text.convs   |    6 ++
 recipes/cups/cups-1.4.4/textonly     |  124 ++++++++++++++++++++++++++++++++++
 recipes/cups/cups-1.4.4/textonly.ppd |   47 +++++++++++++
 recipes/cups/cups_1.4.4.bb           |   30 ++++++++-
 4 files changed, 205 insertions(+), 2 deletions(-)
 create mode 100644 recipes/cups/cups-1.4.4/text.convs
 create mode 100644 recipes/cups/cups-1.4.4/textonly
 create mode 100644 recipes/cups/cups-1.4.4/textonly.ppd
recipes/cups/cups-1.4.4/text.convs new file +6 -0
new file mode 100644
index 0000000..20a845d
@@ -0,0 +1,6 @@
+application/x-cshell text/plain 100 -
+application/x-csource text/plain 100 -
+application/x-perl text/plain 100 -
+application/x-shell text/plain 100 -
+text/html text/plain 100 -
+text/css text/plain 100 -
recipes/cups/cups-1.4.4/textonly new file +124 -0

124 lines not on this page · raw message

recipes/cups/cups-1.4.4/textonly.ppd new file +47 -0

47 lines not on this page · raw message

recipes/cups/cups_1.4.4.bb +28 -2
index 709edf1..c469dae 100644
@@ -5,12 +5,15 @@ LICENSE = "GPL LGPL"
 DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib fakeroot-native"
 DEPENDS += "virtual/libusb0"
 PROVIDES = "cups14"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
            file://use_echo_only_in_init.patch \
            file://skip_tools.patch \
            file://configure.patch \
+           file://textonly.ppd \
+           file://textonly \
+           file://text.convs \
            "
 SRC_URI[md5sum] = "8776403ad60fea9e85eab9c04d88560d"
 SRC_URI[sha256sum] = "d25ffa35add3abeeec0eba60be2cffc89425b649c64ef3a73dfc724683a59aa3"
@@ -57,10 +60,24 @@ do_compile () {
                "-I."
 }
 
-PACKAGES =+ "${PN}-lib ${PN}-libimage"
+PACKAGES =+ "${PN}-lib ${PN}-libimage ${PN}-filter-textonly ${PN}-filters ${PN}-models"
+
+PACKAGES_DYNAMIC += "${PN}-backend-*"
+
+python populate_packages_prepend() {
+	backend_dir = bb.data.expand('${libdir}/cups/backend/', d)
+	do_split_packages(d, backend_dir, '^(.*)$', 'cups-backend-%s',
+	                  '${PN} backend for %s', prepend=True, allow_links=True)
+}
 
 FILES_${PN}-lib = "${libdir}/libcups.so.*"
 FILES_${PN}-libimage = "${libdir}/libcupsimage.so.*"
+FILES_${PN}-filter-textonly += "${datadir}/ppd/cups-included/textonly.ppd \
+                                ${datadir}/cups/mime/text.convs \
+                                ${libdir}/cups/filter/textonly \
+                                "
+FILES_${PN}-filters += "${libdir}/cups/filter/*"
+FILES_${PN}-models += "${datadir}/cups/model/*"
 FILES_${PN}-dbg += "${libdir}/cups/backend/.debug \
                     ${libdir}/cups/cgi-bin/.debug \
                     ${libdir}/cups/filter/.debug \
@@ -82,6 +99,15 @@ fakeroot 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"
+
+    install -d ${D}/${libdir}/cups/filter
+    install -m 755 ${WORKDIR}/textonly ${D}/${libdir}/cups/filter
+
+    install -d ${D}/${datadir}/cups/mime
+    install -m 644 ${WORKDIR}/text.convs ${D}/${datadir}/cups/mime
+
+    install -d ${D}/${datadir}/ppd/cups-included
+    install -m 644 ${WORKDIR}/textonly.ppd ${D}/${datadir}/ppd/cups-included
 }
 
 python do_package_append() {
Signature · 1 line
1.7.2.3
Acked-by on v1 6/13
#14 lore raw

Re: [PATCH 06/13] cups: add textonly filter and split packages

2011/2/16 Otavio Salvador <[email protected]>:

Quoted 1 line
Quoted 277 lines

---
 recipes/cups/cups-1.4.4/text.convs   |    6 ++ recipes/cups/cups-1.4.4/textonly     |  124 ++++++++++++++++++++++++++++++++++ recipes/cups/cups-1.4.4/textonly.ppd |   47 +++++++++++++ recipes/cups/cups_1.4.4.bb           |   30 ++++++++-

 4 files changed, 205 insertions(+), 2 deletions(-)

 create mode 100644 recipes/cups/cups-1.4.4/text.convs create mode 100644 recipes/cups/cups-1.4.4/textonly create mode 100644 recipes/cups/cups-1.4.4/textonly.ppd

recipes/cups/cups-1.4.4/text.convs new file +6 -0
new file mode 100644
index 0000000..20a845d
@@ -0,0 +1,6 @@
+application/x-cshell text/plain 100 -
+application/x-csource text/plain 100 -
+application/x-perl text/plain 100 -
+application/x-shell text/plain 100 -
+text/html text/plain 100 -
+text/css text/plain 100 -
recipes/cups/cups-1.4.4/textonly new file +124 -0
new file mode 100644
index 0000000..25850cc
@@ -0,0 +1,124 @@
+#!/bin/bash
+## Copyright (C) 2003-2006 Red Hat, Inc.
+## Copyright (C) 2003-2006 Tim Waugh <[email protected]>
+## Changed on 2007/05/17, Opher Shachar, LADPC Ltd.
+##     Added support for page-ranges option.
+##     Added page accounting.
+
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+if [ $# == 0 ]; then
+  echo >&2 "ERROR: $0 job-id user title copies options [file]"
+  exit 1
+fi
+
+# Extract the papersize
+SENDFF=`grep '^\*DefaultSendFF' "$PPD" | cut -d\  -f2`
+COPIES=1
+if [ $# -ge 4 ]; then
+  COPIES="$4"
+fi
+
+if [ "$COPIES" -gt 1 ] && [ $# -lt 6 ]; then
+  unset TMPFILE
+  trap -- 'rm -f "$TMPFILE"' EXIT
+  TMPFILE=$(mktemp ${TMPDIR:-/tmp}/textonly.XXXXXX)
+  cat > "$TMPFILE"
+else
+  TMPFILE="$6"
+fi
+
+PR=${5#*page-ranges=}
+# Do options specify page-ranges?
+if [[ "$PR" != "$5" ]]; then
+  PR=${PR%% *}
+else
+  #unset PR
+  PR=1-999999
+fi
+
+if [[ "$PR" ]]; then
+  TMPFILE2=$(mktemp ${TMPDIR:-/tmp}/textonly2.XXXXXX)
+  pagenum=0
+  EOF=
+  {
+  while [[ "$PR" ]]; do
+    pl=${PR%%,*}               ;# take first subrange
+    PR=${PR#$pl};PR=${PR#,}    ;# remove from range list
+    pu=${pl#*-}                        ;# extract upper and lower
+    pl=${pl%-*}                        ;# pages of subrange
+    # Allows interpreting 0-5,3-10 as 1-5,6-10 rejects 5-1 or 1-
+    (( pagenum >= pl )) && pl=$(( pagenum + 1 ))
+    (( pl > pu )) && continue
+
+    # Loop reading pages until at or over lower page of subrange.
+    while read -d `echo -ne '\f'` -r; do
+      (( pagenum++ ))
+      (( pagenum == pl )) && break
+    done
+    # Did we reach lower page of subrange or EOF?
+    if (( pagenum < pl )); then
+      [[ ! "$REPLY" ]] && break                ;# empty last page - we're done.
+      (( pagenum++ ))
+      EOF=y
+    fi
+    # Output page and report to page log
+    if (( pagenum == pl )); then
+      echo -n "${REPLY}" >>"$TMPFILE2"
+      # If EOF then page has no final FF
+      [[ ! "$EOF" ]] && echo -ne '\f' >>"$TMPFILE2"
+      echo "PAGE: $pagenum $COPIES" >&2
+    fi
+    [[ "$EOF" ]] && break
+    # Is the current subrange a single page?
+    (( pagenum == pu )) && continue
+    while read -d `echo -ne '\f'` -r; do
+      (( pagenum++ ))
+      echo -ne "${REPLY}\f" >>"$TMPFILE2"
+      echo "PAGE: $pagenum $COPIES" >&2
+      (( pagenum == pu )) && break
+    done
+    # Could be that we reached EOF before page boundry
+    if (( pagenum < pu )); then
+      if [[ "$REPLY" ]]; then
+        (( pagenum++ ))
+        echo -n "${REPLY}" >>"$TMPFILE2"
+        echo "PAGE: $pagenum $COPIES" >&2
+      fi
+      break
+    fi
+  done
+  } <"$TMPFILE"
+else
+  TMPFILE2="$TMPFILE"
+  pc=$(grep -co `echo -ne '\f'` "$TMPFILE2")
+  pc=$(( pc * $COPIES ))
+  echo "PAGE: $pc" >&2
+fi
+
+while [ "$COPIES" -gt 0 ]; do
+  # Just translate LF->CRLF at the moment, until the PPD has options added.
+  sed -e 's/$/'`echo -ne '\r'`'/g' "$TMPFILE2"
+
+  if [ "$SENDFF" == "True" ]
+    then
+    echo -ne \\14
+  fi
+
+  COPIES=$(($COPIES - 1))
+done
+# Cleanup
+[[ "$TMPFILE" != "$TMPFILE2" ]] && rm -f "$TMPFILE2"
+exit 0
recipes/cups/cups-1.4.4/textonly.ppd new file +47 -0
new file mode 100644
index 0000000..89060bc
@@ -0,0 +1,47 @@
+*PPD-Adobe: "4.3"
+*%
+*% Text-only printer definition
+*%
+*FormatVersion:        "4.3"
+*FileVersion:  "1.1"
+*LanguageVersion: English
+*LanguageEncoding: ISOLatin1
+*PCFileName:   "TEXTONLY.PPD"
+*Manufacturer: "Generic"
+*Product:      "(Generic)"
+*cupsVersion:   1.0
+*cupsManualCopies: True
+*cupsModelNumber:  2
+*cupsFilter:    "text/plain 0 textonly"
+*ModelName:     "Generic text-only printer"
+*ShortNickName: "Generic text-only printer"
+*NickName:      "Generic text-only printer"
+*PSVersion:    "(2017.000) 0"
+*LanguageLevel:        "2"
+*ColorDevice:  False
+*DefaultColorSpace: Gray
+*FileSystem:   False
+*Throughput:   "8"
+*LandscapeOrientation: Plus90
+*VariablePaperSize: False
+*TTRasterizer: Type42
+*DefaultImageableArea: Letter
+*ImageableArea Letter/US Letter:       "18 36 594 756"
+*DefaultPaperDimension: Letter
+*PaperDimension Letter/Letter:         "612 792"
+*OpenUI *PageSize/Media Size: PickOne
+*OrderDependency: 10 AnySetup *PageSize
+*DefaultPageSize: Letter
+*PageSize Letter/Letter:       "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
+*CloseUI: *PageSize
+*OpenUI *PageRegion: PickOne
+*OrderDependency: 10 AnySetup *PageRegion
+*DefaultPageRegion: Letter
+*PageRegion Letter/Letter:     "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
+*CloseUI: *PageRegion
+
+*OpenUI *SendFF: Boolean
+*DefaultSendFF: False
+*SendFF True/True:        ""
+*SendFF False/False:   ""
+*CloseUI: *SendFF
recipes/cups/cups_1.4.4.bb +0 -0
index 709edf1..c469dae 100644
@@ -5,12 +5,15 @@ LICENSE = "GPL LGPL"

 DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib fakeroot-native" DEPENDS += "virtual/libusb0"
 PROVIDES = "cups14"

recipes/cups/cups_1.4.4.bb +1 -1
-PR = "r3"
+PR = "r4"

 SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
           file://use_echo_only_in_init.patch \
           file://skip_tools.patch \
           file://configure.patch \
+           file://textonly.ppd \
+           file://textonly \
+           file://text.convs \
           "
 SRC_URI[md5sum] = "8776403ad60fea9e85eab9c04d88560d"
 SRC_URI[sha256sum] = "d25ffa35add3abeeec0eba60be2cffc89425b649c64ef3a73dfc724683a59aa3"

recipes/cups/cups_1.4.4.bb +0 -0
@@ -57,10 +60,24 @@ do_compile () {

               "-I."
 }

recipes/cups/cups_1.4.4.bb +9 -1
-PACKAGES =+ "${PN}-lib ${PN}-libimage"
+PACKAGES =+ "${PN}-lib ${PN}-libimage ${PN}-filter-textonly ${PN}-filters ${PN}-models"
+
+PACKAGES_DYNAMIC += "${PN}-backend-*"
+
+python populate_packages_prepend() {
+       backend_dir = bb.data.expand('${libdir}/cups/backend/', d)
+       do_split_packages(d, backend_dir, '^(.*)$', 'cups-backend-%s',
+                         '${PN} backend for %s', prepend=True, allow_links=True)
+}

 FILES_${PN}-lib = "${libdir}/libcups.so.*" FILES_${PN}-libimage = "${libdir}/libcupsimage.so.*"

recipes/cups/cups_1.4.4.bb +6 -0
+FILES_${PN}-filter-textonly += "${datadir}/ppd/cups-included/textonly.ppd \
+                                ${datadir}/cups/mime/text.convs \
+                                ${libdir}/cups/filter/textonly \
+                                "
+FILES_${PN}-filters += "${libdir}/cups/filter/*"
+FILES_${PN}-models += "${datadir}/cups/model/*"

 FILES_${PN}-dbg += "${libdir}/cups/backend/.debug \
                    ${libdir}/cups/cgi-bin/.debug \
                    ${libdir}/cups/filter/.debug \

recipes/cups/cups_1.4.4.bb +0 -0
@@ -82,6 +99,15 @@ fakeroot 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"

recipes/cups/cups_1.4.4.bb +9 -0
+
+    install -d ${D}/${libdir}/cups/filter
+    install -m 755 ${WORKDIR}/textonly ${D}/${libdir}/cups/filter
+
+    install -d ${D}/${datadir}/cups/mime
+    install -m 644 ${WORKDIR}/text.convs ${D}/${datadir}/cups/mime
+
+    install -d ${D}/${datadir}/ppd/cups-included
+    install -m 644 ${WORKDIR}/textonly.ppd ${D}/${datadir}/ppd/cups-included

 }

 python do_package_append() {
--
1.7.2.3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#15 lore raw

PATCH 7/13 libinih: add

In reply to Otavio Salvador

This provides a C and C++ INI library that can be statically linked into projects.

---
 recipes/libinih/libinih_git.bb |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libinih/libinih_git.bb
recipes/libinih/libinih_git.bb new file +14 -0
new file mode 100644
index 0000000..e9f811f
@@ -0,0 +1,14 @@
+DESCRIPTION = "C and C++ INI Library"
+PRIORITY = "optional"
+PV = "0.0+gitr${SRCPV}"
+PKGV = "${GITPKGVTAG}"
+PR = "r0"
+LICENSE = "BSD"
+RDEPENDS_${PN}-dev = ""
+
+SRCREV = "${AUTOREV}"
+SRC_URI = "git://projetos.ossystems.com.br/git/libinih.git;protocol=git"
+
+S = "${WORKDIR}/git"
+
+inherit gitpkgv cmake
Signature · 1 line
1.7.2.3
Acked-by on v1 7/13
#16 lore raw

Re: [PATCH 07/13] libinih: add

Quoted 4 lines · Otavio Salvador

This provides a C and C++ INI library that can be statically linked into projects.

Quoted 33 lines
---
 recipes/libinih/libinih_git.bb |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libinih/libinih_git.bb
recipes/libinih/libinih_git.bb new file +14 -0
new file mode 100644
index 0000000..e9f811f
@@ -0,0 +1,14 @@
+DESCRIPTION = "C and C++ INI Library"
+PRIORITY = "optional"
+PV = "0.0+gitr${SRCPV}"
+PKGV = "${GITPKGVTAG}"
+PR = "r0"
+LICENSE = "BSD"
+RDEPENDS_${PN}-dev = ""
+
+SRCREV = "${AUTOREV}"
+SRC_URI = "git://projetos.ossystems.com.br/git/libinih.git;protocol=git"
+
+S = "${WORKDIR}/git"
+
+inherit gitpkgv cmake
Signature · 7 lines
1.7.2.3


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
#17 lore raw

PATCH 8/13 cdparanoia (svn): use build variables to fix packaging when using empty prefix

In reply to Otavio Salvador
---
 recipes/cdparanoia/cdparanoia_svn.bb |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
recipes/cdparanoia/cdparanoia_svn.bb +4 -4
index c40d979..a845e49 100644
@@ -4,7 +4,7 @@
 
 HOMEPAGE = "http://www.xiph.org/paranoia/"
 DESCRIPTION = "Audio CD digital audio extraction application"
-PR = "r0"
+PR = "r1"
 LICENSE = "GPLv2"
 
 PV = "10.2+svnr${SRCPV}"
@@ -37,8 +37,8 @@ FILES_libcdparanoia-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV}"
 FILES_libcdparanoia-static = "${libdir}/*.a"
 
 do_install() {
-	oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \
-		   INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" \
-		   PKGCONFIGDIR="${D}/usr/lib/pkgconfig" \
+	oe_runmake BINDIR="${D}${bindir}" MANDIR="${D}${datadir}/man/" \
+		   INCLUDEDIR="${D}${includedir}" LIBDIR="${D}${libdir}" \
+		   PKGCONFIGDIR="${D}${libdir}/pkgconfig" \
 		   install
 }
Signature · 1 line
1.7.2.3
#18 lore raw

Re: [PATCH 08/13] cdparanoia (svn): use build variables to fix packaging when using empty prefix

2011/2/16 Otavio Salvador <[email protected]>:

Quoted 21 lines

---
 recipes/cdparanoia/cdparanoia_svn.bb |    8 ++++----

 1 files changed, 4 insertions(+), 4 deletions(-)
recipes/cdparanoia/cdparanoia_svn.bb +0 -0
index c40d979..a845e49 100644
@@ -4,7 +4,7 @@
 

 HOMEPAGE = "http://www.xiph.org/paranoia/" DESCRIPTION = "Audio CD digital audio extraction application"

recipes/cdparanoia/cdparanoia_svn.bb +1 -1
-PR = "r0"
+PR = "r1"

 LICENSE = "GPLv2"

 PV = "10.2+svnr${SRCPV}"

recipes/cdparanoia/cdparanoia_svn.bb +0 -0
@@ -37,8 +37,8 @@ FILES_libcdparanoia-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV}"

 FILES_libcdparanoia-static = "${libdir}/*.a"

Quoted 12 lines

 do_install() {
-       oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \
-                  INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" \
-                  PKGCONFIGDIR="${D}/usr/lib/pkgconfig" \
+       oe_runmake BINDIR="${D}${bindir}" MANDIR="${D}${datadir}/man/" \
+                  INCLUDEDIR="${D}${includedir}" LIBDIR="${D}${libdir}" \
+                  PKGCONFIGDIR="${D}${libdir}/pkgconfig" \
                  install
 }
--
1.7.2.3

Thanks!
Pushed.

Did a quick check. We have 24 other recipes that refer to ${D}/usr/bin:

frans@frans-desktop:~/workspace/openembedded/recipes$ grep '${D}/usr/bin' */* -l
bt-gps/bt-gps.bb
cdparanoia/cdparanoia_10.2.bb
ctorrent/ctcs_1.4.1.bb
cxcrypt/cxcrypt_1.0.bb
dvd+rw-tools/dvd+rw-tools_7.1.bb
elvis/elvis_2.2.0.bb
emelfm2/emelfm2_0.0.8.bb
fortune-mod/fortune-mod_1.99.1.bb
gphoto2/ptp-gadget_git.bb
gstreamer/gst-player_svn.bb
mokoeightball/mokoeightball_svn.bb
mped/mped_5.1.3.bb
networkmanager/networkmanager-0.7.inc
networkmanager/networkmanager.inc
networkmanager/networkmanager-pre0.7.inc
openmoko-3rdparty/openmoko-gps_0.0.1+svnr9.bb
pmtools/pmtools_20050926.bb
podget/podget_0.5.8.bb
postmark/postmark_1.51.bb
rox/rox-filer_2.5.bb
skype/skype_2.0.0.72.bb
sms-sentry/sms-sentry.bb
ttyrec/ttyrec_1.0.8.bb
vnc/vnc_3.3.7.bb

Guess ideally these should all be fixed

Frans

#19 lore raw

Re: [PATCH 08/13] cdparanoia (svn): use build variables to fix packaging when using empty prefix

On Wed, Feb 16, 2011 at 14:48, Frans Meulenbroeks
<[email protected]> wrote:
...

Quoted 1 line

Did a quick check. We have 24 other recipes that refer to ${D}/usr/bin:

...

Yes; they all need fixing otherwise micro based devices are going to fail to use them.

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
#20 lore raw

Re: [PATCH 08/13] cdparanoia (svn): use build variables to fix packaging when using empty prefix

In reply to Frans Meulenbroeks
Quoted 6 lines · Frans Meulenbroeks

Did a quick check. We have 24 other recipes that refer to ${D}/usr/bin:

frans@frans-desktop:~/workspace/openembedded/recipes$ grep '${D}/usr/bin' */* -l

mokoeightball/mokoeightball_svn.bb
openmoko-3rdparty/openmoko-gps_0.0.1+svnr9.bb

those 2 fixed, will push as soon as I get home..

Quoted 1 line

Guess ideally these should all be fixed

agreed, but be aware that sometimes fixing it in recipe is not enough and actuall code (like those 2 above) expects /usr/bin/
so fixing it only in recipe would create recipe respecting bindir/datadir, but failing in runtime which is worse then not respecting bindir/datadir but with working runtime.

Regards,

#21 lore raw

Re: [PATCH 08/13] cdparanoia (svn): use build variables to fix packaging when using empty prefix

2011/2/16 Martin Jansa <[email protected]>:

Quoted 11 lines
Quoted 6 lines · Frans Meulenbroeks

Did a quick check. We have 24 other recipes that refer to ${D}/usr/bin:

frans@frans-desktop:~/workspace/openembedded/recipes$ grep '${D}/usr/bin' */* -l

mokoeightball/mokoeightball_svn.bb
openmoko-3rdparty/openmoko-gps_0.0.1+svnr9.bb

those 2 fixed, will push as soon as I get home..

Quoted 8 lines
Quoted 1 line

Guess ideally these should all be fixed

agreed, but be aware that sometimes fixing it in recipe is not enough and actuall code (like those 2 above) expects /usr/bin/
so fixing it only in recipe would create recipe respecting bindir/datadir, but failing in runtime which is worse then not respecting bindir/datadir but with working runtime.

Actually I can imagine there are more of these. I only peeked at ${D}/usr/bin but I can imagine that e.g. ${D}/usr/lib gives more or other hits.
And of course we should not break things. This is definitely not a thing for an automated edit script or so.

Best regards, Frans

#22 lore raw

PATCH 9/13 sdk.bbclass: cache ${libdir} as ${target_libdir}

In reply to Otavio Salvador
---
 classes/sdk.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
classes/sdk.bbclass +1 -0
index 4fe17b8..bf77744 100644
@@ -7,6 +7,7 @@
 # or indirectly via dependency.  No need to be in 'world'.
 EXCLUDE_FROM_WORLD = "1"
 target_includedir := "${includedir}"
+target_libdir := "${libdir}"
 
 # Save MULTIMACH_ARCH
 OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
Signature · 1 line
1.7.2.3
#23 lore raw

Re: [PATCH 09/13] sdk.bbclass: cache ${libdir} as ${target_libdir}

Quoted 10 lines · Otavio Salvador
---
 classes/sdk.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
classes/sdk.bbclass +0 -0
index 4fe17b8..bf77744 100644

classes/sdk.bbclass line 10

Quoted 4 lines
classes/sdk.bbclass +1 -0
@@ -7,6 +7,7 @@
 # or indirectly via dependency.  No need to be in 'world'.
 EXCLUDE_FROM_WORLD = "1"
 target_includedir := "${includedir}"
+target_libdir := "${libdir}"

could you explain more why this is needed

Quoted 11 lines
classes/sdk.bbclass +0 -0
 # Save MULTIMACH_ARCH
 OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
Signature · 7 lines
1.7.2.3


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
#24 lore raw

Re: [PATCH 09/13] sdk.bbclass: cache ${libdir} as ${target_libdir}

On Wed, Feb 16, 2011 at 23:09, Khem Raj <[email protected]> wrote:
...

Quoted 3 lines
Quoted 1 line

+target_libdir := "${libdir}"

could you explain more why this is needed

Used on the qt-native-sdk change.

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
#25 lore raw

Re: [PATCH 09/13] sdk.bbclass: cache ${libdir} as ${target_libdir}

Quoted 7 lines · Otavio Salvador

On Wed, Feb 16, 2011 at 23:09, Khem Raj <[email protected]> wrote:
...

Quoted 3 lines
Quoted 1 line

+target_libdir := "${libdir}"

could you explain more why this is needed

Used on the qt-native-sdk change.

Could you revert this and see if it fixes your i586 gcc-cross-sdk issue ?

Signature · 1 line
-Khem
#26 lore raw

Re: [PATCH 09/13] sdk.bbclass: cache ${libdir} as ${target_libdir}

Quoted 11 lines · Khem Raj
Quoted 7 lines · Otavio Salvador

On Wed, Feb 16, 2011 at 23:09, Khem Raj <[email protected]> wrote:
...

Quoted 3 lines
Quoted 1 line

+target_libdir := "${libdir}"

could you explain more why this is needed

Used on the qt-native-sdk change.

Could you revert this and see if it fixes your i586 gcc-cross-sdk issue ?

It doesn't since Jay has tested it and it failed to him for i586-generic and qemux86.

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
#27 lore raw

Re: [PATCH 09/13] sdk.bbclass: cache ${libdir} as ${target_libdir}

Quoted 8 lines · Otavio Salvador
Quoted 7 lines · Khem Raj
Quoted 6 lines · Otavio Salvador

On Wed, Feb 16, 2011 at 23:09, Khem Raj <[email protected]> wrote:
...

Quoted 3 lines
Quoted 1 line

+target_libdir := "${libdir}"

could you explain more why this is needed

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Used on the qt-native-sdk change.

Could you revert this and see if it fixes your i586 gcc-cross-sdk issue ?

It doesn't since Jay has tested it and it failed to him for i586-generic and qemux86.

yes I can reproduce the problem. Its a gcc ICE in this case. I have few worarounds
but let me first acertain the real cause.

Quoted 6 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

#28 lore raw

Re: [PATCH 09/13] sdk.bbclass: cache ${libdir} as ${target_libdir}

On Thu, Feb 17, 2011 at 03:39, Khem Raj <[email protected]> wrote:
...

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Could you revert this and see if it fixes your i586 gcc-cross-sdk issue ?

It doesn't since Jay has tested it and it failed to him for i586-generic and qemux86.

yes I can reproduce the problem. Its a gcc ICE in this case. I have few worarounds
but let me first acertain the real cause.

I reverted it and it keeps failing.

The class change, can be acked-by? it is required by the qt-tools-sdk change.

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
#29 lore raw

PATCH 10/13 qt4-tools-sdk: use host include headers for dbus

In reply to Otavio Salvador
---
 recipes/qt4/qt4-tools-sdk.inc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
recipes/qt4/qt4-tools-sdk.inc +4 -4
index ad896e4..bd70046 100644
@@ -5,7 +5,7 @@ HOMEPAGE = "http://www.trolltech.com"
 PRIORITY = "optional"
 LICENSE = "LGPLv2.1 GPLv3"
 
-INC_PR = "r2"
+INC_PR = "r3"
 
 FILESPATHPKG =. "qt-${PV}:"
 inherit sdk
@@ -32,9 +32,9 @@ EXTRA_OECONF = "-prefix ${prefix} \
                 -verbose -release -fast -static \
                 -embedded -no-freetype -no-glib -no-iconv \
                 -qt3support \
-                -I${STAGING_DIR_NATIVE}/usr/include \
-                -I${STAGING_DIR_NATIVE}/usr/include/dbus-1.0 \
-                -I${STAGING_DIR_NATIVE}/usr/lib/dbus-1.0/include"
+                -I${STAGING_DIR}/${HOST_SYS}${target_includedir} \
+                -I${STAGING_DIR}/${HOST_SYS}${target_includedir}/dbus-1.0 \
+                -I${STAGING_DIR}/${HOST_SYS}${target_libdir}/dbus-1.0/include"
 
 # yank default -e, otherwise we get the following error:
 # moc_qbuffer.cpp: No such file or directory
Signature · 1 line
1.7.2.3
Acked-by on v1 10/13
#30 lore raw

Re: [PATCH 10/13] qt4-tools-sdk: use host include headers for dbus

Quoted 1 line · Otavio Salvador
Quoted 38 lines
---
 recipes/qt4/qt4-tools-sdk.inc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
recipes/qt4/qt4-tools-sdk.inc +4 -4
index ad896e4..bd70046 100644
@@ -5,7 +5,7 @@ HOMEPAGE = "http://www.trolltech.com"
 PRIORITY = "optional"
 LICENSE = "LGPLv2.1 GPLv3"
 
-INC_PR = "r2"
+INC_PR = "r3"
 
 FILESPATHPKG =. "qt-${PV}:"
 inherit sdk
@@ -32,9 +32,9 @@ EXTRA_OECONF = "-prefix ${prefix} \
                 -verbose -release -fast -static \
                 -embedded -no-freetype -no-glib -no-iconv \
                 -qt3support \
-                -I${STAGING_DIR_NATIVE}/usr/include \
-                -I${STAGING_DIR_NATIVE}/usr/include/dbus-1.0 \
-                -I${STAGING_DIR_NATIVE}/usr/lib/dbus-1.0/include"
+                -I${STAGING_DIR}/${HOST_SYS}${target_includedir} \
+                -I${STAGING_DIR}/${HOST_SYS}${target_includedir}/dbus-1.0 \
+                -I${STAGING_DIR}/${HOST_SYS}${target_libdir}/dbus-1.0/include"
 
 # yank default -e, otherwise we get the following error:
 # moc_qbuffer.cpp: No such file or directory
Signature · 7 lines
1.7.2.3


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
#31 lore raw

PATCH 11/13 cmake: drop 2.6.4 as it is not used by any distro

In reply to Otavio Salvador
---
 .../fix_fortify_source_compilation.patch           |   32 --------------------
 recipes/cmake/cmake-native_2.6.4.bb                |   10 ------
 recipes/cmake/cmake_2.6.4.bb                       |   11 -------
 3 files changed, 0 insertions(+), 53 deletions(-)
 delete mode 100644 recipes/cmake/cmake-2.6.4/fix_fortify_source_compilation.patch
 delete mode 100644 recipes/cmake/cmake-native_2.6.4.bb
 delete mode 100644 recipes/cmake/cmake_2.6.4.bb
recipes/cmake/cmake-2.6.4/fix_fortify_source_compilation.patch deleted +0 -32
deleted file mode 100644
index 316ab0c..0000000
@@ -1,32 +0,0 @@
-upstream: http://public.kitware.com/mantis/view.php?id=9267
-status: pending
-origin: http://sisyphus.ru/ru/srpm/Sisyphus/cmake/patches/0
-comment: fix cmake building when FORTIFY_SOURCE is enabled
---- a/Source/kwsys/SystemInformation.cxx
-+++ b/Source/kwsys/SystemInformation.cxx
-@@ -1896,9 +1896,14 @@
-             case 5: sprintf (this->ChipID.ProcessorName,"Pentium II (0.25 micron)"); break;
-             case 6: sprintf (this->ChipID.ProcessorName,"Pentium II With On-Die L2 Cache"); break;
-             case 7: sprintf (this->ChipID.ProcessorName,"Pentium III (0.25 micron)"); break;
-+/*
-             case 8: sprintf (this->ChipID.ProcessorName,"Pentium III (0.18 micron) With 256 KB On-Die L2 Cache "); break;
-             case 0xa: sprintf (this->ChipID.ProcessorName,"Pentium III (0.18 micron) With 1 Or 2 MB On-Die L2 Cache "); break;
-             case 0xb: sprintf (this->ChipID.ProcessorName,"Pentium III (0.13 micron) With 256 Or 512 KB On-Die L2 Cache "); break;
-+*/
-+            case 8: sprintf (this->ChipID.ProcessorName,"Pentium III (0.18 micron) With 256 KB L2 Cache "); break;
-+            case 0xa: sprintf (this->ChipID.ProcessorName,"Pentium III (0.18 micron), 1/2 MB L2 Cache "); break;
-+            case 0xb: sprintf (this->ChipID.ProcessorName,"Pentium III (0.13 micron), 256/512 KB L2 Cache "); break;
-             default: sprintf (this->ChipID.ProcessorName,"Unknown P6 family"); return false;
-             }
-           break;
---- a/Utilities/cmtar/encode.c
-+++ b/Utilities/cmtar/encode.c
-@@ -32,7 +32,7 @@ th_finish(TAR *t)
-   int i, sum = 0;
- 
-   if (t->options & TAR_GNU)
--    strncpy(t->th_buf.magic, "ustar  ", 8);
-+    memcpy(t->th_buf.magic, "ustar  ", 8);
-   else
-   {
-     strncpy(t->th_buf.version, TVERSION, TVERSLEN);
recipes/cmake/cmake-native_2.6.4.bb deleted +0 -10
deleted file mode 100644
index aab6b62..0000000
@@ -1,10 +0,0 @@
-inherit native
-require cmake.inc
-
-do_install() {
-	oe_runmake install
-}
-
-SRC_URI += "file://fix_fortify_source_compilation.patch"
-SRC_URI[md5sum] = "50f387d0436696c4a68b5512a72c9cde"
-SRC_URI[sha256sum] = "9cdd2152e37b05d0d40d334a1bb2dfc0250021797360f971c6ea3d457ac9fdf2"
recipes/cmake/cmake_2.6.4.bb deleted +0 -11
deleted file mode 100644
index b5a47a8..0000000
@@ -1,11 +0,0 @@
-require cmake.inc
-
-inherit cmake
-
-do_configure_append() {
-	sed -i -e 's,HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT-ADVANCED:INTERNAL=1,HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT-ADVANCED:INTERNAL=0,' CMakeCache.txt
-}
-
-SRC_URI += "file://fix_fortify_source_compilation.patch"
-SRC_URI[md5sum] = "50f387d0436696c4a68b5512a72c9cde"
-SRC_URI[sha256sum] = "9cdd2152e37b05d0d40d334a1bb2dfc0250021797360f971c6ea3d457ac9fdf2"
Signature · 1 line
1.7.2.3
Acked-by on v1 11/13
#32 lore raw

Re: [PATCH 11/13] cmake: drop 2.6.4 as it is not used by any distro

2011/2/16 Otavio Salvador <[email protected]>:

Quoted 1 line
Quoted 89 lines

---
 .../fix_fortify_source_compilation.patch           |   32 -------------------- recipes/cmake/cmake-native_2.6.4.bb                |   10 ------ recipes/cmake/cmake_2.6.4.bb                       |   11 -------

 3 files changed, 0 insertions(+), 53 deletions(-)

 delete mode 100644 recipes/cmake/cmake-2.6.4/fix_fortify_source_compilation.patch delete mode 100644 recipes/cmake/cmake-native_2.6.4.bb
 delete mode 100644 recipes/cmake/cmake_2.6.4.bb

recipes/cmake/cmake-2.6.4/fix_fortify_source_compilation.patch deleted +0 -32
deleted file mode 100644
index 316ab0c..0000000
@@ -1,32 +0,0 @@
-upstream: http://public.kitware.com/mantis/view.php?id=9267
-status: pending
-origin: http://sisyphus.ru/ru/srpm/Sisyphus/cmake/patches/0
-comment: fix cmake building when FORTIFY_SOURCE is enabled
---- a/Source/kwsys/SystemInformation.cxx
-+++ b/Source/kwsys/SystemInformation.cxx
-@@ -1896,9 +1896,14 @@
-             case 5: sprintf (this->ChipID.ProcessorName,"Pentium II (0.25 micron)"); break;
-             case 6: sprintf (this->ChipID.ProcessorName,"Pentium II With On-Die L2 Cache"); break;
-             case 7: sprintf (this->ChipID.ProcessorName,"Pentium III (0.25 micron)"); break;
-+/*
-             case 8: sprintf (this->ChipID.ProcessorName,"Pentium III (0.18 micron) With 256 KB On-Die L2 Cache "); break;
-             case 0xa: sprintf (this->ChipID.ProcessorName,"Pentium III (0.18 micron) With 1 Or 2 MB On-Die L2 Cache "); break;
-             case 0xb: sprintf (this->ChipID.ProcessorName,"Pentium III (0.13 micron) With 256 Or 512 KB On-Die L2 Cache "); break;
-+*/
-+            case 8: sprintf (this->ChipID.ProcessorName,"Pentium III (0.18 micron) With 256 KB L2 Cache "); break;
-+            case 0xa: sprintf (this->ChipID.ProcessorName,"Pentium III (0.18 micron), 1/2 MB L2 Cache "); break;
-+            case 0xb: sprintf (this->ChipID.ProcessorName,"Pentium III (0.13 micron), 256/512 KB L2 Cache "); break;
-             default: sprintf (this->ChipID.ProcessorName,"Unknown P6 family"); return false;
-             }
-           break;
---- a/Utilities/cmtar/encode.c
-+++ b/Utilities/cmtar/encode.c
-@@ -32,7 +32,7 @@ th_finish(TAR *t)
-   int i, sum = 0;
-
-   if (t->options & TAR_GNU)
--    strncpy(t->th_buf.magic, "ustar  ", 8);
-+    memcpy(t->th_buf.magic, "ustar  ", 8);
-   else
-   {
-     strncpy(t->th_buf.version, TVERSION, TVERSLEN);
recipes/cmake/cmake-native_2.6.4.bb deleted +0 -10
deleted file mode 100644
index aab6b62..0000000
@@ -1,10 +0,0 @@
-inherit native
-require cmake.inc
-
-do_install() {
-       oe_runmake install
-}
-
-SRC_URI += "file://fix_fortify_source_compilation.patch"
-SRC_URI[md5sum] = "50f387d0436696c4a68b5512a72c9cde"
-SRC_URI[sha256sum] = "9cdd2152e37b05d0d40d334a1bb2dfc0250021797360f971c6ea3d457ac9fdf2"
recipes/cmake/cmake_2.6.4.bb deleted +0 -12
deleted file mode 100644
index b5a47a8..0000000
@@ -1,11 +0,0 @@
-require cmake.inc
-
-inherit cmake
-
-do_configure_append() {
-       sed -i -e 's,HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT-ADVANCED:INTERNAL=1,HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT-ADVANCED:INTERNAL=0,' CMakeCache.txt
-}
-
-SRC_URI += "file://fix_fortify_source_compilation.patch"
-SRC_URI[md5sum] = "50f387d0436696c4a68b5512a72c9cde"
-SRC_URI[sha256sum] = "9cdd2152e37b05d0d40d334a1bb2dfc0250021797360f971c6ea3d457ac9fdf2"
--

1.7.2.3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#33 lore raw

PATCH 12/13 cmake: update from 2.8.2 to 2.8.3

In reply to Otavio Salvador
---
 .../cmake-2.8.2/dont-run-cross-binaries.patch      |   13 ------
 .../cmake-2.8.3/dont-run-cross-binaries.patch      |   13 ++++++
 recipes/cmake/cmake-native_2.8.2.bb                |   12 -----
 recipes/cmake/cmake-native_2.8.3.bb                |   12 +++++
 recipes/cmake/cmake-sdk_2.8.2.bb                   |   12 -----
 recipes/cmake/cmake-sdk_2.8.3.bb                   |   12 +++++
 recipes/cmake/cmake_2.8.2.bb                       |   46 --------------------
 recipes/cmake/cmake_2.8.3.bb                       |   46 ++++++++++++++++++++
 8 files changed, 83 insertions(+), 83 deletions(-)
 delete mode 100644 recipes/cmake/cmake-2.8.2/dont-run-cross-binaries.patch
 create mode 100644 recipes/cmake/cmake-2.8.3/dont-run-cross-binaries.patch
 delete mode 100644 recipes/cmake/cmake-native_2.8.2.bb
 create mode 100644 recipes/cmake/cmake-native_2.8.3.bb
 delete mode 100644 recipes/cmake/cmake-sdk_2.8.2.bb
 create mode 100644 recipes/cmake/cmake-sdk_2.8.3.bb
 delete mode 100644 recipes/cmake/cmake_2.8.2.bb
 create mode 100644 recipes/cmake/cmake_2.8.3.bb
recipes/cmake/cmake-2.8.2/dont-run-cross-binaries.patch deleted +0 -13
deleted file mode 100644
index 4a006f9..0000000
@@ -1,13 +0,0 @@
-diff -ru cmake-2.8.2.orig/CMakeLists.txt cmake-2.8.2/CMakeLists.txt
---- cmake-2.8.2.orig/CMakeLists.txt	2010-07-28 00:48:42.000000000 +0200
-+++ cmake-2.8.2/CMakeLists.txt	2010-07-28 01:05:17.000000000 +0200
-@@ -518,7 +518,8 @@
- 
- # build the remaining subdirectories
- ADD_SUBDIRECTORY(Source)
--ADD_SUBDIRECTORY(Utilities)
-+# Come on! Running the cross-binaries on host is not a good idea.
-+#ADD_SUBDIRECTORY(Utilities)
- ADD_SUBDIRECTORY(Tests)
- 
- # add a test
recipes/cmake/cmake-2.8.3/dont-run-cross-binaries.patch new file +13 -0
new file mode 100644
index 0000000..4a006f9
@@ -0,0 +1,13 @@
+diff -ru cmake-2.8.2.orig/CMakeLists.txt cmake-2.8.2/CMakeLists.txt
+--- cmake-2.8.2.orig/CMakeLists.txt	2010-07-28 00:48:42.000000000 +0200
++++ cmake-2.8.2/CMakeLists.txt	2010-07-28 01:05:17.000000000 +0200
+@@ -518,7 +518,8 @@
+ 
+ # build the remaining subdirectories
+ ADD_SUBDIRECTORY(Source)
+-ADD_SUBDIRECTORY(Utilities)
++# Come on! Running the cross-binaries on host is not a good idea.
++#ADD_SUBDIRECTORY(Utilities)
+ ADD_SUBDIRECTORY(Tests)
+ 
+ # add a test
recipes/cmake/cmake-native_2.8.2.bb deleted +0 -12
deleted file mode 100644
index c7b3d80..0000000
@@ -1,12 +0,0 @@
-inherit native
-require cmake.inc
-
-PR = "r1"
-
-SRC_URI[md5sum] = "8c967d5264657a798f22ee23976ff0d9"
-SRC_URI[sha256sum] = "766ff169af798599d7dd42e41e9f4533d73942a2bb928235115412dce5b81406"
-
-do_configure_append () {
-        sed -e 's/BUILD_CursesDialog:BOOL=ON/BUILD_CursesDialog:BOOL=OFF/' \
-                -i CMakeCache.txt
-}
recipes/cmake/cmake-native_2.8.3.bb new file +12 -0
new file mode 100644
index 0000000..e04885f
@@ -0,0 +1,12 @@
+inherit native
+require cmake.inc
+
+PR = "r1"
+
+SRC_URI[md5sum] = "a76a44b93acf5e3badda9de111385921"
+SRC_URI[sha256sum] = "689ed02786b5cefa5515c7716784ee82a82e8ece6be5a3d629ac3cc0c05fc288"
+
+do_configure_append () {
+        sed -e 's/BUILD_CursesDialog:BOOL=ON/BUILD_CursesDialog:BOOL=OFF/' \
+                -i CMakeCache.txt
+}
recipes/cmake/cmake-sdk_2.8.2.bb deleted +0 -12
deleted file mode 100644
index 2c51a49..0000000
@@ -1,12 +0,0 @@
-inherit sdk
-require cmake.inc
-
-PR = "r1"
-
-SRC_URI[md5sum] = "8c967d5264657a798f22ee23976ff0d9"
-SRC_URI[sha256sum] = "766ff169af798599d7dd42e41e9f4533d73942a2bb928235115412dce5b81406"
-
-do_configure_append () {
-        sed -e 's/BUILD_CursesDialog:BOOL=ON/BUILD_CursesDialog:BOOL=OFF/' \
-                -i CMakeCache.txt
-}
recipes/cmake/cmake-sdk_2.8.3.bb new file +12 -0
new file mode 100644
index 0000000..5035b81
@@ -0,0 +1,12 @@
+inherit sdk
+require cmake.inc
+
+PR = "r1"
+
+SRC_URI[md5sum] = "a76a44b93acf5e3badda9de111385921"
+SRC_URI[sha256sum] = "689ed02786b5cefa5515c7716784ee82a82e8ece6be5a3d629ac3cc0c05fc288"
+
+do_configure_append () {
+        sed -e 's/BUILD_CursesDialog:BOOL=ON/BUILD_CursesDialog:BOOL=OFF/' \
+                -i CMakeCache.txt
+}
recipes/cmake/cmake_2.8.2.bb deleted +0 -46

46 lines not on this page · raw message

recipes/cmake/cmake_2.8.3.bb new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
1.7.2.3
#34 lore raw

PATCH 13/13 distro/micro.conf: drop exec_prefix_native since it is unused

In reply to Otavio Salvador
---
 conf/distro/micro.conf |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
conf/distro/micro.conf +0 -1
index 963afa8..b1f8f1e 100644
@@ -91,7 +91,6 @@ PACKAGE_SNAP_LIB_SYMLINKS = "1"
 prefix = ""
 exec_prefix = ""
 prefix_native = ""
-exec_prefix_native = ""
 
 # Don't install ldconfig and associated gubbins
 USE_LDCONFIG = "0"
Signature · 1 line
1.7.2.3
Acked-by on v1 13/13
#35 lore raw

Re: [PATCH 13/13] distro/micro.conf: drop exec_prefix_native since it is unused

Quoted 10 lines · Otavio Salvador
---
 conf/distro/micro.conf |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
conf/distro/micro.conf +0 -0
index 963afa8..b1f8f1e 100644

conf/distro/micro.conf PACKAGE_SNAP_LIB_SYMLINKS = "1" · line 94

Quoted 4 lines
conf/distro/micro.conf +0 -1
@@ -91,7 +91,6 @@ PACKAGE_SNAP_LIB_SYMLINKS = "1"
 prefix = ""
 exec_prefix = ""
 prefix_native = ""
-exec_prefix_native = ""

This looks sane as micro wants flat root file system for target and may be not so for build host sysroot

Quoted 11 lines
conf/distro/micro.conf +0 -0
 # Don't install ldconfig and associated gubbins
 USE_LDCONFIG = "0"
Signature · 7 lines
1.7.2.3


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
#36 lore raw
In reply to Otavio Salvador
Quoted 19 lines · Otavio Salvador
---
 recipes/xkeyboard-config/xkeyboard-config.inc    |   18 ++++++++++++++++++
 recipes/xkeyboard-config/xkeyboard-config_1.4.bb |   18 +++---------------
 recipes/xkeyboard-config/xkeyboard-config_1.8.bb |   18 +++---------------
 recipes/xkeyboard-config/xkeyboard-config_git.bb |   17 +++--------------
 4 files changed, 27 insertions(+), 44 deletions(-)
 create mode 100644 recipes/xkeyboard-config/xkeyboard-config.inc
recipes/xkeyboard-config/xkeyboard-config.inc new file +4 -0
new file mode 100644
index 0000000..a236cd5
@@ -0,0 +1,18 @@
+DESCRIPTION = "Common X11 Keyboard layouts"
+LICENSE = "MIT"
+DEPENDS = "intltool-native xkbcomp-native"
+RDEPENDS_${PN} = "xkbcomp"

recipes/xkeyboard-config/xkeyboard-config.inc line 14

Quoted 10 lines
recipes/xkeyboard-config/xkeyboard-config.inc new file +10 -0
+INC_PR = "r6"
+
+SRC_URI = "http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${PV}.tar.bz2"
+
+S = "${WORKDIR}/${PN}-${PV}"
+
+inherit autotools
+
+do_install_append () {
+    install -d ${D}/usr/share/X11/xkb/compiled

whynot use meta vars for datadir instead of hardcoding /usr/share ? like below :)

Quoted 96 lines
recipes/xkeyboard-config/xkeyboard-config.inc new file +4 -0
+    cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
+}
+
+FILES_${PN} += "${datadir}/X11/xkb"
recipes/xkeyboard-config/xkeyboard-config_1.4.bb +3 -15
index 3bca763..d8b9e3f 100644
@@ -1,20 +1,8 @@
-DESCRIPTION = "Common X11 Keyboard layouts"
-LICENSE = "MIT"
-DEPENDS = "intltool xkbcomp-native"
-RDEPENDS_${PN} = "xkbcomp"
-PR = "r5"
+require xkeyboard-config.inc
 
-SRC_URI = "http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${PV}.tar.bz2 \
-           file://abnt2-fixes.patch"
+PR = "${INC_PR}.0"
 
-inherit autotools
-
-do_install_append () {
-    install -d ${D}/usr/share/X11/xkb/compiled
-    cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
-}
-
-FILES_${PN} += "${datadir}/X11/xkb"
+SRC_URI += "file://abnt2-fixes.patch"
 
 SRC_URI[md5sum] = "a9fe7efbc67a6966c4d4501f0cf88073"
 SRC_URI[sha256sum] = "921a857dcf90a59df7feb26da5aabcf0bbfb749c46e2a46c3bc7a0280b83b0e1"
recipes/xkeyboard-config/xkeyboard-config_1.8.bb +3 -15
index fbf4f1d..fdeb667 100644
@@ -1,20 +1,8 @@
-DESCRIPTION = "Common X11 Keyboard layouts"
-LICENSE = "MIT"
-DEPENDS = "intltool xkbcomp-native"
-RDEPENDS_${PN} = "xkbcomp"
-PR = "r0"
+require xkeyboard-config.inc
 
-SRC_URI = "http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${PV}.tar.bz2 \
-           file://abnt2-fixes.patch"
+PR = "${INC_PR}.0"
 
-inherit autotools
-
-do_install_append () {
-    install -d ${D}/usr/share/X11/xkb/compiled
-    cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
-}
-
-FILES_${PN} += "${datadir}/X11/xkb"
+SRC_URI += "file://abnt2-fixes.patch"
 
 SRC_URI[md5sum] = "37ae41628cd2ce35d202d30b1820c8ba"
 SRC_URI[sha256sum] = "7dc3e6ca00adb105f46e40f8382e83d50b3fcd626bc8654293dae8b1e80506ce"
recipes/xkeyboard-config/xkeyboard-config_git.bb +3 -14
index b92bdc1..ac8d03f 100644
@@ -1,20 +1,9 @@
-DESCRIPTION = "Common X11 Keyboard layouts"
-LICENSE = "MIT"
-DEPENDS = "intltool xkbcomp-native"
-RDEPENDS_${PN} = "xkbcomp"
+require xkeyboard-config.inc
+
 SRCREV = "547ae8589afb208d7b44ffe1e0ff7aba466c2ee3"
 PV = "2.0+gitr${SRCPV}"
-PR = "r0"
+PR = "${INC_PR}.0"
 
 SRC_URI = "git://anongit.freedesktop.org/xkeyboard-config;protocol=git;branch=master"
 
 S = "${WORKDIR}/git"
-
-inherit autotools
-
-do_install_append () {
-    install -d ${D}/usr/share/X11/xkb/compiled
-    cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg
-}
-
-FILES_${PN} += "${datadir}/X11/xkb"
Signature · 7 lines
1.7.2.3


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
#37 lore raw
Quoted 2 lines · Khem Raj

whynot use meta vars for datadir instead of hardcoding /usr/share ? like below :)

Good point. Fixed locally.

Except for it, ack?

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