Gentoo Archives: gentoo-commits

From: Tomas Chvatal <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kdelibs/files/
Date: Sun, 01 May 2011 22:15:01
Message-Id: 91063b54346c6faa5cec58b36931960516936f6e.scarabeus@gentoo
1 commit: 91063b54346c6faa5cec58b36931960516936f6e
2 Author: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 1 22:14:02 2011 +0000
4 Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
5 CommitDate: Sun May 1 22:14:02 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=91063b54
7
8 [kde-base/kdelibs] drop two more patches
9
10 ---
11 .../kdelibs/files/kdelibs-4.4.3-mimetypes.patch | 58 ---------
12 .../files/kdelibs-4.4.66-macos-unbundle.patch | 129 --------------------
13 2 files changed, 0 insertions(+), 187 deletions(-)
14
15 diff --git a/kde-base/kdelibs/files/kdelibs-4.4.3-mimetypes.patch b/kde-base/kdelibs/files/kdelibs-4.4.3-mimetypes.patch
16 deleted file mode 100644
17 index 687f240..0000000
18 --- a/kde-base/kdelibs/files/kdelibs-4.4.3-mimetypes.patch
19 +++ /dev/null
20 @@ -1,58 +0,0 @@
21 -diff -r -u kdelibs-4.4.3.orig/mimetypes/kde.xml kdelibs-4.4.3/mimetypes/kde.xml
22 ---- kdelibs-4.4.3.orig/mimetypes/kde.xml 2009-10-06 23:37:48.000000000 +0200
23 -+++ kdelibs-4.4.3/mimetypes/kde.xml 2010-05-28 22:48:51.000000000 +0200
24 -@@ -180,41 +180,6 @@
25 - <root-XML namespaceURI="http://www.gribuser.ru/xml/fictionbook/2.0" localName="FictionBook"/>
26 - </mime-type>
27 -
28 -- <!-- all/ fake mime types -->
29 -- <mime-type type="all/all">
30 -- <comment>all files and folders</comment>
31 -- </mime-type>
32 -- <mime-type type="all/allfiles">
33 -- <comment>all files</comment>
34 -- </mime-type>
35 --
36 -- <!-- uri/ fake mime types -->
37 -- <mime-type type="uri/mms">
38 -- <comment>mms: URIs</comment>
39 -- </mime-type>
40 -- <mime-type type="uri/mmst">
41 -- <comment>mmst: URIs</comment>
42 -- </mime-type>
43 -- <mime-type type="uri/mmsu">
44 -- <comment>mmsu: URIs</comment>
45 -- </mime-type>
46 -- <mime-type type="uri/pnm">
47 -- <comment>pnm: URIs</comment>
48 -- </mime-type>
49 -- <mime-type type="uri/rtspt">
50 -- <comment>rtspt: URIs</comment>
51 -- </mime-type>
52 -- <mime-type type="uri/rtspu">
53 -- <comment>rtspu: URIs</comment>
54 -- </mime-type>
55 --
56 -- <!-- fonts/ fake mime types -->
57 -- <mime-type type="fonts/package">
58 -- <sub-class-of type="application/zip"/>
59 -- <comment>fonts package</comment>
60 -- <glob pattern="*.fonts.zip"/>
61 -- </mime-type>
62 --
63 - <mime-type type="application/x-konsole">
64 - <comment>file to open a shell</comment>
65 - <glob pattern="*.shell"/>
66 -@@ -349,12 +314,6 @@
67 - <glob pattern="*.icq"/>
68 - </mime-type>
69 -
70 -- <mime-type type="interface/x-winamp-skin">
71 -- <sub-class-of type="application/zip"/>
72 -- <comment>compressed Winamp skin</comment>
73 -- <glob pattern="*.wsz"/>
74 -- </mime-type>
75 --
76 - <mime-type type="video/x-ms-wmp"> <!-- fdo #19671, rejected because "not a file type, only a plugin type" -->
77 - <comment>Microsoft Media Format</comment>
78 - <sub-class-of type="video/x-ms-wmv"/>
79
80 diff --git a/kde-base/kdelibs/files/kdelibs-4.4.66-macos-unbundle.patch b/kde-base/kdelibs/files/kdelibs-4.4.66-macos-unbundle.patch
81 deleted file mode 100644
82 index 614ee87..0000000
83 --- a/kde-base/kdelibs/files/kdelibs-4.4.66-macos-unbundle.patch
84 +++ /dev/null
85 @@ -1,129 +0,0 @@
86 -KDE is smart, too smart. We don't want application bundles. And since our Qt is
87 -configured to not build application bundles, since wouldn't even work. So this
88 -patch disables KDE's smartness regarding application bundles.
89 -
90 -Author: Heiko Przybyl <zuxez@××××××××××××.de>
91 -
92 ---- kdelibs-4.3.1/kdecore/kernel/kstandarddirs.cpp.orig 2009-09-28 02:05:37 +0200
93 -+++ kdelibs-4.3.1/kdecore/kernel/kstandarddirs.cpp 2009-09-28 02:22:20 +0200
94 -@@ -1327,14 +1303,6 @@ int KStandardDirs::findAllExe( QStringLi
95 - p = (*it) + '/';
96 - p += real_appname;
97 -
98 --#ifdef Q_WS_MAC
99 -- QString bundle = getBundle( p, (options & IgnoreExecBit) );
100 -- if ( !bundle.isEmpty() ) {
101 -- //kDebug(180) << "findExe(): returning " << bundle;
102 -- list.append( bundle );
103 -- }
104 --#endif
105 --
106 - info.setFile( p );
107 -
108 - if( info.exists() && ( ( options & IgnoreExecBit ) || info.isExecutable())
109 -@@ -1636,18 +1604,6 @@ void KStandardDirs::addKDEDefaults()
110 - addPrefix(localKdeDir);
111 - }
112 -
113 --#ifdef Q_WS_MACX
114 -- // Adds the "Contents" directory of the current application bundle to
115 -- // the search path. This way bundled resources can be found.
116 -- QDir bundleDir(mac_app_filename());
117 -- if (bundleDir.dirName() == "MacOS") { // just to be sure we're in a bundle
118 -- bundleDir.cdUp();
119 -- // now dirName should be "Contents". In there we can find our normal
120 -- // dir-structure, beginning with "share"
121 -- addPrefix(bundleDir.absolutePath());
122 -- }
123 --#endif
124 --
125 - QStringList::ConstIterator end(kdedirList.end());
126 - for (QStringList::ConstIterator it = kdedirList.constBegin();
127 - it != kdedirList.constEnd(); ++it)
128 -@@ -1680,11 +1636,7 @@ void KStandardDirs::addKDEDefaults()
129 - }
130 - else
131 - {
132 --#ifdef Q_WS_MACX
133 -- localXdgDir = QDir::homePath() + "/Library/Preferences/XDG/";
134 --#else
135 - localXdgDir = QDir::homePath() + "/.config/";
136 --#endif
137 - }
138 -
139 - localXdgDir = KShell::tildeExpand(localXdgDir);
140 ---- ./kinit/kinit.cpp.orig 2009-09-28 12:38:02 +0200
141 -+++ ./kinit/kinit.cpp 2009-09-28 12:40:02 +0200
142 -@@ -551,14 +551,7 @@ static pid_t launch(int argc, const char
143 - QByteArray procTitle;
144 - d.argv = (char **) malloc(sizeof(char *) * (argc+1));
145 - d.argv[0] = (char *) _name;
146 --#ifdef Q_WS_MAC
147 -- QString argvexe = s_instance->dirs()->findExe(QString::fromLatin1(d.argv[0]));
148 -- if (!argvexe.isEmpty()) {
149 -- QByteArray cstr = argvexe.toLocal8Bit();
150 -- kDebug(7016) << "kdeinit4: launch() setting argv: " << cstr.data();
151 -- d.argv[0] = strdup(cstr.data());
152 -- }
153 --#endif
154 -+
155 - for (int i = 1; i < argc; i++)
156 - {
157 - d.argv[i] = (char *) args;
158 -@@ -627,12 +620,6 @@ static pid_t launch(int argc, const char
159 - setup_tty( tty );
160 -
161 - QByteArray executable = execpath;
162 --#ifdef Q_WS_MAC
163 -- QString bundlepath = s_instance->dirs()->findExe(QFile::decodeName(executable));
164 -- if (!bundlepath.isEmpty())
165 -- executable = QFile::encodeName(bundlepath);
166 --#endif
167 --
168 - if (!executable.isEmpty())
169 - execvp(executable, d.argv);
170 -
171 ---- kdelibs-9999/kdecore/kernel/kstandarddirs.cpp.orig 2010-03-06 15:47:40.108111613 +0100
172 -+++ kdelibs-9999/kdecore/kernel/kstandarddirs.cpp 2010-03-06 23:17:01.853905357 +0100
173 -@@ -1207,41 +1207,8 @@
174 - return exePaths;
175 - }
176 -
177 --#ifdef Q_WS_MAC
178 --static QString getBundle( const QString& path, bool ignore )
179 --{
180 -- kDebug(180) << "getBundle(" << path << ", " << ignore << ") called";
181 -- QFileInfo info;
182 -- QString bundle = path;
183 -- bundle += ".app/Contents/MacOS/" + bundle.section('/', -1);
184 -- info.setFile( bundle );
185 -- FILE *file;
186 -- if (file = fopen(info.absoluteFilePath().toUtf8().constData(), "r")) {
187 -- fclose(file);
188 -- struct stat _stat;
189 -- if ((stat(info.absoluteFilePath().toUtf8().constData(), &_stat)) < 0) {
190 -- return QString();
191 -- }
192 -- if ( ignore || (_stat.st_mode & S_IXUSR) ) {
193 -- if ( ((_stat.st_mode & S_IFMT) == S_IFREG) || ((_stat.st_mode & S_IFMT) == S_IFLNK) ) {
194 -- kDebug(180) << "getBundle(): returning " << bundle;
195 -- return bundle;
196 -- }
197 -- }
198 -- }
199 -- return QString();
200 --}
201 --#endif
202 --
203 - static QString checkExecutable( const QString& path, bool ignoreExecBit )
204 - {
205 --#ifdef Q_WS_MAC
206 -- QString bundle = getBundle( path, ignoreExecBit );
207 -- if ( !bundle.isEmpty() ) {
208 -- //kDebug(180) << "findExe(): returning " << bundle;
209 -- return bundle;
210 -- }
211 --#endif
212 - QFileInfo info( path );
213 - QFileInfo orig = info;
214 - #if defined(Q_OS_DARWIN) || defined(Q_OS_MAC)