pkgsrc/x11/xscreensaver/patches/patch-af
wiz 6726541d1b Update to 5.00:
Changes since 4.24:   * Ported to MacOS X! (10.4.0 or newer)
                      * API change: instead of providing a single screenhack()
                        function that does not return, screen savers using the
                        screenhack.h framework must now provide "init" and
                        "draw one frame" functions instead.  All bundled savers
                        have been updated; third-party patches will need work.
                      * All image-loading happens asynchronously.
                      * xscreensaver-getimage-file caches the contents of the
                        image directory for a few hours, so consecutive runs
                        won't have to re-list the whole directory tree.
                      * New hacks, `topblock' and `glschool'.
                      * Removed `xteevee' (superceded by `xanalogtv').
                      * Added variable-sized puzzle pieces to `jigsaw'.
                      * Changes to the defaults and command-line options of
                        many hacks to make the .xml files more consistent.
                      * Reap zombies in `glslideshow' and `carousel'.
                      * `sonar' works without setuid on OSX (dgram icmp).
                      * `xmatrix -mode pipe' displays the text of a subprocess.
                      * `endgame' has higher resolution chess-piece models.
                      * `webcollage' takes a -directory option to get images
                        from a local directory.
Changes since 4.23:   * New versions of `cube21', `glsnake', `celtic'.
                      * Backed out a DPMS-related patch that cause desktop
                        flickering with some X servers.
                      * Fixed startup crash in getgroups() when running setuid.
                      * Default to not displaying stderr on the saver window.
                      * Fixed bad free() in "Documentation" button.
                      * Don't try to run hacks that aren't installed.
                      * Minor fixes to various XML config files and man pages.
Changes since 4.22:   * New hacks, `glhanoi', `cube21', `timetunnel',
                        `juggler3d', and `celtic'.
                      * New versions of `tangram', `webcollage', `hypertorus',
                        `polytopes', and `ripples'.
                      * `sonar' is now quiet about unresolvable hosts.
                      * Minor corrections to BASIC code in `apple2'.
                      * Don't install `ant' by default, since there is some
                        Java tool of that name, which was causing confusion.
                        And also it's boring.
                      * Made screen grabbing work again on MacOS 10.4.2.
                      * No longer prints bogus warnings about ClientMessages
                        intended for the window manager.
                      * Ignore unprintable characters in passwd entry field.
                      * Fixed yet another cross-host-display image-loading
                        endian problem.
                      * `xscreensaver-command -watch' and `-time' now work
                        on 64-bit machines.
2006-07-18 18:40:36 +00:00

22 lines
597 B
Text

$NetBSD: patch-af,v 1.14 2006/07/18 18:40:36 wiz Exp $
Make the password dialogue banner display the netbsd PKGREVISION
number, if there was one.
--- driver/xscreensaver.c.orig 2006-05-17 23:35:54.000000000 +0000
+++ driver/xscreensaver.c
@@ -448,9 +448,13 @@ set_version_string (saver_info *si, int
*s = '_';
}
- si->version = (char *) malloc (5);
+ si->version = (char *) malloc (32);
memcpy (si->version, screensaver_id + 17, 4);
si->version [4] = 0;
+
+#if PKGREVISION > 0
+ (void)snprintf(si->version, 10, "%.4snb%d", screensaver_id + 17, PKGREVISION);
+#endif
}