This file has a backslash-escaped trailing space after the login prompt string, which I assume is there on purpose. Unfortunately, it seems that when run through modern gcc's cpp, as at least Dragonfly's current X resources processing pipeline apparently does, cpp treats this as backslash-newline and splices on the next line, which causes everything to go wahooni-shaped. As a hack/workaround, insert a blank line after this line, so if the next line does get spliced on it won't break things. Reported by Artem Falcon.diff -r1.24 -r1.25 pkgsrc/x11/xdm3d/Makefile
(dholland)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.24 2011/12/20 05:00:58 dholland Exp $ | 1 | # $NetBSD: Makefile,v 1.25 2012/01/08 00:33:34 dholland Exp $ | |
2 | 2 | |||
3 | DISTNAME= xdm3d-1.0 | 3 | DISTNAME= xdm3d-1.0 | |
4 | PKGREVISION= 4 | 4 | PKGREVISION= 5 | |
5 | CATEGORIES= x11 | 5 | CATEGORIES= x11 | |
6 | MASTER_SITES= ${MASTER_SITE_LOCAL} | 6 | MASTER_SITES= ${MASTER_SITE_LOCAL} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.hijinks.com/~spade/linux/XBanner/ | 9 | HOMEPAGE= http://www.hijinks.com/~spade/linux/XBanner/ | |
10 | COMMENT= Replacement for xdm with 3D effects | 10 | COMMENT= Replacement for xdm with 3D effects | |
11 | 11 | |||
12 | WRKSRC= ${WRKDIR}/xdm | 12 | WRKSRC= ${WRKDIR}/xdm | |
13 | NO_INSTALL_MANPAGES= yes | 13 | NO_INSTALL_MANPAGES= yes | |
14 | USE_IMAKE= yes | 14 | USE_IMAKE= yes | |
15 | 15 | |||
16 | PLIST_SRC= ${WRKDIR}/PLIST-src | 16 | PLIST_SRC= ${WRKDIR}/PLIST-src | |
17 | INSTALLATION_DIRS= bin | 17 | INSTALLATION_DIRS= bin |
@@ -1,11 +1,12 @@ | @@ -1,11 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.8 2011/12/13 04:40:31 dholland Exp $ | 1 | $NetBSD: distinfo,v 1.9 2012/01/08 00:33:34 dholland Exp $ | |
2 | 2 | |||
3 | SHA1 (xdm3d-1.0.tar.gz) = 494a33aefee0c1545331b657bf47b90634b69648 | 3 | SHA1 (xdm3d-1.0.tar.gz) = 494a33aefee0c1545331b657bf47b90634b69648 | |
4 | RMD160 (xdm3d-1.0.tar.gz) = 6a60c3afaf0756fc2c04256a79c61d413ee1a473 | 4 | RMD160 (xdm3d-1.0.tar.gz) = 6a60c3afaf0756fc2c04256a79c61d413ee1a473 | |
5 | Size (xdm3d-1.0.tar.gz) = 157858 bytes | 5 | Size (xdm3d-1.0.tar.gz) = 157858 bytes | |
6 | SHA1 (patch-Xresources_3D) = db96d677d89ee86bad76785ac2bd254d902a0876 | |||
6 | SHA1 (patch-aa) = 4a86a37ad238e502352346fa86090b7578d862ee | 7 | SHA1 (patch-aa) = 4a86a37ad238e502352346fa86090b7578d862ee | |
7 | SHA1 (patch-ab) = 512f3df37f5480203c99198760fe98e2e127ae15 | 8 | SHA1 (patch-ab) = 512f3df37f5480203c99198760fe98e2e127ae15 | |
8 | SHA1 (patch-ac) = 9ea05506db86d181d9826f5c668899b7e760a8aa | 9 | SHA1 (patch-ac) = 9ea05506db86d181d9826f5c668899b7e760a8aa | |
9 | SHA1 (patch-ad) = 99285953811fe2e67acc99b74d9f5a685c5eb978 | 10 | SHA1 (patch-ad) = 99285953811fe2e67acc99b74d9f5a685c5eb978 | |
10 | SHA1 (patch-rpcauth_c) = 39e849564f5027cf0e5d5116c873ca88da92462e | 11 | SHA1 (patch-rpcauth_c) = 39e849564f5027cf0e5d5116c873ca88da92462e | |
11 | SHA1 (patch-session_c) = fec5f1438210fbba8586bcd62391ab17d8b4a743 | 12 | SHA1 (patch-session_c) = fec5f1438210fbba8586bcd62391ab17d8b4a743 |
$NetBSD: patch-Xresources_3D,v 1.1 2012/01/08 00:33:34 dholland Exp $
Apparently at least one X resources processing chain treats the
backslash-space-newline sequence below as just backslash-newline,
which makes a mess. Insert a blank line to mitigate the effect.
Arguably this shouldn't be using backslash-space, but presumably it
wants a space after the login prompt and without the backslash there's
probably something else that will fail or drop it.
This hack should at least be harmless.
--- Xresources.3D~ 1998-08-18 09:17:37.000000000 +0000
+++ Xresources.3D
@@ -6,6 +6,7 @@ xlogin*login.translations: #override\
<Key>Return: set-session-argument() finish-field()
xlogin*greeting: CLIENTHOST
xlogin*namePrompt: login:\
+
xlogin*fail: Login incorrect
xlogin*y: 380
#ifdef COLOR