diff options
author | marcus <marcus@FreeBSD.org> | 2004-08-16 00:27:51 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-08-16 00:27:51 +0800 |
commit | c371e0da8e3c02ebfc4a1b27cce8bec6c2e16603 (patch) | |
tree | 0a4a1f626bc612ee79131dfaa4e9d269dd194251 /sysutils/gnome-system-tools | |
parent | e214ac632b57a9eeeb70e43ed596bdb3c896544c (diff) | |
download | freebsd-ports-gnome-c371e0da8e3c02ebfc4a1b27cce8bec6c2e16603.tar.gz freebsd-ports-gnome-c371e0da8e3c02ebfc4a1b27cce8bec6c2e16603.tar.zst freebsd-ports-gnome-c371e0da8e3c02ebfc4a1b27cce8bec6c2e16603.zip |
Fix a conditional module load that was broken on Perl < 5.8. This caused
all g-s-t modules to report that the root password was bad when, in fact,
it may have been fine.
Diffstat (limited to 'sysutils/gnome-system-tools')
-rw-r--r-- | sysutils/gnome-system-tools/Makefile | 1 | ||||
-rw-r--r-- | sysutils/gnome-system-tools/files/patch-backends_xml.pl.in | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/gnome-system-tools/Makefile b/sysutils/gnome-system-tools/Makefile index cee3df8a5fba..6d3799d618fc 100644 --- a/sysutils/gnome-system-tools/Makefile +++ b/sysutils/gnome-system-tools/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomesystemtools PORTVERSION= 0.90.0 +PORTREVISION= 1 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-system-tools/0.90 diff --git a/sysutils/gnome-system-tools/files/patch-backends_xml.pl.in b/sysutils/gnome-system-tools/files/patch-backends_xml.pl.in new file mode 100644 index 000000000000..7edd3edb1608 --- /dev/null +++ b/sysutils/gnome-system-tools/files/patch-backends_xml.pl.in @@ -0,0 +1,19 @@ +--- backends/xml.pl.in.orig Sun Aug 15 12:24:15 2004 ++++ backends/xml.pl.in Sun Aug 15 12:24:58 2004 +@@ -37,12 +37,10 @@ + + use Text::ParseWords; + +-eval "use Encode"; +-$has_encode = ($@ eq ""); +- +-if ($has_encode) +-{ +- use Encode; ++$has_encode = 0; ++if (eval "require Encode") { ++ Encode->import( ); ++ $has_encode = 1; + } + + # --- XML print formatting --- # |