mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
misc/utimer: Patch to build on -current.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a6a2ccd3e5
commit
a8d39ca8f8
3 changed files with 42 additions and 0 deletions
29
misc/utimer/utimer-0.4-fno-common.patch
Normal file
29
misc/utimer/utimer-0.4-fno-common.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- a/src/utimer.h
|
||||
+++ b/src/utimer.h
|
||||
@@ -66,9 +66,9 @@
|
||||
#define TIMER_PRINT_RATE_MSEC 79
|
||||
#define TIMER_CHECK_RATE_MSEC 500
|
||||
|
||||
-GMainLoop *loop;
|
||||
-gboolean paused;
|
||||
-struct termios savedttystate;
|
||||
-Config ut_config;
|
||||
+extern GMainLoop *loop;
|
||||
+extern gboolean paused;
|
||||
+extern struct termios savedttystate;
|
||||
+extern Config ut_config;
|
||||
|
||||
#endif /* UTIMER_H */
|
||||
--- a/src/utils.c
|
||||
+++ b/src/utils.c
|
||||
@@ -36,6 +36,10 @@
|
||||
#include "utils.h"
|
||||
#include "utimer.h"
|
||||
|
||||
+GMainLoop *loop;
|
||||
+gboolean paused;
|
||||
+struct termios savedttystate;
|
||||
+Config ut_config;
|
||||
|
||||
gulong ul_add (gulong a, gulong b)
|
||||
{
|
10
misc/utimer/utimer-0.4-locale.patch
Normal file
10
misc/utimer/utimer-0.4-locale.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/src/utimer.h
|
||||
+++ b/src/utimer.h
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <glib.h>
|
||||
#include <glib/gi18n-lib.h>
|
||||
+#include <locale.h>
|
||||
|
||||
#include "utils.h"
|
||||
#include "timer.h"
|
|
@ -54,6 +54,9 @@ cd $TMP
|
|||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
# some patches from gentoo
|
||||
patch -p1 < $CWD/utimer-0.4-fno-common.patch
|
||||
patch -p1 < $CWD/utimer-0.4-locale.patch
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
|
|
Loading…
Reference in a new issue