Bug#949134: oasis3: FTBFS (Assigning non-zero to $[ is no longer possible at ../../protex/protex line 87.)

2020-01-20 Thread Alastair McKinstry

Hi,

I'm currently packaging the next major version of oasis3, and secondly 
my key has expired so I can't upload for a few weeks


(Also I'm very busy untl Feb 8).

I think it would be best to remove oasis3 from testing for the netcdf 
transition; it has no rdeps.


Kind regards

Alastair

On 19/01/2020 09:11, Sebastiaan Couwenberg wrote:

On 1/17/20 11:05 AM, Bas Couwenberg wrote:

In preparation of the netcdf-fortran transition as test rebuild of your package 
was done which FTBFS:

  make doc
  make[4]: Entering directory 
'/build/oasis3-3.mct+dfsg.121022/lib/mct/doc/texsrc'
  perl ../../protex/protex -b  m_Accumulator.F90 > m_Accumulator.tex
  Assigning non-zero to $[ is no longer possible at ../../protex/protex line 87.
  make[4]: *** [Makefile:27: m_Accumulator.tex] Error 255

It helps to update protex to a version that works with Perl 5.30 as per
the attached patch, but the package still FTBFS further on, see the
attached log.

Kind Regards,

Bas


--
Alastair McKinstry, email: alast...@sceal.ie, matrix: @alastair:sceal.ie, 
phone: 087-6847928
Green Party Councillor, Galway County Council



Bug#949134: oasis3: FTBFS (Assigning non-zero to $[ is no longer possible at ../../protex/protex line 87.)

2020-01-19 Thread Sebastiaan Couwenberg
On 1/17/20 11:05 AM, Bas Couwenberg wrote:
> In preparation of the netcdf-fortran transition as test rebuild of your 
> package was done which FTBFS:
> 
>  make doc
>  make[4]: Entering directory 
> '/build/oasis3-3.mct+dfsg.121022/lib/mct/doc/texsrc'
>  perl ../../protex/protex -b  m_Accumulator.F90 > m_Accumulator.tex
>  Assigning non-zero to $[ is no longer possible at ../../protex/protex line 
> 87.
>  make[4]: *** [Makefile:27: m_Accumulator.tex] Error 255

It helps to update protex to a version that works with Perl 5.30 as per
the attached patch, but the package still FTBFS further on, see the
attached log.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
diff -Nru oasis3-3.mct+dfsg.121022/debian/patches/protex.patch oasis3-3.mct+dfsg.121022/debian/patches/protex.patch
--- oasis3-3.mct+dfsg.121022/debian/patches/protex.patch	1970-01-01 01:00:00.0 +0100
+++ oasis3-3.mct+dfsg.121022/debian/patches/protex.patch	2020-01-19 09:43:34.0 +0100
@@ -0,0 +1,656 @@
+Description: Fix 'Assigning non-zero to $[ is no longer possible' error with Perl 5.30.
+Origin: https://sourceforge.net/p/elk/discussion/897822/thread/37afb1f97d/#4ecb
+
+--- a/lib/mct/protex/protex
 b/lib/mct/protex/protex
+@@ -1,4 +1,7 @@
+ #!/usr/bin/perl
++#
++#  $Id: protex,v 1.15 2004/06/03 23:49:46 eschwab Exp $
++#
+ #BOP
+ #
+ # !ROUTINE: ProTeX v. 2.00 - Translates DAO Prologues to LaTeX
+@@ -19,6 +22,7 @@
+ # \begin{tabular}{|c|l|} \hline \hline
+ #   -h   & Help mode: list command line options   \\ \hline
+ #   -b   & Bare mode, meaning no preamble, etc.  \\ \hline
++#   -i   & internal mode: omit prologues marked !BOPI  \\ \hline
+ #   +/-n & New Page for each subsection (wastes paper) \\ \hline
+ #   +/-l & Listing mode, default is prologues only \\ \hline
+ #   +/-s & Shut-up mode, i.e., ignore any code from BOC to EOC \\ \hline
+@@ -77,14 +81,18 @@
+ #   and hangcaption.
+ #  10May2000  C. Redder Revised LaTeX command "\label{sec:prologues}"
+ #   to "\label{app:ProLogues}"
+-#  24May2001  da Silva  Added !PARAMETERS/!REURN VALUE: keywords for CAM.
++#  10/10/2002 da Silva  Introduced ARGUMENTS keyword, touch ups.
++#
++#  15Jan2003  R. Staufer  Modified table of contents to print only section headers - no descriptions
++#
++#  25Feb2003  R. Staufer  Added BOPI/EOPI and -i (internal) switch to provide the option of omitting prologue information from output files.
+ #
+ #EOP
+ #
+ 
+ # Keep this if you don't know what it does...
+ # ---
+-  $[ = 1; # set array base to 1
++###  $[ = 1; # set array base to 1 (removed to maintain Perl 5.30 compatibility)
+   $, = ' ';   # set output field separator
+   $\ = "\n";  # set output record separator
+ 
+@@ -92,7 +100,7 @@
+ # ---
+   $GlobOptions = 'hb';# Global options (i.e for all files)
+   $LangOptions = 'ACFS';  # Options for setting programming languages
+-  $SwOptions   = 'flnsx'; # Options that can change for each input 
++  $SwOptions   = 'flinsx'; # Options that can change for each input 
+   #   file
+   $RegOptions  = "$GlobOptions$LangOptions";
+   # Scan for global options until first first
+@@ -112,7 +120,7 @@ Arg:
+ }#   end if
+ }# end foreach
+ 
+-# If all inut arguments are options, then assume the
++# If all input arguments are options, then assume the
+ # filename, "-", for the standard input
+ # --
+   if ( $NFiles == 0 ) { push (@ARGV, "-"); } 
+@@ -129,10 +137,13 @@ Arg:
+   @keys = ( "!INTERFACE:",
+ "!USES:",
+ "!PUBLIC TYPES:",
++"!PRIVATE TYPES:",
+ "!PUBLIC MEMBER FUNCTIONS:",
++"!PRIVATE MEMBER FUNCTIONS:",
+ "!PUBLIC DATA MEMBERS:",
+-"!DEFINED PARAMETERS:",
+ "!PARAMETERS:",
++"!ARGUMENTS:",
++"!DEFINED PARAMETERS:",
+ "!INPUT PARAMETERS:",
+ "!INPUT/OUTPUT PARAMETERS:",
+ "!OUTPUT PARAMETERS:",
+@@ -188,8 +199,12 @@ ARG:
+ $eoi_string = '!EOI';
+ $bop_string = '!BOP';
+ $eop_string = '!EOP';
++$bopi_string = '!BOPI';
++$eopi_string = '!EOPI';
+ $boc_string = '!BOC';
+ $eoc_string = '!EOC';
++$boe_string = '!BOE';
++$eoe_string = '!EOE';
+ #}#   end if
+ 
+  if ( $opt_A ) {# ADA
+@@ -198,8 +213,12 @@ ARG:
+ $eoi_string = '--EOI';
+ $bop_string = '--BOP';
+ $eop_string = '--EOP';
++$bopi_string = '--BOPI';
++$eopi_string = '--EOPI';
+ $boc_string = '--BOC';
+ $eoc_string = '--EOC';
++$boe_string = '--BOE';
++$eoe_string = '--EOE';
+ 

Bug#949134: oasis3: FTBFS (Assigning non-zero to $[ is no longer possible at ../../protex/protex line 87.)

2020-01-17 Thread Bas Couwenberg
Source: oasis3
Version: 3.mct+dfsg.121022-13
Severity: serious
Tags: ftbfs
Justification: makes the package in question unusable or mostly so

Dear Maintainer,

In preparation of the netcdf-fortran transition as test rebuild of your package 
was done which FTBFS:

 make doc
 make[4]: Entering directory 
'/build/oasis3-3.mct+dfsg.121022/lib/mct/doc/texsrc'
 perl ../../protex/protex -b  m_Accumulator.F90 > m_Accumulator.tex
 Assigning non-zero to $[ is no longer possible at ../../protex/protex line 87.
 make[4]: *** [Makefile:27: m_Accumulator.tex] Error 255

Kind Regards,

Bas