Commits

Moises Henriquez committed 488e720

lxsession fix segmentation fault because it wanted lsb_release

Comments (0)

Files changed (2)

var/vabs/lxsession/src/lxsession.SlackBuild

 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"1"}
+BUILDNUM=${BUILDNUM:-"2"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
 ARCH=${ARCH:-"$(uname -m)"}
 
 # Put any Patches into a patches folder in the src dir
 #-----------------------------------------------------
-#for i in $CWD/patches/*;do
-#	patch -p1 <$i
-#done
+for i in $CWD/patches/*;do
+	patch -p1 --verbose <$i
+	mkdir -p $PKG/usr/doc/$NAME-$VERSION/patches/
+	cp $i $PKG/usr/doc/$NAME-$VERSION/patches/
+done
 #-----------------------------------------------------
 
 
 # correct path and that it will work seamlessly within the KDE environment.
 #
 #-----------------------------------------------------------------------
-
 echo "Configuring source..."
 ./configure --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \
   --infodir=/usr/info \
   --sysconfdir=/etc \
   --localstatedir=/var \
-  --enable-buildin-polkit \
-  --enable-buildin-clipboard \
+  --enable-buildin-polkit=yes \
+  --enable-buildin-clipboard=yes \
   --enable-dbus \
   --mandir=/usr/man \
   --program-prefix="" \

var/vabs/lxsession/src/patches/lxsession-no-lsb-patch.diff

+diff -rupN lxsession-0.4.9.2/lxsession-logout/lxsession-logout.c lxsession-0.4.9.2.patched/lxsession-logout/lxsession-logout.c
+--- lxsession-0.4.9.2/lxsession-logout/lxsession-logout.c	2013-05-31 14:38:58.000000000 -0500
++++ lxsession-0.4.9.2.patched/lxsession-logout/lxsession-logout.c	2014-01-28 13:44:30.000000000 -0600
+@@ -664,7 +664,7 @@ int main(int argc, char * argv[])
+         if (session_name == NULL)
+             session_name = "LXDE";
+ 
+-        const gchar *command_line = "lsb_release -r -s";
++        const gchar *command_line = "cat /etc/vector-version | cut -f 1 -d " " ";
+         gchar *output = NULL;
+         GError *error;
+