LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-20-2012, 06:55 PM   #1
dsplayer14
Member
 
Registered: Nov 2011
Distribution: Arch Linux and Slackware 13.37
Posts: 127

Rep: Reputation: 1
Error when compiling gtk-qt-engine


Finally got around to installing Slackware on my desktop. Gone well so far, but I ran into my first problem! I'm not a big fan of the GTK2 look on all my applications, so I am trying to install gtk-qt-engine using sbopkg. Well, I get this error:
Code:
Ignoring potentially dangerous file name /tmp/SBo/gtk-qt-engine/src/qt_theme_draw.c
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur /tmp/SBo/gtk-qt-engine.orig/src/qt_theme_draw.c /tmp/SBo/gtk-qt-engine/src/qt_theme_draw.c
|--- /tmp/SBo/gtk-qt-engine.orig/src/qt_theme_draw.c    2008-03-11 01:30:19.000000000 +0000
|+++ /tmp/SBo/gtk-qt-engine/src/qt_theme_draw.c 2009-07-11 14:33:46.000000000 +0000
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored

gtk-qt-engine:
Would you like to continue processing the rest of the
build queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.
Beats me.
 
Old 09-20-2012, 07:36 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Notice this line in the build script:

# Patch the source so it won't break while building
patch -p0 < $CWD/include.patch

Return to the slackbuilds,org web site and download the patch.

http://slackbuilds.org/repository/13...gtk-qt-engine/

Patch:

http://slackbuilds.org/slackbuilds/1.../include.patch
 
Old 09-20-2012, 07:40 PM   #3
dsplayer14
Member
 
Registered: Nov 2011
Distribution: Arch Linux and Slackware 13.37
Posts: 127

Original Poster
Rep: Reputation: 1
Would have never guessed to look inside the actual script...
Well, where do I put this patch? In the directory where the slackbuild is?
 
Old 09-20-2012, 11:22 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Yes, download and store to the same directory as the build script and tarball sources.
 
Old 09-21-2012, 04:20 AM   #5
bormant
Member
 
Registered: Jan 2008
Posts: 100

Rep: Reputation: 47
Quote:
Ignoring potentially dangerous file name
Since patch-2.7 ignores full paths patch and SlackBuild needs some edit.
Before:
Code:
diff -Naur /tmp/SBo/gtk-qt-engine.orig/src/qt_theme_draw.c /tmp/SBo/gtk-qt-engine/src/qt_theme_draw.c
--- /tmp/SBo/gtk-qt-engine.orig/src/qt_theme_draw.c	2008-03-11 01:30:19.000000000 +0000
+++ /tmp/SBo/gtk-qt-engine/src/qt_theme_draw.c	2009-07-11 14:33:46.000000000 +0000
Code:
# Patch the source so it won't break while building
patch -p0 < $CWD/include.patch

After:
Code:
diff -Naur gtk-qt-engine.orig/src/qt_theme_draw.c gtk-qt-engine/src/qt_theme_draw.c
--- gtk-qt-engine.orig/src/qt_theme_draw.c	2008-03-11 01:30:19.000000000 +0000
+++ gtk-qt-engine/src/qt_theme_draw.c	2009-07-11 14:33:46.000000000 +0000
Code:
# Patch the source so it won't break while building
patch -p1 < $CWD/include.patch
 
Old 09-21-2012, 03:48 PM   #6
foobarz
Member
 
Registered: Aug 2010
Distribution: slackware64-current
Posts: 48

Rep: Reputation: 10
Maybe try this in the SlackBuild:
Code:
# Patch the source so it won't break while building
PATCHFILE=$CWD/include.patch
( cd /tmp/SBo/gtk-qt-engine/src && patch -p0 < $PATCHFILE )
Maybe try this include.patch replacement:
Code:
--- qt_theme_draw.c-orig	2012-09-19 22:28:33.713964000 +0700
+++ qt_theme_draw.c	2012-09-19 22:29:10.228508000 +0700
@@ -19,11 +19,12 @@
  ***************************************************************************/
 
 #include <math.h>
+#include <stdlib.h>
 #include <string.h>
 #include <gtk/gtkprogressbar.h>
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
-#include <glib/glist.h>
+#include <glib.h>
 
 #ifdef HAVE_BONOBO
 #include <libbonobo.h>

Last edited by foobarz; 09-21-2012 at 03:50 PM.
 
Old 09-21-2012, 03:55 PM   #7
foobarz
Member
 
Registered: Aug 2010
Distribution: slackware64-current
Posts: 48

Rep: Reputation: 10
The recent patch*.txz package no longer allows absolute file names of the file to patch, if i understand the changelog about it correctly. The other problem is the glist.h include is an error.
 
Old 09-22-2012, 07:37 AM   #8
dsplayer14
Member
 
Registered: Nov 2011
Distribution: Arch Linux and Slackware 13.37
Posts: 127

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by foobarz View Post
Maybe try this in the SlackBuild:
Code:
# Patch the source so it won't break while building
PATCHFILE=$CWD/include.patch
( cd /tmp/SBo/gtk-qt-engine/src && patch -p0 < $PATCHFILE )
Maybe try this include.patch replacement:
Code:
--- qt_theme_draw.c-orig	2012-09-19 22:28:33.713964000 +0700
+++ qt_theme_draw.c	2012-09-19 22:29:10.228508000 +0700
@@ -19,11 +19,12 @@
  ***************************************************************************/
 
 #include <math.h>
+#include <stdlib.h>
 #include <string.h>
 #include <gtk/gtkprogressbar.h>
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
-#include <glib/glist.h>
+#include <glib.h>
 
 #ifdef HAVE_BONOBO
 #include <libbonobo.h>
This solved my problem! Thank you very much foobarz!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GTK 3.4.4 compiling error sungchoiok Linux - Software 4 09-01-2012 09:24 PM
I got error while making gtk-qt-engine... QueenZ Linux - Newbie 5 02-18-2009 12:27 PM
gtk-qt-engine causes white border on gtk tray icons tdtooke Linux - Desktop 0 08-08-2008 12:25 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
help with error compiling gtk+-2.4.0 Metal Martian Linux - Newbie 3 05-11-2004 09:04 AM


All times are GMT -5. The time now is 04:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration