[cups.bugs] [LOW] STR #4306: Request for separate configure option for CUPS_STATEDIR

Andreas K. Hüttel dilfridge at gentoo.org
Mon Apr 1 16:09:08 PDT 2013


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

In Gentoo (and probably other Linux flavours), the content of /var/run has
been moved to a separate top-level directory /run (which is usually a
tempfs). 

Unfortunately, cups does not provide any configure option to modify
CUPS_STATEDIR alone (and if I use --localstatedir=/, other stuff also
moves from /var to / which should stay where it is). 

Please add a configure option to modify only this CUPS_STATEDIR path. 

Right now I am using the following patch to locally adapt the sources:

diff -ruN cups-1.6.2.orig/config-scripts/cups-directories.m4
cups-1.6.2/config-scripts/cups-directories.m4
--- cups-1.6.2.orig/config-scripts/cups-directories.m4  2012-10-01
03:55:23.000000000 +0200
+++ cups-1.6.2/config-scripts/cups-directories.m4       2013-04-02
00:11:41.000000000 +0200
@@ -429,7 +429,7 @@
                ;;
        *)
                # All others
-               CUPS_STATEDIR="$localstatedir/run/cups"
+               CUPS_STATEDIR="/run/cups"
                ;;
 esac
 AC_DEFINE_UNQUOTED(CUPS_STATEDIR, "$CUPS_STATEDIR")

Link: https://www.cups.org/str.php?L4306
Version: 1.6.2





More information about the cups-devel mailing list