Package: suckless-tools / 48-1

Metadata

Package Version Patches format
suckless-tools 48-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)

slstatus/slstatus.1 | 5 3 + 2 - 0 !
tabbed/tabbed.1 | 18 9 + 9 - 0 !
2 files changed, 12 insertions(+), 11 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. This patch also replaces incorrect *roff macros reported by lintian.

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 !
slstatus/config.mk | 8 4 + 4 - 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/Makefile | 10 5 + 5 - 0 !
wmname/Makefile | 1 0 + 1 - 0 !
wmname/config.mk | 6 3 + 3 - 0 !
xssstate/config.mk | 6 3 + 3 - 0 !
14 files changed, 34 insertions(+), 37 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 !
slstatus/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/Makefile | 4 2 + 2 - 0 !
wmname/config.mk | 4 2 + 2 - 0 !
xssstate/config.mk | 4 2 + 2 - 0 !
11 files changed, 22 insertions(+), 22 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 | 18 14 + 4 - 0 !
tabbed/config.def.h | 2 2 + 0 - 0 !
tabbed/tabbed.1 | 31 18 + 13 - 0 !
3 files changed, 34 insertions(+), 17 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
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.

0011 Do not install the xembed executable.patch | (download)

tabbed/Makefile | 4 2 + 2 - 0 !
tabbed/tabbed.1 | 1 0 + 1 - 0 !
2 files changed, 2 insertions(+), 3 deletions(-)

 do not install the xembed executable

Do not install the xembed executable, since the executable name is too
generic. If we want to keep this binary, we should consider renaming it.

patch Makefile to avoid installing README.patch | (download)

tabbed/Makefile | 3 0 + 3 - 0 !
1 file changed, 3 deletions(-)

 tabbed : avoid installing readme file twice.