Bug 236612
Summary: | Default filesystem layout should follow FHS optional package standards | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Nathan Kinder <nkinder> | ||||||||
Component: | Directory Server | Assignee: | Nathan Kinder <nkinder> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 1.0.4 | ||||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2015-12-07 17:00:09 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 152373, 240316, 427409 | ||||||||||
Attachments: |
|
Description
Nathan Kinder
2007-04-16 19:11:49 UTC
Created attachment 152711 [details]
CVS Diffs
Created attachment 152861 [details]
Revised Diffs
After some feedback from Rich and Andrew, I've made a few modifications to my
previous fix.
I've made the default build store everything under the prefix, including the
sysconfdir and localstatedir. The --with-fhs option retains it's old behavior
of using /usr, /etc, and /var. A new --with-fhs-opt configure option will use
the prefix (default is /opt/fedora-ds) for everything other that the sysconfdir
and localstatedir. These two paths will be /etc/opt and /var/opt.
One question... If not IS_FHS, plugin_dir is going to be /lib/plugins? Do we want to put prefix in front of it? + +#if defined (IS_FHS) cf->plugin_dir = PR_smprintf("%s%cplugins", cf->sroot, FILE_PATHSEP); +#else + cf->plugin_dir = PR_smprintf("%s%cplugins", LIBDIR, FILE_PATHSEP); +#endif And this is not a part of your fix, but we are setting docdir to "/usr/doc" and prefix/doc. Had they better be /usr/share/doc and prefix/share/doc? (In reply to comment #3) > One question... If not IS_FHS, plugin_dir is going to be /lib/plugins? Do we > want to put prefix in front of it? In the Makefile, the exec prefix is prepended when libdir is set. This ends up defining LIBDIR to /opt/fedora-ds/lib. The same thing applies to the docdir. Checked into ldapserver (HEAD). Thanks to Rich and Noriko for reviews! Checking in configure; /cvs/dirsec/ldapserver/configure,v <-- configure new revision: 1.40; previous revision: 1.39 done Checking in configure.ac; /cvs/dirsec/ldapserver/configure.ac,v <-- configure.ac new revision: 1.26; previous revision: 1.25 done Checking in ldap/admin/src/create_instance.c; /cvs/dirsec/ldapserver/ldap/admin/src/create_instance.c,v <-- create_instance.c new revision: 1.54; previous revision: 1.53 done Checking in m4/fhs.m4; /cvs/dirsec/ldapserver/m4/fhs.m4,v <-- fhs.m4 new revision: 1.2; previous revision: 1.1 done Created attachment 153468 [details]
Additional Diffs
I mistakenly assumed that we were using --with-fhs when building our RPM
packages, but that's not the case. This was causing changes to the file layout
in the RPM that wasn't intended. The attached changes should make our RPM and
Solaris package layouts remain the same as before while allowing us to use the
--with-fhs-opt switch on HP-UX.
Your fix looks good. Thanks for the reviews Noriko and Rich! I've checked the changes into ldapserver (HEAD). Checking in config.h.in; /cvs/dirsec/ldapserver/config.h.in,v <-- config.h.in new revision: 1.6; previous revision: 1.5 done Checking in configure; /cvs/dirsec/ldapserver/configure,v <-- configure new revision: 1.41; previous revision: 1.40 done Checking in configure.ac; /cvs/dirsec/ldapserver/configure.ac,v <-- configure.ac new revision: 1.27; previous revision: 1.26 done Checking in ldap/admin/src/create_instance.c; /cvs/dirsec/ldapserver/ldap/admin/src/create_instance.c,v <-- create_instance.c new revision: 1.55; previous revision: 1.54 done Checking in m4/fhs.m4; /cvs/dirsec/ldapserver/m4/fhs.m4,v <-- fhs.m4 new revision: 1.3; previous revision: 1.2 done |