Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FHS 3.0: /var/run has moved to /run #4306

Closed
michaelrsweet opened this issue Apr 1, 2013 · 4 comments
Closed

FHS 3.0: /var/run has moved to /run #4306

michaelrsweet opened this issue Apr 1, 2013 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.7-feature
CUPS.org User: dilfridge

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")
@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Reassigning as 1.7 RFE...

So has the FHS changed for this or are Linux distributions no longer following the FHS?

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: dilfridge

As far as I know, this change will be in the next FHS release (3.0). See the FHS specification development trunk, and in particular revision 36.

http:https://bzr.linuxfoundation.org/loggerhead/lsb/devel/fhs-spec/changes

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

"Beta" versions of FHS 3.0 are posted at:

http:https://www.linuxbase.org/betaspecs/fhs/

Will investigate all usage and add configure directives and suitable defaults as needed...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Added new --with-rundir configure option to set the transient run-time state directory. Don't forget to also pass --with-domainsocket to relocate the CUPS domain socket, too...

@michaelrsweet michaelrsweet added the enhancement New feature or request label Mar 17, 2016
@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant