This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Patch errors with emerge

Tags: None
(comma "," separated)
avidscavenger
Registered Member
Posts
3
Karma
0

Patch errors with emerge

Wed Feb 10, 2016 2:41 am
Hello all,

Trying to build qt using 'emerge -v -v -v', I receive the following errors:

C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qtbase-20130714.patch:6: trailing whitespace.
QMAKE_CFLAGS_WARN_ON = -Wall -Wextra
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qtbase-20130714.patch:7: trailing whitespace.
QMAKE_CFLAGS_WARN_OFF = -w
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qtbase-20130714.patch:8: trailing whitespace.
QMAKE_CFLAGS_RELEASE = -O2
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qtbase-20130714.patch:9: trailing whitespace.
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO = -O2 -g
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qtbase-20130714.patch:10: trailing whitespace.
QMAKE_CFLAGS_DEBUG = -g
error: patch failed: mkspecs/win32-g++/qmake.conf:30
error: mkspecs/win32-g++/qmake.conf: patch does not apply
error: patch failed: src/corelib/io/qstandardpaths_win.cpp:214
error: src/corelib/io/qstandardpaths_win.cpp: patch does not apply
error: patch failed: src/gui/image/qiconloader.cpp:157
error: src/gui/image/qiconloader.cpp: patch does not apply
error: patch failed: src/plugins/platforms/windows/qwindowstheme.cpp:321
error: src/plugins/platforms/windows/qwindowstheme.cpp: patch does not apply
error: patch failed: tools/configure/configureapp.cpp:2942
error: tools/configure/configureapp.cpp: patch does not apply
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qmake-5.5.patch:6: trailing whitespace.
{
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qmake-5.5.patch:7: trailing whitespace.
QString ret(path);
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qmake-5.5.patch:8: trailing whitespace.
if(path.length() > 2 && path[1] == ':') //c:\foo
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qmake-5.5.patch:10: trailing whitespace.
ret.replace(0, 2, root);
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\qmake-5.5.patch:11: trailing whitespace.
else
error: patch failed: qmake/generators/makefile.cpp:1172
error: qmake/generators/makefile.cpp: patch does not apply
C:\Users\Jonathan\KDEROOT\emerge\portage\libs\qt5\qtbase\0001-Fix-toDisplayString-QUrl-PreferLocalFile-on-Win.patch:33: trailing whitespace.
inline bool hasFragment() const { return sectionIsPresent & Fragment; }
fatal: corrupt patch at line 34


followed by thousands of lines of healthy looking build logs, and finally

*** Handling package: qtbase, action: all ***
*** Emerge all failed: all of libs/qtbase failed after 0:06:01 ***


I take it the trailing whitespace messages are just warnings, and the 'patch does not apply' messages are because of repeated applying the same patch, but the 'corrupt patch' looks like a problem, and the only cause I can see for emerge to finally fail. The strange thing is that when I attempt manually to apply these patches, they seem to work correctly - no complaints about trailing whitespace (I don't see any trailing whitespace when I examine the patch file myself) and no corrupt patch errors.

Can anyone offer any suggestions for sorting this, or further investigation?

Thanks!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]