Skip to content

Commit

Permalink
0.7.1 (20210220)
Browse files Browse the repository at this point in the history
- Fixed make distclean/clobber on Debian (use debian-clobber instead of clobber) (spotted by Marc Haber)
- Fixed parallel make test (race condition creating test directory) (spotted by Marc Haber)
- Fixed manpage headers and footers and various other minor fixes and improvements
- Fixed limitation in test code for daemon_path_is_safe() in deep directory (spotted by Kurt Hindenburg)
- Added elaboration in mem module test output for pool_destroy_secure()
- Replaced some 0 with EXIT_SUCCESS and 1 with EXIT_FAILURE in libslack module tests
- Added configure --prefix=/opt/local for macports (spotted by Kurt Hindenburg)
- Added mention of file locations on macOS/macports to the daemon(1) manpage
- Added checks for gcc -W options that fail on old macosx (e.g. 10.6.8) without macports
- Fixed return value on error (unlikely) for prog_out_none()/prog_err_none()/prog_dbg_none()/prog_alert_none()
- Added support for using $CC in configure (spotted by Ryan Schmidt)
- Fixed missing client defines in output of libslack-config --cflags (needed for configure --prefix)
- Fixed Makefile (wasn't inheriting CPPFLAGS, CFLAGS or LDFLAGS from caller) (spotted by Ryan Schmidt)
  • Loading branch information
raforg committed Feb 20, 2021
1 parent 5398b50 commit a27c507
Show file tree
Hide file tree
Showing 82 changed files with 2,278 additions and 1,777 deletions.
18 changes: 17 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
CHANGELOG
=========

0.7.1 (20210220)

- Fixed make distclean/clobber on Debian (use debian-clobber instead of clobber) (spotted by Marc Haber)
- Fixed parallel make test (race condition creating test directory) (spotted by Marc Haber)
- Fixed manpage headers and footers and various other minor fixes and improvements
- Fixed limitation in test code for daemon_path_is_safe() in deep directory (spotted by Kurt Hindenburg)
- Added elaboration in mem module test output for pool_destroy_secure()
- Replaced some 0 with EXIT_SUCCESS and 1 with EXIT_FAILURE in libslack module tests
- Added configure --prefix=/opt/local for macports (spotted by Kurt Hindenburg)
- Added mention of file locations on macOS/macports to the daemon(1) manpage
- Added checks for gcc -W options that fail on old macosx (e.g. 10.6.8) without macports
- Fixed return value on error (unlikely) for prog_out_none()/prog_err_none()/prog_dbg_none()/prog_alert_none()
- Added support for using $CC in configure (spotted by Ryan Schmidt)
- Fixed missing client defines in output of libslack-config --cflags (needed for configure --prefix)
- Fixed Makefile (wasn't inheriting CPPFLAGS, CFLAGS or LDFLAGS from caller) (spotted by Ryan Schmidt)

0.7 (20201111)

- Fixed bug: race condition causing failure with "exec daemon ..." (with Askar Safin safinaskar at mail.ru)
Expand Down Expand Up @@ -287,6 +303,6 @@ TODO
URL: http://libslack.org
URL: http://raf.org/libslack
GIT: https://github.com/raforg/libslack
Date: 20201111
Date: 20210220
Author: raf <raf@raf.org>

4 changes: 2 additions & 2 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ COPYING
=======
libslack - A UNIX/C library of general utilities for programmers with Slack

Copyright (C) 1999-2002, 2004, 2010, 2020 raf <raf@raf.org>
Copyright (C) 1999-2002, 2004, 2010, 2020-2021 raf <raf@raf.org>

This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -50,6 +50,6 @@ All rights reserved.
URL: http://libslack.org
URL: http://raf.org/libslack
GIT: https://github.com/raforg/libslack
Date: 20201111
Date: 20210220
Author: raf <raf@raf.org>

67 changes: 44 additions & 23 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This version is only known to work on the following systems:
OpenBSD 4.7 (i386, amd64), 6.6 (amd64)
FreeBSD 8.0 (i386, amd64), 12.1 (amd64)
NetBSD 5.0.2 (i386, amd64), 8.1 (amd64)
MacOSX 10.{4,5,6,11,14} (ppc, i386, x86_64)
MacOSX/macOS 10.{4,5,6,11,14,15}, 11 (ppc, i386, x86_64, arm64)
kFreeBSD 20090729 (i386)
GNU/Hurd (i386)

Expand Down Expand Up @@ -48,17 +48,38 @@ First, uninstall any previous version:

or:

cd /usr/local/src/libslack-0.6
cd /usr/local/src/libslack-0.7
make uninstall

To build and test:

tar xzf libslack-0.7.tar.gz
cd libslack-0.7
tar xzf libslack-0.7.1.tar.gz
cd libslack-0.7.1
./configure # iff linux, openbsd, freebsd, netbsd, macosx, solaris, gnuhurd or kfreebsd
make # must be gnu make
make test

Note that the configure script is not a GNU autoconf script.
It just has hard-coded settings for certain platforms.
It does not accept all of the usual command line options.
However, it does accept certain options:

--prefix=/opt/local
Changes the installation prefix to a non-standard one.
This also changes the directory that system-wide property files are read from.
When --prefix=/usr or --prefix=default, these property files are under /etc.
Otherwise (e.g. --prefix=/usr/local or --prefix=/opt/local), they are under
the prefix.

--enable-test
Include backup implementations of several functions (unnecessary)

--enable-test-rwlock
Include backup implementation for readers/writer locks (unnecessary)

--disable-test-rwlock
Remove backup implementation for readers/writer locks (unnecessary)

To install libslack and its manpages (into /usr/local by default):

make install
Expand Down Expand Up @@ -94,43 +115,43 @@ created.

To install from the Fedora RPM binary package (into /usr by default):

rpm -i libslack-0.7-1.x86_64.rpm # or
rpm -i libslack-0.7-1.i686.rpm
rpm -i libslack-0.7.1-1.x86_64.rpm # or
rpm -i libslack-0.7.1-1.i686.rpm

To install from the OpenBSD binary package (into /usr/local by default):

mv libslack-0.7-openbsd-amd64.tgz libslack-0.7.tgz # or
mv libslack-0.7-openbsd-i386.tgz libslack-0.7.tgz
mv libslack-0.7.1-openbsd-amd64.tgz libslack-0.7.1.tgz # or
mv libslack-0.7.1-openbsd-i386.tgz libslack-0.7.1.tgz
# then
pkg_add libslack-0.7.tgz
pkg_add libslack-0.7.1.tgz

To install from the FreeBSD binary package (into /usr/local by default):

pkg_add libslack-0.7-freebsd-amd64.tbz # or
pkg_add libslack-0.7-freebsd-i386.tbz
pkg_add libslack-0.7.1-freebsd-amd64.tbz # or
pkg_add libslack-0.7.1-freebsd-i386.tbz

To install from the NetBSD binary package (into /usr/local by default):

pkg_add libslack-0.7-netbsd-amd64.tgz # or
pkg_add libslack-0.7-netbsd-i386.tgz
pkg_add libslack-0.7.1-netbsd-amd64.tgz # or
pkg_add libslack-0.7.1-netbsd-i386.tgz

To install from the Mac OS X binary package (into /usr/local by default):

cd /usr/local
tar xzf /usr/local/src/libslack-0.7-macosx-universal.tar.gz # or
tar xzf /usr/local/src/libslack-0.7-macosx-x86_64.tar.gz # or
tar xzf /usr/local/src/libslack-0.7-macosx-i386.tar.gz # or
tar xzf /usr/local/src/libslack-0.7-macosx-powerpc.tar.gz
tar xzf /usr/local/src/libslack-0.7.1-macosx-universal.tar.gz # or
tar xzf /usr/local/src/libslack-0.7.1-macosx-x86_64.tar.gz # or
tar xzf /usr/local/src/libslack-0.7.1-macosx-i386.tar.gz # or
tar xzf /usr/local/src/libslack-0.7.1-macosx-powerpc.tar.gz

To install from the Solaris10 binary package (into /usr/local by default):

gunzip libslack-0.7-solaris-amd64.pkg.gz
pkgadd -d libslack-0.7-solaris-amd64.pkg
gunzip libslack-0.7.1-solaris-amd64.pkg.gz
pkgadd -d libslack-0.7.1-solaris-amd64.pkg

or

gunzip libslack-0.7-solaris-i386.pkg.gz
pkgadd -d libslack-0.7-solaris-i386.pkg
gunzip libslack-0.7.1-solaris-i386.pkg.gz
pkgadd -d libslack-0.7.1-solaris-i386.pkg

REQUIREMENTS
============
Expand Down Expand Up @@ -201,7 +222,7 @@ filesystem entry is needed for the client and it must be unlinked after use.
It's also possible for a malicious local user to deny a client access to the
server. The solution is to always use UNIX domain stream sockets.

Solaris has an inadequate snprintf() function so libslack provides it's own
Solaris has an inadequate snprintf() function so libslack provides its own
implementation. When configured for Solaris, this snprintf() function will
format exactly like the system's sprintf() function, even though it has
incorrect behaviour with respect to the ISO C standard. I thought this was
Expand Down Expand Up @@ -246,6 +267,6 @@ And don't forget to use `libslack-config --cflags` when compiling it and
URL: http://libslack.org
URL: http://raf.org/libslack
GIT: https://github.com/raforg/libslack
Date: 20201111
Date: 20210220
Author: raf <raf@raf.org>

5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# libslack - http://libslack.org/
#
# Copyright (C) 1999-2002, 2004, 2010, 2020 raf <raf@raf.org>
# Copyright (C) 1999-2002, 2004, 2010, 2020-2021 raf <raf@raf.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -17,10 +17,11 @@
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#

# 20201111 raf <raf@raf.org>
# 20210220 raf <raf@raf.org>

CC := gcc
# CC := cc
# CC := other
AR := ar
RANLIB := ranlib
POD2MAN := pod2man
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ should always be easy to read.

*Libslack* contains the following modules:

agent - agent oriented programming
agent - agent-oriented programming
coproc - coprocess using pipes or pseudo terminals
daemon - becoming a daemon
err - message/error/debug/verbosity/alert messaging
Expand Down Expand Up @@ -47,6 +47,6 @@ should always be easy to read.
URL: http://libslack.org
URL: http://raf.org/libslack
GIT: https://github.com/raforg/libslack
Date: 20201111
Date: 20210220
Author: raf <raf@raf.org>

2 changes: 1 addition & 1 deletion REFERENCES
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ REFERENCES
URL: http://libslack.org
URL: http://raf.org/libslack
GIT: https://github.com/raforg/libslack
Date: 20201111
Date: 20210220
Author: raf <raf@raf.org>

Loading

0 comments on commit a27c507

Please sign in to comment.