openbsd-ports/editors/openoffice/patches/patch-solenv_bin_mapgen_pl
kurt 94f8549435 Fix debug FLAVOR so it builds and installs binaries with symbols:
- add -dontstrip to packaging script to get useful debug binaries
installed
- remove --enable-debug since that makes the debug build too big (>18G)
for me to build. Add back later as a possible verbose_debug flavor.

Use PATCHORIG so that update-patches doesn't pickup internal .orig files.
Idea from espie@

Add a mutex to make the call to getpwuid thread safe.
2006-08-20 03:36:52 +00:00

14 lines
804 B
Plaintext

$OpenBSD: patch-solenv_bin_mapgen_pl,v 1.2 2006/08/20 03:36:53 kurt Exp $
--- solenv/bin/mapgen.pl.orig.port Wed Sep 7 18:10:44 2005
+++ solenv/bin/mapgen.pl Fri Aug 18 15:47:45 2006
@@ -143,7 +143,8 @@ sub filter_symbols {
$env_section = '1' and next if ((/^# SOLARIS #$/) && ($ENV{OS} eq 'SOLARIS'));
$env_section = '1' and next if ((/^# LINUX #$/) && ($ENV{OS} eq 'LINUX'));
$env_section = '1' and next if ((/^# FREEBSD #$/) && ($ENV{OS} eq 'FREEBSD'));
- last if ($env_section && ((/^# SOLARIS #$/) || (/^# FREEBSD #$/) || (/^# LINUX #$/)));
+ $env_section = '1' and next if ((/^# OPENBSD #$/) && ($ENV{OS} eq 'OPENBSD'));
+ last if ($env_section && ((/^# SOLARIS #$/) || (/^# FREEBSD #$/) || (/^# OPENBSD #$/) || (/^# LINUX #$/)));
next if (!$_ || /^#/);
push(@filters, $_);
};