- Fix checksetup issue if p5-version>=0.92 is installed (which is in current ports tree)

See https://bugzilla.mozilla.org/show_bug.cgi?id=678772

PR:		ports/159823
Submitted by:	ohauer
Approved by:	skv (per mail)
Obtained from:	https://bugzilla.mozilla.org/attachment.cgi?id=552915&action=diff
This commit is contained in:
Olli Hauer 2011-08-27 10:18:44 +00:00
parent d91f5feda8
commit ba1a02e4d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280567
3 changed files with 16 additions and 1 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= bugzilla
PORTVERSION= 4.0.2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= webtools webtools/archived

View file

@ -0,0 +1,14 @@
--- ./Bugzilla/Install/Requirements.pm.orig 2011-08-05 04:25:35.000000000 +0200
+++ ./Bugzilla/Install/Requirements.pm 2011-08-16 08:55:28.000000000 +0200
@@ -698,8 +698,9 @@
# show "ok" or "not found".
if (exists $params->{found}) {
my $found_string;
- # We do a string compare in case it's non-numeric.
- if ($found and $found eq "-1") {
+ # We do a string compare in case it's non-numeric. We make sure
+ # it's not a version object as negative versions are forbidden.
+ if ($found && !ref($found) && $found eq '-1') {
$found_string = install_string('module_not_found');
}
elsif ($found) {

View file

@ -970,7 +970,7 @@
@dirrmtry %%WWWDIR%%/js/yui/assets
@dirrmtry %%WWWDIR%%/js/yui/animation
@dirrmtry %%WWWDIR%%/js/yui
@dirrm %%WWWDIR%%/js
@dirrmtry %%WWWDIR%%/js
@dirrm %%WWWDIR%%/images
%%CONTRIB%%@dirrm %%WWWDIR%%/contrib/cmdline
%%CONTRIB%%@dirrm %%WWWDIR%%/contrib/bugzilla-submit