cups: move localstatedir from /usr/var to /var
authorDanomi Manchego <danomimanchego123@gmail.com>
Wed, 23 Apr 2014 00:49:09 +0000 (20:49 -0400)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 4 May 2014 21:24:25 +0000 (23:24 +0200)
Prior to commit f64a1b850fc897357040bb4c58b6e5e50e71e094 ("cups:
convert to autotargets"), cups was explicitely configured to
put its modifiable single-machine data under /var.  After that
commit, the --localstatedir was not specified, so it remained at
it's default value, "PREFIX/var" - making cups use "/usr/var".

Using /var to store state files seems preferable to /usr/var,
as /usr might be read-only on some systems.  This patch
re-introduces the --localstatedir specification to build cups
to use /var.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/cups/cups.mk

index bcd6f1e01c5a4ca8c62f70e3a3d6e4227e6c37ea..ee53735bb328cbd929fa185d2e8eede446a57b75 100644 (file)
@@ -17,7 +17,8 @@ CUPS_CONF_OPT = --without-perl \
                --without-php \
                --disable-gnutls \
                --disable-gssapi \
-               --libdir=/usr/lib
+               --libdir=/usr/lib \
+               --localstatedir=/var
 CUPS_CONFIG_SCRIPTS = cups-config
 
 CUPS_DEPENDENCIES = $(if $(BR2_PACKAGE_ZLIB),zlib) \