Package: suckless-tools / 46-1

Metadata

Package Version Patches format
suckless-tools 46-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
segfault avoidance.patch | (download)

lsw/lsw.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 lsw: segfault avoidance

Escape symbol in manpage.patch | (download)

tabbed/tabbed.1 | 18 9 + 9 - 0 !
1 file changed, 9 insertions(+), 9 deletions(-)

 tabbed: escape '-' symbol in manpage

Manpage for tabbed was using '-' symbol without escape which will be
considered by groff as hyphen. This patch escapes the '-' in manpages.
This patch also replaces existing example given by upstream to embed an
app into tabbed with a version which uses the secure temp files using
mktemp.

Patch Makefiles to honor CFLAGS and LDFLAGS.patch | (download)

dmenu/config.mk | 6 3 + 3 - 0 !
lsw/config.mk | 6 3 + 3 - 0 !
slock/config.mk | 6 3 + 3 - 0 !
sprop/config.mk | 6 3 + 3 - 0 !
sselp/config.mk | 6 3 + 3 - 0 !
ssid/Makefile | 1 0 + 1 - 0 !
ssid/config.mk | 4 2 + 2 - 0 !
swarp/Makefile | 1 0 + 1 - 0 !
swarp/config.mk | 4 2 + 2 - 0 !
tabbed/config.mk | 6 3 + 3 - 0 !
wmname/Makefile | 1 0 + 1 - 0 !
wmname/config.mk | 6 3 + 3 - 0 !
xssstate/config.mk | 6 3 + 3 - 0 !
13 files changed, 28 insertions(+), 31 deletions(-)

 patch makefiles to honor cflags and ldflags

This patch allows the hardening flags injection into all Makefiles
during build time. It also removes -Os and -O0 from upstream config.mk
to allow DEB_BUILD_OPTIONS=noopt.

Also, remove the -s linker option, as well as any explicit strip
invocation to allow proper working of nostrip value for
DEB_BUILD_OPTIONS.

Remove custom library search paths from Makefiles.patch | (download)

dmenu/config.mk | 4 2 + 2 - 0 !
lsw/config.mk | 4 2 + 2 - 0 !
slock/config.mk | 4 2 + 2 - 0 !
sprop/config.mk | 4 2 + 2 - 0 !
sselp/config.mk | 4 2 + 2 - 0 !
ssid/config.mk | 4 2 + 2 - 0 !
swarp/config.mk | 4 2 + 2 - 0 !
tabbed/config.mk | 4 2 + 2 - 0 !
wmname/config.mk | 4 2 + 2 - 0 !
xssstate/config.mk | 4 2 + 2 - 0 !
10 files changed, 20 insertions(+), 20 deletions(-)

 remove custom library search paths from makefiles

This patch removes library search and include paths (such as -L/usr/lib)
defined by upstream. Since all the libraries and headers needed are
available in the default path, these flags are redundant. In addition,
Change Mod key to the Windows key.patch | (download)

tabbed/Makefile | 27 17 + 10 - 0 !
tabbed/config.def.h | 2 2 + 0 - 0 !
tabbed/tabbed.1 | 27 16 + 11 - 0 !
3 files changed, 35 insertions(+), 21 deletions(-)

 tabbed: change mod key to the windows key

Provide 'tabbed.meta' alternative which uses the Windows key as Mod key.

Define PATH_MAX in case it is missing.patch | (download)

dmenu/stest.c | 8 8 + 0 - 0 !
1 file changed, 8 insertions(+)

 dmenu: define path_max in case it is missing

dmenu FTBFS on hurd because the PATH_MAX macro is not defined.
According to POSIX, this macro may not be defined, so fix the code to
not assume otherwise.

For more information, see:
https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html

Bug-Debian: https://bugs.debian.org/815357
slock Fix resize with multiple monitors and portrait mode.patch | (download)

slock/slock.c | 9 7 + 2 - 0 !
1 file changed, 7 insertions(+), 2 deletions(-)

 slock: fix resize with multiple monitors and portrait mode

When connecting/disconnecting a portrait monitor, the
XRRScreenChangeNotifyEvent height & width are reversed due to the XRandR
rotation; detect this and DTRT.

slock there can only be one window in the event.patch | (download)

slock/slock.c | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 slock: there can only be one window in the event

slock Properly clear the last entered character.patch | (download)

slock/slock.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 slock: properly clear the last entered character

When enter is pressed, passwd[len] will be set to '\0'. Pressing
backspace is supposed to remove the last entered character.

But currently, the clearing has an off-by-one, as in setting
passwd[len] to '\0' just like enter would do.

You can also verify it by imagining len=1 and that it's impossible to
clear passwd[0] by pressing backspace with the current code.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>

Don t exit if failed to adjust OOM score.patch | (download)

slock/slock.c | 11 7 + 4 - 0 !
1 file changed, 7 insertions(+), 4 deletions(-)

 slock: don't exit if failed to adjust oom score

Adjusting the OOM score needs CAP_SYS_RESOURCE capabilities or the
setuid bit. But we don't want to setuid our binary and not all
filesystems support setting capabilities to executables. Modify slock
to not fail if it cannot adjust the OOM score.

slock Do not drop privileges.patch | (download)

slock/slock.c | 22 0 + 22 - 0 !
1 file changed, 22 deletions(-)

 slock: do not drop privileges

In Debian, slock does not have the setuid bit.

Use PAM for authentication.patch | (download)

slock/config.mk | 4 2 + 2 - 0 !
slock/slock.c | 90 90 + 0 - 0 !
2 files changed, 92 insertions(+), 2 deletions(-)

 slock: use pam for authentication

Patch slock to use PAM for authentication instead of querying the shadow
file. This means that slock can authenticate the user using some other
mechanism for login (i.e., NIS passwords, fingerprint readers, etc). In
addition, it doesn't require slock to has the effective user ID.

This patch has been written in a way that is as less intrusive as
possible so as to be easily applied to newer version.

Upstream is not interested in using PAM.

Bug-Debian: https://bugs.debian.org/739629
Remove useless dependency against Xext library.patch | (download)

slock/config.mk | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 slock: remove useless dependency against xext library

Slock is linked against libXext.so.6 but uses none of the library's
symbols.