Bugzilla – Attachment 123281 Details for
Bug 17600
Standardize the EXPORT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17600: Fix POSIX imports
Bug-17600-Fix-POSIX-imports.patch (text/plain), 3.96 KB, created by
Jonathan Druart
on 2021-07-29 12:37:08 UTC
(
hide
)
Description:
Bug 17600: Fix POSIX imports
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-07-29 12:37:08 UTC
Size:
3.96 KB
patch
obsolete
>From be7d10191b7f3bb0f85f94053bd57da888e54b1d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 29 Jul 2021 14:36:24 +0200 >Subject: [PATCH] Bug 17600: Fix POSIX imports > >it fixes xgettext and (maybe) friends > >[12:22:29] Error: Command failed: misc/translator/xgettext.pl --charset=UTF-8 -s -o /tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot -f /tmp/koha-Jaa9rf/files >/tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot at misc/translator/xgettext.pl line 387. >Use of uninitialized value in subroutine entry at misc/translator/xgettext.pl line 388. >Argument ">:encoding(utf-8)" isn't numeric in subroutine entry at misc/translator/xgettext.pl line 388. >Argument "/tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot" isn't numeric in subroutine entry at misc/translator/xgettext.pl line 388. >--- > labels/label-edit-layout.pl | 2 +- > misc/bin/connexion_import_daemon.pl | 2 +- > misc/cronjobs/rss/rss.pl | 2 +- > misc/migration_tools/22_to_30/export_Authorities.pl | 2 +- > misc/migration_tools/22_to_30/export_Authorities_xml.pl | 2 +- > misc/translator/xgettext.pl | 2 +- > 6 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/labels/label-edit-layout.pl b/labels/label-edit-layout.pl >index c9ca26c1626..f1fc6878a18 100755 >--- a/labels/label-edit-layout.pl >+++ b/labels/label-edit-layout.pl >@@ -21,7 +21,7 @@ > use Modern::Perl; > > use CGI qw ( -utf8 ); >-use POSIX qw( exit sprintf ); >+use POSIX; > > use C4::Auth qw( get_template_and_user ); > use C4::Output qw( output_html_with_http_headers ); >diff --git a/misc/bin/connexion_import_daemon.pl b/misc/bin/connexion_import_daemon.pl >index 722e2bfa13f..c7e06c3a7d0 100755 >--- a/misc/bin/connexion_import_daemon.pl >+++ b/misc/bin/connexion_import_daemon.pl >@@ -90,7 +90,7 @@ use Carp qw( croak ); > use IO::Socket::INET qw( SOCK_STREAM ); > # use IO::Socket::IP; > use IO::Select; >-use POSIX qw( close exit fork localtime open printf sprintf ); >+use POSIX; > use HTTP::Status qw( HTTP_FORBIDDEN HTTP_UNAUTHORIZED ); > use strict; > use warnings; >diff --git a/misc/cronjobs/rss/rss.pl b/misc/cronjobs/rss/rss.pl >index d107411044f..cfdd078b428 100755 >--- a/misc/cronjobs/rss/rss.pl >+++ b/misc/cronjobs/rss/rss.pl >@@ -31,7 +31,7 @@ use Template; > > use Koha::Script -cron; > use C4::Context; >-use POSIX qw( close localtime open strftime ); >+use POSIX; > > my $dbh = C4::Context->dbh; > my $file = $ARGV[0]; >diff --git a/misc/migration_tools/22_to_30/export_Authorities.pl b/misc/migration_tools/22_to_30/export_Authorities.pl >index d4531a3ffcd..3c5eb116f73 100755 >--- a/misc/migration_tools/22_to_30/export_Authorities.pl >+++ b/misc/migration_tools/22_to_30/export_Authorities.pl >@@ -10,7 +10,7 @@ use C4::Context; > #use MARC::File::XML(BinaryEncoding=>"utf8"); > #use MARC::File::USMARC; > use C4::AuthoritiesMarc; >-use POSIX qw( close localtime sprintf time ); >+use POSIX; > #MARC::File::XML::default_record_format("UNIMARCAUTH"); > my $dbh = C4::Context->dbh; > my $rq= $dbh->prepare(qq| >diff --git a/misc/migration_tools/22_to_30/export_Authorities_xml.pl b/misc/migration_tools/22_to_30/export_Authorities_xml.pl >index 4145fc33b03..ab058b5b047 100755 >--- a/misc/migration_tools/22_to_30/export_Authorities_xml.pl >+++ b/misc/migration_tools/22_to_30/export_Authorities_xml.pl >@@ -9,7 +9,7 @@ BEGIN { > use C4::Context; > use MARC::File::XML(BinaryEncoding=>"utf8"); > use C4::AuthoritiesMarc; >-use POSIX qw( close localtime open sprintf time ); >+use POSIX; > MARC::File::XML::default_record_format("UNIMARCAUTH"); > my $dbh = C4::Context->dbh; > my $rq= $dbh->prepare(qq| >diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl >index fcfe1bdd764..1d7a5d7c1b8 100755 >--- a/misc/translator/xgettext.pl >+++ b/misc/translator/xgettext.pl >@@ -27,7 +27,7 @@ use lib $FindBin::Bin; > use strict; > use warnings; > use Getopt::Long qw( GetOptions ); >-use POSIX qw( close exit localtime open printf time ); >+use POSIX; > use Locale::PO; > use TmplTokenizer; > use VerboseWarnings; >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17600
:
57394
|
57950
|
57951
|
57952
|
57953
|
57954
|
61994
|
61995
|
61996
|
61997
|
61998
|
62209
|
62210
|
62211
|
62212
|
62213
|
62940
|
62941
|
62942
|
62943
|
62958
|
62959
|
64387
|
64388
|
64389
|
64390
|
64391
|
64392
|
64466
|
64467
|
64468
|
64469
|
64470
|
64471
|
64472
|
64473
|
64474
|
64475
|
64476
|
121309
|
121310
|
121311
|
121312
|
121313
|
121314
|
122360
|
122361
|
122362
|
122363
|
122364
|
122365
|
122869
|
122884
|
122945
|
123194
|
123195
|
123196
|
123200
|
123210
| 123281 |
123283
|
123284
|
123325
|
123417
|
123418
|
123419
|
123420
|
123565
|
124866
|
125059
|
125063
|
125064
|
125066
|
126640
|
127056
|
127918