Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] lightdm bug ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Aug 29, 2016 8:53 am    Post subject: [SOLVED] lightdm bug ? Reply with quote

Gentoo ~amd64 when trying to
Code:
emerge --ask x11-misc/lightdm


Code:
x11-misc/lightdm-gtk-greeter-2.0.1-r1
is being pulled in as dependency, but seems to fail:


(snapshot of emerge)

Code:
lightdm-gtk-greeter.c: In function 'start_authentication':
lightdm-gtk-greeter.c:1935:9: error: too few arguments to function 'lightdm_greeter_authenticate'
         lightdm_greeter_authenticate (greeter, NULL);
         ^
In file included from /usr/include/lightdm-gobject-1/lightdm.h:14:0,
                 from lightdm-gtk-greeter.c:48:
/usr/include/lightdm-gobject-1/lightdm/greeter.h:151:10: note: declared here
 gboolean lightdm_greeter_authenticate (LightDMGreeter *greeter, const gchar *username, GError **error);
          ^
lightdm-gtk-greeter.c:1939:9: error: too few arguments to function 'lightdm_greeter_authenticate_as_guest'
         lightdm_greeter_authenticate_as_guest (greeter);
         ^
In file included from /usr/include/lightdm-gobject-1/lightdm.h:14:0,
                 from lightdm-gtk-greeter.c:48:
/usr/include/lightdm-gobject-1/lightdm/greeter.h:153:10: note: declared here
 gboolean lightdm_greeter_authenticate_as_guest (LightDMGreeter *greeter, GError **error);
          ^
lightdm-gtk-greeter.c:1959:9: error: too few arguments to function 'lightdm_greeter_authenticate'
         lightdm_greeter_authenticate (greeter, username);
         ^
In file included from /usr/include/lightdm-gobject-1/lightdm.h:14:0,
                 from lightdm-gtk-greeter.c:48:
/usr/include/lightdm-gobject-1/lightdm/greeter.h:151:10: note: declared here
 gboolean lightdm_greeter_authenticate (LightDMGreeter *greeter, const gchar *username, GError **error);
          ^
lightdm-gtk-greeter.c: In function 'cancel_authentication':
lightdm-gtk-greeter.c:1981:9: error: too few arguments to function 'lightdm_greeter_cancel_authentication'
         lightdm_greeter_cancel_authentication (greeter);
         ^
In file included from /usr/include/lightdm-gobject-1/lightdm.h:14:0,
                 from lightdm-gtk-greeter.c:48:
/usr/include/lightdm-gobject-1/lightdm/greeter.h:161:10: note: declared here
 gboolean lightdm_greeter_cancel_authentication (LightDMGreeter *greeter, GError **error);
          ^
lightdm-gtk-greeter.c: In function 'start_session':
lightdm-gtk-greeter.c:2015:9: error: too few arguments to function 'lightdm_greeter_set_language'
         lightdm_greeter_set_language (greeter, language);
         ^
In file included from /usr/include/lightdm-gobject-1/lightdm.h:14:0,
                 from lightdm-gtk-greeter.c:48:
/usr/include/lightdm-gobject-1/lightdm/greeter.h:169:10: note: declared here
 gboolean lightdm_greeter_set_language (LightDMGreeter *greeter, const gchar *language, GError **error);
          ^
greeterbackground.c: In function 'monitor_set_background':
/usr/include/glib-2.0/glib/gmessages.h:401:6: warning: 'return' with a value, in function returning void
      return (val);   }G_STMT_END
      ^
greeterbackground.c:1256:13: note: in expansion of macro 'g_return_val_if_reached'
             g_return_val_if_reached(NULL);
             ^
lightdm-gtk-greeter.c: In function 'login_cb':
lightdm-gtk-greeter.c:2236:9: error: too few arguments to function 'lightdm_greeter_respond'
         lightdm_greeter_respond (greeter, gtk_entry_get_text (password_entry));
         ^
In file included from /usr/include/lightdm-gobject-1/lightdm.h:14:0,
                 from lightdm-gtk-greeter.c:48:
/usr/include/lightdm-gobject-1/lightdm/greeter.h:159:10: note: declared here
 gboolean lightdm_greeter_respond (LightDMGreeter *greeter, const gchar *response, GError **error);
          ^
lightdm-gtk-greeter.c: In function 'timed_autologin_cb':
lightdm-gtk-greeter.c:2329:13: error: too few arguments to function 'lightdm_greeter_authenticate_autologin'
             lightdm_greeter_authenticate_autologin (greeter);
             ^
In file included from /usr/include/lightdm-gobject-1/lightdm.h:14:0,
                 from lightdm-gtk-greeter.c:48:
/usr/include/lightdm-gobject-1/lightdm/greeter.h:155:10: note: declared here
 gboolean lightdm_greeter_authenticate_autologin (LightDMGreeter *greeter, GError **error);
          ^
lightdm-gtk-greeter.c: In function 'main':
lightdm-gtk-greeter.c:2683:5: warning: 'gdk_cursor_new' is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkcursor.h:228) [-Wdeprecated-declarations]
     gdk_window_set_cursor (gdk_get_default_root_window (), gdk_cursor_new (GDK_LEFT_PTR));
     ^
make[3]: *** [Makefile:522: lightdm_gtk_greeter-lightdm-gtk-greeter.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/work/lightdm-gtk-greeter-2.0.1/src'
make[2]: *** [Makefile:397: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/work/lightdm-gtk-greeter-2.0.1/src'
make[1]: *** [Makefile:438: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/work/lightdm-gtk-greeter-2.0.1'
make: *** [Makefile:369: all] Error 2
 * ERROR: x11-misc/lightdm-gtk-greeter-2.0.1-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-misc/lightdm-gtk-greeter-2.0.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/lightdm-gtk-greeter-2.0.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/work/lightdm-gtk-greeter-2.0.1'
 * S: '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/work/lightdm-gtk-greeter-2.0.1'

>>> Failed to emerge x11-misc/lightdm-gtk-greeter-2.0.1-r1, Log file:

>>>  '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/temp/build.log'

 * Messages for package x11-misc/lightdm-gtk-greeter-2.0.1-r1:

 * ERROR: x11-misc/lightdm-gtk-greeter-2.0.1-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-misc/lightdm-gtk-greeter-2.0.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/lightdm-gtk-greeter-2.0.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/work/lightdm-gtk-greeter-2.0.1'
 * S: '/var/tmp/portage/x11-misc/lightdm-gtk-greeter-2.0.1-r1/work/lightdm-gtk-greeter-2.0.1'

 * GNU info directory index is up-to-date.


Last edited by farmer.ro on Mon Aug 29, 2016 2:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Mon Aug 29, 2016 9:39 am    Post subject: Reply with quote

Bună ziua,

You hit https://bugs.gentoo.org/show_bug.cgi?id=588764
Either apply the patch or downgrade lightdm to 1.8.1 (e.g. put >x11-misc/lightdm-1.8.1 into package.mask - most likely the easiest fix).
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30908
Location: here

PostPosted: Mon Aug 29, 2016 9:50 am    Post subject: Reply with quote

franzf wrote:
Either apply the patch

Just for information here guide for apply user patch
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Aug 29, 2016 10:02 am    Post subject: Reply with quote

Question: where can i find the .patch
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Mon Aug 29, 2016 10:08 am    Post subject: Reply with quote

According to askubuntu it shoud work, at least with the kde frontend.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Mon Aug 29, 2016 10:10 am    Post subject: Reply with quote

farmer.ro wrote:
Question: where can i find the .patch

The patch was posted in the linked gentoo bug report: https://588764.bugs.gentoo.org/attachment.cgi?id=443146
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30908
Location: here

PostPosted: Mon Aug 29, 2016 10:11 am    Post subject: Reply with quote

farmer.ro wrote:
Question: where can i find the .patch

On attachements of bug (direct link)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Aug 29, 2016 10:36 am    Post subject: Reply with quote

the package i am trying to emerge is
Code:
x11-misc/lightdm-gtk-greeter-2.0.1-r1


the patch includes
Code:
lightdm-gtk-greeter-2.0.1


i made directory
Code:
/etc/portage/patches/x11-misc/lightdm-gtk-greeter-2.0.1

and placed the .patch in there, emerge still fails

then i made directory
Code:
/etc/portage/patches/x11-misc/lightdm-gtk-greeter-2.0.1-r1

and replaced the following lines in the .patch
Code:
lightdm-gtk-greeter-2.0.1.orig/src/lightdm-gtk-greeter.c

with
Code:
lightdm-gtk-greeter-2.0.1-r1.orig/src/lightdm-gtk-greeter.c

emerge still fails

i must be doing something wrong, i can not seem to emerge lightdm-gtk-greeter on ~amd64 gentoo
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Aug 29, 2016 11:39 am    Post subject: Reply with quote

i am sorry but i am a bit mad, kde is a real pain !

it seems that with gentoo openrc on kde5 plasma the recommended desktop manager seems to be sddm, but this does not offer any information on how to use google authenticator with sddm, i tried to make it work with the google_authenticator, but it did not succeed.

lightdm offers the option for google_authenticator, but seems to be a real pain to install on gentoo ~amd64 openrc
the google authenticator works, just not with sddm, so i can not login.

i love the eye candy on kde, but if i can not use google authenticator then there is no use for me to stay on KDE

guess i will be going back to my minimalistic xfce install, which "just works" with the google-authenticator.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30908
Location: here

PostPosted: Mon Aug 29, 2016 12:02 pm    Post subject: Reply with quote

farmer.ro wrote:
Code:
lightdm-gtk-greeter-2.0.1.orig/src/lightdm-gtk-greeter.c

with
Code:
lightdm-gtk-greeter-2.0.1-r1.orig/src/lightdm-gtk-greeter.c

This step is not needed.

farmer.ro wrote:
emerge still fails

Correct because lightdm ebuild use EAPI 4, and this version was not mandatory to call epatch_user.
To ensure that emerge apply the patch you need to create file /etc/portage/bashrc and add this code (according with guide)
Code:
pre_src_prepare() {
    [[ ${EAPI:-0} == [012345] ]] || return
    if ! type epatch_user > /dev/null 2>&1; then
        local names="EPATCH_USER_SOURCE epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop"
        source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/eutils.eclass)
    fi

    epatch_user

    for name in $names; do
        unset $name
    done
}

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
farmer.ro
Apprentice
Apprentice


Joined: 20 Aug 2016
Posts: 179

PostPosted: Mon Aug 29, 2016 2:38 pm    Post subject: Reply with quote

fedeliallalinea i have seen u here on the forum before, and i must say ... YOU ROCK ! THANKS !

just booted my box with a nice Gentoo lightdm greeter theme :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum