summaryrefslogtreecommitdiffstats
path: root/arch/tde-deps/lcms
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-10-28 01:38:39 +0200
committerSlávek Banko <slavek.banko@axis.cz>2022-10-28 01:38:39 +0200
commitddc027255b1bafb5c0544a60947b7c448140e384 (patch)
tree37e8b384eadf2f7f32e478ca41f10d3610b7aedd /arch/tde-deps/lcms
parenta5c233945a54cedfcaf97a8d839b09a68b228e85 (diff)
downloadtde-packaging-ddc027255b1bafb5c0544a60947b7c448140e384.tar.gz
tde-packaging-ddc027255b1bafb5c0544a60947b7c448140e384.zip
ArchLinux: Update for final R14.0.13.
Add aarch64 and armv7h to architectures. Add pkgbuilds for several applications. Add pkgbuild for libkipi library. Add pkgbuilds for dependencies. Remove dependence on Python 2. Remove backported patches. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'arch/tde-deps/lcms')
-rw-r--r--arch/tde-deps/lcms/.SRCINFO21
-rw-r--r--arch/tde-deps/lcms/PKGBUILD59
-rw-r--r--arch/tde-deps/lcms/cve-2013-4276.patch62
-rw-r--r--arch/tde-deps/lcms/lcms-1.19.tar.gzbin0 -> 927752 bytes
4 files changed, 142 insertions, 0 deletions
diff --git a/arch/tde-deps/lcms/.SRCINFO b/arch/tde-deps/lcms/.SRCINFO
new file mode 100644
index 000000000..7121ba137
--- /dev/null
+++ b/arch/tde-deps/lcms/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = lcms
+ pkgdesc = Lightweight color management development library/engine
+ pkgver = 1.19
+ pkgrel = 7
+ url = http://www.littlecms.com
+ arch = x86_64
+ arch = i686
+ license = custom
+ makedepends = python2
+ depends = libtiff
+ source = https://downloads.sourceforge.net/sourceforge/lcms/lcms-1.19.tar.gz
+ source = cve-2013-4276.patch
+ sha256sums = 80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
+ sha256sums = cd10cc5ce791ae782b1257e6181a71cbdb685b705779c9ef2ceffc7fb2021bd0
+
+pkgname = lcms
+
+pkgname = python2-lcms
+ pkgdesc = LittleCMS Python bindings
+ depends = lcms
+
diff --git a/arch/tde-deps/lcms/PKGBUILD b/arch/tde-deps/lcms/PKGBUILD
new file mode 100644
index 000000000..fdd0ea552
--- /dev/null
+++ b/arch/tde-deps/lcms/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Tobias Kieslich <neri@archlinux.org>
+# Contributor: Ben <contrasutra@myrealbox.com>
+
+pkgbase=lcms
+pkgname=(lcms)
+pkgver=1.19
+pkgrel=7.1
+pkgdesc='Lightweight color management development library/engine'
+arch=('x86_64' 'i686' 'aarch64' 'armv7h')
+license=('custom')
+depends=('libtiff')
+#makedepends=('python2')
+url='http://www.littlecms.com'
+source=("https://downloads.sourceforge.net/sourceforge/${pkgbase}/${pkgbase}-${pkgver}.tar.gz"
+ 'cve-2013-4276.patch')
+sha256sums=('80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9'
+ 'cd10cc5ce791ae782b1257e6181a71cbdb685b705779c9ef2ceffc7fb2021bd0')
+
+prepare() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ patch -Np1 -i ../cve-2013-4276.patch
+
+ cp -a /usr/share/libtool/build-aux/config.guess .
+ cp -a /usr/share/libtool/build-aux/config.sub .
+}
+
+build() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ ./configure \
+ --prefix=/usr \
+ --without-python
+ make
+ #make -C python
+}
+
+package_lcms() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+ install -D -m0644 COPYING \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ rm -rf "${pkgdir}/usr/lib/python2.7/"
+}
+
+#package_python2-lcms() {
+# pkgdesc='LittleCMS Python bindings'
+# depends=('lcms')
+#
+# cd "${srcdir}/${pkgbase}-${pkgver}"
+#
+# make DESTDIR="${pkgdir}" install
+# install -D -m0644 COPYING \
+# "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+#
+# rm -rf "${pkgdir}/usr/"{bin,include,lib/{pkgconfig,liblcms.*},share/man}
+#}
diff --git a/arch/tde-deps/lcms/cve-2013-4276.patch b/arch/tde-deps/lcms/cve-2013-4276.patch
new file mode 100644
index 000000000..8f2f32297
--- /dev/null
+++ b/arch/tde-deps/lcms/cve-2013-4276.patch
@@ -0,0 +1,62 @@
+diff -ur lcms-1.19.dfsg/samples/icctrans.c lcms-1.19.dfsg-patched/samples/icctrans.c
+--- lcms-1.19.dfsg/samples/icctrans.c 2009-10-30 15:57:45.000000000 +0000
++++ lcms-1.19.dfsg-patched/samples/icctrans.c 2013-08-06 11:53:14.385266647 +0100
+@@ -86,6 +86,8 @@
+ static LPcmsNAMEDCOLORLIST InputColorant = NULL;
+ static LPcmsNAMEDCOLORLIST OutputColorant = NULL;
+
++unsigned int Buffer_size = 4096;
++
+
+ // isatty replacement
+
+@@ -500,7 +502,7 @@
+
+ Prefix[0] = 0;
+ if (!lTerse)
+- sprintf(Prefix, "%s=", C);
++ snprintf(Prefix, 20, "%s=", C);
+
+ if (InHexa)
+ {
+@@ -648,7 +650,9 @@
+ static
+ void GetLine(char* Buffer)
+ {
+- scanf("%s", Buffer);
++ char User_buffer[Buffer_size];
++ fgets(User_buffer, (Buffer_size - 1), stdin);
++ sscanf(User_buffer,"%s", Buffer);
+
+ if (toupper(Buffer[0]) == 'Q') { // Quit?
+
+@@ -668,7 +672,7 @@
+ static
+ double GetAnswer(const char* Prompt, double Range)
+ {
+- char Buffer[4096];
++ char Buffer[Buffer_size];
+ double val = 0.0;
+
+ if (Range == 0.0) { // Range 0 means double value
+@@ -738,7 +742,7 @@
+ static
+ WORD GetIndex(void)
+ {
+- char Buffer[4096], Name[40], Prefix[40], Suffix[40];
++ char Buffer[Buffer_size], Name[40], Prefix[40], Suffix[40];
+ int index, max;
+
+ max = cmsNamedColorCount(hTrans)-1;
+diff -ur lcms-1.19.dfsg/tifficc/tiffdiff.c lcms-1.19.dfsg-patched/tifficc/tiffdiff.c
+--- lcms-1.19.dfsg/tifficc/tiffdiff.c 2009-10-30 15:57:46.000000000 +0000
++++ lcms-1.19.dfsg-patched/tifficc/tiffdiff.c 2013-08-06 11:49:06.698951157 +0100
+@@ -633,7 +633,7 @@
+ cmsIT8SetSheetType(hIT8, "TIFFDIFF");
+
+
+- sprintf(Buffer, "Differences between %s and %s", TiffName1, TiffName2);
++ snprintf(Buffer, 256, "Differences between %s and %s", TiffName1, TiffName2);
+
+ cmsIT8SetComment(hIT8, Buffer);
+
diff --git a/arch/tde-deps/lcms/lcms-1.19.tar.gz b/arch/tde-deps/lcms/lcms-1.19.tar.gz
new file mode 100644
index 000000000..0e45d75d7
--- /dev/null
+++ b/arch/tde-deps/lcms/lcms-1.19.tar.gz
Binary files differ