3568
|
1 |
diff -ur Argyll_V1.3.3.orig/Jamfile Argyll_V1.3.3/Jamfile
|
|
2 |
--- Argyll_V1.3.3.orig/Jamfile 2011-05-12 22:01:10.000000000 -0400
|
|
3 |
+++ Argyll_V1.3.3/Jamfile 2011-06-13 17:10:30.289215145 -0400
|
|
4 |
@@ -41,7 +41,7 @@
|
|
5 |
if $(NT) {
|
|
6 |
SubInclude libusbw ;
|
|
7 |
}
|
|
8 |
- if $(UNIX) && $(OS) != FREEBSD {
|
|
9 |
+ if $(UNIX) && $(OS) != FREEBSD && $(OS) != SOLARIS {
|
|
10 |
SubInclude libusb ;
|
|
11 |
}
|
|
12 |
}
|
|
13 |
Only in Argyll_V1.3.3: Jamfile.rej
|
|
14 |
diff -ur Argyll_V1.3.3.orig/Jamtop Argyll_V1.3.3/Jamtop
|
|
15 |
--- Argyll_V1.3.3.orig/Jamtop 2011-05-12 22:01:10.000000000 -0400
|
|
16 |
+++ Argyll_V1.3.3/Jamtop 2011-06-13 17:15:31.943779403 -0400
|
|
17 |
@@ -25,7 +25,7 @@
|
|
18 |
USE_LIBUSB1 = true ;
|
|
19 |
|
|
20 |
# Except that FreeBSD doesn't have libusb1 port yet..
|
|
21 |
-if $(OS) = FREEBSD || $(OS) = OPENBSD {
|
|
22 |
+if $(OS) = FREEBSD || $(OS) = OPENBSD || $(OS) = SOLARIS {
|
|
23 |
USE_LIBUSB1 = false ; # Use libusb 0.1
|
|
24 |
}
|
|
25 |
|
|
26 |
@@ -61,7 +61,7 @@
|
|
27 |
} else {
|
|
28 |
EXIT Unable to locate the X11 include files ;
|
|
29 |
}
|
|
30 |
- if $(OS) = FREEBSD {
|
|
31 |
+ if $(OS) = FREEBSD || $(OS) = SOLARIS {
|
|
32 |
LINKFLAGS += -L$(LibWinD) -g -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -lusb ;
|
|
33 |
} else {
|
|
34 |
LINKFLAGS += -L$(LibWinD) -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss ;
|
|
35 |
Only in Argyll_V1.3.3: Jamtop.orig
|
|
36 |
Only in Argyll_V1.3.3: Jamtop.rej
|
|
37 |
diff -ur Argyll_V1.3.3.orig/jcnf/jcnf.c Argyll_V1.3.3/jcnf/jcnf.c
|
|
38 |
--- Argyll_V1.3.3.orig/jcnf/jcnf.c 2011-05-12 22:02:32.000000000 -0400
|
|
39 |
+++ Argyll_V1.3.3/jcnf/jcnf.c 2011-06-13 16:56:39.703347421 -0400
|
|
40 |
@@ -726,18 +726,22 @@
|
|
41 |
static jc_error jcnf_lock_file(jcnf *p) {
|
|
42 |
#ifndef NT
|
|
43 |
int i, fh;
|
|
44 |
- int lop;
|
|
45 |
+ struct flock lock;
|
|
46 |
|
|
47 |
fh = fileno(p->fp);
|
|
48 |
|
|
49 |
+ lock.l_start = 0;
|
|
50 |
+ lock.l_whence = SEEK_SET;
|
|
51 |
+ lock.l_len = 0;
|
|
52 |
+
|
|
53 |
if (p->modify) {
|
|
54 |
- lop = LOCK_EX | LOCK_NB;
|
|
55 |
+ lock.l_type = F_WRLCK;
|
|
56 |
} else {
|
|
57 |
- lop = LOCK_SH | LOCK_NB;
|
|
58 |
+ lock.l_type = F_RDLCK;
|
|
59 |
}
|
|
60 |
|
|
61 |
for (i = 0; i < LOCK_RETRIES; i++) {
|
|
62 |
- if (flock(fh, lop) == 0)
|
|
63 |
+ if (fcntl(fh, F_SETLK, &lock) != -1)
|
|
64 |
break;
|
|
65 |
sleep(1);
|
|
66 |
}
|
|
67 |
diff -ur Argyll_V1.3.3.orig/jcnf/jcnf.h Argyll_V1.3.3/jcnf/jcnf.h
|
|
68 |
--- Argyll_V1.3.3.orig/jcnf/jcnf.h 2011-05-12 22:02:32.000000000 -0400
|
|
69 |
+++ Argyll_V1.3.3/jcnf/jcnf.h 2011-06-13 16:56:39.703822702 -0400
|
|
70 |
@@ -43,6 +43,10 @@
|
|
71 |
|
|
72 |
*/
|
|
73 |
|
|
74 |
+#ifdef __sun
|
|
75 |
+#include <sys/time.h>
|
|
76 |
+#endif
|
|
77 |
+
|
|
78 |
/* jcnf error codes */
|
|
79 |
typedef enum {
|
|
80 |
jc_ok = 0, /* No error */
|
|
81 |
diff -ur Argyll_V1.3.3.orig/numlib/numsup.c Argyll_V1.3.3/numlib/numsup.c
|
|
82 |
--- Argyll_V1.3.3.orig/numlib/numsup.c 2011-05-12 22:01:11.000000000 -0400
|
|
83 |
+++ Argyll_V1.3.3/numlib/numsup.c 2011-06-13 16:56:39.704793385 -0400
|
|
84 |
@@ -23,6 +23,7 @@
|
|
85 |
#ifdef UNIX
|
|
86 |
#include <unistd.h>
|
|
87 |
#include <sys/param.h>
|
|
88 |
+#include <limits.h>
|
|
89 |
#endif
|
|
90 |
|
|
91 |
#include "numsup.h"
|
|
92 |
Only in Argyll_V1.3.3/numlib: numsup.c.orig
|
|
93 |
diff -ur Argyll_V1.3.3.orig/plot/Jamfile Argyll_V1.3.3/plot/Jamfile
|
|
94 |
--- Argyll_V1.3.3.orig/plot/Jamfile 2011-05-12 22:01:54.000000000 -0400
|
|
95 |
+++ Argyll_V1.3.3/plot/Jamfile 2011-06-13 16:56:39.705272532 -0400
|
|
96 |
@@ -5,6 +5,8 @@
|
|
97 |
PREF_CCFLAGS = $(CCDEBUGFLAG) ; # Debugging flags
|
|
98 |
PREF_LINKFLAGS = $(LINKDEBUGFLAG) ;
|
|
99 |
|
|
100 |
+LINKLIBS = ../numlib/libnum ;
|
|
101 |
+
|
|
102 |
# PLOT library
|
|
103 |
Library libplot : plot.c : : : ../h ../numlib ../spectro ;
|
|
104 |
if $(UNIX) && $(OS) != MACOSX {
|
|
105 |
diff -ur Argyll_V1.3.3.orig/spectro/hidio.c Argyll_V1.3.3/spectro/hidio.c
|
|
106 |
--- Argyll_V1.3.3.orig/spectro/hidio.c 2011-05-12 22:02:20.000000000 -0400
|
|
107 |
+++ Argyll_V1.3.3/spectro/hidio.c 2011-06-13 16:56:39.706229106 -0400
|
|
108 |
@@ -60,6 +60,8 @@
|
|
109 |
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
|
110 |
#include <sys/types.h>
|
|
111 |
#include <usbhid.h>
|
|
112 |
+#elif defined(__sun)
|
|
113 |
+#include <sys/usb/clients/hid/hid.h>
|
|
114 |
#else /* assume Linux */
|
|
115 |
#include <asm/types.h>
|
|
116 |
#include <linux/hiddev.h>
|
|
117 |
Only in Argyll_V1.3.3/spectro: hidio.c.orig
|
|
118 |
diff -ur Argyll_V1.3.3.orig/spectro/Jamfile Argyll_V1.3.3/spectro/Jamfile
|
|
119 |
--- Argyll_V1.3.3.orig/spectro/Jamfile 2011-05-12 22:02:18.000000000 -0400
|
|
120 |
+++ Argyll_V1.3.3/spectro/Jamfile 2011-06-13 16:56:39.706995157 -0400
|
|
121 |
@@ -27,21 +27,6 @@
|
|
122 |
IOFILE = ntio.c ;
|
|
123 |
}
|
|
124 |
if $(UNIX) {
|
|
125 |
- if $(USE_LIBUSB1) = true {
|
|
126 |
- LIBUSBDIR = ../libusb1 ;
|
|
127 |
- LIBUSBHDRS = ../libusb1 ;
|
|
128 |
- if $(LIBUSB_IS_DLL) = true {
|
|
129 |
- LIBUSB = $(LIBUSB1NAME)$(SUFIMPLIB) ;
|
|
130 |
- LIBUSBSH = $(LIBUSB1NAME)$(SUFSHLIB) ;
|
|
131 |
- } else {
|
|
132 |
- LIBUSB = $(LIBUSB1NAME)$(SUFLIB) ;
|
|
133 |
- }
|
|
134 |
- DEFINES += USE_LIBUSB1 ;
|
|
135 |
- } else {
|
|
136 |
- LIBUSBDIR = ../libusb ;
|
|
137 |
- LIBUSBHDRS = ../libusb ;
|
|
138 |
- LIBUSB = libusb ;
|
|
139 |
- }
|
|
140 |
IOFILE = unixio.c ;
|
|
141 |
CONVFILE = pollem.c ;
|
|
142 |
}
|
|
143 |
@@ -66,7 +51,7 @@
|
|
144 |
}
|
|
145 |
|
|
146 |
HDRS = ../h ../numlib ../icc ../cgats ../rspl ../xicc ../gamut ../spectro
|
|
147 |
- ../plot $(LIBUSBHDRS) $(CMMHDRS) ;
|
|
148 |
+ ../plot $(CMMHDRS) ;
|
|
149 |
|
|
150 |
# Instrument access library library
|
|
151 |
Library libinst : inst.c insttypes.c dtp20.c dtp22.c dtp41.c dtp51.c dtp92.c i1disp.c i1pro.c i1pro_imp.c munki.c munki_imp.c ss.c ss_imp.c hcfr.c spyd2.c huey.c $(IOFILE) usbio.c hidio.c ;
|
|
152 |
@@ -97,8 +82,6 @@
|
|
153 |
File $(LIBUSBSH) : $(LIBUSBDIR)/$(LIBUSBSH) ;
|
|
154 |
# executable needs .so/.dll in same directory
|
|
155 |
NDepends $(Executables) : $(LIBUSBSH) ;
|
|
156 |
-} else {
|
|
157 |
- LINKLIBS += $(LIBUSBDIR)/$(LIBUSB) ;
|
|
158 |
}
|
|
159 |
|
|
160 |
# General target reader program
|
|
161 |
Only in Argyll_V1.3.3/spectro: Jamfile.orig
|
|
162 |
diff -ur Argyll_V1.3.3.orig/spectro/usbio.c Argyll_V1.3.3/spectro/usbio.c
|
|
163 |
--- Argyll_V1.3.3.orig/spectro/usbio.c 2011-05-12 22:02:20.000000000 -0400
|
|
164 |
+++ Argyll_V1.3.3/spectro/usbio.c 2011-06-13 16:56:39.708690448 -0400
|
|
165 |
@@ -185,10 +185,6 @@
|
|
166 |
#ifdef ENABLE_USB
|
|
167 |
struct usb_bus *bus;
|
|
168 |
|
|
169 |
- /* Check that we've got an up to date version of libusb */
|
|
170 |
- if (usb_argyll_patched() < 2)
|
|
171 |
- error("usblib isn't up to date to work with this version of Argyll");
|
|
172 |
-
|
|
173 |
if (p->debug > 8)
|
|
174 |
usb_set_debug(p->debug);
|
|
175 |
|
|
176 |
Only in Argyll_V1.3.3/spectro: usbio.c.orig
|
|
177 |
diff -ur Argyll_V1.3.3.orig/ucmm/ucmm.c Argyll_V1.3.3/ucmm/ucmm.c
|
|
178 |
--- Argyll_V1.3.3.orig/ucmm/ucmm.c 2011-05-12 22:02:31.000000000 -0400
|
|
179 |
+++ Argyll_V1.3.3/ucmm/ucmm.c 2011-06-13 16:56:39.709850429 -0400
|
|
180 |
@@ -763,7 +763,7 @@
|
|
181 |
}
|
|
182 |
if ((pp = jc_get_nth_elem(key, 3)) == NULL)
|
|
183 |
continue;
|
|
184 |
- if (strcmp(pp,"ICC_PROFILE") != 0i
|
|
185 |
+ if (strcmp(pp,"ICC_PROFILE") != 0
|
|
186 |
|| type != jc_string
|
|
187 |
|| strcmp(data, data_name) != 0) {
|
|
188 |
free(pp);
|