#903424 sql-ledger: Errors from locale/*/locale.pl scripts: "'.' is no longer in @INC"

#903424#5
Date:
2018-07-09 19:08:07 UTC
From:
To:
While attempting to verify if an old bug [1] is still present with the
new sql-ledger upstream version, I found that multiple errors like the
following result when attempting to run a 'locale/*/locale.pl' script
under Perl 5.26 in one of the (currently, 42) locale/*
sub-directories:

do "admin" failed, '.' is no longer in @INC; did you mean do
"./admin"? at ./locales.pl line 303.
do "pw" failed, '.' is no longer in @INC; did you mean do "./pw"? at
./locales.pl line 303, <GEN0> line 33.

This is similar to a bug found in the main application scripts [2]
that has already been resolved but these scripts are not used
operationally., only when working specifically on the locale/* files.

#903424#10
Date:
2026-05-27 18:49:21 UTC
From:
To:
Dear Robert,

thanks for pointing out this bug.

The original developer of SQL Ledger, Dieter Simader, has passed away a few years ago and development of „SQL Ledger“ is now being carried on by the SQL Ledger Community.

The original project website sql-ledger.com is still active and online and the issue is also being mentioned in the FAQ:


BEGIN {
push @INC, '.';
}
—
I eventually could work around this issue by modifying the .pl files with a script
---
#!/bin/bash
# Insert missing lines to all *pl files

for i in `ls *.pl`
do
echo "Modifying the file: $i"

string="BEGIN {\n push @INC, '.';\n}"

sed "2i$string" $i -i
done
—

My results are being published on my own repository on github.com <http://github.com/> which is at:

https://github.com/tapwag/ledgerplus/

but doesn’t contain the latest version 3.2.12 of SQL Ledger.

As upstream didn’t use github.com <http://github.com/> development by the remaining community now takes place at:

https://github.com/ISLNA/sql-ledger

but apparently this issue with the @INC-Path is not fixed there and I do not know if this issue aligns with Debian’s Perl Policies.

Have a great day,


Maik „tapwag“ Wagner, Wernigerode (Germany)
www.linuxandlanguages.com <http://www.linuxandlanguages.com/>