1 |
jer 10/09/08 05:37:38 |
2 |
|
3 |
Added: nvclock_initd nvclock-0.8_beta4-headers.patch |
4 |
nvclock-0.8_beta4-as-needed.patch |
5 |
nvclock-0.8_beta4-flags.patch nvclock_confd |
6 |
Log: |
7 |
Move from media-video/nvclock to sys-power/nvclock. |
8 |
|
9 |
(Portage version: 2.2_rc77/cvs/Linux i686, RepoMan options: --force) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 sys-power/nvclock/files/nvclock_initd |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock_initd?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock_initd?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: nvclock_initd |
18 |
=================================================================== |
19 |
#!/sbin/runscript |
20 |
|
21 |
depend() { |
22 |
need xdm |
23 |
} |
24 |
|
25 |
start() { |
26 |
ebegin "Setting nvidia card overclock speed" |
27 |
nvclock ${CLOCKOPTS} >/dev/null |
28 |
eend $? |
29 |
} |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
1.1 sys-power/nvclock/files/nvclock-0.8_beta4-headers.patch |
35 |
|
36 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock-0.8_beta4-headers.patch?rev=1.1&view=markup |
37 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock-0.8_beta4-headers.patch?rev=1.1&content-type=text/plain |
38 |
|
39 |
Index: nvclock-0.8_beta4-headers.patch |
40 |
=================================================================== |
41 |
bios.c: In function ‘dump_bios’: |
42 |
bios.c:909: warning: implicit declaration of function ‘load_bios_pramin’ |
43 |
bios.c:911: warning: implicit declaration of function ‘load_bios_prom’ |
44 |
|
45 |
diff --git a/src/backend/bios.c b/src/backend/bios.c |
46 |
index 3266b57..20fadc8 100644 |
47 |
--- a/src/backend/bios.c |
48 |
+++ b/src/backend/bios.c |
49 |
@@ -891,6 +891,8 @@ int main(int argc, char **argv) |
50 |
|
51 |
|
52 |
#else |
53 |
+int load_bios_pramin(char *data); |
54 |
+int load_bios_prom(char *data); |
55 |
void dump_bios(const char *filename) |
56 |
{ |
57 |
int i; |
58 |
|
59 |
libc_wrapper.c: In function ‘xf86usleep’: |
60 |
libc_wrapper.c:53: warning: implicit declaration of function ‘usleep’ |
61 |
|
62 |
diff --git a/src/backend/libc_wrapper.c b/src/backend/libc_wrapper.c |
63 |
index 4787205..9e490cd 100644 |
64 |
--- a/src/backend/libc_wrapper.c |
65 |
+++ b/src/backend/libc_wrapper.c |
66 |
@@ -25,6 +25,7 @@ |
67 |
* |
68 |
*/ |
69 |
|
70 |
+#include <config.h> |
71 |
#include <stdio.h> |
72 |
#include "xfree.h" |
73 |
|
74 |
|
75 |
nv40.c: In function ‘nv43_get_gpu_temp’: |
76 |
nv40.c:393: warning: implicit declaration of function ‘usleep’ |
77 |
|
78 |
diff --git a/src/backend/nv40.c b/src/backend/nv40.c |
79 |
index 73472fa..63c9609 100644 |
80 |
--- a/src/backend/nv40.c |
81 |
+++ b/src/backend/nv40.c |
82 |
@@ -68,6 +68,7 @@ |
83 |
|
84 |
#include <stdio.h> |
85 |
#include <string.h> |
86 |
+#include <unistd.h> |
87 |
#include "backend.h" |
88 |
|
89 |
/* |
90 |
|
91 |
banner.c: In function ‘banner_set_text’: |
92 |
banner.c:115: warning: format not a string literal and no format arguments |
93 |
|
94 |
diff --git a/src/gtk/banner.c b/src/gtk/banner.c |
95 |
index df2eb55..69851ae 100644 |
96 |
--- a/src/gtk/banner.c |
97 |
+++ b/src/gtk/banner.c |
98 |
@@ -112,7 +112,7 @@ void banner_set_text(Banner *banner, char *text, int type) |
99 |
if(banner->text) |
100 |
g_free(banner->text); |
101 |
|
102 |
- banner->text = g_strdup_printf(text); |
103 |
+ banner->text = g_strdup(text); |
104 |
banner->type = type; |
105 |
/* Refresh the banner */ |
106 |
banner_expose(GTK_WIDGET(banner), NULL, banner); |
107 |
|
108 |
main.c: In function ‘gui_init’: |
109 |
main.c:235: warning: implicit declaration of function ‘XOpenDisplay’ |
110 |
main.c:235: warning: cast to pointer from integer of different size |
111 |
|
112 |
diff --git a/src/gtk/main.c b/src/gtk/main.c |
113 |
index b3bbacb..df7e5b1 100644 |
114 |
--- a/src/gtk/main.c |
115 |
+++ b/src/gtk/main.c |
116 |
@@ -25,6 +25,7 @@ |
117 |
|
118 |
#include <stdlib.h> |
119 |
#include <gtk/gtk.h> |
120 |
+#include <X11/Xlib.h> |
121 |
|
122 |
#include "banner.h" |
123 |
#include "interface.h" |
124 |
|
125 |
smartdimmer.c: In function ‘main’: |
126 |
smartdimmer.c:107: warning: implicit declaration of function ‘isdigit’ |
127 |
|
128 |
diff --git a/src/smartdimmer.c b/src/smartdimmer.c |
129 |
index 295cd49..769c1bc 100644 |
130 |
--- a/src/smartdimmer.c |
131 |
+++ b/src/smartdimmer.c |
132 |
@@ -38,6 +38,7 @@ |
133 |
#include <stdio.h> |
134 |
#include <stdlib.h> |
135 |
#include <getopt.h> |
136 |
+#include <ctype.h> |
137 |
#include "nvclock.h" |
138 |
|
139 |
/* for command line arguments */ |
140 |
|
141 |
|
142 |
|
143 |
1.1 sys-power/nvclock/files/nvclock-0.8_beta4-as-needed.patch |
144 |
|
145 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock-0.8_beta4-as-needed.patch?rev=1.1&view=markup |
146 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock-0.8_beta4-as-needed.patch?rev=1.1&content-type=text/plain |
147 |
|
148 |
Index: nvclock-0.8_beta4-as-needed.patch |
149 |
=================================================================== |
150 |
Change linking order to make it possible to use -Wl,--as-needed in LDFLAGS |
151 |
|
152 |
diff -ru nvclock0.8b4.orig/src/Makefile.in nvclock0.8b4/src/Makefile.in |
153 |
--- nvclock0.8b4.orig/src/Makefile.in 2009-01-03 12:02:54.000000000 -0500 |
154 |
+++ nvclock0.8b4/src/Makefile.in 2009-04-02 20:04:12.678271229 -0400 |
155 |
@@ -15,7 +15,7 @@ |
156 |
ifeq ($(HAVE_NVCONTROL), yes) |
157 |
DEPS=$(libbackend) $(libnvcontrol) |
158 |
INCLUDES=@X11_CFLAGS@ -I./backend -I./nvcontrol -I.. |
159 |
- LIBS=@X11_LIBS@ -L./backend -lbackend -L./nvcontrol -lnvcontrol |
160 |
+ LIBS=-L./backend -lbackend -L./nvcontrol -lnvcontrol @X11_LIBS@ |
161 |
else |
162 |
DEPS=$(libbackend) |
163 |
INCLUDES=-I./backend -I./nvcontrol -I.. |
164 |
|
165 |
|
166 |
|
167 |
1.1 sys-power/nvclock/files/nvclock-0.8_beta4-flags.patch |
168 |
|
169 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock-0.8_beta4-flags.patch?rev=1.1&view=markup |
170 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock-0.8_beta4-flags.patch?rev=1.1&content-type=text/plain |
171 |
|
172 |
Index: nvclock-0.8_beta4-flags.patch |
173 |
=================================================================== |
174 |
--- ./nvclock0.8b4/src/backend/Makefile.in.orig 2007-12-27 17:05:38.000000000 +0100 |
175 |
+++ ./nvclock0.8b4/src/backend/Makefile.in 2009-04-02 09:07:53.000000000 +0200 |
176 |
@@ -1,11 +1,10 @@ |
177 |
-CC=@CC@ -O0 |
178 |
AR=ar |
179 |
RANLIB=@RANLIB@ |
180 |
|
181 |
system=@system@ |
182 |
HAVE_NVCONTROL=@HAVE_NVCONTROL@ |
183 |
OBJECTS=backend.o bios.o config.o error.o nv30.o nv40.o nv50.o info.o overclock.o utils.o i2c.o xf86i2c.o adt7473.o f75375.o lm99.o w83781d.o w83l785r.o libc_wrapper.o |
184 |
-CFLAGS=@X11_CFLAGS@ -I../.. -I../nvcontrol |
185 |
+CFLAGS+=@X11_CFLAGS@ -I../.. -I../nvcontrol |
186 |
|
187 |
ifeq ($(system), FreeBSD) |
188 |
OBJECTS+=back_bsd.o |
189 |
@@ -36,4 +35,4 @@ |
190 |
rm -f Makefile |
191 |
|
192 |
install: |
193 |
-uninstall: |
194 |
\ No newline at end of file |
195 |
+uninstall: |
196 |
--- ./nvclock0.8b4/src/gtk/Makefile.in.orig 2008-05-11 12:25:46.000000000 +0200 |
197 |
+++ ./nvclock0.8b4/src/gtk/Makefile.in 2009-04-02 09:12:10.000000000 +0200 |
198 |
@@ -1,7 +1,6 @@ |
199 |
-CC=@CC@ |
200 |
INSTALL=@INSTALL@ |
201 |
|
202 |
-CFLAGS=@GTK_CFLAGS@ -I../backend -I../nvcontrol -I../.. |
203 |
+CFLAGS+=@GTK_CFLAGS@ -I../backend -I../nvcontrol -I../.. |
204 |
HAVE_GTK2=@HAVE_GTK2@ |
205 |
HAVE_NVCONTROL=@HAVE_NVCONTROL@ |
206 |
libbackend=../backend/libbackend.a |
207 |
@@ -34,7 +33,7 @@ |
208 |
all: $(PROGRAM) |
209 |
|
210 |
nvclock_gtk: $(DEPS) $(OBJECTS) |
211 |
- $(CC) -o nvclock_gtk $(OBJECTS) $(libbackend) $(LIBS) |
212 |
+ $(CC) -o nvclock_gtk $(LDFLAGS) $(OBJECTS) $(libbackend) $(LIBS) |
213 |
|
214 |
clean: |
215 |
rm -f nvclock_gtk *.core *.o *.exe |
216 |
--- ./nvclock0.8b4/src/Makefile.in.orig 2009-01-03 18:02:54.000000000 +0100 |
217 |
+++ ./nvclock0.8b4/src/Makefile.in 2009-04-02 09:12:24.000000000 +0200 |
218 |
@@ -1,4 +1,3 @@ |
219 |
-CC=@CC@ |
220 |
INSTALL=@INSTALL@ |
221 |
|
222 |
nvclock_SOURCES=nvclock.c |
223 |
@@ -31,10 +30,10 @@ |
224 |
|
225 |
|
226 |
nvclock: $(DEPS) $(LIB) nvclock.c |
227 |
- $(CC) -o nvclock $(nvclock_SOURCES) $(INCLUDES) $(LIBS) |
228 |
+ $(CC) -o nvclock $(CFLAGS) $(LDFLAGS) $(nvclock_SOURCES) $(INCLUDES) $(LIBS) |
229 |
|
230 |
smartdimmer: $(DEPS) $(LIB) smartdimmer.c |
231 |
- $(CC) -o smartdimmer $(smartdimmer_SOURCES) $(INCLUDES) $(LIBS) |
232 |
+ $(CC) -o smartdimmer $(CFLAGS) $(LDFLAGS) $(smartdimmer_SOURCES) $(INCLUDES) $(LIBS) |
233 |
|
234 |
|
235 |
clean: clean-recursive clean-app |
236 |
@@ -50,8 +49,8 @@ |
237 |
install: install-recursive install-app |
238 |
install-app: |
239 |
mkdir -p $(bindir) |
240 |
- $(INSTALL) -c nvclock $(DESTDIR)$(bindir)/nvclock |
241 |
- $(INSTALL) -c smartdimmer $(DESTDIR)$(bindir)/smartdimmer |
242 |
+ $(INSTALL) -c nvclock $(bindir)/nvclock |
243 |
+ $(INSTALL) -c smartdimmer $(bindir)/smartdimmer |
244 |
|
245 |
|
246 |
uninstall: uninstall-recursive uninstall-app |
247 |
--- ./nvclock0.8b4/src/nvcontrol/Makefile.in.orig 2005-12-09 20:46:05.000000000 +0100 |
248 |
+++ ./nvclock0.8b4/src/nvcontrol/Makefile.in 2009-04-02 09:07:53.000000000 +0200 |
249 |
@@ -1,8 +1,7 @@ |
250 |
-CC=@CC@ |
251 |
AR=ar |
252 |
RANLIB=@RANLIB@ |
253 |
system=@system@ |
254 |
-CFLAGS=@X11_CFLAGS@ -I../backend |
255 |
+CFLAGS+=@X11_CFLAGS@ -I../backend |
256 |
HAVE_X11=@HAVE_NVCONTROL@ |
257 |
OBJECTS=libnvcontrol.o nvcontrol.o |
258 |
|
259 |
@@ -26,4 +25,4 @@ |
260 |
rm -f Makefile |
261 |
|
262 |
install: |
263 |
-uninstall: |
264 |
\ No newline at end of file |
265 |
+uninstall: |
266 |
--- ./nvclock0.8b4/src/qt/Makefile.in.orig 2008-05-11 12:25:46.000000000 +0200 |
267 |
+++ ./nvclock0.8b4/src/qt/Makefile.in 2009-04-02 09:11:51.000000000 +0200 |
268 |
@@ -1,9 +1,8 @@ |
269 |
-CXX=@CXX@ |
270 |
INSTALL=@INSTALL@ |
271 |
MOC=@MOC@ |
272 |
|
273 |
OBJECTS=main.o qt_nvclock.o qt_nvclock.moc.o qt_xfree.o qt_xfree.moc.o |
274 |
-CXXFLAGS=@QT_CFLAGS@ -I../backend |
275 |
+CXXFLAGS+=@QT_CFLAGS@ -I../backend |
276 |
HAVE_NVCONTROL=@HAVE_NVCONTROL@ |
277 |
HAVE_QT=@HAVE_QT@ |
278 |
libbackend=../backend/libbackend.a |
279 |
@@ -32,7 +31,7 @@ |
280 |
all: $(PROGRAM) |
281 |
|
282 |
nvclock_qt: $(DEPS) qt_nvclock.moc qt_xfree.moc $(OBJECTS) |
283 |
- $(CXX) -o nvclock_qt $(CXXFLAGS) $(OBJECTS) $(LIBS) |
284 |
+ $(CXX) -o nvclock_qt $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) |
285 |
|
286 |
clean: |
287 |
rm -f nvclock_qt *.core *.moc *.o |
288 |
|
289 |
|
290 |
|
291 |
1.1 sys-power/nvclock/files/nvclock_confd |
292 |
|
293 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock_confd?rev=1.1&view=markup |
294 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/nvclock/files/nvclock_confd?rev=1.1&content-type=text/plain |
295 |
|
296 |
Index: nvclock_confd |
297 |
=================================================================== |
298 |
# Config file for /etc/init.d/nvclock |
299 |
|
300 |
# Set the core clock speed after -n and the memory clock speed after -m |
301 |
# Check your current speeds by running 'nvclock -s' at the command line |
302 |
# so you don't overclock too much and burn out the card |
303 |
# Test out your overclocking before adding this to the bootup! |
304 |
|
305 |
CLOCKOPTS="-s" |
306 |
#CLOCKOPTS="-n <corespeed> -m <memspeed>" |