From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mail.openembedded.org (Postfix) with ESMTP id D56BA7FBFA for ; Thu, 12 Dec 2019 18:15:04 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id d5so3622024wmb.4 for ; Thu, 12 Dec 2019 10:15:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=glsfS+khV/1loX02wRblI0tDt9Wp6ysXii/Py39sVY4=; b=HTiLeFwCOETDREmzM+K0gbegQ6eovNFI8VOOvCKQFzn+ybKfXMikXKQctxXjM4554R HrQ8W8HGxkW1+uh7ozyyli4nMNMMVu12sE5UT6F5/N5a1CUCNxLD9CYN3NGFDDtGgwcL NYhZobOk14+qGJlJ8lETjLin9ire5ZeoSJu91mQJbxIxNmU6X6j5sfp0NsrO99XTInYA bTLk52eB43rvXZAb7J6pjGDrfHzegdGd7IeBZL1dK5GeMTz7Rt8zupxT4giRMXnIFu7J rKQmjx9lcR9Ie8Eqm/03fykJ+mPR+407w0EbHFFKjigO61T+mskK/9Jc098lLh9y5PFH FiRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=glsfS+khV/1loX02wRblI0tDt9Wp6ysXii/Py39sVY4=; b=HQNGX0gIN1jkE7yj5brFCtWCjBYhfAfj2v2B9d5eZx/qKLCzAv3WxefMQ0rePpF3yE vXZiQkO3hCBCQK7vwX9GCwHtV4x19fX4XYQ/T5gSgBj5q8OaGa7AhnHslD0H2gBjTza5 5oIUMoHY1VF1ki6X7M8U5Pag8++RSVax5nHhiSbzcRcPfl7hxWTKHF8HWALteGyxw8Mp J89zwo8kTZiRUcOMEq86J59RxER4sWrvqh5tV1brIKyVhi/hqIONfcgii/DliwdyEEYB dUK/4PEyTKw6cONipRTUVsQbhunKFvvbA/AT/bRQY6jbkW9sxXT7wF+r2q36VjQC60xL ReFA== X-Gm-Message-State: APjAAAWVtEiHFtOpRL7bVlcYId6/RhXUbcDssm0fyydd//Egoka2Htvb s90IpEM+XCD3jH37UoANLiqkejHZ X-Google-Smtp-Source: APXvYqx5Kqf3nSvDfDfK6KmYUAHajAxmn5SMvE1vWlma7jz1ElQSn/Xnmvd1Kgbp1IoBGnEYILyyTg== X-Received: by 2002:a7b:c851:: with SMTP id c17mr8420884wml.71.1576174505276; Thu, 12 Dec 2019 10:15:05 -0800 (PST) Received: from alexander-box.rd.corpintra.net ([141.113.66.202]) by smtp.gmail.com with ESMTPSA id o66sm3147571wmo.20.2019.12.12.10.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2019 10:15:04 -0800 (PST) From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Date: Thu, 12 Dec 2019 19:14:29 +0100 Message-Id: <20191212181436.1322-23-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191212181436.1322-1-alex.kanavin@gmail.com> References: <20191212181436.1322-1-alex.kanavin@gmail.com> Subject: [PATCH 23/30] cups: update to 2.3.0 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2019 18:15:06 -0000 License-Update: license changed to Apache 2.0 Remove no longer recognized configure options. Refresh all patches. Signed-off-by: Alexander Kanavin --- meta/recipes-extended/cups/cups.inc | 14 ++--- .../cups/cups/0001-cups-Update-to-1.6.1.patch | 27 ++++++++++ ...don-t-try-to-run-generated-binaries.patch} | 29 ++++++----- ...003-cups_1.4.6.bb-Fix-build-on-ppc64.patch | 51 +++++++++++++++++++ ...fix-multilib-install-file-conflicts.patch} | 12 +++++ .../cups/cups/cups_serverbin.patch | 38 -------------- .../cups/cups/use_echo_only_in_init.patch | 15 ------ meta/recipes-extended/cups/cups_2.2.12.bb | 6 --- meta/recipes-extended/cups/cups_2.3.0.bb | 6 +++ 9 files changed, 117 insertions(+), 81 deletions(-) create mode 100644 meta/recipes-extended/cups/cups/0001-cups-Update-to-1.6.1.patch rename meta/recipes-extended/cups/cups/{0001-don-t-try-to-run-generated-binaries.patch => 0002-don-t-try-to-run-generated-binaries.patch} (69%) create mode 100644 meta/recipes-extended/cups/cups/0003-cups_1.4.6.bb-Fix-build-on-ppc64.patch rename meta/recipes-extended/cups/cups/{cups-avoid-install-file-conflicts.patch => 0004-cups-fix-multilib-install-file-conflicts.patch} (68%) delete mode 100644 meta/recipes-extended/cups/cups/cups_serverbin.patch delete mode 100644 meta/recipes-extended/cups/cups/use_echo_only_in_init.patch delete mode 100644 meta/recipes-extended/cups/cups_2.2.12.bb create mode 100644 meta/recipes-extended/cups/cups_2.3.0.bb diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc index 2149cbe4cfb..d16eb4c735f 100644 --- a/meta/recipes-extended/cups/cups.inc +++ b/meta/recipes-extended/cups/cups.inc @@ -5,14 +5,14 @@ Protocol (IPP), and has its own filtering driver model for handling various \ document types." HOMEPAGE = "https://www.cups.org/" SECTION = "console/utils" -LICENSE = "GPLv2 & LGPLv2" +LICENSE = "Apache-2.0" DEPENDS = "gnutls libpng jpeg dbus zlib libusb1" SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.tar.gz \ - file://use_echo_only_in_init.patch \ - file://0001-don-t-try-to-run-generated-binaries.patch \ - file://cups_serverbin.patch \ - file://cups-avoid-install-file-conflicts.patch \ + file://0001-cups-Update-to-1.6.1.patch \ + file://0002-don-t-try-to-run-generated-binaries.patch \ + file://0003-cups_1.4.6.bb-Fix-build-on-ppc64.patch \ + file://0004-cups-fix-multilib-install-file-conflicts.patch\ " UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases" @@ -45,10 +45,6 @@ EXTRA_OECONF = " \ --enable-debug \ --disable-relro \ --enable-libusb \ - --without-php \ - --without-perl \ - --without-python \ - --without-java \ DSOFLAGS='${LDFLAGS}' \ " diff --git a/meta/recipes-extended/cups/cups/0001-cups-Update-to-1.6.1.patch b/meta/recipes-extended/cups/cups/0001-cups-Update-to-1.6.1.patch new file mode 100644 index 00000000000..1cd02e8b324 --- /dev/null +++ b/meta/recipes-extended/cups/cups/0001-cups-Update-to-1.6.1.patch @@ -0,0 +1,27 @@ +From a3f4d8ba97f4669a95943a7e65eb61aa44ce7999 Mon Sep 17 00:00:00 2001 +From: Saul Wold +Date: Thu, 13 Dec 2012 19:03:52 -0800 +Subject: [PATCH 1/4] cups: Update to 1.6.1 + +Upstream-Status: Inappropriate [embedded specific] + +--- + scheduler/cups.sh.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scheduler/cups.sh.in b/scheduler/cups.sh.in +index 89ac36d..6618a0f 100644 +--- a/scheduler/cups.sh.in ++++ b/scheduler/cups.sh.in +@@ -50,7 +50,7 @@ case "`uname`" in + ECHO_ERROR=: + ;; + +- Linux*) ++ DisableLinux*) + IS_ON=/bin/true + if test -f /etc/init.d/functions; then + . /etc/init.d/functions +-- +2.17.1 + diff --git a/meta/recipes-extended/cups/cups/0001-don-t-try-to-run-generated-binaries.patch b/meta/recipes-extended/cups/cups/0002-don-t-try-to-run-generated-binaries.patch similarity index 69% rename from meta/recipes-extended/cups/cups/0001-don-t-try-to-run-generated-binaries.patch rename to meta/recipes-extended/cups/cups/0002-don-t-try-to-run-generated-binaries.patch index d6a69f28338..ea248e4710a 100644 --- a/meta/recipes-extended/cups/cups/0001-don-t-try-to-run-generated-binaries.patch +++ b/meta/recipes-extended/cups/cups/0002-don-t-try-to-run-generated-binaries.patch @@ -1,7 +1,7 @@ -From 1fb07162a9ed187cccf06e34c9bf841d15c6e64e Mon Sep 17 00:00:00 2001 +From 3e9a965dcd65ab2d40b753b6f792a1a4559182aa Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sun, 30 Jan 2011 16:37:27 +0100 -Subject: [PATCH] don't try to run generated binaries +Subject: [PATCH 2/4] don't try to run generated binaries Upstream-Status: Inappropriate [embedded specific] @@ -12,13 +12,13 @@ Signed-off-by: Koen Kooi 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ppdc/Makefile b/ppdc/Makefile -index e563988..973dd3f 100644 +index 32e2e0b..f1478d4 100644 --- a/ppdc/Makefile +++ b/ppdc/Makefile -@@ -189,8 +189,8 @@ genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \ - $(LD_CXX) $(ARCHFLAGS) $(LDFLAGS) -o genstrings genstrings.o \ - libcupsppdc.a ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) \ - $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) +@@ -186,8 +186,8 @@ genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \ + $(LD_CXX) $(ARCHFLAGS) $(ALL_LDFLAGS) -o genstrings genstrings.o \ + libcupsppdc.a $(LINKCUPSSTATIC) + $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ - echo Generating localization strings... - ./genstrings >sample.c +# echo Generating localization strings... @@ -26,9 +26,9 @@ index e563988..973dd3f 100644 # -@@ -209,9 +209,9 @@ ppdc-static: ppdc.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) foo.drv foo-fr.po - ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \ - $(COMMONLIBS) $(LIBZ) +@@ -205,9 +205,9 @@ ppdc-static: ppdc.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) foo.drv foo-fr.po + $(LD_CXX) $(ARCHFLAGS) $(ALL_LDFLAGS) -o ppdc-static ppdc.o libcupsppdc.a \ + $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ - echo Testing PPD compiler... - ./ppdc-static -l en,fr -I ../data foo.drv @@ -39,9 +39,9 @@ index e563988..973dd3f 100644 # -@@ -240,17 +240,17 @@ ppdi-static: ppdc-static ppdi.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) - ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \ - $(COMMONLIBS) $(LIBZ) +@@ -235,17 +235,17 @@ ppdi-static: ppdc-static ppdi.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) + $(LD_CXX) $(ARCHFLAGS) $(ALL_LDFLAGS) -o ppdi-static ppdi.o libcupsppdc.a \ + $(LINKCUPSSTATIC) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ - echo Testing PPD importer... - $(RM) -r ppd ppd2 sample-import.drv @@ -68,3 +68,6 @@ index e563988..973dd3f 100644 # +-- +2.17.1 + diff --git a/meta/recipes-extended/cups/cups/0003-cups_1.4.6.bb-Fix-build-on-ppc64.patch b/meta/recipes-extended/cups/cups/0003-cups_1.4.6.bb-Fix-build-on-ppc64.patch new file mode 100644 index 00000000000..b48c7a9ad2f --- /dev/null +++ b/meta/recipes-extended/cups/cups/0003-cups_1.4.6.bb-Fix-build-on-ppc64.patch @@ -0,0 +1,51 @@ +From 66c2079ae91389ee0f9d704bf0d2cccd53b2c603 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 22 Jul 2012 16:54:17 -0700 +Subject: [PATCH 3/4] cups_1.4.6.bb: Fix build on ppc64 + +Make CUPS_SERVERBIN relative to libdir otherwise on 64bit arches +e.g. ppc64 where base libdir is lib64 this does not go well + +Signed-off-by: Khem Raj +Upstream-Status: Inappropriate [OE config specific] + +Update on 20190904: +Redefine CUPS_SERVERBIN to "$libexecdir/cups" which solves file confliction +when multilib is enabled. + +Signed-off-by: Kai Kang + +--- + config-scripts/cups-directories.m4 | 2 +- + configure | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/config-scripts/cups-directories.m4 b/config-scripts/cups-directories.m4 +index b74083a..9a5abb2 100644 +--- a/config-scripts/cups-directories.m4 ++++ b/config-scripts/cups-directories.m4 +@@ -270,7 +270,7 @@ case "$host_os_name" in + *) + # All others + INSTALL_SYSV="install-sysv" +- CUPS_SERVERBIN="$exec_prefix/lib/cups" ++ CUPS_SERVERBIN="$libexecdir/cups" + ;; + esac + +diff --git a/configure b/configure +index d3df145..bc68a6c 100755 +--- a/configure ++++ b/configure +@@ -6420,7 +6420,7 @@ case "$host_os_name" in + *) + # All others + INSTALL_SYSV="install-sysv" +- CUPS_SERVERBIN="$exec_prefix/lib/cups" ++ CUPS_SERVERBIN="$libexecdir/cups" + ;; + esac + +-- +2.17.1 + diff --git a/meta/recipes-extended/cups/cups/cups-avoid-install-file-conflicts.patch b/meta/recipes-extended/cups/cups/0004-cups-fix-multilib-install-file-conflicts.patch similarity index 68% rename from meta/recipes-extended/cups/cups/cups-avoid-install-file-conflicts.patch rename to meta/recipes-extended/cups/cups/0004-cups-fix-multilib-install-file-conflicts.patch index 68885fa4db0..bc9260307c8 100644 --- a/meta/recipes-extended/cups/cups/cups-avoid-install-file-conflicts.patch +++ b/meta/recipes-extended/cups/cups/0004-cups-fix-multilib-install-file-conflicts.patch @@ -1,3 +1,8 @@ +From 7dbda1887aa19ab720aff22312f4caff2d575f62 Mon Sep 17 00:00:00 2001 +From: Kai Kang +Date: Wed, 3 Oct 2018 00:27:11 +0800 +Subject: [PATCH 4/4] cups: fix multilib install file conflicts + @CUPS_SERVERBIN@ is ${libdir} related that causes multilib install file conflict. Remove @CUPS_SERVERBIN@ from the comment line of cups-files.conf to avoid the conflict. @@ -6,6 +11,10 @@ Upstream-Status: Inappropriate [OE specific] Signed-off-by: Kai Kang +--- + conf/cups-files.conf.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + diff --git a/conf/cups-files.conf.in b/conf/cups-files.conf.in index 4a78ba6..03c6582 100644 --- a/conf/cups-files.conf.in @@ -19,3 +28,6 @@ index 4a78ba6..03c6582 100644 # SSL/TLS keychain for the scheduler... #ServerKeychain @CUPS_SERVERKEYCHAIN@ +-- +2.17.1 + diff --git a/meta/recipes-extended/cups/cups/cups_serverbin.patch b/meta/recipes-extended/cups/cups/cups_serverbin.patch deleted file mode 100644 index 85c6af10719..00000000000 --- a/meta/recipes-extended/cups/cups/cups_serverbin.patch +++ /dev/null @@ -1,38 +0,0 @@ -Make CUPS_SERVERBIN relative to libdir otherwise on 64bit arches -e.g. ppc64 where base libdir is lib64 this does not go well - -Signed-off-by: Khem Raj -Upstream-Status: Inappropriate [OE config specific] - -Update on 20190904: -Redefine CUPS_SERVERBIN to "$libexecdir/cups" which solves file confliction -when multilib is enabled. - -Signed-off-by: Kai Kang - -Index: cups-1.4.6/config-scripts/cups-directories.m4 -=================================================================== ---- cups-1.4.6.orig/config-scripts/cups-directories.m4 2009-04-12 16:04:51.000000000 -0700 -+++ cups-1.4.6/config-scripts/cups-directories.m4 2012-07-21 12:12:05.896405923 -0700 -@@ -397,7 +397,7 @@ - *) - # All others - INSTALL_SYSV="install-sysv" -- CUPS_SERVERBIN="$exec_prefix/lib/cups" -+ CUPS_SERVERBIN="$libexecdir/cups" - ;; - esac - -Index: cups-1.4.6/configure -=================================================================== ---- cups-1.4.6.orig/configure 2012-07-21 12:13:34.512405950 -0700 -+++ cups-1.4.6/configure 2012-07-21 12:14:05.724406017 -0700 -@@ -11181,7 +11181,7 @@ - *) - # All others - INSTALL_SYSV="install-sysv" -- CUPS_SERVERBIN="$exec_prefix/lib/cups" -+ CUPS_SERVERBIN="$libexecdir/cups" - ;; - esac - diff --git a/meta/recipes-extended/cups/cups/use_echo_only_in_init.patch b/meta/recipes-extended/cups/cups/use_echo_only_in_init.patch deleted file mode 100644 index 696f1374d9c..00000000000 --- a/meta/recipes-extended/cups/cups/use_echo_only_in_init.patch +++ /dev/null @@ -1,15 +0,0 @@ -Upstream-Status: Inappropriate [embedded specific] - -Index: cups-1.6.1/scheduler/cups.sh.in -=================================================================== ---- cups-1.6.1.orig/scheduler/cups.sh.in -+++ cups-1.6.1/scheduler/cups.sh.in -@@ -67,7 +67,7 @@ case "`uname`" in - ECHO_ERROR=: - ;; - -- Linux*) -+ DisableLinux*) - IS_ON=/bin/true - if test -f /etc/init.d/functions; then - . /etc/init.d/functions diff --git a/meta/recipes-extended/cups/cups_2.2.12.bb b/meta/recipes-extended/cups/cups_2.2.12.bb deleted file mode 100644 index 8e5534a979e..00000000000 --- a/meta/recipes-extended/cups/cups_2.2.12.bb +++ /dev/null @@ -1,6 +0,0 @@ -require cups.inc - -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f212b4338db0da8cb892e94bf2949460" - -SRC_URI[md5sum] = "e763689f7735d3fe95a2943397189e40" -SRC_URI[sha256sum] = "0f61ab449e4748a24c6ab355b481ff7691247a140d327b2b7526fce34b7f9aa8" diff --git a/meta/recipes-extended/cups/cups_2.3.0.bb b/meta/recipes-extended/cups/cups_2.3.0.bb new file mode 100644 index 00000000000..ebe2b18fb49 --- /dev/null +++ b/meta/recipes-extended/cups/cups_2.3.0.bb @@ -0,0 +1,6 @@ +require cups.inc + +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +SRC_URI[md5sum] = "644f374573f5433fb8a8af3880db6a98" +SRC_URI[sha256sum] = "acaf0229cf008ea8f06353ffd1bbd62d71dbe88990dd3330650ef87edb95a1a5" -- 2.17.1