1 |
Author: mpagano |
2 |
Date: 2010-12-28 21:17:43 +0000 (Tue, 28 Dec 2010) |
3 |
New Revision: 1857 |
4 |
|
5 |
Removed: |
6 |
genpatches-2.6/trunk/2.6.37/2900_xconfig-with-qt4.patch |
7 |
genpatches-2.6/trunk/2.6.37/2905_proper-qt4-detection.patch |
8 |
genpatches-2.6/trunk/2.6.37/2910_support-for-bzip2-lzma-lzo-compression.patch |
9 |
Modified: |
10 |
genpatches-2.6/trunk/2.6.37/0000_README |
11 |
Log: |
12 |
Remove redundant patchsets |
13 |
|
14 |
Modified: genpatches-2.6/trunk/2.6.37/0000_README |
15 |
=================================================================== |
16 |
--- genpatches-2.6/trunk/2.6.37/0000_README 2010-12-28 21:10:55 UTC (rev 1856) |
17 |
+++ genpatches-2.6/trunk/2.6.37/0000_README 2010-12-28 21:17:43 UTC (rev 1857) |
18 |
@@ -39,18 +39,6 @@ |
19 |
Individual Patch Descriptions: |
20 |
-------------------------------------------------------------------------- |
21 |
|
22 |
-Patch: 2900_xconfig-with-qt4.patch |
23 |
-From: http://bugs.gentoo.org/show_bug.cgi?id=342007 |
24 |
-Desc: xconfig patch for qt4 - thanks to alexander stein |
25 |
- |
26 |
-Patch: 2905_proper-qt4-detection.patch |
27 |
-From: http://bugs.gentoo.org/show_bug.cgi?id=342007 |
28 |
-Desc: proper qt4 detection |
29 |
- |
30 |
-Patch: 2910_support-for-bzip2-lzma-lzo-compression.patch |
31 |
-From: http://bugs.gentoo.org/show_bug.cgi?id=340021 |
32 |
-Desc: Add support for kernels compressed with bzip2, lzma or lzo to the extract-ikconfig script. |
33 |
- |
34 |
Patch: 4200_fbcondecor-0.9.6.patch |
35 |
From: http://dev.gentoo.org/~spock |
36 |
Desc: Bootsplash successor by Michal Januszewski |
37 |
|
38 |
Deleted: genpatches-2.6/trunk/2.6.37/2900_xconfig-with-qt4.patch |
39 |
=================================================================== |
40 |
--- genpatches-2.6/trunk/2.6.37/2900_xconfig-with-qt4.patch 2010-12-28 21:10:55 UTC (rev 1856) |
41 |
+++ genpatches-2.6/trunk/2.6.37/2900_xconfig-with-qt4.patch 2010-12-28 21:17:43 UTC (rev 1857) |
42 |
@@ -1,744 +0,0 @@ |
43 |
-A straight forward port to QT4 using qt3to4 and compiling against |
44 |
- qt3support |
45 |
- |
46 |
-* Use pkg-config to detect QT4 which is hopefully portable enough |
47 |
-* If no QT4, QT3 will by tried instead |
48 |
-* Classes renamed using qt3to4 |
49 |
- * If build using QT3 renamed to QT3 class names using defines |
50 |
-* ConfigInfoView::menu has to be renamed as QT4 moc strips struct from |
51 |
- struct menu and creates a name conflict |
52 |
-* QT2 support has been dropped |
53 |
-* The hidden options inserted in 39a4897c1bb66e8a36043c105d7fd73d8b32b480 |
54 |
- are use in native API |
55 |
- |
56 |
-Signed-off-by: Alexander Stein <alexander.stein@××××××××××××××××××××××.de> |
57 |
-Signed-off-by: Michal Marek <mmarek@××××.cz> |
58 |
---- |
59 |
-these two patches should apply on v2.6.36-rc5 |
60 |
- |
61 |
- scripts/kconfig/Makefile | 76 ++++++++++++--------- |
62 |
- scripts/kconfig/qconf.cc | 162 +++++++++++++++++++++++++--------------------- |
63 |
- scripts/kconfig/qconf.h | 76 ++++++++++----------- |
64 |
- 3 files changed, 168 insertions(+), 146 deletions(-) |
65 |
- |
66 |
-diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile |
67 |
-index de934de..cb02b1e 100644 |
68 |
---- a/scripts/kconfig/Makefile |
69 |
-+++ b/scripts/kconfig/Makefile |
70 |
-@@ -236,40 +236,50 @@ $(obj)/.tmp_qtcheck: $(src)/Makefile |
71 |
- # QT needs some extra effort... |
72 |
- $(obj)/.tmp_qtcheck: |
73 |
- @set -e; echo " CHECK qt"; dir=""; pkg=""; \ |
74 |
-- pkg-config --exists qt 2> /dev/null && pkg=qt; \ |
75 |
-- pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \ |
76 |
-- if [ -n "$$pkg" ]; then \ |
77 |
-- cflags="\$$(shell pkg-config $$pkg --cflags)"; \ |
78 |
-- libs="\$$(shell pkg-config $$pkg --libs)"; \ |
79 |
-- moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \ |
80 |
-- dir="$$(pkg-config $$pkg --variable=prefix)"; \ |
81 |
-+ if ! pkg-config --exists QtCore 2> /dev/null; then \ |
82 |
-+ echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \ |
83 |
-+ pkg-config --exists qt 2> /dev/null && pkg=qt; \ |
84 |
-+ pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \ |
85 |
-+ if [ -n "$$pkg" ]; then \ |
86 |
-+ cflags="\$$(shell pkg-config $$pkg --cflags)"; \ |
87 |
-+ libs="\$$(shell pkg-config $$pkg --libs)"; \ |
88 |
-+ moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \ |
89 |
-+ dir="$$(pkg-config $$pkg --variable=prefix)"; \ |
90 |
-+ else \ |
91 |
-+ for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \ |
92 |
-+ if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \ |
93 |
-+ done; \ |
94 |
-+ if [ -z "$$dir" ]; then \ |
95 |
-+ echo "*"; \ |
96 |
-+ echo "* Unable to find any QT installation. Please make sure that"; \ |
97 |
-+ echo "* the QT4 or QT3 development package is correctly installed and"; \ |
98 |
-+ echo "* either qmake can be found or install pkg-config or set"; \ |
99 |
-+ echo "* the QTDIR environment variable to the correct location."; \ |
100 |
-+ echo "*"; \ |
101 |
-+ false; \ |
102 |
-+ fi; \ |
103 |
-+ libpath=$$dir/lib; lib=qt; osdir=""; \ |
104 |
-+ $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ |
105 |
-+ osdir=x$$($(HOSTCXX) -print-multi-os-directory); \ |
106 |
-+ test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \ |
107 |
-+ test -f $$libpath/libqt-mt.so && lib=qt-mt; \ |
108 |
-+ cflags="-I$$dir/include"; \ |
109 |
-+ libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \ |
110 |
-+ moc="$$dir/bin/moc"; \ |
111 |
-+ fi; \ |
112 |
-+ if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \ |
113 |
-+ echo "*"; \ |
114 |
-+ echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \ |
115 |
-+ echo "*"; \ |
116 |
-+ moc="/usr/bin/moc"; \ |
117 |
-+ fi; \ |
118 |
- else \ |
119 |
-- for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \ |
120 |
-- if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \ |
121 |
-- done; \ |
122 |
-- if [ -z "$$dir" ]; then \ |
123 |
-- echo "*"; \ |
124 |
-- echo "* Unable to find the QT3 installation. Please make sure that"; \ |
125 |
-- echo "* the QT3 development package is correctly installed and"; \ |
126 |
-- echo "* either install pkg-config or set the QTDIR environment"; \ |
127 |
-- echo "* variable to the correct location."; \ |
128 |
-- echo "*"; \ |
129 |
-- false; \ |
130 |
-- fi; \ |
131 |
-- libpath=$$dir/lib; lib=qt; osdir=""; \ |
132 |
-- $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ |
133 |
-- osdir=x$$($(HOSTCXX) -print-multi-os-directory); \ |
134 |
-- test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \ |
135 |
-- test -f $$libpath/libqt-mt.so && lib=qt-mt; \ |
136 |
-- cflags="-I$$dir/include"; \ |
137 |
-- libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \ |
138 |
-- moc="$$dir/bin/moc"; \ |
139 |
-- fi; \ |
140 |
-- if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \ |
141 |
-- echo "*"; \ |
142 |
-- echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \ |
143 |
-- echo "*"; \ |
144 |
-- moc="/usr/bin/moc"; \ |
145 |
-+ headerpath="\$$(shell qmake -query QT_INSTALL_HEADERS)"; \ |
146 |
-+ libpath="\$$(shell qmake -query QT_INSTALL_LIBS)"; \ |
147 |
-+ binpath="\$$(shell qmake -query QT_INSTALL_BINS)"; \ |
148 |
-+ cflags="-I$$headerpath -I$$headerpath/QtCore -I$$headerpath/QtGui -I$$headerpath/Qt3Support -DQT3_SUPPORT"; \ |
149 |
-+ libs="-L$$libpath -Wl,-rpath,$$libpath -lQtCore -lQtGui -lQt3Support"; \ |
150 |
-+ moc="$$binpath/moc"; \ |
151 |
- fi; \ |
152 |
- echo "KC_QT_CFLAGS=$$cflags" > $@; \ |
153 |
- echo "KC_QT_LIBS=$$libs" >> $@; \ |
154 |
---- a/scripts/kconfig/qconf.cc 2010-12-17 12:40:53.000000000 -0500 |
155 |
-+++ b/scripts/kconfig/qconf.cc 2010-12-17 13:24:22.000000000 -0500 |
156 |
-@@ -4,24 +4,42 @@ |
157 |
- */ |
158 |
- |
159 |
- #include <qapplication.h> |
160 |
-+#include <qglobal.h> |
161 |
-+ |
162 |
-+#if QT_VERSION < 0x040000 |
163 |
- #include <qmainwindow.h> |
164 |
-+#include <qvbox.h> |
165 |
-+#include <qvaluelist.h> |
166 |
-+#include <qtextbrowser.h> |
167 |
-+#include <qaction.h> |
168 |
-+#include <qheader.h> |
169 |
-+#include <qfiledialog.h> |
170 |
-+#include <qdragobject.h> |
171 |
-+#include <qpopupmenu.h> |
172 |
-+#else |
173 |
-+#include <q3mainwindow.h> |
174 |
-+#include <q3vbox.h> |
175 |
-+#include <q3valuelist.h> |
176 |
-+#include <q3textbrowser.h> |
177 |
-+#include <q3action.h> |
178 |
-+#include <q3header.h> |
179 |
-+#include <q3filedialog.h> |
180 |
-+#include <q3dragobject.h> |
181 |
-+#include <q3popupmenu.h> |
182 |
-+#endif |
183 |
-+ |
184 |
-+#include <qapplication.h> |
185 |
- #include <qdesktopwidget.h> |
186 |
- #include <qtoolbar.h> |
187 |
- #include <qlayout.h> |
188 |
--#include <qvbox.h> |
189 |
- #include <qsplitter.h> |
190 |
--#include <qlistview.h> |
191 |
--#include <qtextbrowser.h> |
192 |
- #include <qlineedit.h> |
193 |
- #include <qlabel.h> |
194 |
- #include <qpushbutton.h> |
195 |
- #include <qmenubar.h> |
196 |
- #include <qmessagebox.h> |
197 |
--#include <qaction.h> |
198 |
--#include <qheader.h> |
199 |
--#include <qfiledialog.h> |
200 |
--#include <qdragobject.h> |
201 |
- #include <qregexp.h> |
202 |
-+#include <qevent.h> |
203 |
- |
204 |
- #include <stdlib.h> |
205 |
- |
206 |
-@@ -39,7 +57,7 @@ |
207 |
- static QApplication *configApp; |
208 |
- static ConfigSettings *configSettings; |
209 |
- |
210 |
--QAction *ConfigMainWindow::saveAction; |
211 |
-+Q3Action *ConfigMainWindow::saveAction; |
212 |
- |
213 |
- static inline QString qgettext(const char* str) |
214 |
- { |
215 |
-@@ -54,9 +72,9 @@ static inline QString qgettext(const QSt |
216 |
- /** |
217 |
- * Reads a list of integer values from the application settings. |
218 |
- */ |
219 |
--QValueList<int> ConfigSettings::readSizes(const QString& key, bool *ok) |
220 |
-+Q3ValueList<int> ConfigSettings::readSizes(const QString& key, bool *ok) |
221 |
- { |
222 |
-- QValueList<int> result; |
223 |
-+ Q3ValueList<int> result; |
224 |
- QStringList entryList = readListEntry(key, ok); |
225 |
- if (ok) { |
226 |
- QStringList::Iterator it; |
227 |
-@@ -70,10 +88,10 @@ QValueList<int> ConfigSettings::readSize |
228 |
- /** |
229 |
- * Writes a list of integer values to the application settings. |
230 |
- */ |
231 |
--bool ConfigSettings::writeSizes(const QString& key, const QValueList<int>& value) |
232 |
-+bool ConfigSettings::writeSizes(const QString& key, const Q3ValueList<int>& value) |
233 |
- { |
234 |
- QStringList stringList; |
235 |
-- QValueList<int>::ConstIterator it; |
236 |
-+ Q3ValueList<int>::ConstIterator it; |
237 |
- |
238 |
- for (it = value.begin(); it != value.end(); ++it) |
239 |
- stringList.push_back(QString::number(*it)); |
240 |
-@@ -81,7 +99,6 @@ bool ConfigSettings::writeSizes(const QS |
241 |
- } |
242 |
- |
243 |
- |
244 |
--#if QT_VERSION >= 300 |
245 |
- /* |
246 |
- * set the new data |
247 |
- * TODO check the value |
248 |
-@@ -92,7 +109,6 @@ void ConfigItem::okRename(int col) |
249 |
- sym_set_string_value(menu->sym, text(dataColIdx).latin1()); |
250 |
- listView()->updateList(this); |
251 |
- } |
252 |
--#endif |
253 |
- |
254 |
- /* |
255 |
- * update the displayed of a menu entry |
256 |
-@@ -196,11 +212,9 @@ void ConfigItem::updateMenu(void) |
257 |
- |
258 |
- data = sym_get_string_value(sym); |
259 |
- |
260 |
--#if QT_VERSION >= 300 |
261 |
- int i = list->mapIdx(dataColIdx); |
262 |
- if (i >= 0) |
263 |
- setRenameEnabled(i, TRUE); |
264 |
--#endif |
265 |
- setText(dataColIdx, data); |
266 |
- if (type == S_STRING) |
267 |
- prompt = QString("%1: %2").arg(prompt).arg(data); |
268 |
-@@ -422,7 +436,7 @@ void ConfigList::updateList(ConfigItem* |
269 |
- if (!rootEntry) { |
270 |
- if (mode != listMode) |
271 |
- goto update; |
272 |
-- QListViewItemIterator it(this); |
273 |
-+ Q3ListViewItemIterator it(this); |
274 |
- ConfigItem* item; |
275 |
- |
276 |
- for (; it.current(); ++it) { |
277 |
-@@ -517,11 +531,9 @@ void ConfigList::changeValue(ConfigItem* |
278 |
- case S_INT: |
279 |
- case S_HEX: |
280 |
- case S_STRING: |
281 |
--#if QT_VERSION >= 300 |
282 |
- if (colMap[dataColIdx] >= 0) |
283 |
- item->startRename(colMap[dataColIdx]); |
284 |
- else |
285 |
--#endif |
286 |
- parent()->lineEdit->show(item); |
287 |
- break; |
288 |
- } |
289 |
-@@ -553,7 +565,7 @@ void ConfigList::setParentMenu(void) |
290 |
- return; |
291 |
- setRootMenu(menu_get_parent_menu(rootEntry->parent)); |
292 |
- |
293 |
-- QListViewItemIterator it(this); |
294 |
-+ Q3ListViewItemIterator it(this); |
295 |
- for (; (item = (ConfigItem*)it.current()); it++) { |
296 |
- if (item->menu == oldroot) { |
297 |
- setCurrentItem(item); |
298 |
-@@ -635,7 +647,7 @@ void ConfigList::updateMenuList(P* paren |
299 |
- |
300 |
- void ConfigList::keyPressEvent(QKeyEvent* ev) |
301 |
- { |
302 |
-- QListViewItem* i = currentItem(); |
303 |
-+ Q3ListViewItem* i = currentItem(); |
304 |
- ConfigItem* item; |
305 |
- struct menu *menu; |
306 |
- enum prop_type type; |
307 |
-@@ -801,10 +813,10 @@ void ConfigList::contextMenuEvent(QConte |
308 |
- { |
309 |
- if (e->y() <= header()->geometry().bottom()) { |
310 |
- if (!headerPopup) { |
311 |
-- QAction *action; |
312 |
-+ Q3Action *action; |
313 |
- |
314 |
-- headerPopup = new QPopupMenu(this); |
315 |
-- action = new QAction(NULL, _("Show Name"), 0, this); |
316 |
-+ headerPopup = new Q3PopupMenu(this); |
317 |
-+ action = new Q3Action(NULL, _("Show Name"), 0, this); |
318 |
- action->setToggleAction(TRUE); |
319 |
- connect(action, SIGNAL(toggled(bool)), |
320 |
- parent(), SLOT(setShowName(bool))); |
321 |
-@@ -812,7 +824,7 @@ void ConfigList::contextMenuEvent(QConte |
322 |
- action, SLOT(setOn(bool))); |
323 |
- action->setOn(showName); |
324 |
- action->addTo(headerPopup); |
325 |
-- action = new QAction(NULL, _("Show Range"), 0, this); |
326 |
-+ action = new Q3Action(NULL, _("Show Range"), 0, this); |
327 |
- action->setToggleAction(TRUE); |
328 |
- connect(action, SIGNAL(toggled(bool)), |
329 |
- parent(), SLOT(setShowRange(bool))); |
330 |
-@@ -820,7 +832,7 @@ void ConfigList::contextMenuEvent(QConte |
331 |
- action, SLOT(setOn(bool))); |
332 |
- action->setOn(showRange); |
333 |
- action->addTo(headerPopup); |
334 |
-- action = new QAction(NULL, _("Show Data"), 0, this); |
335 |
-+ action = new Q3Action(NULL, _("Show Data"), 0, this); |
336 |
- action->setToggleAction(TRUE); |
337 |
- connect(action, SIGNAL(toggled(bool)), |
338 |
- parent(), SLOT(setShowData(bool))); |
339 |
-@@ -898,7 +910,7 @@ void ConfigView::setShowData(bool b) |
340 |
- |
341 |
- void ConfigList::setAllOpen(bool open) |
342 |
- { |
343 |
-- QListViewItemIterator it(this); |
344 |
-+ Q3ListViewItemIterator it(this); |
345 |
- |
346 |
- for (; it.current(); it++) |
347 |
- it.current()->setOpen(open); |
348 |
-@@ -921,7 +933,7 @@ void ConfigView::updateListAll(void) |
349 |
- } |
350 |
- |
351 |
- ConfigInfoView::ConfigInfoView(QWidget* parent, const char *name) |
352 |
-- : Parent(parent, name), sym(0), menu(0) |
353 |
-+ : Parent(parent, name), sym(0), _menu(0) |
354 |
- { |
355 |
- if (name) { |
356 |
- configSettings->beginGroup(name); |
357 |
-@@ -944,7 +956,7 @@ void ConfigInfoView::setShowDebug(bool b |
358 |
- { |
359 |
- if (_showDebug != b) { |
360 |
- _showDebug = b; |
361 |
-- if (menu) |
362 |
-+ if (_menu) |
363 |
- menuInfo(); |
364 |
- else if (sym) |
365 |
- symbolInfo(); |
366 |
-@@ -954,11 +966,11 @@ void ConfigInfoView::setShowDebug(bool b |
367 |
- |
368 |
- void ConfigInfoView::setInfo(struct menu *m) |
369 |
- { |
370 |
-- if (menu == m) |
371 |
-+ if (_menu == m) |
372 |
- return; |
373 |
-- menu = m; |
374 |
-+ _menu = m; |
375 |
- sym = NULL; |
376 |
-- if (!menu) |
377 |
-+ if (!_menu) |
378 |
- clear(); |
379 |
- else |
380 |
- menuInfo(); |
381 |
-@@ -968,17 +980,17 @@ void ConfigInfoView::setSource(const QSt |
382 |
- { |
383 |
- const char *p = name.latin1(); |
384 |
- |
385 |
-- menu = NULL; |
386 |
-+ _menu = NULL; |
387 |
- sym = NULL; |
388 |
- |
389 |
- switch (p[0]) { |
390 |
- case 'm': |
391 |
- struct menu *m; |
392 |
- |
393 |
-- if (sscanf(p, "m%p", &m) == 1 && menu != m) { |
394 |
-- menu = m; |
395 |
-+ if (sscanf(p, "m%p", &m) == 1 && _menu != m) { |
396 |
-+ _menu = m; |
397 |
- menuInfo(); |
398 |
-- emit menuSelected(menu); |
399 |
-+ emit menuSelected(_menu); |
400 |
- } |
401 |
- break; |
402 |
- case 's': |
403 |
-@@ -1013,11 +1025,11 @@ void ConfigInfoView::menuInfo(void) |
404 |
- struct symbol* sym; |
405 |
- QString head, debug, help; |
406 |
- |
407 |
-- sym = menu->sym; |
408 |
-+ sym = _menu->sym; |
409 |
- if (sym) { |
410 |
-- if (menu->prompt) { |
411 |
-+ if (_menu->prompt) { |
412 |
- head += "<big><b>"; |
413 |
-- head += print_filter(_(menu->prompt->text)); |
414 |
-+ head += print_filter(_(_menu->prompt->text)); |
415 |
- head += "</b></big>"; |
416 |
- if (sym->name) { |
417 |
- head += " ("; |
418 |
-@@ -1043,23 +1055,23 @@ void ConfigInfoView::menuInfo(void) |
419 |
- debug = debug_info(sym); |
420 |
- |
421 |
- struct gstr help_gstr = str_new(); |
422 |
-- menu_get_ext_help(menu, &help_gstr); |
423 |
-+ menu_get_ext_help(_menu, &help_gstr); |
424 |
- help = print_filter(str_get(&help_gstr)); |
425 |
- str_free(&help_gstr); |
426 |
-- } else if (menu->prompt) { |
427 |
-+ } else if (_menu->prompt) { |
428 |
- head += "<big><b>"; |
429 |
-- head += print_filter(_(menu->prompt->text)); |
430 |
-+ head += print_filter(_(_menu->prompt->text)); |
431 |
- head += "</b></big><br><br>"; |
432 |
- if (showDebug()) { |
433 |
-- if (menu->prompt->visible.expr) { |
434 |
-+ if (_menu->prompt->visible.expr) { |
435 |
- debug += " dep: "; |
436 |
-- expr_print(menu->prompt->visible.expr, expr_print_help, &debug, E_NONE); |
437 |
-+ expr_print(_menu->prompt->visible.expr, expr_print_help, &debug, E_NONE); |
438 |
- debug += "<br><br>"; |
439 |
- } |
440 |
- } |
441 |
- } |
442 |
- if (showDebug()) |
443 |
-- debug += QString().sprintf("defined at %s:%d<br><br>", menu->file->name, menu->lineno); |
444 |
-+ debug += QString().sprintf("defined at %s:%d<br><br>", _menu->file->name, _menu->lineno); |
445 |
- |
446 |
- setText(head + debug + help); |
447 |
- } |
448 |
-@@ -1162,10 +1174,10 @@ void ConfigInfoView::expr_print_help(voi |
449 |
- *text += str2; |
450 |
- } |
451 |
- |
452 |
--QPopupMenu* ConfigInfoView::createPopupMenu(const QPoint& pos) |
453 |
-+Q3PopupMenu* ConfigInfoView::createPopupMenu(const QPoint& pos) |
454 |
- { |
455 |
-- QPopupMenu* popup = Parent::createPopupMenu(pos); |
456 |
-- QAction* action = new QAction(NULL, _("Show Debug Info"), 0, popup); |
457 |
-+ Q3PopupMenu* popup = Parent::createPopupMenu(pos); |
458 |
-+ Q3Action* action = new Q3Action(NULL, _("Show Debug Info"), 0, popup); |
459 |
- action->setToggleAction(TRUE); |
460 |
- connect(action, SIGNAL(toggled(bool)), SLOT(setShowDebug(bool))); |
461 |
- connect(this, SIGNAL(showDebugChanged(bool)), action, SLOT(setOn(bool))); |
462 |
-@@ -1222,7 +1234,7 @@ ConfigSearchWindow::ConfigSearchWindow(C |
463 |
- y = configSettings->readNumEntry("/window y", 0, &ok); |
464 |
- if (ok) |
465 |
- move(x, y); |
466 |
-- QValueList<int> sizes = configSettings->readSizes("/split", &ok); |
467 |
-+ Q3ValueList<int> sizes = configSettings->readSizes("/split", &ok); |
468 |
- if (ok) |
469 |
- split->setSizes(sizes); |
470 |
- configSettings->endGroup(); |
471 |
-@@ -1309,60 +1321,60 @@ ConfigMainWindow::ConfigMainWindow(void) |
472 |
- configList->setFocus(); |
473 |
- |
474 |
- menu = menuBar(); |
475 |
-- toolBar = new QToolBar("Tools", this); |
476 |
-+ toolBar = new Q3ToolBar("Tools", this); |
477 |
- |
478 |
-- backAction = new QAction("Back", QPixmap(xpm_back), _("Back"), 0, this); |
479 |
-+ backAction = new Q3Action("Back", QPixmap(xpm_back), _("Back"), 0, this); |
480 |
- connect(backAction, SIGNAL(activated()), SLOT(goBack())); |
481 |
- backAction->setEnabled(FALSE); |
482 |
-- QAction *quitAction = new QAction("Quit", _("&Quit"), Qt::CTRL + Qt::Key_Q, this); |
483 |
-+ Q3Action *quitAction = new Q3Action("Quit", _("&Quit"), Qt::CTRL + Qt::Key_Q, this); |
484 |
- connect(quitAction, SIGNAL(activated()), SLOT(close())); |
485 |
-- QAction *loadAction = new QAction("Load", QPixmap(xpm_load), _("&Load"), Qt::CTRL + Qt::Key_L, this); |
486 |
-+ Q3Action *loadAction = new Q3Action("Load", QPixmap(xpm_load), _("&Load"), Qt::CTRL + Qt::Key_L, this); |
487 |
- connect(loadAction, SIGNAL(activated()), SLOT(loadConfig())); |
488 |
-- saveAction = new QAction("Save", QPixmap(xpm_save), _("&Save"), Qt::CTRL + Qt::Key_S, this); |
489 |
-+ saveAction = new Q3Action("Save", QPixmap(xpm_save), _("&Save"), Qt::CTRL + Qt::Key_S, this); |
490 |
- connect(saveAction, SIGNAL(activated()), SLOT(saveConfig())); |
491 |
- conf_set_changed_callback(conf_changed); |
492 |
- // Set saveAction's initial state |
493 |
- conf_changed(); |
494 |
-- QAction *saveAsAction = new QAction("Save As...", _("Save &As..."), 0, this); |
495 |
-+ Q3Action *saveAsAction = new Q3Action("Save As...", _("Save &As..."), 0, this); |
496 |
- connect(saveAsAction, SIGNAL(activated()), SLOT(saveConfigAs())); |
497 |
-- QAction *searchAction = new QAction("Find", _("&Find"), Qt::CTRL + Qt::Key_F, this); |
498 |
-+ Q3Action *searchAction = new Q3Action("Find", _("&Find"), Qt::CTRL + Qt::Key_F, this); |
499 |
- connect(searchAction, SIGNAL(activated()), SLOT(searchConfig())); |
500 |
-- QAction *singleViewAction = new QAction("Single View", QPixmap(xpm_single_view), _("Single View"), 0, this); |
501 |
-+ Q3Action *singleViewAction = new Q3Action("Single View", QPixmap(xpm_single_view), _("Single View"), 0, this); |
502 |
- connect(singleViewAction, SIGNAL(activated()), SLOT(showSingleView())); |
503 |
-- QAction *splitViewAction = new QAction("Split View", QPixmap(xpm_split_view), _("Split View"), 0, this); |
504 |
-+ Q3Action *splitViewAction = new Q3Action("Split View", QPixmap(xpm_split_view), _("Split View"), 0, this); |
505 |
- connect(splitViewAction, SIGNAL(activated()), SLOT(showSplitView())); |
506 |
-- QAction *fullViewAction = new QAction("Full View", QPixmap(xpm_tree_view), _("Full View"), 0, this); |
507 |
-+ Q3Action *fullViewAction = new Q3Action("Full View", QPixmap(xpm_tree_view), _("Full View"), 0, this); |
508 |
- connect(fullViewAction, SIGNAL(activated()), SLOT(showFullView())); |
509 |
- |
510 |
-- QAction *showNameAction = new QAction(NULL, _("Show Name"), 0, this); |
511 |
-+ Q3Action *showNameAction = new Q3Action(NULL, _("Show Name"), 0, this); |
512 |
- showNameAction->setToggleAction(TRUE); |
513 |
- connect(showNameAction, SIGNAL(toggled(bool)), configView, SLOT(setShowName(bool))); |
514 |
- connect(configView, SIGNAL(showNameChanged(bool)), showNameAction, SLOT(setOn(bool))); |
515 |
- showNameAction->setOn(configView->showName()); |
516 |
-- QAction *showRangeAction = new QAction(NULL, _("Show Range"), 0, this); |
517 |
-+ Q3Action *showRangeAction = new Q3Action(NULL, _("Show Range"), 0, this); |
518 |
- showRangeAction->setToggleAction(TRUE); |
519 |
- connect(showRangeAction, SIGNAL(toggled(bool)), configView, SLOT(setShowRange(bool))); |
520 |
- connect(configView, SIGNAL(showRangeChanged(bool)), showRangeAction, SLOT(setOn(bool))); |
521 |
- showRangeAction->setOn(configList->showRange); |
522 |
-- QAction *showDataAction = new QAction(NULL, _("Show Data"), 0, this); |
523 |
-+ Q3Action *showDataAction = new Q3Action(NULL, _("Show Data"), 0, this); |
524 |
- showDataAction->setToggleAction(TRUE); |
525 |
- connect(showDataAction, SIGNAL(toggled(bool)), configView, SLOT(setShowData(bool))); |
526 |
- connect(configView, SIGNAL(showDataChanged(bool)), showDataAction, SLOT(setOn(bool))); |
527 |
- showDataAction->setOn(configList->showData); |
528 |
-- QAction *showAllAction = new QAction(NULL, _("Show All Options"), 0, this); |
529 |
-+ Q3Action *showAllAction = new Q3Action(NULL, _("Show All Options"), 0, this); |
530 |
- showAllAction->setToggleAction(TRUE); |
531 |
- connect(showAllAction, SIGNAL(toggled(bool)), configView, SLOT(setShowAll(bool))); |
532 |
- connect(showAllAction, SIGNAL(toggled(bool)), menuView, SLOT(setShowAll(bool))); |
533 |
- showAllAction->setOn(configList->showAll); |
534 |
-- QAction *showDebugAction = new QAction(NULL, _("Show Debug Info"), 0, this); |
535 |
-+ Q3Action *showDebugAction = new Q3Action(NULL, _("Show Debug Info"), 0, this); |
536 |
- showDebugAction->setToggleAction(TRUE); |
537 |
- connect(showDebugAction, SIGNAL(toggled(bool)), helpText, SLOT(setShowDebug(bool))); |
538 |
- connect(helpText, SIGNAL(showDebugChanged(bool)), showDebugAction, SLOT(setOn(bool))); |
539 |
- showDebugAction->setOn(helpText->showDebug()); |
540 |
- |
541 |
-- QAction *showIntroAction = new QAction(NULL, _("Introduction"), 0, this); |
542 |
-+ Q3Action *showIntroAction = new Q3Action(NULL, _("Introduction"), 0, this); |
543 |
- connect(showIntroAction, SIGNAL(activated()), SLOT(showIntro())); |
544 |
-- QAction *showAboutAction = new QAction(NULL, _("About"), 0, this); |
545 |
-+ Q3Action *showAboutAction = new Q3Action(NULL, _("About"), 0, this); |
546 |
- connect(showAboutAction, SIGNAL(activated()), SLOT(showAbout())); |
547 |
- |
548 |
- // init tool bar |
549 |
-@@ -1376,7 +1388,7 @@ ConfigMainWindow::ConfigMainWindow(void) |
550 |
- fullViewAction->addTo(toolBar); |
551 |
- |
552 |
- // create config menu |
553 |
-- QPopupMenu* config = new QPopupMenu(this); |
554 |
-+ Q3PopupMenu* config = new Q3PopupMenu(this); |
555 |
- menu->insertItem(_("&File"), config); |
556 |
- loadAction->addTo(config); |
557 |
- saveAction->addTo(config); |
558 |
-@@ -1385,22 +1397,21 @@ ConfigMainWindow::ConfigMainWindow(void) |
559 |
- quitAction->addTo(config); |
560 |
- |
561 |
- // create edit menu |
562 |
-- QPopupMenu* editMenu = new QPopupMenu(this); |
563 |
-+ Q3PopupMenu* editMenu = new Q3PopupMenu(this); |
564 |
- menu->insertItem(_("&Edit"), editMenu); |
565 |
- searchAction->addTo(editMenu); |
566 |
- |
567 |
- // create options menu |
568 |
-- QPopupMenu* optionMenu = new QPopupMenu(this); |
569 |
-+ Q3PopupMenu* optionMenu = new Q3PopupMenu(this); |
570 |
- menu->insertItem(_("&Option"), optionMenu); |
571 |
- showNameAction->addTo(optionMenu); |
572 |
- showRangeAction->addTo(optionMenu); |
573 |
- showDataAction->addTo(optionMenu); |
574 |
- optionMenu->insertSeparator(); |
575 |
- showAllAction->addTo(optionMenu); |
576 |
-- showDebugAction->addTo(optionMenu); |
577 |
- |
578 |
- // create help menu |
579 |
-- QPopupMenu* helpMenu = new QPopupMenu(this); |
580 |
-+ Q3PopupMenu* helpMenu = new Q3PopupMenu(this); |
581 |
- menu->insertSeparator(); |
582 |
- menu->insertItem(_("&Help"), helpMenu); |
583 |
- showIntroAction->addTo(helpMenu); |
584 |
-@@ -1435,7 +1446,7 @@ ConfigMainWindow::ConfigMainWindow(void) |
585 |
- showSplitView(); |
586 |
- |
587 |
- // UI setup done, restore splitter positions |
588 |
-- QValueList<int> sizes = configSettings->readSizes("/split1", &ok); |
589 |
-+ Q3ValueList<int> sizes = configSettings->readSizes("/split1", &ok); |
590 |
- if (ok) |
591 |
- split1->setSizes(sizes); |
592 |
- |
593 |
-@@ -1446,7 +1457,7 @@ ConfigMainWindow::ConfigMainWindow(void) |
594 |
- |
595 |
- void ConfigMainWindow::loadConfig(void) |
596 |
- { |
597 |
-- QString s = QFileDialog::getOpenFileName(conf_get_configname(), NULL, this); |
598 |
-+ QString s = Q3FileDialog::getOpenFileName(conf_get_configname(), NULL, this); |
599 |
- if (s.isNull()) |
600 |
- return; |
601 |
- if (conf_read(QFile::encodeName(s))) |
602 |
-@@ -1462,7 +1473,7 @@ void ConfigMainWindow::saveConfig(void) |
603 |
- |
604 |
- void ConfigMainWindow::saveConfigAs(void) |
605 |
- { |
606 |
-- QString s = QFileDialog::getSaveFileName(conf_get_configname(), NULL, this); |
607 |
-+ QString s = Q3FileDialog::getSaveFileName(conf_get_configname(), NULL, this); |
608 |
- if (s.isNull()) |
609 |
- return; |
610 |
- if (conf_write(QFile::encodeName(s))) |
611 |
-diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h |
612 |
-index 636a74b..91677d9 100644 |
613 |
---- a/scripts/kconfig/qconf.h |
614 |
-+++ b/scripts/kconfig/qconf.h |
615 |
-@@ -3,26 +3,25 @@ |
616 |
- * Released under the terms of the GNU GPL v2.0. |
617 |
- */ |
618 |
- |
619 |
-+#if QT_VERSION < 0x040000 |
620 |
- #include <qlistview.h> |
621 |
--#if QT_VERSION >= 300 |
622 |
--#include <qsettings.h> |
623 |
- #else |
624 |
--class QSettings { |
625 |
--public: |
626 |
-- void beginGroup(const QString& group) { } |
627 |
-- void endGroup(void) { } |
628 |
-- bool readBoolEntry(const QString& key, bool def = FALSE, bool* ok = 0) const |
629 |
-- { if (ok) *ok = FALSE; return def; } |
630 |
-- int readNumEntry(const QString& key, int def = 0, bool* ok = 0) const |
631 |
-- { if (ok) *ok = FALSE; return def; } |
632 |
-- QString readEntry(const QString& key, const QString& def = QString::null, bool* ok = 0) const |
633 |
-- { if (ok) *ok = FALSE; return def; } |
634 |
-- QStringList readListEntry(const QString& key, bool* ok = 0) const |
635 |
-- { if (ok) *ok = FALSE; return QStringList(); } |
636 |
-- template <class t> |
637 |
-- bool writeEntry(const QString& key, t value) |
638 |
-- { return TRUE; } |
639 |
--}; |
640 |
-+#include <q3listview.h> |
641 |
-+#endif |
642 |
-+#include <qsettings.h> |
643 |
-+ |
644 |
-+#if QT_VERSION < 0x040000 |
645 |
-+#define Q3ValueList QValueList |
646 |
-+#define Q3PopupMenu QPopupMenu |
647 |
-+#define Q3ListView QListView |
648 |
-+#define Q3ListViewItem QListViewItem |
649 |
-+#define Q3VBox QVBox |
650 |
-+#define Q3TextBrowser QTextBrowser |
651 |
-+#define Q3MainWindow QMainWindow |
652 |
-+#define Q3Action QAction |
653 |
-+#define Q3ToolBar QToolBar |
654 |
-+#define Q3ListViewItemIterator QListViewItemIterator |
655 |
-+#define Q3FileDialog QFileDialog |
656 |
- #endif |
657 |
- |
658 |
- class ConfigView; |
659 |
-@@ -31,11 +30,10 @@ class ConfigItem; |
660 |
- class ConfigLineEdit; |
661 |
- class ConfigMainWindow; |
662 |
- |
663 |
-- |
664 |
- class ConfigSettings : public QSettings { |
665 |
- public: |
666 |
-- QValueList<int> readSizes(const QString& key, bool *ok); |
667 |
-- bool writeSizes(const QString& key, const QValueList<int>& value); |
668 |
-+ Q3ValueList<int> readSizes(const QString& key, bool *ok); |
669 |
-+ bool writeSizes(const QString& key, const Q3ValueList<int>& value); |
670 |
- }; |
671 |
- |
672 |
- enum colIdx { |
673 |
-@@ -48,9 +46,9 @@ enum optionMode { |
674 |
- normalOpt = 0, allOpt, promptOpt |
675 |
- }; |
676 |
- |
677 |
--class ConfigList : public QListView { |
678 |
-+class ConfigList : public Q3ListView { |
679 |
- Q_OBJECT |
680 |
-- typedef class QListView Parent; |
681 |
-+ typedef class Q3ListView Parent; |
682 |
- public: |
683 |
- ConfigList(ConfigView* p, const char *name = 0); |
684 |
- void reinit(void); |
685 |
-@@ -135,17 +133,17 @@ public: |
686 |
- struct menu *rootEntry; |
687 |
- QColorGroup disabledColorGroup; |
688 |
- QColorGroup inactivedColorGroup; |
689 |
-- QPopupMenu* headerPopup; |
690 |
-+ Q3PopupMenu* headerPopup; |
691 |
- |
692 |
- private: |
693 |
- int colMap[colNr]; |
694 |
- int colRevMap[colNr]; |
695 |
- }; |
696 |
- |
697 |
--class ConfigItem : public QListViewItem { |
698 |
-- typedef class QListViewItem Parent; |
699 |
-+class ConfigItem : public Q3ListViewItem { |
700 |
-+ typedef class Q3ListViewItem Parent; |
701 |
- public: |
702 |
-- ConfigItem(QListView *parent, ConfigItem *after, struct menu *m, bool v) |
703 |
-+ ConfigItem(Q3ListView *parent, ConfigItem *after, struct menu *m, bool v) |
704 |
- : Parent(parent, after), menu(m), visible(v), goParent(false) |
705 |
- { |
706 |
- init(); |
707 |
-@@ -155,16 +153,14 @@ public: |
708 |
- { |
709 |
- init(); |
710 |
- } |
711 |
-- ConfigItem(QListView *parent, ConfigItem *after, bool v) |
712 |
-+ ConfigItem(Q3ListView *parent, ConfigItem *after, bool v) |
713 |
- : Parent(parent, after), menu(0), visible(v), goParent(true) |
714 |
- { |
715 |
- init(); |
716 |
- } |
717 |
- ~ConfigItem(void); |
718 |
- void init(void); |
719 |
--#if QT_VERSION >= 300 |
720 |
- void okRename(int col); |
721 |
--#endif |
722 |
- void updateMenu(void); |
723 |
- void testUpdateMenu(bool v); |
724 |
- ConfigList* listView() const |
725 |
-@@ -219,9 +215,9 @@ public: |
726 |
- ConfigItem *item; |
727 |
- }; |
728 |
- |
729 |
--class ConfigView : public QVBox { |
730 |
-+class ConfigView : public Q3VBox { |
731 |
- Q_OBJECT |
732 |
-- typedef class QVBox Parent; |
733 |
-+ typedef class Q3VBox Parent; |
734 |
- public: |
735 |
- ConfigView(QWidget* parent, const char *name = 0); |
736 |
- ~ConfigView(void); |
737 |
-@@ -252,9 +248,9 @@ public: |
738 |
- static QAction *showPromptAction; |
739 |
- }; |
740 |
- |
741 |
--class ConfigInfoView : public QTextBrowser { |
742 |
-+class ConfigInfoView : public Q3TextBrowser { |
743 |
- Q_OBJECT |
744 |
-- typedef class QTextBrowser Parent; |
745 |
-+ typedef class Q3TextBrowser Parent; |
746 |
- public: |
747 |
- ConfigInfoView(QWidget* parent, const char *name = 0); |
748 |
- bool showDebug(void) const { return _showDebug; } |
749 |
-@@ -274,11 +270,11 @@ protected: |
750 |
- QString debug_info(struct symbol *sym); |
751 |
- static QString print_filter(const QString &str); |
752 |
- static void expr_print_help(void *data, struct symbol *sym, const char *str); |
753 |
-- QPopupMenu* createPopupMenu(const QPoint& pos); |
754 |
-+ Q3PopupMenu* createPopupMenu(const QPoint& pos); |
755 |
- void contentsContextMenuEvent(QContextMenuEvent *e); |
756 |
- |
757 |
- struct symbol *sym; |
758 |
-- struct menu *menu; |
759 |
-+ struct menu *_menu; |
760 |
- bool _showDebug; |
761 |
- }; |
762 |
- |
763 |
-@@ -302,10 +298,10 @@ protected: |
764 |
- struct symbol **result; |
765 |
- }; |
766 |
- |
767 |
--class ConfigMainWindow : public QMainWindow { |
768 |
-+class ConfigMainWindow : public Q3MainWindow { |
769 |
- Q_OBJECT |
770 |
- |
771 |
-- static QAction *saveAction; |
772 |
-+ static Q3Action *saveAction; |
773 |
- static void conf_changed(void); |
774 |
- public: |
775 |
- ConfigMainWindow(void); |
776 |
-@@ -334,8 +330,8 @@ protected: |
777 |
- ConfigView *configView; |
778 |
- ConfigList *configList; |
779 |
- ConfigInfoView *helpText; |
780 |
-- QToolBar *toolBar; |
781 |
-- QAction *backAction; |
782 |
-+ Q3ToolBar *toolBar; |
783 |
-+ Q3Action *backAction; |
784 |
- QSplitter* split1; |
785 |
- QSplitter* split2; |
786 |
- }; |
787 |
|
788 |
Deleted: genpatches-2.6/trunk/2.6.37/2905_proper-qt4-detection.patch |
789 |
=================================================================== |
790 |
--- genpatches-2.6/trunk/2.6.37/2905_proper-qt4-detection.patch 2010-12-28 21:10:55 UTC (rev 1856) |
791 |
+++ genpatches-2.6/trunk/2.6.37/2905_proper-qt4-detection.patch 2010-12-28 21:17:43 UTC (rev 1857) |
792 |
@@ -1,35 +0,0 @@ |
793 |
-On system with QT3 and QT4 qmake in PATH may be from QT3. So we use |
794 |
-pkg-config for proper QT4 detection. |
795 |
-By reqesting cflags and libs for either QtCore, QtGui and QtSupport include |
796 |
-dirs and libs get listed several times, but so we won't mis anything |
797 |
- |
798 |
-CC: Michal Marek <mmarek@××××.cz> |
799 |
-Signed-off-by: Alexander Stein <alexander.stein@××××××××××××××××××××××.de> |
800 |
---- |
801 |
- scripts/kconfig/Makefile | 10 ++++------ |
802 |
- 1 files changed, 4 insertions(+), 6 deletions(-) |
803 |
- |
804 |
-diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile |
805 |
-index cb02b1e..321aa67 100644 |
806 |
---- a/scripts/kconfig/Makefile |
807 |
-+++ b/scripts/kconfig/Makefile |
808 |
-@@ -274,12 +274,10 @@ $(obj)/.tmp_qtcheck: |
809 |
- moc="/usr/bin/moc"; \ |
810 |
- fi; \ |
811 |
- else \ |
812 |
-- headerpath="\$$(shell qmake -query QT_INSTALL_HEADERS)"; \ |
813 |
-- libpath="\$$(shell qmake -query QT_INSTALL_LIBS)"; \ |
814 |
-- binpath="\$$(shell qmake -query QT_INSTALL_BINS)"; \ |
815 |
-- cflags="-I$$headerpath -I$$headerpath/QtCore -I$$headerpath/QtGui -I$$headerpath/Qt3Support -DQT3_SUPPORT"; \ |
816 |
-- libs="-L$$libpath -Wl,-rpath,$$libpath -lQtCore -lQtGui -lQt3Support"; \ |
817 |
-- moc="$$binpath/moc"; \ |
818 |
-+ cflags="\$$(shell pkg-config QtCore --cflags) \$$(shell pkg-config QtGui --cflags) \$$(shell pkg-config Qt3Support --cflags)"; \ |
819 |
-+ libs="\$$(shell pkg-config QtCore --libs) \$$(shell pkg-config QtGui --libs) \$$(shell pkg-config Qt3Support --libs)"; \ |
820 |
-+ binpath="\$$(shell pkg-config QtCore --variable=prefix)"; \ |
821 |
-+ moc="$$binpath/bin/moc"; \ |
822 |
- fi; \ |
823 |
- echo "KC_QT_CFLAGS=$$cflags" > $@; \ |
824 |
- echo "KC_QT_LIBS=$$libs" >> $@; \ |
825 |
--- |
826 |
-1.7.3 |
827 |
- |
828 |
|
829 |
Deleted: genpatches-2.6/trunk/2.6.37/2910_support-for-bzip2-lzma-lzo-compression.patch |
830 |
=================================================================== |
831 |
--- genpatches-2.6/trunk/2.6.37/2910_support-for-bzip2-lzma-lzo-compression.patch 2010-12-28 21:10:55 UTC (rev 1856) |
832 |
+++ genpatches-2.6/trunk/2.6.37/2910_support-for-bzip2-lzma-lzo-compression.patch 2010-12-28 21:17:43 UTC (rev 1857) |
833 |
@@ -1,73 +0,0 @@ |
834 |
---- a/scripts/extract-ikconfig 2010-11-11 14:07:15.000000000 -0500 |
835 |
-+++ b/scripts/extract-ikconfig 2010-11-11 14:11:40.000000000 -0500 |
836 |
-@@ -7,12 +7,10 @@ |
837 |
- # The obscure use of the "tr" filter is to work around older versions of |
838 |
- # "grep" that report the byte offset of the line instead of the pattern. |
839 |
- # |
840 |
--# (c) 2009, Dick Streefland <dick@××××××××××.net> |
841 |
-+# (c) 2009,2010 Dick Streefland <dick@××××××××××.net> |
842 |
- # Licensed under the terms of the GNU General Public License. |
843 |
- # ---------------------------------------------------------------------- |
844 |
- |
845 |
--gz1='\037\213\010' |
846 |
--gz2='01' |
847 |
- cf1='IKCFG_ST\037\213\010' |
848 |
- cf2='0123456789' |
849 |
- |
850 |
-@@ -21,11 +19,25 @@ dump_config() |
851 |
- if pos=`tr "$cf1\n$cf2" "\n$cf2=" < "$1" | grep -abo "^$cf2"` |
852 |
- then |
853 |
- pos=${pos%%:*} |
854 |
-- tail -c+$(($pos+8)) "$1" | zcat -q |
855 |
-- exit 0 |
856 |
-+ tail -c+$(($pos+8)) "$1" | zcat > $tmp1 2> /dev/null |
857 |
-+ if [ $? != 1 ] |
858 |
-+ then # exit status must be 0 or 2 (trailing garbage warning) |
859 |
-+ cat $tmp1 |
860 |
-+ exit 0 |
861 |
-+ fi |
862 |
- fi |
863 |
- } |
864 |
- |
865 |
-+try_decompress() |
866 |
-+{ |
867 |
-+ for pos in `tr "$1\n$2" "\n$2=" < "$img" | grep -abo "^$2"` |
868 |
-+ do |
869 |
-+ pos=${pos%%:*} |
870 |
-+ tail -c+$pos "$img" | $3 > $tmp2 2> /dev/null |
871 |
-+ dump_config $tmp2 |
872 |
-+ done |
873 |
-+} |
874 |
-+ |
875 |
- # Check invocation: |
876 |
- me=${0##*/} |
877 |
- img=$1 |
878 |
-@@ -35,18 +47,19 @@ then |
879 |
- exit 2 |
880 |
- fi |
881 |
- |
882 |
-+# Prepare temp files: |
883 |
-+tmp1=/tmp/ikconfig$$.1 |
884 |
-+tmp2=/tmp/ikconfig$$.2 |
885 |
-+trap "rm -f $tmp1 $tmp2" 0 |
886 |
-+ |
887 |
- # Initial attempt for uncompressed images or objects: |
888 |
- dump_config "$img" |
889 |
- |
890 |
--# That didn't work, so decompress and try again: |
891 |
--tmp=/tmp/ikconfig$$ |
892 |
--trap "rm -f $tmp" 0 |
893 |
--for pos in `tr "$gz1\n$gz2" "\n$gz2=" < "$img" | grep -abo "^$gz2"` |
894 |
--do |
895 |
-- pos=${pos%%:*} |
896 |
-- tail -c+$pos "$img" | zcat 2> /dev/null > $tmp |
897 |
-- dump_config $tmp |
898 |
--done |
899 |
-+# That didn't work, so retry after decompression. |
900 |
-+try_decompress '\037\213\010' xy gunzip |
901 |
-+try_decompress 'BZh' xy bunzip2 |
902 |
-+try_decompress '\135\0\0\0' xxx unlzma |
903 |
-+try_decompress '\211\114\132' xy 'lzop -d' |
904 |
- |
905 |
- # Bail out: |
906 |
- echo "$me: Cannot find kernel config." >&2 |