Pagina 1 di 1

[RISOLTO] problema perl-test-warn

Inviato: mar 27 ott 2020, 10:15
da shellx
Salve, ho un problema con l'installazione di alcune dipendenze e spero di trovare soluzione grazie alla vostra esperienza in slackware, premetto che la versione che utilizzo è la 14.2 64bit (no current):

dovrei installare monitorix nel mio sistema, dal sito SBo ho scaricato ed installato tutte le sue dipendenze e le sottodipendenze di quest'ultime.
Il problema sorge quando arrivo alla dipendenza perl-http-server-simple, questa ha bisogno della dipendenza perl-CGI, che a sua volta ha bisogno di altre dipendenze (tutte installate) tra cui perl-test-warn (questa da problemi).
perl-http-server-simple si complilerebbe e installarebbe anche senza le sue dipendenze, ma non avrebbe senso in quanto monitorix utilizza la struttura CGI per la gestione html, ergo è indispensabile installare perl-CGI. Come dicevo prima quest'ultima restitusice errore di compilazione perchè appunto ha bisogno di perl-test-warn, ma questa non ne vuole sapere di compilarsi, dandomi anch'essa errore di compilazione, questa ha però anch'essa una sua dipendenza chiamata perl-Sub-Uplevel, che ho scaricato compilato ed installato senza errori, ergo escludo errori dovuti a mancanza di dipendenze per perl-test-warn.
Riepilogo: monitorix -> perl-http-server-simple -> perl-CGI -> perl-test-warn -> perl-Sub-Uplevel

Di seguito incollo il processo di compilazione fino all'output dell'errore di perl-test-warn

Codice: Seleziona tutto

# ./perl-test-warn.SlackBuild 
Test-Warn-0.36/
Test-Warn-0.36/MANIFEST
Test-Warn-0.36/Warn.pm
Test-Warn-0.36/Changes
Test-Warn-0.36/META.yml
Test-Warn-0.36/README
Test-Warn-0.36/Makefile.PL
Test-Warn-0.36/META.json
Test-Warn-0.36/t/
Test-Warn-0.36/t/warning_is.t
Test-Warn-0.36/t/warnings_like.t
Test-Warn-0.36/t/warnings_exist.t
Test-Warn-0.36/t/1.t
Test-Warn-0.36/t/carped.t
Test-Warn-0.36/t/warnings_exist1.pl
Test-Warn-0.36/t/warnings_are.t
Test-Warn-0.36/t/warning_like.t
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::Warn
Writing MYMETA.yml and MYMETA.json
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
cp Warn.pm blib/lib/Test/Warn.pm
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Manifying 1 pod document
PERL_DL_NONLAZY=1 "/usr/bin/perl5.22.2" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/1.t ............... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/1.t ............... ok   
t/carped.t .......... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/carped.t .......... ok   
t/warning_is.t ...... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warning_is.t ...... ok     
t/warning_like.t .... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warning_like.t .... ok     
t/warnings_are.t .... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warnings_are.t .... ok       
t/warnings_exist.t .. perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warnings_exist.t .. 1/? 
#   Failed test at t/warnings_exist.t line 36.
#          got: 'perl: warning: Setting locale failed.'
#     expected: 'warn_2 at t/warnings_exist1.pl line 12.'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'perl: warning: Please check that your locale settings:'
#     expected: 'ok 1'

#   Failed test at t/warnings_exist.t line 36.
#          got: '	LANGUAGE = (unset),'
#     expected: 'ok 2'

#   Failed test at t/warnings_exist.t line 36.
#          got: '	LC_ALL = (unset),'
#     expected: 'warn_2 at t/warnings_exist1.pl line 21.'

#   Failed test at t/warnings_exist.t line 36.
#          got: '	LC_COLLATE = "C",'
#     expected: 'not ok 3'

#   Failed test at t/warnings_exist.t line 36.
#          got: '	LANG = "en_US.UFT-8"'
#     expected: 'warn_2 at t/warnings_exist1.pl line 27.'

#   Failed test at t/warnings_exist.t line 36.
#          got: '    are supported and installed on your system.'
#     expected: 'ok 4'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'perl: warning: Falling back to the standard locale ("C").'
#     expected: 'warn_2 at t/warnings_exist1.pl line 31.'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'warn_2 at t/warnings_exist1.pl line 12.'
#     expected: 'not ok 5'

#   Failed test at t/warnings_exist.t line 33.
#                   'ok 1'
#     doesn't match '(?^:^Use of uninitialized value (?:\$a\s+)?in addition \(\+\) at t\/warnings_exist1\.pl line 36\.$)'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'ok 2'
#     expected: 'ok 6'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'warn_2 at t/warnings_exist1.pl line 21.'
#     expected: '1..6'
# Looks like you failed 12 tests of 12.
t/warnings_exist.t .. Dubious, test returned 12 (wstat 3072, 0xc00)
Failed 12/12 subtests 
t/warnings_like.t ... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warnings_like.t ... ok       

Test Summary Report
-------------------
t/warnings_exist.t (Wstat: 3072 Tests: 12 Failed: 12)
  Failed tests:  1-12
  Non-zero exit status: 12
Files=7, Tests=841, 20 wallclock secs ( 0.95 usr  0.07 sys + 18.55 cusr  0.20 csys = 19.77 CPU)
Result: FAIL
Failed 1/7 test programs. 12/841 subtests failed.
Makefile:883: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
Attendo un vostro gentile supporto. Grazie anticipate.

Re: problema perl-test-warn

Inviato: mar 27 ott 2020, 11:02
da ponce
forse e' sufficiente sistemare le tue impostazioni di localizzazione: non esiste la locale "en_US.UFT-8" mentre c'e' "en_US.UTF-8".

Re: problema perl-test-warn

Inviato: mar 27 ott 2020, 12:44
da shellx
Ti ringrazio intanto per la tua tempestiva risposta. Avevo immaginato che si trattasse di questo, ed è un problema che ho sempre avuto in questa slackware e che mi ha causato altre noie in altri scenari, tuttavia a causa della mia ignoranza in ciò non ho mai capito bene come si procede per rettificare questa cosa.
Tempo fa cercai di farlo, editando un file di configurazione passandolo da US a IT (non ricordo bene), e se non erro fu proprio da questo forum (e forse anche direttamente da te) a ricevere consigli su cio, ma nonostante l'intervento (molto probabilmente incompleto o errato) il problema rimase.

Potresti gentilmente guidarmi come procedere, magari fornendomi direttamente il/i comandi per sistemare questa localizzazione ? Ritento nella cosa, perchè mi necessita assolutamente monitorix su questa macchina.

Ti ringrazio ancora...

Re: problema perl-test-warn

Inviato: mar 27 ott 2020, 13:47
da shellx
Ho risolto da solo per quanto riguarda il locale:
1) ho editato il file /etc/profile.d/lang.sh mettendo export LANG=it_IT.UTF-8 e commentando en_US.UTF-8.
2) ho rinominato il file /etc/localtime in "localtime_backup" e copiato il file Rome (nominandolo localtime in /etc:

Codice: Seleziona tutto

cp /usr/share/zoneinfo/Europe/Rome /etc/localtime
3) reboot

Adesso

Codice: Seleziona tutto

shellx ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=it_IT.UFT-8
LC_CTYPE="it_IT.UFT-8"
LC_NUMERIC="it_IT.UFT-8"
LC_TIME="it_IT.UFT-8"
LC_COLLATE=C
LC_MONETARY="it_IT.UFT-8"
LC_MESSAGES="it_IT.UFT-8"
LC_PAPER="it_IT.UFT-8"
LC_NAME="it_IT.UFT-8"
LC_ADDRESS="it_IT.UFT-8"
LC_TELEPHONE="it_IT.UFT-8"
LC_MEASUREMENT="it_IT.UFT-8"
LC_IDENTIFICATION="it_IT.UFT-8"
LC_ALL=
Adesso provo a rilanciare la compilazione di quella famosa dipendenza, vediamo se il problema era la localizzazione. Vi riaggiorno tra un po...

Re: problema perl-test-warn

Inviato: mar 27 ott 2020, 13:58
da shellx
Nonostante abbia cambiato da en_US.UTF-8 a it_IT.UTF-8, il problema nell'errore di compilazione non si è risolto:

Codice: Seleziona tutto

# ./perl-test-warn.SlackBuild 
Test-Warn-0.36/
Test-Warn-0.36/MANIFEST
Test-Warn-0.36/Warn.pm
Test-Warn-0.36/Changes
Test-Warn-0.36/META.yml
Test-Warn-0.36/README
Test-Warn-0.36/Makefile.PL
Test-Warn-0.36/META.json
Test-Warn-0.36/t/
Test-Warn-0.36/t/warning_is.t
Test-Warn-0.36/t/warnings_like.t
Test-Warn-0.36/t/warnings_exist.t
Test-Warn-0.36/t/1.t
Test-Warn-0.36/t/carped.t
Test-Warn-0.36/t/warnings_exist1.pl
Test-Warn-0.36/t/warnings_are.t
Test-Warn-0.36/t/warning_like.t
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::Warn
Writing MYMETA.yml and MYMETA.json
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
cp Warn.pm blib/lib/Test/Warn.pm
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Manifying 1 pod document
PERL_DL_NONLAZY=1 "/usr/bin/perl5.22.2" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/1.t ............... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/1.t ............... ok   
t/carped.t .......... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/carped.t .......... ok   
t/warning_is.t ...... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warning_is.t ...... ok     
t/warning_like.t .... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warning_like.t .... ok     
t/warnings_are.t .... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warnings_are.t .... ok       
t/warnings_exist.t .. perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warnings_exist.t .. 1/? 
#   Failed test at t/warnings_exist.t line 36.
#          got: 'perl: warning: Setting locale failed.'
#     expected: 'warn_2 at t/warnings_exist1.pl line 12.'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'perl: warning: Please check that your locale settings:'
#     expected: 'ok 1'

#   Failed test at t/warnings_exist.t line 36.
#          got: '	LANGUAGE = (unset),'
#     expected: 'ok 2'

#   Failed test at t/warnings_exist.t line 36.
#          got: '	LC_ALL = (unset),'
#     expected: 'warn_2 at t/warnings_exist1.pl line 21.'

#   Failed test at t/warnings_exist.t line 36.
#          got: '	LC_COLLATE = "C",'
#     expected: 'not ok 3'

#   Failed test at t/warnings_exist.t line 36.
#          got: '	LANG = "it_IT.UFT-8"'
#     expected: 'warn_2 at t/warnings_exist1.pl line 27.'

#   Failed test at t/warnings_exist.t line 36.
#          got: '    are supported and installed on your system.'
#     expected: 'ok 4'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'perl: warning: Falling back to the standard locale ("C").'
#     expected: 'warn_2 at t/warnings_exist1.pl line 31.'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'warn_2 at t/warnings_exist1.pl line 12.'
#     expected: 'not ok 5'

#   Failed test at t/warnings_exist.t line 33.
#                   'ok 1'
#     doesn't match '(?^:^Use of uninitialized value (?:\$a\s+)?in addition \(\+\) at t\/warnings_exist1\.pl line 36\.$)'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'ok 2'
#     expected: 'ok 6'

#   Failed test at t/warnings_exist.t line 36.
#          got: 'warn_2 at t/warnings_exist1.pl line 21.'
#     expected: '1..6'
# Looks like you failed 12 tests of 12.
t/warnings_exist.t .. Dubious, test returned 12 (wstat 3072, 0xc00)
Failed 12/12 subtests 
t/warnings_like.t ... perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "it_IT.UFT-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/warnings_like.t ... ok       

Test Summary Report
-------------------
t/warnings_exist.t (Wstat: 3072 Tests: 12 Failed: 12)
  Failed tests:  1-12
  Non-zero exit status: 12
Files=7, Tests=841, 20 wallclock secs ( 0.92 usr  0.08 sys + 18.62 cusr  0.19 csys = 19.81 CPU)
Result: FAIL
Failed 1/7 test programs. 12/841 subtests failed.
Makefile:883: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
Come si puo notare adesso dopo i Warning da riferimento a it_IT.UFT-8 mentre prima a en_US.UTF-8. Ergo la localizzazione è cambiata, ma forse il problema non è dovuto da quella. O forse ho capito male io il consiglio/problema ?

Re: problema perl-test-warn

Inviato: mar 27 ott 2020, 14:10
da ponce
io, fossi in te, ricontrollerei: sembra che tu non abbia scritto it_IT.UTF-8, come ti suggerivo sopra, ma invece hai scritto it_IT.UFT-8.

Re: problema perl-test-warn

Inviato: mer 28 ott 2020, 0:46
da shellx
Diamine ! Pardon, errore di battitura.
Pensandoci anche prima era settato in origine sbagliato in en_EN.UFT-8, io credevo che fosse solo un problema di lingua, ergo mi sono limitato a cambiare en con it.
Tuttavia:

1)Ho rieditato il file /etc/profile.d/lang.sh inserendo stavolta LANG=it_IT.UTF-8 all'export;

2)

Codice: Seleziona tutto

source /etc/profile.d/lang.sh
3)

Codice: Seleziona tutto

shellx ~ $ locale
LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE=C
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=
Ho provato a ricompilare perl-test-warn:

Codice: Seleziona tutto

# ./perl-test-warn.SlackBuild 
Test-Warn-0.36/
Test-Warn-0.36/MANIFEST
Test-Warn-0.36/Warn.pm
Test-Warn-0.36/Changes
Test-Warn-0.36/META.yml
Test-Warn-0.36/README
Test-Warn-0.36/Makefile.PL
Test-Warn-0.36/META.json
Test-Warn-0.36/t/
Test-Warn-0.36/t/warning_is.t
Test-Warn-0.36/t/warnings_like.t
Test-Warn-0.36/t/warnings_exist.t
Test-Warn-0.36/t/1.t
Test-Warn-0.36/t/carped.t
Test-Warn-0.36/t/warnings_exist1.pl
Test-Warn-0.36/t/warnings_are.t
Test-Warn-0.36/t/warning_like.t
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::Warn
Writing MYMETA.yml and MYMETA.json
cp Warn.pm blib/lib/Test/Warn.pm
Manifying 1 pod document
PERL_DL_NONLAZY=1 "/usr/bin/perl5.22.2" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1.t ............... ok   
t/carped.t .......... ok   
t/warning_is.t ...... ok     
t/warning_like.t .... ok     
t/warnings_are.t .... ok       
t/warnings_exist.t .. ok    
t/warnings_like.t ... ok       
All tests successful.
Files=7, Tests=841, 18 wallclock secs ( 0.90 usr  0.08 sys + 17.25 cusr  0.21 csys = 18.44 CPU)
Result: PASS
Manifying 1 pod document
Installing /tmp/SBo/package-perl-test-warn/usr/share/perl5/vendor_perl/Test/Warn.pm
Installing /tmp/SBo/package-perl-test-warn/usr/man/man3/Test::Warn.3
Appending installation info to /tmp/SBo/package-perl-test-warn/usr/lib64/perl5/perllocal.pod

Slackware package maker, version 3.141593.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /tmp/perl-test-warn-0.36-x86_64-1_SBo.tgz

./
usr/
usr/doc/
usr/doc/perl-test-warn-0.36/
usr/doc/perl-test-warn-0.36/perl-test-warn.SlackBuild
usr/doc/perl-test-warn-0.36/Changes
usr/doc/perl-test-warn-0.36/README
usr/share/
usr/share/perl5/
usr/share/perl5/vendor_perl/
usr/share/perl5/vendor_perl/Test/
usr/share/perl5/vendor_perl/Test/Warn.pm
usr/man/
usr/man/man3/
usr/man/man3/Test::Warn.3.gz
install/
install/slack-desc

Slackware package /tmp/perl-test-warn-0.36-x86_64-1_SBo.tgz created.
Ha funzionato ! Proseguo con l'installazione del resto dei pacchetti. Il problema di cui fa fronte questo topic è risolto ergo posso etichettarlo come tale, tuttavia in caso di ulteriori e diversi problemi nel proseguo dell'installazione di monitorix, apriro un altro topic (sperando che tutto vada liscio).

Ringrazio ponce per il gentile supporto =D> Mi scuso per la mia maldestrezza e distrazione. :?
Alla prossima. ;)