Russ Allbery [Sat, 28 Jun 2008 06:01:22 +0000 (23:01 -0700)]
Exit successfully in init script if openafs isn't in modules.dep
If the openafs module isn't listed in modules.dep, exit with a zero
status from the init script even if modprobe fails. Otherwise, if a
module package and openafs-client are installed at the same time and
openafs-client is set up before the module package, the init script can
find the module, fail the modprobe (because the dependency map hasn't
yet been updated), and fail the whole installation. Exiting with a zero
status still doesn't get OpenAFS started, but at least it doesn't leave
the system in a partly installed state. Thanks to Durk Strooisma for the
analysis.
Russ Allbery [Sat, 28 Jun 2008 05:44:23 +0000 (22:44 -0700)]
Stop using quilt to manage patches
Remove the remaining patches that are managed through branches. Drop
the build-dependency on quilt and don't run it during the build. Don't
remove the afs-up man page in the clean target since it's done with Git
now (although this will be reverted in a moment).
Russ Allbery [Sat, 28 Jun 2008 05:37:45 +0000 (22:37 -0700)]
Add a man page for klog.krb5
Apply quilt patch klog-krb5-man-page: Man page for the
Kerberos v5 version of klog. Pulled from upstream delta
STABLE14-install-and-document-klog-krb5-20080627.
Russ Allbery [Sat, 28 Jun 2008 05:07:44 +0000 (22:07 -0700)]
Allow multiple local realms in krb.conf
Apply quilt patch multiple-local-realms: Enable listing multiple realms
in the server krb.conf file. Up to four realms may be treated as local
in that fashion for authorization purposes (instead of the single realm
supported without this patch).
This upstream patch is in the 1.5 series but not in 1.4. However, it
has been working in production at Stanford University for some time.
Russ Allbery [Sat, 28 Jun 2008 05:05:53 +0000 (22:05 -0700)]
Expose prototypes for the ktc_* functions
Apply quilt patch ktc-prototypes: Expose prototypes for the ktc_*
functions on platforms other than Windows. Fixed upstream in a different
way, but only on the 1.5 branch.
Russ Allbery [Sat, 28 Jun 2008 05:03:20 +0000 (22:03 -0700)]
Find core files properly on Linux
Linux always appends the PID to core dumps from threaded processes, so
search the directory for core dumps instead of assuming a particular
name. Suitable upstream.
Russ Allbery [Sat, 28 Jun 2008 05:01:19 +0000 (22:01 -0700)]
Build with UCONTEXT on all Linux platforms
The new glibc doesn't work with the old context code due to mangling
done in the library (the interface AFS was using wasn't a supported or
stable one). Switch to UCONTEXT for all Linux platforms, which stands
a better chance of working (but may or may not actually work).
Russ Allbery [Sat, 28 Jun 2008 04:58:01 +0000 (21:58 -0700)]
No longer reference the old Admin Reference
Apply quilt patch no-admin-reference: The Admin Reference has now been
completely replaced by the man pages, so don't refer to it since we'll no
longer bother to install it. It should be simply removed upstream.
Russ Allbery [Sat, 28 Jun 2008 04:56:03 +0000 (21:56 -0700)]
Allow overriding the default compiler and merge SPARC
Apply quilt patch compiler-flags: Use $CC for the compiler instead of
forcing cc or gcc. The corresponding upstream fix is waiting for work
to separate the kernel compiler from the userspace compilter, since $CC
should only be used for the latter on other platforms.
Also combines the sparc sysnames together, which is suitable upstream.
Russ Allbery [Sat, 28 Jun 2008 04:50:38 +0000 (21:50 -0700)]
Tweak the expected configuration directory permissions
Apply quilt patch bos-permissions: Expect the server directory to be
mode 0700 since that's where the AFS KeyFile is stored. Allow the
local directory to be mode 0755, since there's no reason for it to be
more restrictive.
Allowing the server directory to be mode 0700 causes problems upstream if
people symlink the client configuration to the server directory, which is
recommended by some documentation, so this is not applied upstream.
Russ Allbery [Sat, 28 Jun 2008 04:47:18 +0000 (21:47 -0700)]
Re-add upstream skip of PAM builds on amd64_linux24
We always build the userspace code on amd64 as amd64_linux26, so this
check is now harmless. Re-add the check to match upstream and reduce
unnecessary differences.
Russ Allbery [Sat, 28 Jun 2008 04:43:32 +0000 (21:43 -0700)]
Ugly hack to build the PAM modules PIC
Apply quilt patch pam-build: Apply an incredibly ugly hack to build the
PAM modules against the shared objects generated for the shared libraries.
Not suitable upstream in its current form. The right upstream solution is
to standardize the shared library ABI and install it with a real SONAME,
and then link the PAM modules against it. It may be that we'll drop
kaserver support and stop building the PAM modules before we get to that,
though.
Russ Allbery [Sat, 28 Jun 2008 04:32:08 +0000 (21:32 -0700)]
Name the kernel module openafs instead of libafs
Apply quilt patch module-name: Build the kernel module as openafs.ko
instead of libafs.ko. This should really be done upstream as well, but it
poses backwards compatibility problems and it's always been called libafs
on other platforms, so it's controversial.
This implementation of the idea produces warnings and needs some
improvement.
Russ Allbery [Sat, 28 Jun 2008 04:26:13 +0000 (21:26 -0700)]
Fix the path for fstrace message catalogs
Apply quilt patch fstrace-paths: fstrace uses the NLS functions to
do message translation and needs a message catalog installed. The
default paths are rather broken. Patch the source to look for it in
/usr/share/openafs instead. Not suitable upstream with the hard-coded
paths, but something more sophisticated would be appropriate.
Russ Allbery [Sat, 28 Jun 2008 04:23:05 +0000 (21:23 -0700)]
Use the correct PTS database path in pt_util
Apply quilt patch paths: Patch pt_util to use the correct Debian patch for
the Protection Server database. The correct fix would be to use the
standard functions to find the database path.
Russ Allbery [Sat, 28 Jun 2008 04:21:30 +0000 (21:21 -0700)]
Rename the up man page to afs-up, matching our renaming
Apply quilt patch afs-up-rename: Update the up man page to say afs-up
instead, matching our renaming of the command, and rename it in the
source tree so that the generated man page will have the correct name.
Russ Allbery [Sat, 28 Jun 2008 04:17:53 +0000 (21:17 -0700)]
Remove Makefile references to removed upstream files
Apply quilt patch dfsg: Patch upstream Makefiles to remove references to
files that had to be removed from the source package for DFSG freeness
reasons.
Russ Allbery [Sat, 28 Jun 2008 04:12:54 +0000 (21:12 -0700)]
Fix permissions in the upstream tree
Mark various upstream files executable that are executable in the upstream
tarballs but weren't in the Subversion repository, probably due to missing
properties somewhere along the line.
Russ Allbery [Fri, 9 May 2008 17:25:05 +0000 (17:25 +0000)]
* Add a NEWS file for openafs-dbserver warning of the serious Ubik bug
fixed in the previous release and suggesting restarting database
servers one at a time.
Russ Allbery [Thu, 1 May 2008 23:48:52 +0000 (23:48 +0000)]
* Include a Kerberos v5 klog, klog.krb5, in openafs-krb5.
* klog is now managed via alternatives. openafs-client provides
klog.afs and openafs-krb5 provides klog.krb5. If both packages are
installed, klog.krb5 is the default.
* Don't remove and reinstall the pagsh alternative on every upgrade.
Russ Allbery [Thu, 1 May 2008 17:38:50 +0000 (17:38 +0000)]
* Add many new upstream man pages for fs, vos, and pts sub-commands and
the CellAlias config file.
* Add read_tape to openafs-dbserver.
* Add bos_util and a UserList man page to openafs-fileserver.
* Run dh_install with --fail-missing to catch new upstream additions.
Russ Allbery [Wed, 26 Mar 2008 23:48:23 +0000 (23:48 +0000)]
* Move openafs-client later in the shutdown sequence on new
installations so that it stops after autofs and add an X-Stop-After
LSB header to achieve the same more reliably with dependency-based
boots. (Closes: #472545)
Russ Allbery [Wed, 26 Mar 2008 23:21:49 +0000 (23:21 +0000)]
* debian/rules and debian/module/rules improvements:
- Remove all modified generated files on debian/rules clean.
- Depend on $(QUILT_STAMPFN) instead of patch.
- Use touch $@ to create stamp files.
- Use a stamp file for the module's install target.
Russ Allbery [Wed, 6 Feb 2008 18:44:37 +0000 (18:44 +0000)]
* Fix FTBFS caused by a change in dh_strip behavior. It no longer
creates empty files for already stripped binaries, so we should no
longer remove them. Thanks, Lucas Nussbaum. (Closes: #464274)
Russ Allbery [Tue, 18 Dec 2007 02:27:16 +0000 (02:27 +0000)]
* Build bosserver with --enable-bos-new-config. On startup, if
BosConfig.new exists, it will be renamed to BosConfig before the
configuration is read. (Closes: #453398)
Russ Allbery [Tue, 18 Dec 2007 02:20:30 +0000 (02:20 +0000)]
* Apply upstream patch from the 1.5 series to allow multiple realms to
be listed in the server krb.conf and hence treated as local.
* Mention in README.Debian that the server is built with supergroups
enabled and with the multiple local realm patch. (Closes: #453399)
Russ Allbery [Tue, 18 Dec 2007 00:39:45 +0000 (00:39 +0000)]
* Apply upstream patch to allocate vnodes from the malloc pool rather
than off the stack, fixing file server problems on SPARC. Thanks to
Barney Sowood for tracking down the patch. (Closes: #448380)
Russ Allbery [Sun, 11 Nov 2007 23:52:18 +0000 (23:52 +0000)]
* Fix man pages for subcommands to use an underscore in the NAME section
instead of a space so that they'll be indexed properly by the current
groff and man-db.
Russ Allbery [Sat, 10 Nov 2007 03:48:47 +0000 (03:48 +0000)]
* Use uname -m rather than dpkg --print-architecture to determine the
sysname for kernel module builds. Otherwise, builds with a different
kernel architecture than userspace (amd64 kernels with i386 userspace,
for example) don't work. Thanks, Anders Kaseorg. (Closes: #448452)