Unset any predefined LD_PRELOAD before executing npviewer.bin (emul conflict). This makes flash work in firefox run with a rumphijack tcp/ip stack. ok abs (maintainer)diff -r1.23 -r1.24 pkgsrc/www/nspluginwrapper/Makefile
(pooka)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.23 2011/01/13 13:39:40 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.24 2011/01/20 13:06:15 pooka Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= nspluginwrapper-1.2.2 | 4 | DISTNAME= nspluginwrapper-1.2.2 | |
5 | PKGREVISION= 7 | 5 | PKGREVISION= 8 | |
6 | CATEGORIES= www | 6 | CATEGORIES= www | |
7 | MASTER_SITES= http://gwenole.beauchesne.info/projects/nspluginwrapper/files/ | 7 | MASTER_SITES= http://gwenole.beauchesne.info/projects/nspluginwrapper/files/ | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME:S/-/-i386-/}-1.x86_64.rpm | 9 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME:S/-/-i386-/}-1.x86_64.rpm | |
10 | 10 | |||
11 | MAINTAINER= abs@NetBSD.org | 11 | MAINTAINER= abs@NetBSD.org | |
12 | HOMEPAGE= http://gwenole.beauchesne.info/projects/nspluginwrapper/ | 12 | HOMEPAGE= http://gwenole.beauchesne.info/projects/nspluginwrapper/ | |
13 | COMMENT= Use Netscape compatible plugins from other platforms | 13 | COMMENT= Use Netscape compatible plugins from other platforms | |
14 | LICENSE= gnu-gpl-v2 | 14 | LICENSE= gnu-gpl-v2 | |
15 | 15 | |||
16 | EMUL_PLATFORMS= linux-i386 | 16 | EMUL_PLATFORMS= linux-i386 | |
17 | EMUL_MODULES.linux= base gtk2 x11 | 17 | EMUL_MODULES.linux= base gtk2 x11 | |
18 | NOT_FOR_PLATFORM= Linux-*-* | 18 | NOT_FOR_PLATFORM= Linux-*-* |
@@ -1,10 +1,11 @@ | @@ -1,10 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.8 2009/09/16 10:16:58 abs Exp $ | 1 | $NetBSD: distinfo,v 1.9 2011/01/20 13:06:15 pooka Exp $ | |
2 | 2 | |||
3 | SHA1 (nspluginwrapper-1.2.2.tar.bz2) = be581c39dcc1a8d9a5b3f81e4650f553a30cf249 | 3 | SHA1 (nspluginwrapper-1.2.2.tar.bz2) = be581c39dcc1a8d9a5b3f81e4650f553a30cf249 | |
4 | RMD160 (nspluginwrapper-1.2.2.tar.bz2) = d5aa265966f87c51bb9ea4f2a079a87b74fdcbf3 | 4 | RMD160 (nspluginwrapper-1.2.2.tar.bz2) = d5aa265966f87c51bb9ea4f2a079a87b74fdcbf3 | |
5 | Size (nspluginwrapper-1.2.2.tar.bz2) = 327947 bytes | 5 | Size (nspluginwrapper-1.2.2.tar.bz2) = 327947 bytes | |
6 | SHA1 (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 0d49757623c62da52292e48a0173024c14aa12cd | 6 | SHA1 (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 0d49757623c62da52292e48a0173024c14aa12cd | |
7 | RMD160 (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 9cf3e6ac3e5171c2bbda71c082b6b9fc30d69a84 | 7 | RMD160 (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 9cf3e6ac3e5171c2bbda71c082b6b9fc30d69a84 | |
8 | Size (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 69425 bytes | 8 | Size (nspluginwrapper-i386-1.2.2-1.x86_64.rpm) = 69425 bytes | |
9 | SHA1 (patch-aa) = 28f9e18e519337852cb47d04ed0c1cea76b3416d | 9 | SHA1 (patch-aa) = 28f9e18e519337852cb47d04ed0c1cea76b3416d | |
10 | SHA1 (patch-ab) = 20dc1b6ff4036a0946dd469860eb9b6c129fdb7a | 10 | SHA1 (patch-ab) = 20dc1b6ff4036a0946dd469860eb9b6c129fdb7a | |
11 | SHA1 (patch-ac) = b42a1241abcbfc9344c810797785222cd79681ac |
$NetBSD: patch-ac,v 1.3 2011/01/20 13:06:15 pooka Exp $
--- src/npw-viewer.sh.orig 2008-12-14 12:24:19.000000000 +0100
+++ src/npw-viewer.sh 2011-01-19 12:20:26.000000000 +0100
@@ -40,6 +40,13 @@
;;
esac
+case $OS in
+FreeBSD|NetBSD)
+ # preset LD_PRELOAD is most likely for the native emul
+ unset LD_PRELOAD
+ ;;
+esac
+
if test "$ARCH" != "$TARGET_ARCH"; then
case $TARGET_ARCH in
i386)