mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-17 19:39:43 +00:00
ports-mgmt/portlint: Update to 2.22.3
Only do LDCONFIG checks if USE_LDCONFIG is defined. Submitted by: Tatsuki Makino <tatsuki_makino@hotmail.com>
This commit is contained in:
parent
6d04fa18da
commit
de45de2513
@ -1,5 +1,5 @@
|
||||
PORTNAME= portlint
|
||||
PORTVERSION= 2.22.2
|
||||
PORTVERSION= 2.22.3
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -52,7 +52,7 @@ $portdir = '.';
|
||||
# version variables
|
||||
my $major = 2;
|
||||
my $minor = 22;
|
||||
my $micro = 2;
|
||||
my $micro = 3;
|
||||
|
||||
# default setting - for FreeBSD
|
||||
my $portsdir = '/usr/ports';
|
||||
@ -914,12 +914,14 @@ sub checkplist {
|
||||
&perror("WARN", $file, -1, "There are only $item_count items in the plist. Consider using PLIST_FILES instead of pkg-plist when installing less than $numpitems items.");
|
||||
}
|
||||
|
||||
if ($makevar{USE_LDCONFIG} ne "$makevar{PREFIX}/lib" && !$found_so) {
|
||||
&perror("WARN", $file, -1, "You have defined USE_LDCONFIG, but this ".
|
||||
"port does not install any shared objects.");
|
||||
} elsif ($makevar{USE_LDCONFIG} eq "$makevar{PREFIX}/lib" && !$found_prefix_so) {
|
||||
&perror("WARN", $file, -1, "You have defined USE_LDCONFIG, but this ".
|
||||
"port does not install any shared objects into \${PREFIX}/lib.");
|
||||
if ($makevar{USE_LDCONFIG}) {
|
||||
if ($makevar{USE_LDCONFIG} && $makevar{USE_LDCONFIG} ne "$makevar{PREFIX}/lib" && !$found_so) {
|
||||
&perror("WARN", $file, -1, "You have defined USE_LDCONFIG, but this ".
|
||||
"port does not install any shared objects.");
|
||||
} elsif ($makevar{USE_LDCONFIG} eq "$makevar{PREFIX}/lib" && !$found_prefix_so) {
|
||||
&perror("WARN", $file, -1, "You have defined USE_LDCONFIG, but this ".
|
||||
"port does not install any shared objects into \${PREFIX}/lib.");
|
||||
}
|
||||
}
|
||||
|
||||
close(IN);
|
||||
|
Loading…
Reference in New Issue
Block a user