]> git.pld-linux.org Git - packages/icc_examin.git/commitdiff
- added pld patch (avoid including issue.net in C code, failed miserably on PLD) auto/th/icc_examin-0.54-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 31 Mar 2013 19:41:09 +0000 (21:41 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 31 Mar 2013 19:41:09 +0000 (21:41 +0200)
icc_examin-pld.patch [new file with mode: 0644]
icc_examin.spec

diff --git a/icc_examin-pld.patch b/icc_examin-pld.patch
new file mode 100644 (file)
index 0000000..8852da3
--- /dev/null
@@ -0,0 +1,27 @@
+--- icc_examin-0.54/configure.orig     2013-01-11 12:55:26.676880980 +0100
++++ icc_examin-0.54/configure  2013-03-31 21:11:35.026149419 +0200
+@@ -345,6 +345,11 @@
+       test -n $ECHO && $ECHO $e "$echo_" >> $CONF_LOG; test -n "$INFOECHO" && $INFOECHO "$echo_"
+         DISTNAME="$echo_"
+       SYS=1; fi
++    if [ -f /etc/pld-release ]; then
++      echo_="`cat /etc/pld-release`"
++      test -n $ECHO && $ECHO $e "$echo_" >> $CONF_LOG; test -n "$INFOECHO" && $INFOECHO "$echo_"
++        DISTNAME="$echo_"
++      SYS=1; fi
+     if [ -f /etc/debian_version ]; then
+       if [ -f /etc/issue.net ]; then
+         echo_="`cat /etc/issue.net || cat /etc/debian_version`"
+@@ -352,10 +357,7 @@
+         DISTNAME="$echo_"
+         SYS=2; fi; fi
+     if [ $SYS -eq 0 ]; then
+-      if [ -f /etc/issue.net ]; then
+-        echo_="`cat /etc/issue.net`"
+-        test -n $ECHO && $ECHO $e "$echo_" >> $CONF_LOG; test -n "$INFOECHO" && $INFOECHO "$echo_"
+-        DISTNAME="$echo_"
+-    fi; fi
++      DISTNAME="Linux"
++    fi
+     OSUNAME=Linux
+   else
index cf0f8cc3f1c4c0a30f91c7c1c10914edd6ef85f7..0756cc3ee7d98fe4366b37ded24133428a3689d2 100644 (file)
@@ -9,6 +9,7 @@ Source0:        http://downloads.sourceforge.net/oyranos/%{name}-%{version}.tar.bz2
 # Source0-md5: 4add0302cc7978549335f507d711605c
 Patch0:                %{name}-configure.patch
 Patch1:                %{name}-paths.patch
+Patch2:                %{name}-pld.patch
 URL:           http://www.oyranos.org/icc-examin
 BuildRequires: OpenGL-GLU-devel
 BuildRequires: fltk-devel >= 1.1.4
@@ -46,6 +47,7 @@ tablic gamma kart graficznych.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 export CC="%{__cc}"
This page took 0.117928 seconds and 4 git commands to generate.