On 9 December 2007 01:09:22 Flocchini wrote:
> Ok, found your patch at
> http://www.mail-archive.com/[email protected]/msg00053.html
>
> but applying it with epatch command in kdesu ebuild results in errors
> (see log) http://nopaste.org/p/aXt8447Mz
>
> On Saturday 08 December 2007 15:49:33 Vasily Khoruzhick wrote:
> > I've already wrote patch for kdesu, you can search it in maillist
> > archives. _______________________________________________
> > fprint mailing list
> > [email protected]
> > http://lists.reactivated.net/mailman/listinfo/fprint
>
> _______________________________________________
> fprint mailing list
> [email protected]
> http://lists.reactivated.net/mailman/listinfo/fprint

Here's ebuild and patch. I don't know how you applied patch, but it works for 
me :)
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdesu/kdesu-3.5.8.ebuild,v 1.1 
2007/10/19 22:44:17 philantrop Exp $

KMNAME=kdebase
MAXKDEVER=$PV
KM_DEPRANGE="$PV $MAXKDEVER"
inherit kde-meta eutils flag-o-matic

SRC_URI="${SRC_URI}
        mirror://gentoo/kdebase-3.5-patchset-04.tar.bz2"

DESCRIPTION="KDE: gui for su(1)"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="kdehiddenvisibility"

PATCHES="${FILESDIR}/kdebase-kdesu-fprint.patch"

src_compile() {
        export BINDNOW_FLAGS="$(bindnow-flags)"

        kde-meta_src_compile
}
diff -Naur kdesu/kdesu/kdesu.cpp kdesu.new/kdesu/kdesu.cpp
--- kdesu/kdesu/kdesu.cpp	2006-05-22 21:13:07.000000000 +0300
+++ kdesu.new/kdesu/kdesu.cpp	2007-11-18 15:49:09.000000000 +0200
@@ -259,6 +259,7 @@
         kdWarning(1206) << "Daemon not safe (not sgid), not using it.\n";
         have_daemon = false;
     }
+    
     else if (client.ping() == -1)
     {
         if (client.startServer() == -1)
@@ -268,6 +269,7 @@
         }
         just_started = true;
     }
+    
 
     // Try to exec the command with kdesud.
     bool keep = !args->isSet("n") && have_daemon;
@@ -335,7 +337,7 @@
     // Check if we need a password
     SuProcess proc;
     proc.setUser(auth_user);
-    int needpw = proc.checkNeedPassword();
+    int needpw = 1;//proc.checkNeedPassword();
     if (needpw < 0)
     {
         QString err = i18n("Su returned with an error.\n");
diff -Naur kdesu/kdesu/sudlg.cpp kdesu.new/kdesu/sudlg.cpp
--- kdesu/kdesu/sudlg.cpp	2006-10-05 19:25:15.000000000 +0300
+++ kdesu.new/kdesu/sudlg.cpp	2007-11-18 15:43:30.000000000 +0200
@@ -57,7 +57,7 @@
 {
     SuProcess proc;
     proc.setUser(m_User);
-    int status = proc.checkInstall(password);
+    int status = 0; //proc.checkInstall(password);
     switch (status)
     {
     case -1:
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint

Reply via email to