This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix modern metalint nits 10/head
authorNiko Tyni <ntyni@debian.org>
Fri, 13 Oct 2017 09:23:19 +0000 (12:23 +0300)
committerAaron Crane <arc@cpan.org>
Sat, 4 Nov 2017 13:55:50 +0000 (13:55 +0000)
These are detected by metalint since SVN r132 /
 https://github.com/rmanfredi/dist/commit/8160f5523cbbb37197732ea645d02f884e180f3c

with
 "d_statfs3.U": unknown private file 'try.h'.
 "d_statfs4.U": unknown private file 'try.h'.
 "d_union_semun.U": unknown private file 'tryh.h'.
 "dtraceobject.U": unknown private file 'perldtrace.h'.

Even though $rm_try removes try.[cho] anyway, we clean try.h
explicitly to work around the resulting
 "U/perl/d_statfs4.U": unused temporary file 'try.h'.
warnings which seem like a bug in metalint.

U/modified/d_union_semun.U
U/perl/d_statfs3.U
U/perl/d_statfs4.U
U/perl/dtraceobject.U

index a916332..55f224f 100644 (file)
@@ -45,7 +45,7 @@
 ?H:#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS     /**/
 ?H:.
 ?T:xxx also
-?F:!try
+?F:!try !tryh.h
 ?LINT: set d_union_semun d_semctl_semun d_semctl_semid_ds
 : see whether sys/sem.h defines union semun
 echo " "
index 1f9f6bc..c6032ad 100644 (file)
@@ -19,6 +19,7 @@
 ?C:.
 ?H:#$d_statfs3 HAS_STATFS3             /**/
 ?H:.
+?F: !try.h
 ?LINT:set d_statfs3
 : Check for statfs3
 case "$d_statfs" in
@@ -59,7 +60,7 @@ EOCP
        case "$val" in
        $define) echo "Yes, it can."  ;;
        $undef)  echo "No, it can't." ;;
-       $rm_try
+       $rm_try try.h
        esac
        ;;
 *)     val="$undef"
index 9589ad1..e1e39d3 100644 (file)
@@ -19,6 +19,7 @@
 ?C:.
 ?H:#$d_statfs4 HAS_STATFS4             /**/
 ?H:.
+?F: !try.h
 ?LINT:set d_statfs4
 : Check for statfs4
 case "$d_statfs" in
@@ -60,7 +61,7 @@ EOCP
        $define) echo "Yes, it can."  ;;
        $undef)  echo "No, it can't." ;;
        esac
-       $rm_try
+       $rm_try try.h
        ;;
 *)     val="$undef"
        ;;
index 8bbbb36..532ebfa 100644 (file)
@@ -14,6 +14,7 @@
 ?S:    and dtrace -G with -xnolibs to allow dtrace to run in a jail on
 ?S:    FreeBSD.
 ?S:.
+?F: !perldtrace.h
 ?T:xnolibs
 : Probe whether dtrace builds an object, as newer Illumos requires an input
 : object file that uses at least one of the probes defined in the .d file