]> git.pld-linux.org Git - packages/gdm2.20.git/commitdiff
- separate -faces (provided also by gnome-control-center 3.x) auto/th/gdm2.20-2.20.11-11
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 23 Apr 2018 03:40:55 +0000 (05:40 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 23 Apr 2018 03:40:55 +0000 (05:40 +0200)
- added format patch (fixes build with -Werror=format-security)
- added includes patch (removes non-existing dir from -I options)
- allow build without zenity installed
- release 11

gdm-format.patch [new file with mode: 0644]
gdm-includes.patch [new file with mode: 0644]
gdm2.20.spec

diff --git a/gdm-format.patch b/gdm-format.patch
new file mode 100644 (file)
index 0000000..0a2b2e0
--- /dev/null
@@ -0,0 +1,69 @@
+--- gdm-2.20.11/daemon/gdm-daemon-config.c.orig        2010-06-03 03:06:25.000000000 +0200
++++ gdm-2.20.11/daemon/gdm-daemon-config.c     2018-04-22 21:53:51.242329643 +0200
+@@ -1935,7 +1935,7 @@
+       } else {
+               if (console_notify) {
+-                      gchar *s = g_strdup_printf (C_(N_("XDMCP is disabled and GDM "
++                      gchar *s = g_strdup (C_(N_("XDMCP is disabled and GDM "
+                                                         "cannot find any static server "
+                                                         "to start.  Aborting!  Please "
+                                                         "correct the configuration "
+@@ -1993,7 +1993,7 @@
+       if G_UNLIKELY (uid == 0) {
+               if (console_notify) {
+-                      gchar *s = g_strdup_printf (C_(N_("The GDM user is set to be root, but "
++                      gchar *s = g_strdup (C_(N_("The GDM user is set to be root, but "
+                                                         "this is not allowed since it can "
+                                                         "pose a security risk.  Please "
+                                                         "correct GDM configuration and "
+@@ -2025,7 +2025,7 @@
+       if G_UNLIKELY (gid == 0) {
+               if (console_notify) {
+-                      gchar *s = g_strdup_printf (C_(N_("The GDM group is set to be root, but "
++                      gchar *s = g_strdup (C_(N_("The GDM group is set to be root, but "
+                                                         "this is not allowed since it can "
+                                                         "pose a security risk. Please "
+                                                         "correct GDM configuration and "
+--- gdm-2.20.11/daemon/slave.c.orig    2010-06-03 03:06:25.000000000 +0200
++++ gdm-2.20.11/daemon/slave.c 2018-04-22 22:15:02.428981793 +0200
+@@ -265,7 +265,7 @@
+       } else {                                                                        \
+               /* evil! how this this happen */                                        \
+               if (slave_start_jmp_error_to_print != NULL)                             \
+-                      gdm_error (slave_start_jmp_error_to_print);                     \
++                      gdm_error ("%s", slave_start_jmp_error_to_print);               \
+               gdm_error ("Bad (very very VERY bad!) things happening in signal");     \
+               _exit (DISPLAY_REMANAGE);                                               \
+       }                                                                               \
+@@ -691,7 +691,7 @@
+       need_to_quit_after_session_stop = TRUE;
+       if (slave_start_jmp_error_to_print != NULL)
+-              gdm_error (slave_start_jmp_error_to_print);
++              gdm_error ("%s", slave_start_jmp_error_to_print);
+       slave_start_jmp_error_to_print = NULL;
+       /* only if we're not hanging in session stop and getting a
+@@ -720,7 +720,7 @@
+       need_to_quit_after_session_stop = TRUE;
+       if (slave_start_jmp_error_to_print != NULL)
+-              gdm_error (slave_start_jmp_error_to_print);
++              gdm_error ("%s", slave_start_jmp_error_to_print);
+       slave_start_jmp_error_to_print = NULL;
+       gdm_debug ("term_quit: Final cleanup");
+--- gdm-2.20.11/daemon/misc.c.orig     2010-06-03 03:06:25.000000000 +0200
++++ gdm-2.20.11/daemon/misc.c  2018-04-22 22:15:49.818981253 +0200
+@@ -2222,7 +2222,7 @@
+     va_end (args);
+     /* Log to both syslog and stderr */
+-    gdm_error (s);
++    gdm_error ("%s", s);
+     if (getpid () == gdm_main_pid) {
+           gdm_fdprintf (2, "%s\n", s);
+     }
diff --git a/gdm-includes.patch b/gdm-includes.patch
new file mode 100644 (file)
index 0000000..4591fa3
--- /dev/null
@@ -0,0 +1,10 @@
+--- gdm-2.20.11/utils/Makefile.am.orig 2010-06-03 03:06:25.000000000 +0200
++++ gdm-2.20.11/utils/Makefile.am      2018-04-22 22:21:59.682310362 +0200
+@@ -8,7 +8,6 @@
+       -I.                                             \
+       -I..                                            \
+       -I$(top_srcdir)/daemon                          \
+-      -I$(top_srcdir)/vicious-extensions              \
+       -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
+       $(UTILS_CFLAGS)
index 16d964c2465b37ec5f5ccd0da17b5bcad81aee4f..34c47d651cd6c8e18c6eeee5072a4ee18ba52a92 100644 (file)
@@ -15,7 +15,7 @@ Summary(ru.UTF-8):    Дисплейный менеджер GNOME
 Summary(uk.UTF-8):     Дисплейний менеджер GNOME
 Name:          gdm2.20
 Version:       2.20.11
-Release:       10
+Release:       11
 License:       GPL/LGPL
 Group:         X11/Applications
 Source0:       http://ftp.gnome.org/pub/GNOME/sources/gdm/2.20/gdm-%{version}.tar.bz2
@@ -34,6 +34,8 @@ Patch3:               gdm-desktop.patch
 Patch4:                gdm-defaults.patch
 Patch5:                xinit-sh.patch
 Patch6:                missing-prototypes.patch
+Patch7:                gdm-format.patch
+Patch8:                gdm-includes.patch
 URL:           http://www.gnome.org/projects/gdm/
 BuildRequires: ConsoleKit-devel
 BuildRequires: attr-devel
@@ -66,7 +68,6 @@ BuildRequires:        xorg-lib-libXdmcp-devel
 BuildRequires: xorg-lib-libXi-devel
 BuildRequires: xorg-lib-libXinerama-devel
 BuildRequires: xorg-lib-libdmx-devel
-BuildRequires: zenity
 Requires(post,postun): /usr/bin/scrollkeeper-update
 Requires(post,postun): gtk-update-icon-cache
 Requires(post,postun): hicolor-icon-theme
@@ -132,6 +133,18 @@ GDM (GNOME Display Manager) - це реімплементація xdm (X Display
 Manager). GDM дозволяє вам входити в систему, на якій запущено X
 Window та підтримує роботу кількох різних X сеансів одночасно.
 
+%package faces
+Summary:       Faces icons for GDM
+Summary(pl.UTF-8):     Ikony twarzy dla GDM
+Group:         X11/Applications
+Conflicts:     gnome-control-center >= 3
+
+%description faces
+Faces icons for GDM.
+
+%description faces -l pl.UTF-8
+Ikony twarzy dla GDM.
+
 %package Xnest
 Summary:       Xnest (ie embedded X) server for GDM
 Summary(pl.UTF-8):     Serwer Xnest dla GDM
@@ -171,9 +184,11 @@ Skrypt init dla GDM-a.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
-sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
-mv po/sr@{Latn,latin}.po
+%{__sed} -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
+%{__mv} po/sr@{Latn,latin}.po
 
 %build
 %{__libtoolize}
@@ -184,19 +199,20 @@ mv po/sr@{Latn,latin}.po
 %{__automake}
 %configure \
        LIBS="-lXau" \
+       ZENITY=/usr/bin/zenity \
        --disable-console-helper \
        --disable-scrollkeeper \
-       --with-console-kit=yes \
        --enable-authentication-scheme=pam \
        --enable-secureremote \
+       --with-console-kit \
        --with-pam-prefix=/etc \
-       --with-tcp-wrappers=yes \
-       --with%{!?with_selinux:out}-selinux \
-       --with-libaudit=yes \
-       --with-xdmcp=yes \
-       --with-xinerama=yes \
-       --with-dmx=yes \
-       --enable-ipv6=yes
+       --with-tcp-wrappers \
+       --with-selinux%{!?with_selinux:=no} \
+       --with-libaudit \
+       --with-xdmcp \
+       --with-xinerama \
+       --with-dmx \
+       --enable-ipv6
 
 %{__make}
 
@@ -211,18 +227,18 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security} \
        DESTDIR=$RPM_BUILD_ROOT \
        PAM_PREFIX=/etc
 
-mv $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/gdm/BuiltInSessions/default.desktop \
        $RPM_BUILD_ROOT%{_datadir}/xsessions
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
+cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/gdm
+cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/gdm-autologin
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/gdm
 
-install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
 
-ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
+ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
 
-install storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
+cp -p storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
 
 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
 
@@ -291,7 +307,12 @@ fi
 %attr(755,root,root) %{_libdir}/gdmchooser
 %attr(755,root,root) %{_libdir}/gdmgreeter
 %attr(755,root,root) %{_libdir}/gdmlogin
-%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_sbindir}/gdm
+%attr(755,root,root) %{_sbindir}/gdm-binary
+%attr(755,root,root) %{_sbindir}/gdm-restart
+%attr(755,root,root) %{_sbindir}/gdm-safe-restart
+%attr(755,root,root) %{_sbindir}/gdm-stop
+%attr(755,root,root) %{_sbindir}/gdmsetup
 
 %{systemdunitdir}/gdm.service
 %dir %{_sysconfdir}/gdm
@@ -315,14 +336,22 @@ fi
 %attr(1770,root,xdm) /var/lib/gdm
 %attr(750,xdm,xdm) /var/log/gdm
 %attr(750,xdm,xdm) /home/services/xdm
-%{_pixmapsdir}/*
+%{_pixmapsdir}/gdm-foot-logo.png
+%{_pixmapsdir}/gdm-pld-logo.png
+%{_pixmapsdir}/nobody.png
+%{_pixmapsdir}/nohost.png
 %{_datadir}/gdm
 %{_datadir}/xsessions/default.desktop
 %{_datadir}/xsessions/ssh.desktop
-%{_iconsdir}/hicolor/*/apps/*.png
-%{_iconsdir}/hicolor/*/apps/*.svg
-%attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
-%{_mandir}/man1/gdm*
+%{_iconsdir}/hicolor/*x*/apps/gdm*.png
+%{_iconsdir}/hicolor/scalable/apps/gdm*.svg
+%attr(755,root,root) %{_libdir}/gtk-2.0/modules/libdwellmouselistener.so
+%attr(755,root,root) %{_libdir}/gtk-2.0/modules/libkeymouselistener.so
+%{_mandir}/man1/gdm.1*
+
+%files faces
+%defattr(644,root,root,755)
+%{_pixmapsdir}/faces
 
 %files Xnest
 %defattr(644,root,root,755)
This page took 0.182452 seconds and 4 git commands to generate.