-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
550 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
drwxr-xr-x root/root usr/ | ||
drwxr-xr-x root/root usr/bin/ | ||
-rwxr-xr-x root/root usr/bin/xbindkeys | ||
drwxr-xr-x root/root usr/share/ | ||
drwxr-xr-x root/root usr/share/man/ | ||
drwxr-xr-x root/root usr/share/man/man1/ | ||
-rw-r--r-- root/root usr/share/man/man1/xbindkeys.1.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
d075955a84af103b6edc531214e6c746 dupchecks.patch | ||
93fdf42e59219358ca3ab1669542496a examples.patch | ||
37876113386944e80fb54bd8f25b1ddb manpages.patch | ||
90c581c0e3ed1e80543ecd64e4fdb19a trueifs.patch | ||
b5e1a9668ba13ff8673836d1d965d951 xbindkeys-1.8.7.tar.gz | ||
c17ad71b04827139a448c34f0f5086df xbindkeys.1-no-guile.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Description: Bind keys to shell scripts in X | ||
# URL: https://www.nongnu.org/xbindkeys/xbindkeys.html | ||
# Depends on: xorg-libx11 | ||
|
||
name=xbindkeys | ||
version=1.8.7 | ||
release=1 | ||
source="https://www.nongnu.org/$name/$name-$version.tar.gz | ||
dupchecks.patch | ||
examples.patch | ||
manpages.patch | ||
trueifs.patch | ||
xbindkeys.1-no-guile.patch" | ||
|
||
build() { | ||
patch -d $name-$version -Np1 -i $SRC/manpages.patch | ||
patch -d $name-$version -Np1 -i $SRC/examples.patch | ||
patch -d $name-$version -Np1 -i $SRC/dupchecks.patch | ||
patch -d $name-$version -Np1 -i $SRC/trueifs.patch | ||
patch -d $name-$version -Np0 -i $SRC/xbindkeys.1-no-guile.patch | ||
|
||
mkdir build; cd build | ||
|
||
../$name-$version/configure \ | ||
--prefix=/usr \ | ||
--disable-tk \ | ||
--disable-guile \ | ||
|
||
make V=1 | ||
make DESTDIR=$PKG install | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Description: check result of dup() calls | ||
Removes two instances of "warning: ignoring return value of 'dup' | ||
declared with attribute 'warn_unused_result' [-Wunused-result]" | ||
Author: Ricardo Mones <[email protected]> | ||
Forwarded: no | ||
|
||
diff --git a/xbindkeys.c b/xbindkeys.c | ||
index 5b1b86b..e1fcfb7 100644 | ||
--- a/xbindkeys.c | ||
+++ b/xbindkeys.c | ||
@@ -524,7 +524,7 @@ static void | ||
start_as_daemon (void) | ||
{ | ||
pid_t pid; | ||
- int i; | ||
+ int i, j; | ||
|
||
pid = fork (); | ||
if (pid < 0) | ||
@@ -554,8 +554,16 @@ start_as_daemon (void) | ||
} | ||
|
||
i = open ("/dev/null", O_RDWR); | ||
- dup (i); | ||
- dup (i); | ||
+ j = dup (i); | ||
+ if (j < 0) | ||
+ { | ||
+ perror ("Could not duplicate handle"); | ||
+ } | ||
+ j = dup (i); | ||
+ if (j < 0) | ||
+ { | ||
+ perror ("Could not duplicate handle again"); | ||
+ } | ||
|
||
/* umask (022); */ | ||
/* chdir ("/tmp"); */ |
Oops, something went wrong.