debian/0000755000000000000000000000000012216134232007162 5ustar debian/patches/0000755000000000000000000000000012216133767010625 5ustar debian/patches/series0000644000000000000000000000011112216133767012033 0ustar implicit_declaration_of_free.patch libm.patch pointer_from_integer.patch debian/patches/pointer_from_integer.patch0000644000000000000000000000514212216133767016070 0ustar Description: fix use of pointer as int fixes "warning: comparison between pointer and integer" and "warning: assignment makes pointer from integer without a cast" compiler warnings Author: Florian Schlichting --- a/Bare.xs +++ b/Bare.xs @@ -144,7 +144,7 @@ SV *atthref = newRV_noinc( (SV *) atth ); hv_store( output, curatt->name, curatt->namelen, atthref, 0 ); - if( curatt->value == -1 ) attval = newSVpvn( "1", 1 ); + if( curatt->value == NULL ) attval = newSVpvn( "1", 1 ); else attval = newSVpvn( curatt->value, curatt->vallen ); SvUTF8_on(attval); hv_store( atth, "value", 5, attval, vhash ); @@ -272,7 +272,7 @@ if( numatts ) { curatt = curnode->firstatt; for( i = 0; i < numatts; i++ ) { - if( curatt->value == -1 ) attval = newSVpvn( "1", 1 ); + if( curatt->value == NULL ) attval = newSVpvn( "1", 1 ); else attval = newSVpvn( curatt->value, curatt->vallen ); SvUTF8_on(attval); hv_store( output, curatt->name, curatt->namelen, attval, 0 ); --- a/parser.c +++ b/parser.c @@ -417,7 +417,7 @@ case 0: last_state = ST_att_name; goto done; case '/': // self closing !! /> is assumed !! curatt = nodec_addattr( curnode, attname, attname_len ); - if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; } + if( !att_has_val ) { curatt->value = NULL; curatt->vallen = 0; } attname_len = 0; curnode->z = cpos+1-xmlin; @@ -436,7 +436,7 @@ goto att_space; case '>': curatt = nodec_addattr( curnode, attname, attname_len ); - if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; } + if( !att_has_val ) { curatt->value = NULL; curatt->vallen = 0; } attname_len = 0; cpos++; goto val_1; @@ -832,7 +832,7 @@ switch( let ) { case '/': // self closing !! /> is assumed !! curatt = nodec_addattr( curnode, attname, attname_len ); - if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; } + if( !att_has_val ) { curatt->value = NULL; curatt->vallen = 0; } attname_len = 0; curnode = curnode->parent; @@ -850,7 +850,7 @@ goto u_att_space; case '>': curatt = nodec_addattr( curnode, attname, attname_len ); - if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; } + if( !att_has_val ) { curatt->value = NULL; curatt->vallen = 0; } attname_len = 0; cpos++; goto u_val_1; debian/patches/libm.patch0000644000000000000000000000054712216133767012577 0ustar Description: do not link against libm unnecessarily (Bare.so uses none of the libraries symbols) Author: Florian Schlichting --- a/Makefile.PL +++ b/Makefile.PL @@ -66,7 +66,6 @@ } sub gen_cc { WriteMakefile( @basics, - LIBS => ['-lm'], OBJECT => 'Bare.o parser.o', LDDLFLAGS => '-shared -L/usr/local/lib', ); debian/patches/implicit_declaration_of_free.patch0000644000000000000000000000065412216133767017517 0ustar Description: fix warning "incompatible implicit declaration of built-in function 'free'" by unconditionally including stdlib.h (required on Linux) Author: Florian Schlichting --- a/parser.c +++ b/parser.c @@ -1,8 +1,6 @@ #include "parser.h" #include -#ifdef DARWIN - #include "stdlib.h" -#endif +#include "stdlib.h" #ifdef NOSTRING void memset(char *s, int c, int n) { char *se = s + n; debian/libxml-bare-perl.lintian-overrides0000644000000000000000000000014512216133767015714 0ustar # Flags are set libxml-bare-perl: hardening-no-fortify-functions usr/lib/perl5/auto/XML/Bare/Bare.so debian/watch0000644000000000000000000000034412101267467010226 0ustar # format version number, currently 3; this line is compulsory! version=3 # URL to the package page followed by a regex to search https://metacpan.org/release/XML-Bare/ .*/XML-Bare-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/copyright0000644000000000000000000000322412216133767011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: XML-Bare Upstream-Contact: Nigel Metheringham Source: https://metacpan.org/release/XML-Bare/ Files: * Copyright: 2008-2013, David Helkowski License: Artistic or GPL-2+ Files: bench/src/xmlio_testread.cpp Copyright: 2000, Paul T. Miller License: LGPL-3+ Files: debian/* Copyright: 2009, Jonathan Yu 2009, Antonio Radici 2009, Ryan Niebur 2012, gregor herrmann License: GPL-2+ or Artistic License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991, or (at your option) any later version. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. License: LGPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 3 dated June, 2007, or (at your option) any later version. . On Debian systems, the complete text of version 3 of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-3'. debian/control0000644000000000000000000000233412206733755010605 0ustar Source: libxml-bare-perl Maintainer: Debian Perl Group Uploaders: Antonio Radici , Jonathan Yu , Ryan Niebur , gregor herrmann Section: perl Priority: optional Build-Depends: perl, debhelper (>= 9.20120312), perl (>= 5.11.1) | libtest-simple-perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libxml-bare-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libxml-bare-perl.git Homepage: https://metacpan.org/release/XML-Bare/ Package: libxml-bare-perl Architecture: any Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: Perl module to parse XML into a Perl hash XML::Bare provides a simple API to read and write XML files, it also provides a function to validate the XML schema. The parser itself is a simple state engine that is less than 500 lines of C. . In comparison to other available Perl XML parsers that create trees, XML::Bare is extremely fast; benchmarking shows that it can even be one or two orders of magnitude faster than similar modules. debian/compat0000644000000000000000000000000211717014317010366 0ustar 9 debian/changelog0000644000000000000000000000656612216133767011065 0ustar libxml-bare-perl (0.53-1) unstable; urgency=low * Team upload. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ Axel Beckert ] * debian/copyright: migrate pre-1.0 format to 1.0 using "cme fix dpkg- copyright" [ Nuno Carvalho ] * New upstream release. * debian/copyright: update copyright years. * debian/control: update standards version. * debian/control: update debhelper required version, in order to pass all the hardening flags to EUMM. * Add lintian override to apparently false-positive warning. * Add set of patches accepted upstream but still not included in this release, visit https://rt.cpan.org/Public/Bug/Display.html?id=88155 for details. -- Nuno Carvalho Tue, 17 Sep 2013 15:54:28 +0100 libxml-bare-perl (0.47-1) unstable; urgency=low [ Salvatore Bonaccorso ] * debian/control: Changed: Replace versioned (build-)dependency on perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as permitted by Debian Policy 3.8.3). [ Ryan Niebur ] * Email change: Jonathan Yu -> jawnsy@cpan.org * Email change: Ryan Niebur -> ryan@debian.org [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * New upstream release. * Switch to "3.0 (quilt)" source format. * debian/copyright: update formatting, upstream and packaging copyright information. * Switch to debhelper compatibility level 9 to pass CFLAGS to Makefile.PL/Build.PL. * Add /me to Uploaders. * Update build dependencies. * Bump Standards-Version to 3.9.2 (no further changes). -- gregor herrmann Sat, 11 Feb 2012 20:39:33 +0100 libxml-bare-perl (0.45-1) unstable; urgency=low [ Jonathan Yu ] * New upstream release + UTF-8 handling fixed + Self-closing nodes are now printed by the XML function * Added myself to Uploaders and Copyright * Use new debhelper 7 short rules format * Standards-Version 3.8.2 (no changes) * Rewrote control description * New upstream release + Prevent XML corruption during XML saving + Fix strange compilation problems by removing line number defines [ Ryan Niebur ] * add debian/clean * Add myself to Uploaders [ Nathan Handler ] * debian/watch: Update to ignore development releases. -- Ryan Niebur Wed, 12 Aug 2009 09:42:24 -0700 libxml-bare-perl (0.43-1) unstable; urgency=low [ Antonio Radici ] * New upstream release * debian/copyright: + added copyright for src/bench/xmlio_testread.cpp + removed repack.sh references because there are no licensing issues + set the proper license for the upstream source (it is dual licensed) * debian/control: + upgrade to Standards-Version 3.8.1, no changes required * removed debian/repack.sh * debian/watch: + removed versionmangle and the reference to repack [ gregor herrmann ] * debian/control: add missing full stop to long description, thanks to Rhonda for spotting. -- Antonio Radici Sun, 22 Mar 2009 10:49:56 +0000 libxml-bare-perl (0.40+dfsg.1-1) unstable; urgency=low * Initial Release. (Closes: #513538) -- Antonio Radici Sat, 31 Jan 2009 17:28:53 +0000 debian/source/0000755000000000000000000000000011717014317010470 5ustar debian/source/format0000644000000000000000000000001411717014317011676 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000003611672203650010247 0ustar #!/usr/bin/make -f %: dh $@ debian/clean0000644000000000000000000000001311672203650010167 0ustar bench/*.pl