diff options
author | markus <markus@FreeBSD.org> | 2005-04-15 08:00:52 +0800 |
---|---|---|
committer | markus <markus@FreeBSD.org> | 2005-04-15 08:00:52 +0800 |
commit | e86ad01bdb9cd37dab21fa350084a92746e2a43f (patch) | |
tree | 1cb2815116898e02c734a7dacf97ffb69b3c0ef1 /x11 | |
parent | 37d386761d8a596fa52fcf3dae57a72c34f949d9 (diff) | |
download | freebsd-ports-gnome-e86ad01bdb9cd37dab21fa350084a92746e2a43f.tar.gz freebsd-ports-gnome-e86ad01bdb9cd37dab21fa350084a92746e2a43f.tar.zst freebsd-ports-gnome-e86ad01bdb9cd37dab21fa350084a92746e2a43f.zip |
Add patch to fix the kinfocenter PCI module (KDE Bug 101686)
Reported by: Steven Earl Smith
Diffstat (limited to 'x11')
7 files changed, 420 insertions, 0 deletions
diff --git a/x11/kde4-baseapps/files/patch-kcontrol-info-info_fbsd.cpp b/x11/kde4-baseapps/files/patch-kcontrol-info-info_fbsd.cpp new file mode 100644 index 000000000000..6a166e336e35 --- /dev/null +++ b/x11/kde4-baseapps/files/patch-kcontrol-info-info_fbsd.cpp @@ -0,0 +1,60 @@ +--- kcontrol/info/info_fbsd.cpp.orig Tue Feb 24 12:30:07 2004 ++++ kcontrol/info/info_fbsd.cpp Thu Apr 14 22:37:54 2005 +@@ -226,18 +226,17 @@ + { + FILE *pipe; + QFile *pcicontrol; +- QTextStream *t; + QString s, cmd; + QListViewItem *olditem = 0; + +- pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); ++ pcicontrol = new QFile("/usr/sbin/pciconf"); + + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); ++ pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/sbin/pciconf"); ++ pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); + if (!pcicontrol->exists()) { + QString s; + s = i18n("Could not find any programs with which to query your system's PCI information"); +@@ -245,13 +244,13 @@ + delete pcicontrol; + return true; + } else { +- cmd = "/usr/sbin/pciconf -l"; ++ cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; + } + } else { +- cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; ++ cmd = "/usr/X11R6/bin/scanpci"; + } + } else { +- cmd = "/usr/X11R6/bin/scanpci"; ++ cmd = "/usr/sbin/pciconf -l -v 2>&1"; + } + delete pcicontrol; + +@@ -263,17 +262,8 @@ + /* This prints out a list of all the pci devies, perhaps eventually we could + parse it as opposed to schlepping it into a listbox */ + +- t = new QTextStream(pipe, IO_ReadOnly); +- +- while (true) { +- s = t->readLine(); +- if ( s.isEmpty() ) +- break; +- olditem = new QListViewItem(lbox, olditem, s); +- } +- +- delete t; + pclose(pipe); ++ GetInfo_ReadfromPipe(lbox, cmd.latin1(), true); + } + + if (!lbox->childCount()) { diff --git a/x11/kde4-runtime/files/patch-kcontrol-info-info_fbsd.cpp b/x11/kde4-runtime/files/patch-kcontrol-info-info_fbsd.cpp new file mode 100644 index 000000000000..6a166e336e35 --- /dev/null +++ b/x11/kde4-runtime/files/patch-kcontrol-info-info_fbsd.cpp @@ -0,0 +1,60 @@ +--- kcontrol/info/info_fbsd.cpp.orig Tue Feb 24 12:30:07 2004 ++++ kcontrol/info/info_fbsd.cpp Thu Apr 14 22:37:54 2005 +@@ -226,18 +226,17 @@ + { + FILE *pipe; + QFile *pcicontrol; +- QTextStream *t; + QString s, cmd; + QListViewItem *olditem = 0; + +- pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); ++ pcicontrol = new QFile("/usr/sbin/pciconf"); + + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); ++ pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/sbin/pciconf"); ++ pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); + if (!pcicontrol->exists()) { + QString s; + s = i18n("Could not find any programs with which to query your system's PCI information"); +@@ -245,13 +244,13 @@ + delete pcicontrol; + return true; + } else { +- cmd = "/usr/sbin/pciconf -l"; ++ cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; + } + } else { +- cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; ++ cmd = "/usr/X11R6/bin/scanpci"; + } + } else { +- cmd = "/usr/X11R6/bin/scanpci"; ++ cmd = "/usr/sbin/pciconf -l -v 2>&1"; + } + delete pcicontrol; + +@@ -263,17 +262,8 @@ + /* This prints out a list of all the pci devies, perhaps eventually we could + parse it as opposed to schlepping it into a listbox */ + +- t = new QTextStream(pipe, IO_ReadOnly); +- +- while (true) { +- s = t->readLine(); +- if ( s.isEmpty() ) +- break; +- olditem = new QListViewItem(lbox, olditem, s); +- } +- +- delete t; + pclose(pipe); ++ GetInfo_ReadfromPipe(lbox, cmd.latin1(), true); + } + + if (!lbox->childCount()) { diff --git a/x11/kde4-workspace/files/patch-kcontrol-info-info_fbsd.cpp b/x11/kde4-workspace/files/patch-kcontrol-info-info_fbsd.cpp new file mode 100644 index 000000000000..6a166e336e35 --- /dev/null +++ b/x11/kde4-workspace/files/patch-kcontrol-info-info_fbsd.cpp @@ -0,0 +1,60 @@ +--- kcontrol/info/info_fbsd.cpp.orig Tue Feb 24 12:30:07 2004 ++++ kcontrol/info/info_fbsd.cpp Thu Apr 14 22:37:54 2005 +@@ -226,18 +226,17 @@ + { + FILE *pipe; + QFile *pcicontrol; +- QTextStream *t; + QString s, cmd; + QListViewItem *olditem = 0; + +- pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); ++ pcicontrol = new QFile("/usr/sbin/pciconf"); + + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); ++ pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/sbin/pciconf"); ++ pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); + if (!pcicontrol->exists()) { + QString s; + s = i18n("Could not find any programs with which to query your system's PCI information"); +@@ -245,13 +244,13 @@ + delete pcicontrol; + return true; + } else { +- cmd = "/usr/sbin/pciconf -l"; ++ cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; + } + } else { +- cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; ++ cmd = "/usr/X11R6/bin/scanpci"; + } + } else { +- cmd = "/usr/X11R6/bin/scanpci"; ++ cmd = "/usr/sbin/pciconf -l -v 2>&1"; + } + delete pcicontrol; + +@@ -263,17 +262,8 @@ + /* This prints out a list of all the pci devies, perhaps eventually we could + parse it as opposed to schlepping it into a listbox */ + +- t = new QTextStream(pipe, IO_ReadOnly); +- +- while (true) { +- s = t->readLine(); +- if ( s.isEmpty() ) +- break; +- olditem = new QListViewItem(lbox, olditem, s); +- } +- +- delete t; + pclose(pipe); ++ GetInfo_ReadfromPipe(lbox, cmd.latin1(), true); + } + + if (!lbox->childCount()) { diff --git a/x11/kdebase3/files/patch-kcontrol-info-info_fbsd.cpp b/x11/kdebase3/files/patch-kcontrol-info-info_fbsd.cpp new file mode 100644 index 000000000000..6a166e336e35 --- /dev/null +++ b/x11/kdebase3/files/patch-kcontrol-info-info_fbsd.cpp @@ -0,0 +1,60 @@ +--- kcontrol/info/info_fbsd.cpp.orig Tue Feb 24 12:30:07 2004 ++++ kcontrol/info/info_fbsd.cpp Thu Apr 14 22:37:54 2005 +@@ -226,18 +226,17 @@ + { + FILE *pipe; + QFile *pcicontrol; +- QTextStream *t; + QString s, cmd; + QListViewItem *olditem = 0; + +- pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); ++ pcicontrol = new QFile("/usr/sbin/pciconf"); + + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); ++ pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/sbin/pciconf"); ++ pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); + if (!pcicontrol->exists()) { + QString s; + s = i18n("Could not find any programs with which to query your system's PCI information"); +@@ -245,13 +244,13 @@ + delete pcicontrol; + return true; + } else { +- cmd = "/usr/sbin/pciconf -l"; ++ cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; + } + } else { +- cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; ++ cmd = "/usr/X11R6/bin/scanpci"; + } + } else { +- cmd = "/usr/X11R6/bin/scanpci"; ++ cmd = "/usr/sbin/pciconf -l -v 2>&1"; + } + delete pcicontrol; + +@@ -263,17 +262,8 @@ + /* This prints out a list of all the pci devies, perhaps eventually we could + parse it as opposed to schlepping it into a listbox */ + +- t = new QTextStream(pipe, IO_ReadOnly); +- +- while (true) { +- s = t->readLine(); +- if ( s.isEmpty() ) +- break; +- olditem = new QListViewItem(lbox, olditem, s); +- } +- +- delete t; + pclose(pipe); ++ GetInfo_ReadfromPipe(lbox, cmd.latin1(), true); + } + + if (!lbox->childCount()) { diff --git a/x11/kdebase4-runtime/files/patch-kcontrol-info-info_fbsd.cpp b/x11/kdebase4-runtime/files/patch-kcontrol-info-info_fbsd.cpp new file mode 100644 index 000000000000..6a166e336e35 --- /dev/null +++ b/x11/kdebase4-runtime/files/patch-kcontrol-info-info_fbsd.cpp @@ -0,0 +1,60 @@ +--- kcontrol/info/info_fbsd.cpp.orig Tue Feb 24 12:30:07 2004 ++++ kcontrol/info/info_fbsd.cpp Thu Apr 14 22:37:54 2005 +@@ -226,18 +226,17 @@ + { + FILE *pipe; + QFile *pcicontrol; +- QTextStream *t; + QString s, cmd; + QListViewItem *olditem = 0; + +- pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); ++ pcicontrol = new QFile("/usr/sbin/pciconf"); + + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); ++ pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/sbin/pciconf"); ++ pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); + if (!pcicontrol->exists()) { + QString s; + s = i18n("Could not find any programs with which to query your system's PCI information"); +@@ -245,13 +244,13 @@ + delete pcicontrol; + return true; + } else { +- cmd = "/usr/sbin/pciconf -l"; ++ cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; + } + } else { +- cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; ++ cmd = "/usr/X11R6/bin/scanpci"; + } + } else { +- cmd = "/usr/X11R6/bin/scanpci"; ++ cmd = "/usr/sbin/pciconf -l -v 2>&1"; + } + delete pcicontrol; + +@@ -263,17 +262,8 @@ + /* This prints out a list of all the pci devies, perhaps eventually we could + parse it as opposed to schlepping it into a listbox */ + +- t = new QTextStream(pipe, IO_ReadOnly); +- +- while (true) { +- s = t->readLine(); +- if ( s.isEmpty() ) +- break; +- olditem = new QListViewItem(lbox, olditem, s); +- } +- +- delete t; + pclose(pipe); ++ GetInfo_ReadfromPipe(lbox, cmd.latin1(), true); + } + + if (!lbox->childCount()) { diff --git a/x11/kdebase4-workspace/files/patch-kcontrol-info-info_fbsd.cpp b/x11/kdebase4-workspace/files/patch-kcontrol-info-info_fbsd.cpp new file mode 100644 index 000000000000..6a166e336e35 --- /dev/null +++ b/x11/kdebase4-workspace/files/patch-kcontrol-info-info_fbsd.cpp @@ -0,0 +1,60 @@ +--- kcontrol/info/info_fbsd.cpp.orig Tue Feb 24 12:30:07 2004 ++++ kcontrol/info/info_fbsd.cpp Thu Apr 14 22:37:54 2005 +@@ -226,18 +226,17 @@ + { + FILE *pipe; + QFile *pcicontrol; +- QTextStream *t; + QString s, cmd; + QListViewItem *olditem = 0; + +- pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); ++ pcicontrol = new QFile("/usr/sbin/pciconf"); + + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); ++ pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/sbin/pciconf"); ++ pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); + if (!pcicontrol->exists()) { + QString s; + s = i18n("Could not find any programs with which to query your system's PCI information"); +@@ -245,13 +244,13 @@ + delete pcicontrol; + return true; + } else { +- cmd = "/usr/sbin/pciconf -l"; ++ cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; + } + } else { +- cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; ++ cmd = "/usr/X11R6/bin/scanpci"; + } + } else { +- cmd = "/usr/X11R6/bin/scanpci"; ++ cmd = "/usr/sbin/pciconf -l -v 2>&1"; + } + delete pcicontrol; + +@@ -263,17 +262,8 @@ + /* This prints out a list of all the pci devies, perhaps eventually we could + parse it as opposed to schlepping it into a listbox */ + +- t = new QTextStream(pipe, IO_ReadOnly); +- +- while (true) { +- s = t->readLine(); +- if ( s.isEmpty() ) +- break; +- olditem = new QListViewItem(lbox, olditem, s); +- } +- +- delete t; + pclose(pipe); ++ GetInfo_ReadfromPipe(lbox, cmd.latin1(), true); + } + + if (!lbox->childCount()) { diff --git a/x11/kdebase4/files/patch-kcontrol-info-info_fbsd.cpp b/x11/kdebase4/files/patch-kcontrol-info-info_fbsd.cpp new file mode 100644 index 000000000000..6a166e336e35 --- /dev/null +++ b/x11/kdebase4/files/patch-kcontrol-info-info_fbsd.cpp @@ -0,0 +1,60 @@ +--- kcontrol/info/info_fbsd.cpp.orig Tue Feb 24 12:30:07 2004 ++++ kcontrol/info/info_fbsd.cpp Thu Apr 14 22:37:54 2005 +@@ -226,18 +226,17 @@ + { + FILE *pipe; + QFile *pcicontrol; +- QTextStream *t; + QString s, cmd; + QListViewItem *olditem = 0; + +- pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); ++ pcicontrol = new QFile("/usr/sbin/pciconf"); + + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); ++ pcicontrol = new QFile("/usr/X11R6/bin/scanpci"); + if (!pcicontrol->exists()) { + delete pcicontrol; +- pcicontrol = new QFile("/usr/sbin/pciconf"); ++ pcicontrol = new QFile("/usr/X11R6/bin/pcitweak"); + if (!pcicontrol->exists()) { + QString s; + s = i18n("Could not find any programs with which to query your system's PCI information"); +@@ -245,13 +244,13 @@ + delete pcicontrol; + return true; + } else { +- cmd = "/usr/sbin/pciconf -l"; ++ cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; + } + } else { +- cmd = "/usr/X11R6/bin/pcitweak -l 2>&1"; ++ cmd = "/usr/X11R6/bin/scanpci"; + } + } else { +- cmd = "/usr/X11R6/bin/scanpci"; ++ cmd = "/usr/sbin/pciconf -l -v 2>&1"; + } + delete pcicontrol; + +@@ -263,17 +262,8 @@ + /* This prints out a list of all the pci devies, perhaps eventually we could + parse it as opposed to schlepping it into a listbox */ + +- t = new QTextStream(pipe, IO_ReadOnly); +- +- while (true) { +- s = t->readLine(); +- if ( s.isEmpty() ) +- break; +- olditem = new QListViewItem(lbox, olditem, s); +- } +- +- delete t; + pclose(pipe); ++ GetInfo_ReadfromPipe(lbox, cmd.latin1(), true); + } + + if (!lbox->childCount()) { |