aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-03-31 00:05:01 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-03-31 00:05:01 +0000
commite7309c7160a6acedaa28f8d0cd752bf2d9462da8 (patch)
tree6b5e7fc3c8f40ac83a67802ec256961f8d05847a
parenta06a05b49562c9feb228bb5f5616077a3bf6ae87 (diff)
downloadutmps-e7309c7160a6acedaa28f8d0cd752bf2d9462da8.tar.gz
Add support for disabling RPATH. Prepare for 0.1.3.3
-rw-r--r--CONTRIBUTING2
-rw-r--r--COPYING2
-rw-r--r--INSTALL4
-rw-r--r--Makefile2
-rw-r--r--NEWS8
-rwxr-xr-xconfigure9
-rw-r--r--doc/index.html8
-rw-r--r--doc/upgrade.html10
-rw-r--r--package/info2
-rwxr-xr-xtools/configure.template9
10 files changed, 46 insertions, 10 deletions
diff --git a/CONTRIBUTING b/CONTRIBUTING
index 3173998..bc10b3c 100644
--- a/CONTRIBUTING
+++ b/CONTRIBUTING
@@ -10,7 +10,7 @@
* I, the contributor, am the copyright owner of these changes
* I submit these changes according to the project's license
-with no additionam requirements
+with no additional requirements
* I understand these changes in full and will be able to respond
to review comments.
diff --git a/COPYING b/COPYING
index 7640bed..9b497a1 100644
--- a/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-Copyright (c) 2018-2025 Laurent Bercot <ska-skaware@skarnet.org>
+Copyright (c) 2018-2026 Laurent Bercot <ska-skaware@skarnet.org>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
diff --git a/INSTALL b/INSTALL
index 06978df..7208e58 100644
--- a/INSTALL
+++ b/INSTALL
@@ -6,8 +6,8 @@ Build Instructions
- A POSIX-compliant C development environment
- GNU make version 3.81 or later
- - skalibs version 2.14.5.0 or later: https://skarnet.org/software/skalibs/
- - s6 version 2.14.0.0 or later: https://skarnet.org/software/s6/
+ - skalibs version 2.15.0.0 or later: https://skarnet.org/software/skalibs/
+ - s6 version 2.15.0.0 or later: https://skarnet.org/software/s6/
(this is only a run-time requirement, not a build-time one)
This software will run on any operating system that implements
diff --git a/Makefile b/Makefile
index f519a87..c1197b1 100644
--- a/Makefile
+++ b/Makefile
@@ -188,7 +188,7 @@ lib%.a.xyzzy:
exec $(RANLIB) $@
lib%.so.xyzzy:
- exec $(CC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) -Wl,-rpath=$(dynlibdir) $^ $(EXTRA_LIBS) $(LDLIBS)
+ exec $(CC) -o $@ $(CFLAGS_ALL) $(CFLAGS_SHARED) $(LDFLAGS_ALL) $(LDFLAGS_SHARED) -Wl,-soname,$(patsubst lib%.so.xyzzy,lib%.so.$(version_M),$@) $(LDFLAGS_RPATH) $^ $(EXTRA_LIBS) $(LDLIBS)
-lskarnet:
$(error Unable to link against skalibs. Check that you are using the correct --with-lib or --with-dynlib options; see ./configure --help)
diff --git a/NEWS b/NEWS
index e527239..150d273 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,13 @@
Changelog for utmps.
+In 0.1.3.3
+----------
+
+ - Bugfixes.
+ - Support for disabling RPATH.
+ - Adaptation to skalibs-2.15.0.0.
+
+
In 0.1.3.2
----------
diff --git a/configure b/configure
index c90ca77..a292eaf 100755
--- a/configure
+++ b/configure
@@ -45,6 +45,7 @@ Optional features:
--disable-allstatic do not prefer linking against static libraries [enabled]
--enable-static-libc make entirely static binaries [disabled]
--disable-all-pic do not build executables or static libs as PIC [enabled]
+ --disable-rpath do not embed RPATH in libraries [enabled]
--enable-pkgconfig Build and install .pc files for pkg-config [disabled]
--enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled]
--enable-absolute-paths hardcode absolute BINDIR/foobar paths in binaries [disabled]
@@ -157,6 +158,7 @@ shlibext=so
shared=false
static=true
allpic=true
+rpath=true
slashpackage=false
abspath=false
pcw=false
@@ -209,6 +211,8 @@ for arg ; do
--disable-static-libc|--enable-static-libc=no) evenmorestatic=false ;;
--enable-all-pic|--enable-all-pic=yes) allpic=true ;;
--disable-all-pic|--enable-all-pic=no) allpic=false ;;
+ --enable-rpath|--enable-rpath=yes) rpath=true ;;
+ --disable-rpath|--enable-rpath=no) rpath=false ;;
--enable-pkgconfig|--enable-pkgconfig=yes) pcw=true ;;
--disable-pkgconfig|--enable-pkgconfig=no) pcw=false ;;
--enable-slashpackage=*) sproot=${arg#*=} ; slashpackage=true ; ;;
@@ -519,6 +523,11 @@ if $shared ; then
else
echo "DO_SHARED :="
fi
+if $rpath ; then
+ echo "LDFLAGS_RPATH := -Wl,-rpath=${dynlibdir}"
+else
+ echo "LDFLAGS_RPATH :="
+fi
if $pcw ; then
echo "DO_PKGCONFIG := 1"
else
diff --git a/doc/index.html b/doc/index.html
index 30e42fa..f142c83 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -56,11 +56,11 @@ running utmp functions are just clients to this daemon.
<li> A POSIX-compliant system with a standard C development environment </li>
<li> GNU make, version 3.81 or later </li>
<li> <a href="//skarnet.org/software/skalibs/">skalibs</a> version
-2.14.5.0 or later. It's a build-time requirement. It's also a run-time
+2.15.0.0 or later. It's a build-time requirement. It's also a run-time
requirement if you link against the shared version of the skalibs
library. </li>
<li> <a href="//skarnet.org/software/s6/">s6</a> version
-2.14.0.0 or later. It's a <em>run-time</em> requirement only, to run
+2.15.0.0 or later. It's a <em>run-time</em> requirement only, to run
the utmpd and wtmpd services (and can be done without if you have a
suitable replacement for
<a href="//skarnet.org/software/s6/s6-ipcserver.html">s6-ipcserver</a>). </li>
@@ -76,8 +76,8 @@ suitable replacement for
<h3> Download </h3>
<ul>
- <li> The current released version of utmps is <a href="utmps-0.1.3.2.tar.gz">0.1.3.2</a>.
-You can access its checksum <a href="utmps-0.1.3.2.tar.gz.sha256">here</a>. </li>
+ <li> The current released version of utmps is <a href="utmps-0.1.3.3.tar.gz">0.1.3.3</a>.
+You can access its checksum <a href="utmps-0.1.3.3.tar.gz.sha256">here</a>. </li>
<li> Alternatively, you can checkout a copy of the
<a href="//git.skarnet.org/cgi-bin/cgit.cgi/utmps/">utmps
git repository</a>:
diff --git a/doc/upgrade.html b/doc/upgrade.html
index 2adfabf..9efc945 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -18,6 +18,16 @@
<h1> What has changed in utmps </h1>
+<h2> in 0.1.3.3 </h2>
+
+<ul>
+ <li> <a href="//skarnet.org/software/skalibs/">skalibs</a>
+dependency bumped to 2.15.0.0. </li>
+ <li> <a href="//skarnet.org/software/s6/">s6</a> run-time
+dependency bumped to 2.15.0.0. </li>
+ <li> Support for disabling RPATH at configure time. </li>
+</ul>
+
<h2> in 0.1.3.2 </h2>
<ul>
diff --git a/package/info b/package/info
index 14bb5a3..7de23ee 100644
--- a/package/info
+++ b/package/info
@@ -1,4 +1,4 @@
package=utmps
-version=0.1.3.2
+version=0.1.3.3
category=admin
package_macro_name=UTMPS
diff --git a/tools/configure.template b/tools/configure.template
index ac8ac86..b693f5c 100755
--- a/tools/configure.template
+++ b/tools/configure.template
@@ -45,6 +45,7 @@ Optional features:
--disable-allstatic do not prefer linking against static libraries [enabled]
--enable-static-libc make entirely static binaries [disabled]
--disable-all-pic do not build executables or static libs as PIC [enabled]
+ --disable-rpath do not embed RPATH in libraries [enabled]
--enable-pkgconfig Build and install .pc files for pkg-config [disabled]
--enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled]
--enable-absolute-paths hardcode absolute BINDIR/foobar paths in binaries [disabled]
@@ -151,6 +152,7 @@ shlibext=so
shared=false
static=true
allpic=true
+rpath=true
slashpackage=false
abspath=false
pcw=false
@@ -199,6 +201,8 @@ for arg ; do
--disable-static-libc|--enable-static-libc=no) evenmorestatic=false ;;
--enable-all-pic|--enable-all-pic=yes) allpic=true ;;
--disable-all-pic|--enable-all-pic=no) allpic=false ;;
+ --enable-rpath|--enable-rpath=yes) rpath=true ;;
+ --disable-rpath|--enable-rpath=no) rpath=false ;;
--enable-pkgconfig|--enable-pkgconfig=yes) pcw=true ;;
--disable-pkgconfig|--enable-pkgconfig=no) pcw=false ;;
--enable-slashpackage=*) sproot=${arg#*=} ; slashpackage=true ; ;;
@@ -502,6 +506,11 @@ if $shared ; then
else
echo "DO_SHARED :="
fi
+if $rpath ; then
+ echo "LDFLAGS_RPATH := -Wl,-rpath=${dynlibdir}"
+else
+ echo "LDFLAGS_RPATH :="
+fi
if $pcw ; then
echo "DO_PKGCONFIG := 1"
else