From ca4db0a874335023dab2e40e78cdd06b91328044 Mon Sep 17 00:00:00 2001 From: Nicholas Bamber Date: Sat, 18 Jun 2022 23:48:03 +0200 Subject: Two words incorrectly spelt in the documentation Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=95007 Last-Update: 2010-08-10 Gbp-Pq: Name doc_misspelling.patch --- lib/SGML/Parser/OpenSP.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SGML/Parser/OpenSP.pm b/lib/SGML/Parser/OpenSP.pm index 39d5de7..50462ea 100755 --- a/lib/SGML/Parser/OpenSP.pm +++ b/lib/SGML/Parser/OpenSP.pm @@ -491,7 +491,7 @@ Warn about named character references. =item refc -Warn about ommitted refc delimiters. +Warn about omitted refc delimiters. =item temp-ms @@ -527,7 +527,7 @@ Warn about attribute values which are not literals. =item missing-att-name -Warn about ommitted attribute names in start tags. +Warn about omitted attribute names in start tags. =item comment-decl-s @@ -613,7 +613,7 @@ Warn about parameter entity references in parameter literals in the internal sub =head1 PROCESSING FILES -In order to start processing of a document and recieve events, the +In order to start processing of a document and receive events, the C method must be called. It takes one argument specifying the path to a file (not a file handle). You must set an event handler using the C method prior to using this method. The return -- cgit v1.2.3 From ab9426b0d795b62db78ee72cc5bea95909e036b6 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Fri, 6 May 2011 18:03:59 +0300 Subject: [PATCH] Don't pass the full path of the file to parse() in restricted mode Bug-Debian: https://bugs.debian.org/613199 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=67996 If the build directory name contains characters like '+', tests 11 and 12 of t/13restricted.t fail because the opensp library considers the directory unsafe and skips it. (see PosixStorageManager::isSafe() in lib/PosixStorage.cxx of opensp-1.5.2) (adjusted to apply to file with DOS line endings) Gbp-Pq: Name binnmu_rebuild_fix.patch --- t/13restricted.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/13restricted.t b/t/13restricted.t index ea91f25..2bb095d 100755 --- a/t/13restricted.t +++ b/t/13restricted.t @@ -53,7 +53,7 @@ isnt($h8->{ok2}, 0, 'must not read paths with ./'); $h8->{ok1} = 0; $h8->{ok2} = 0; -my $sd = File::Spec->catfile(File::Spec->rel2abs('.'), 'samples'); +my $sd = 'samples'; $p->search_dirs($sd); -- cgit v1.2.3 From c6910b223d43d12401c28a4281c618b716072b77 Mon Sep 17 00:00:00 2001 From: Nicholas Bamber Date: Wed, 23 Nov 2022 21:18:35 +0100 Subject: Two words incorrectly spelt in the documentation Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=95007 Last-Update: 2010-08-10 Gbp-Pq: Name doc_misspelling.patch --- lib/SGML/Parser/OpenSP.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SGML/Parser/OpenSP.pm b/lib/SGML/Parser/OpenSP.pm index 39d5de7..50462ea 100755 --- a/lib/SGML/Parser/OpenSP.pm +++ b/lib/SGML/Parser/OpenSP.pm @@ -491,7 +491,7 @@ Warn about named character references. =item refc -Warn about ommitted refc delimiters. +Warn about omitted refc delimiters. =item temp-ms @@ -527,7 +527,7 @@ Warn about attribute values which are not literals. =item missing-att-name -Warn about ommitted attribute names in start tags. +Warn about omitted attribute names in start tags. =item comment-decl-s @@ -613,7 +613,7 @@ Warn about parameter entity references in parameter literals in the internal sub =head1 PROCESSING FILES -In order to start processing of a document and recieve events, the +In order to start processing of a document and receive events, the C method must be called. It takes one argument specifying the path to a file (not a file handle). You must set an event handler using the C method prior to using this method. The return -- cgit v1.2.3 From 479b91a95d9aaf73a1e12e7d00f630a62c0be05c Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Fri, 6 May 2011 18:03:59 +0300 Subject: [PATCH] Don't pass the full path of the file to parse() in restricted mode Bug-Debian: https://bugs.debian.org/613199 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=67996 If the build directory name contains characters like '+', tests 11 and 12 of t/13restricted.t fail because the opensp library considers the directory unsafe and skips it. (see PosixStorageManager::isSafe() in lib/PosixStorage.cxx of opensp-1.5.2) (adjusted to apply to file with DOS line endings) Gbp-Pq: Name binnmu_rebuild_fix.patch --- t/13restricted.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/13restricted.t b/t/13restricted.t index ea91f25..2bb095d 100755 --- a/t/13restricted.t +++ b/t/13restricted.t @@ -53,7 +53,7 @@ isnt($h8->{ok2}, 0, 'must not read paths with ./'); $h8->{ok1} = 0; $h8->{ok2} = 0; -my $sd = File::Spec->catfile(File::Spec->rel2abs('.'), 'samples'); +my $sd = 'samples'; $p->search_dirs($sd); -- cgit v1.2.3 From 4899b8c9e0fbe822c8dfeb8febdd28cfc3eed456 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 23 Nov 2022 21:18:35 +0100 Subject: FTCBFS: hard codes the build architecture C++ compiler Origin: vendor Bug: https://bugs.debian.org/1023487 Forwarded: no Reviewed-by: gregor herrmann Last-Update: 2022-11-23 libsgml-parser-opensp-perl fails to cross build from source, because the Makefile.PL hard codes the build architecture C++ compiler. I'm attaching a patch for your convenience to make it use the host one and thus make libsgml-parser-opensp-perl cross buildable. Gbp-Pq: Name cross.patch --- Makefile.PL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index f3a2eeb..46a6041 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -13,8 +13,8 @@ if ($^O eq "MSWin32") else { # assume some compatible Linux - $options{LD} = "g++"; - $options{CC} = "g++"; + $options{CC} = $ENV{CXX} || "g++"; + $options{LD} = $options{CC}; $options{LIBS} = "-lstdc++ -losp"; } -- cgit v1.2.3