diff options
author | gregor herrmann <gregoa@debian.org> | 2018-08-06 18:26:56 -0300 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2018-08-06 18:26:56 -0300 |
commit | 47b8fb43d3b75a00b04f89c2e03211b8dae1921a (patch) | |
tree | f4e65ddc8a49f6e80fc4bdac5f08934c8a70d12c | |
parent | 12e858cd4a5378f5fb4b08a650df7d9a8da49bcc (diff) | |
parent | a4bec7f28c97d26a3d68d9094fa47b5127eace88 (diff) |
libtext-bibtex-perl (0.85-2) unstable; urgency=medium
* Team upload.
[ Salvatore Bonaccorso ]
* Update Vcs-* headers for switch to salsa.debian.org
[ gregor herrmann ]
* Add patch to make sure that libbtparse.so.* is installed to /usr/lib and
not /usr/lib64, even if this exists, which is a policy violation (and
causes a build failure).
Thanks to Damyan Ivanov for detecting this bug when rebuilding in a chroot
created with 1.0.102+ which has the usrmerge-fix.
(Closes: #905594)
* Update years of packaging copyright.
* Declare compliance with Debian Policy 4.2.0.
* Bump debhelper compatibility level to 10.
[dgit import unpatched libtext-bibtex-perl 0.85-2]
-rw-r--r-- | debian/changelog | 275 | ||||
-rw-r--r-- | debian/clean | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 63 | ||||
-rw-r--r-- | debian/copyright | 62 | ||||
-rw-r--r-- | debian/libbtparse-dev.examples | 3 | ||||
-rw-r--r-- | debian/libbtparse-dev.install | 4 | ||||
-rw-r--r-- | debian/libbtparse1.install | 1 | ||||
-rw-r--r-- | debian/libbtparse1.symbols | 187 | ||||
-rw-r--r-- | debian/libtext-bibtex-perl.examples | 1 | ||||
-rwxr-xr-x | debian/libtext-bibtex-perl.install | 11 | ||||
-rw-r--r-- | debian/patches/0001-Introduce-a-btparse_api_version-note-and-use-it-in-d.patch | 95 | ||||
-rw-r--r-- | debian/patches/0002-disable-rpath-if-installing-into-usr-lib.patch | 29 | ||||
-rw-r--r-- | debian/patches/0003-no-ldconfig.patch | 23 | ||||
-rw-r--r-- | debian/patches/0004-manpage-section.patch | 31 | ||||
-rw-r--r-- | debian/patches/0005-hardening-flags.patch | 26 | ||||
-rw-r--r-- | debian/patches/0006-no-lib64.patch | 17 | ||||
-rw-r--r-- | debian/patches/series | 6 | ||||
-rwxr-xr-x | debian/rules | 12 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/tests/pkg-perl/smoke-files | 2 | ||||
-rw-r--r-- | debian/upstream/metadata | 5 | ||||
-rw-r--r-- | debian/watch | 2 |
23 files changed, 862 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a709b13 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,275 @@ +libtext-bibtex-perl (0.85-2) unstable; urgency=medium + + * Team upload. + + [ Salvatore Bonaccorso ] + * Update Vcs-* headers for switch to salsa.debian.org + + [ gregor herrmann ] + * Add patch to make sure that libbtparse.so.* is installed to /usr/lib and + not /usr/lib64, even if this exists, which is a policy violation (and + causes a build failure). + Thanks to Damyan Ivanov for detecting this bug when rebuilding in a chroot + created with 1.0.102+ which has the usrmerge-fix. + (Closes: #905594) + * Update years of packaging copyright. + * Declare compliance with Debian Policy 4.2.0. + * Bump debhelper compatibility level to 10. + + -- gregor herrmann <gregoa@debian.org> Mon, 06 Aug 2018 23:26:56 +0200 + +libtext-bibtex-perl (0.85-1) unstable; urgency=medium + + * Team upload. + * Import upstream version 0.85 (Closes: #873697). + * debian/patches: + + drop fix spelling patch, fixed upstream. + + update patch numbers. + + refresh offsets. + + -- Nuno Carvalho <smash@cpan.org> Thu, 31 Aug 2017 18:21:51 +0100 + +libtext-bibtex-perl (0.83-1) unstable; urgency=medium + + * Team upload. + + [ Nuno Carvalho ] + * Import upstream version 0.83. + * debian/control: declare compliance with Debian Policy 4.1.0. + + [ gregor herrmann ] + * Refresh patches (offset). + + -- Nuno Carvalho <ssmash@cpan.org> Mon, 28 Aug 2017 19:57:23 +0100 + +libtext-bibtex-perl (0.80-1) unstable; urgency=medium + + * Team upload. + * Import upstream version 0.80. + * Refresh 0001-Fix-spelling-errors.patch and + 0003-Introduce-a-btparse_api_version-note-and-use-it-in-d.patch (offset). + * Drop 0002-Use-the-right-path-of-perl.patch (fixed upstream). + + -- gregor herrmann <gregoa@debian.org> Sun, 18 Jun 2017 17:23:08 +0200 + +libtext-bibtex-perl (0.78-1) unstable; urgency=medium + + * Team upload. + * Import upstream version 0.78. + * Update years of packaging copyright. + + -- gregor herrmann <gregoa@debian.org> Fri, 13 Jan 2017 23:51:50 +0100 + +libtext-bibtex-perl (0.77-1) unstable; urgency=medium + + * Team upload. + * Remove Bas Zoetekouw from Uploaders. Thanks for your work! + * Import upstream version 0.77. + * Drop 0008-pod-errors.patch, applied upstream. + * Refresh remaining patches. + + -- gregor herrmann <gregoa@debian.org> Mon, 31 Oct 2016 21:01:10 +0100 + +libtext-bibtex-perl (0.76-1) unstable; urgency=medium + + * Team upload. + * Import upstream version 0.76. + * Update years of packaging copyright. + * Refresh existing patches. + * Add 0008-pod-errors.patch. + + -- gregor herrmann <gregoa@debian.org> Sat, 09 Jul 2016 16:26:03 +0200 + +libtext-bibtex-perl (0.74-1) unstable; urgency=medium + + * Team upload. + + [ gregor herrmann ] + * debian/copyright: change Copyright-Format 1.0 URL to HTTPS. + * debian/upstream/metadata: change GitHub/CPAN URL(s) to HTTPS. + + [ Lucas Kanashiro ] + * Import upstream version 0.74 + + -- Lucas Kanashiro <kanashiro.duarte@gmail.com> Fri, 17 Jun 2016 14:09:21 -0300 + +libtext-bibtex-perl (0.72-1) unstable; urgency=medium + + * Team upload. + + [ gregor herrmann ] + * Rename autopkgtest configuration file(s) as per new pkg-perl- + autopkgtest schema. + + [ Salvatore Bonaccorso ] + * debian/control: Use HTTPS transport protocol for Vcs-Git URI + + [ Lucas Kanashiro ] + * Import upstream version 0.72 + * Update years of Debian packaging copyright + * Declare compliance with Debian policy 3.9.8 + * debian/rules: export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow + * Update patch fixing typo errors + + -- Lucas Kanashiro <kanashiro.duarte@gmail.com> Mon, 25 Apr 2016 14:03:01 -0300 + +libtext-bibtex-perl (0.71-1) unstable; urgency=medium + + * Team upload. + + [ Lucas Kanashiro ] + * Import upstream version 0.71 + Fixes "syntactically invalid BibTeX file crashes perl" + (Closes: #691715) + * Declare compliance with Debian policy 3.9.6 + * Set year of upstream copyright + + [ gregor herrmann ] + * Add new versioned (build) dependency. + * Refresh 0003-Introduce-a-btparse_api_version-note-and-use-it- + in-d.patch (offset). + + -- Lucas Kanashiro <kanashiro.duarte@gmail.com> Sat, 15 Aug 2015 04:41:51 -0300 + +libtext-bibtex-perl (0.70-1) unstable; urgency=medium + + * Team upload. + + [ Salvatore Bonaccorso ] + * Update Vcs-Browser URL to cgit web frontend + + [ gregor herrmann ] + * Add debian/upstream/metadata + * Imported upstream version 0.70 + * Add autopkgtest control file. + * Refresh 0003-Introduce-a-btparse_api_version-note-and-use-it- + in-d.patch (offset). + * Explicitly build-depend on libmodule-build-perl. + * debian/tests/control: add stanza for new runtime-deps-and-recommends + tests. + * Drop debian/tests/control, add Testsuite field to debian/control + instead. + + [ Niko Tyni ] + * Include btparse/tests/data in autopkgtest runs. + + -- Niko Tyni <ntyni@debian.org> Wed, 27 May 2015 22:50:59 +0300 + +libtext-bibtex-perl (0.69-1) unstable; urgency=low + + * Team upload. + * New upstream release. + * Strip trailing slash from metacpan URLs. + * Drop 0008-hurd.diff, merged upstream. + * Refresh a couple of other patches (offset). + * Add new symbol to debian/libbtparse1.symbols. + * 0007-hardening-flags.patch: drop upstream's -D_FORTIFY_SOURCE=1 which + conflicts with Debian's -D_FORTIFY_SOURCE=2, and probably is a debug + attempt (cf. CPAN RT#80458). + * Don't hardcode /usr/lib/perl5 in debian/*.install as a preparation for + the multi-arched perl 5.20. + Closes: #752713 + + -- gregor herrmann <gregoa@debian.org> Thu, 26 Jun 2014 19:27:31 +0200 + +libtext-bibtex-perl (0.66-2) unstable; urgency=medium + + * Team upload. + * Add patch to fix FTBFS on Hurd. Thanks to Pino Toscano for the bug + report and the patch. (Closes: #734352) + * Update years of packaging copyright. + * Declare compliance with Debian Policy 3.9.5. + + -- gregor herrmann <gregoa@debian.org> Sun, 19 Jan 2014 18:51:20 +0100 + +libtext-bibtex-perl (0.66-1) unstable; urgency=low + + [ David Bremner ] + * New upstream release + + [ gregor herrmann ] + * debian/copyright: add section about files with a different license. + * Bump Standards-Version to 3.9.4 (no changes). + * New patch 0007-hardening-flags.patch: add $ENV{LDFLAGS} when linking + the library. + + [ Salvatore Bonaccorso ] + * Change Vcs-Git to canonical URI (git://anonscm.debian.org) + * Change search.cpan.org based URIs to metacpan.org based URIs + + [ Danai SAE-HAN (韓達耐) ] + * Release. Thank you all. + + -- Danai SAE-HAN (韓達耐) <danai@debian.org> Fri, 30 Aug 2013 12:52:47 +0800 + +libtext-bibtex-perl (0.64-1) unstable; urgency=low + + * Team upload. + + [ gregor herrmann ] + * debian/control: update {versioned,alternative} (build) dependencies. + + [ Nuno Carvalho ] + * New upstream release. + + -- Nuno Carvalho <smash@cpan.org> Tue, 10 Jul 2012 14:44:27 +0100 + +libtext-bibtex-perl (0.63-1) unstable; urgency=low + + * Team upload. + * New upstream release. + * debian/copyright: update Upstream-Contact field. + * Use debhelper 9.20120312 to get all hardening flags. + + -- gregor herrmann <gregoa@debian.org> Sat, 02 Jun 2012 20:03:02 +0200 + +libtext-bibtex-perl (0.62-1) unstable; urgency=low + + [ Julián Moreno Patiño ] + * Patch to fix spelling error. + * Patch to use the right path of perl in the example file. + * Bump Standards-Version to 3.9.3 (no changes). + + [ gregor herrmann ] + * Take over for the Debian Perl Group on maintainer's request + (http://lists.debian.org/debian-perl/2011/08/msg00107.html) + * debian/control: Added: Vcs-Git field (source stanza); Vcs-Browser + field (source stanza). Changed: Maintainer set to Debian Perl Group + <pkg-perl-maintainers@lists.alioth.debian.org> (was: Bas Zoetekouw + <bas@debian.org>); Bas Zoetekouw <bas@debian.org> moved to + Uploaders. + * New upstream releases 0.61, 0.62. (Closes: #599485, #578633) + * Remove patch that changed Makefile.PL. Doesn't apply anymore. + * Update Homepage field. + * Update build dependencies. + * Use tiny debian/rules, and debhelper 9 compat level. + * Switch to source format 3.0 (quilt). + * Install examples. + * Update debian/copyright to copyright-format 1.0. + * Add a patch to make sure ldconfig is not run during package build. + * Extend long description for libtext-bibtex-perl. + * Add a patch to fix the manpage section, and install the manpages. + + [ David Bremner ] + * Build separate binary packages for libbtparse1 + * New patches: + - Add a versioned SONAME + - Disable rpath + + -- David Bremner <bremner@debian.org> Sun, 04 Mar 2012 10:54:55 -0400 + +libtext-bibtex-perl (0.38-1) unstable; urgency=low + + * New upstream release: + - fixed problem when creating an empty Entry. + - added support for 'conference' key (alias for inproceedings) + * Move to policy version 3.8.2 + - add Homepage field to control file + + -- Bas Zoetekouw <bas@debian.org> Tue, 30 Jun 2009 12:06:35 +0200 + +libtext-bibtex-perl (0.36-1) unstable; urgency=low + + * Initial release (closes: #361429) + + -- Bas Zoetekouw <bas@debian.org> Sat, 8 Apr 2006 17:18:40 +0200 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..f0bc807 --- /dev/null +++ b/debian/clean @@ -0,0 +1,5 @@ +btparse/src/bt_config.h +btparse/src/libbtparse.so.1 +btparse/tests/tex_test +config.log + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f0304a4 --- /dev/null +++ b/debian/control @@ -0,0 +1,63 @@ +Source: libtext-bibtex-perl +Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org> +Uploaders: David Bremner <bremner@debian.org>, + Danai SAE-HAN (韓達耐) <danai@debian.org> +Section: perl +Testsuite: autopkgtest-pkg-perl +Priority: optional +Build-Depends: debhelper (>= 10), + perl, + libcapture-tiny-perl, + libconfig-autoconf-perl, + libextutils-libbuilder-perl, + libmodule-build-perl, + libscalar-list-utils-perl (>= 1:1.42) +Standards-Version: 4.2.0 +Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtext-bibtex-perl +Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtext-bibtex-perl.git +Homepage: https://metacpan.org/release/Text-BibTeX + +Package: libtext-bibtex-perl +Architecture: any +Depends: ${perl:Depends}, + ${shlibs:Depends}, + ${misc:Depends}, + libscalar-list-utils-perl (>= 1:1.42) +Description: Perl extension to read and parse BibTeX files + The Text::BibTeX module provides functions to read, parse and write bibTeX + files using perl. + . + The package provides two fundamental modules for processing BibTeX files + (Text::BibTeX::File and Text::BibTeX::Entry). + . + In addition, the Text::BibTeX module provides a number of + miscellaneous functions that are useful in processing BibTeX data + (especially the kind that comes from bibliographies as defined by BibTeX + 0.99, rather than generic database files). + +Package: libbtparse-dev +Architecture: any +Section: libdevel +Depends: libbtparse1 (= ${binary:Version}), + ${misc:Depends} +Description: C library to parse BibTeX files - development files + btparse is the C component of btOOL, a pair of libraries for parsing and + processing BibTeX files. It is built on top of a lexical analyzer and parser + constructed using PCCTS. The library provides entry points to the parser, + functions to traverse and query the abstract-syntax tree that it produces, and + some functions for processing strings in "the BibTeX way". + . + This package contains the necessary symlinks, headers and object files needed + develop applications using btparse. + +Package: libbtparse1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, + ${misc:Depends} +Description: C library to parse BibTeX files + btparse is the C component of btOOL, a pair of libraries for parsing and + processing BibTeX files. It is built on top of a lexical analyzer and parser + constructed using PCCTS. The library provides entry points to the parser, + functions to traverse and query the abstract-syntax tree that it produces, and + some functions for processing strings in "the BibTeX way". diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b008c11 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,62 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Text-BibTeX +Upstream-Contact: Alberto Manuel Brandão Simões <ambs@perl-hackers.net> +Source: https://metacpan.org/release/Text-BibTeX + +Files: * +Copyright: 1996-2000, Greg Ward <gward@python.net> +License: Artistic or GPL-1+ + +Files: btparse/* +Copyright: 1996-1999, Gregory P. Ward +License: LGPL-2+ + +Files: btparse/progs/args* btparse/progs/biblex.c + btparse/progs/bibparse.c btparse/tests/simple_test.c +Copyright: 1996-97, Gregory P. Ward +License: GPL-2+ + +Files: btparse/progs/getopt* +Copyright: 1987-1994, Free Software Foundation, Inc. +License: LGPL-2+ + +Files: debian/* +Copyright: 2006, 2009, Bas Zoetekouw <bas@debian.org> + 2011-2018, gregor herrmann <gregoa@debian.org> + 2012, David Bremner <bremner@debian.org> + 2015-2016, Lucas Kanashiro <kanashiro.duarte@gmail.com> +License: Artistic or GPL-1+ + +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-1+ + 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; either version 1, or (at your option) + any later version. + . + On Debian systems, the complete text of version 1 of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-1'. + +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; either version 2, 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-2+ + This library is free software; you can redistribute it and/or modify + it under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2 of the License, or (at + your option) any later version. + . + On Debian systems, the complete text of version 2 of the GNU Library + General Public License can be found in `/usr/share/common-licenses/LGPL-2'. diff --git a/debian/libbtparse-dev.examples b/debian/libbtparse-dev.examples new file mode 100644 index 0000000..4e5a91e --- /dev/null +++ b/debian/libbtparse-dev.examples @@ -0,0 +1,3 @@ +btparse/progs/biblex.c +btparse/progs/bibparse.c +btparse/progs/dumpnames.c diff --git a/debian/libbtparse-dev.install b/debian/libbtparse-dev.install new file mode 100644 index 0000000..5f021ea --- /dev/null +++ b/debian/libbtparse-dev.install @@ -0,0 +1,4 @@ +btparse/src/bt_config.h /usr/include +btparse/src/btparse.h /usr/include +btparse/src/libbtparse.so /usr/lib +usr/share/man/man3/*.3 diff --git a/debian/libbtparse1.install b/debian/libbtparse1.install new file mode 100644 index 0000000..0ba3188 --- /dev/null +++ b/debian/libbtparse1.install @@ -0,0 +1 @@ +usr/lib/libbtparse.so.* diff --git a/debian/libbtparse1.symbols b/debian/libbtparse1.symbols new file mode 100644 index 0000000..ce5f905 --- /dev/null +++ b/debian/libbtparse1.symbols @@ -0,0 +1,187 @@ +libbtparse.so.1 libbtparse1 #MINVER# + AllMacros@Base 0.62 + InputFilename@Base 0.62 + StringOptions@Base 0.62 + _zzmatch@Base 0.62 + _zzmatch_wdfltsig@Base 0.62 + _zzmatch_wsig@Base 0.62 + _zzsetmatch@Base 0.62 + _zzsetmatch_wdfltsig@Base 0.62 + _zzsetmatch_wsig@Base 0.62 + accepts@Base 0.62 + actions@Base 0.62 + alloc_lex_buffer@Base 0.62 + ast_error@Base 0.62 + at_sign@Base 0.62 + bibfile@Base 0.62 + body@Base 0.62 + bt_add_macro_text@Base 0.62 + bt_add_macro_value@Base 0.62 + bt_build_tex_tree@Base 0.62 + bt_change_case@Base 0.62 + bt_cleanup@Base 0.62 + bt_create_name_format@Base 0.62 + bt_delete_all_macros@Base 0.62 + bt_delete_macro@Base 0.62 + bt_dump_tex_tree@Base 0.62 + bt_entry_key@Base 0.62 + bt_entry_metatype@Base 0.62 + bt_entry_set_key@Base 0.62 + bt_entry_type@Base 0.62 + bt_error_status@Base 0.62 + bt_flatten_tex_tree@Base 0.62 + bt_format_name@Base 0.62 + bt_free_ast@Base 0.62 + bt_free_list@Base 0.62 + bt_free_name@Base 0.62 + bt_free_name_format@Base 0.62 + bt_free_tex_tree@Base 0.62 + bt_get_error_count@Base 0.62 + bt_get_error_counts@Base 0.62 + bt_get_text@Base 0.62 + bt_initialize@Base 0.62 + bt_macro_length@Base 0.62 + bt_macro_text@Base 0.62 + bt_next_entry@Base 0.62 + bt_next_field@Base 0.62 + bt_next_macro@Base 0.62 + bt_next_value@Base 0.62 + bt_parse_entry@Base 0.62 + bt_parse_entry_s@Base 0.62 + bt_parse_file@Base 0.62 + bt_postprocess_entry@Base 0.62 + bt_postprocess_field@Base 0.62 + bt_postprocess_string@Base 0.62 + bt_postprocess_value@Base 0.62 + bt_purify_string@Base 0.62 + bt_reset_error_counts@Base 0.62 + bt_set_format_options@Base 0.62 + bt_set_format_text@Base 0.62 + bt_set_stringopts@Base 0.62 + bt_set_text@Base 0.62 + bt_split_list@Base 0.62 + bt_split_name@Base 0.62 + check_field_name@Base 0.62 + check_runaway_string@Base 0.62 + close_brace@Base 0.62 + comment@Base 0.62 + contents@Base 0.62 + dfa@Base 0.62 + done_macros@Base 0.62 + dump_ast@Base 0.62 + end_string@Base 0.62 + entry@Base 0.62 + entry_metatype@Base 0.62 + error@Base 0.62 + field@Base 0.62 + fields@Base 0.62 + fix_token_names@Base 0.62 + free_lex_buffer@Base 0.62 + general_error@Base 0.62 + get_uchar@Base 0.62 + init_macros@Base 0.62 + initialize_lexer_state@Base 0.62 + internal_error@Base 0.62 + isulower@Base 0.69 + lbrace@Base 0.62 + lex_info@Base 0.62 + lexer_overflow@Base 0.62 + lparen@Base 0.62 + lparen_in_string@Base 0.62 + name@Base 0.62 + newline@Base 0.62 + nodetype_names@Base 0.62 + notify@Base 0.62 + open_brace@Base 0.62 + print_error@Base 0.62 + quote_in_string@Base 0.62 + rbrace@Base 0.62 + report_error@Base 0.62 + rparen@Base 0.62 + rparen_in_string@Base 0.62 + setwd1@Base 0.62 + setwd2@Base 0.62 + simple_value@Base 0.62 + start_string@Base 0.62 + strlwr@Base 0.62 + strupr@Base 0.62 + toplevel_junk@Base 0.62 + usage_error@Base 0.62 + usage_warning@Base 0.62 + value@Base 0.62 + zzFAIL@Base 0.62 + zzStackOvfMsg@Base 0.62 + zzaStack@Base 0.62 + zzadvance@Base 0.62 + zzasp@Base 0.62 + zzastStack@Base 0.62 + zzast_sp@Base 0.62 + zzastnew@Base 0.62 + zzbegcol@Base 0.62 + zzbegexpr@Base 0.62 + zzbufovf@Base 0.62 + zzbufsize@Base 0.62 + zzchar@Base 0.62 + zzcharfull@Base 0.62 + zzclose_stream@Base 0.62 + zzconstr_attr@Base 0.62 + zzconsumeUntil@Base 0.62 + zzconsumeUntilToken@Base 0.62 + zzcr_attr@Base 0.62 + zzdup_ast@Base 0.62 + zzedecode@Base 0.62 + zzempty_attr@Base 0.62 + zzendcol@Base 0.62 + zzendexpr@Base 0.62 + zzerr1@Base 0.62 + zzerr2@Base 0.62 + zzerr3@Base 0.62 + zzerr4@Base 0.62 + zzerr5@Base 0.62 + zzerr@Base 0.62 + zzerr_in@Base 0.62 + zzerraction@Base 0.62 + zzerrstd@Base 0.62 + zzfree_ast@Base 0.62 + zzgettok@Base 0.62 + zzlextext@Base 0.62 + zzline@Base 0.62 + zzlink@Base 0.62 + zzmode@Base 0.62 + zzmore@Base 0.62 + zzpre_ast@Base 0.62 + zzrdfunc@Base 0.62 + zzrdstr@Base 0.62 + zzrdstream@Base 0.62 + zzreal_line@Base 0.62 + zzreplchar@Base 0.62 + zzreplstr@Base 0.62 + zzrestore_antlr_state@Base 0.62 + zzrestore_dlg_state@Base 0.62 + zzresynch@Base 0.62 + zzs_add@Base 0.62 + zzs_del@Base 0.62 + zzs_done@Base 0.62 + zzs_free@Base 0.62 + zzs_get@Base 0.62 + zzs_init@Base 0.62 + zzs_keydel@Base 0.62 + zzs_new@Base 0.62 + zzs_newadd@Base 0.62 + zzs_rmscope@Base 0.62 + zzs_scope@Base 0.62 + zzs_stat@Base 0.62 + zzs_strdup@Base 0.62 + zzsave_antlr_state@Base 0.62 + zzsave_dlg_state@Base 0.62 + zzset_deg@Base 0.62 + zzset_el@Base 0.62 + zzskip@Base 0.62 + zzsubchild@Base 0.62 + zzsubroot@Base 0.62 + zzsyn@Base 0.62 + zztfree@Base 0.62 + zztmake@Base 0.62 + zztoken@Base 0.62 + zztokens@Base 0.62 + zztoktext@Base 0.62 diff --git a/debian/libtext-bibtex-perl.examples b/debian/libtext-bibtex-perl.examples new file mode 100644 index 0000000..e39721e --- /dev/null +++ b/debian/libtext-bibtex-perl.examples @@ -0,0 +1 @@ +examples/* diff --git a/debian/libtext-bibtex-perl.install b/debian/libtext-bibtex-perl.install new file mode 100755 index 0000000..8b85f37 --- /dev/null +++ b/debian/libtext-bibtex-perl.install @@ -0,0 +1,11 @@ +#!/usr/bin/perl -w + +use Config; + +# expand the perl binary module directory at build time +print substr($Config{vendorarch}, 1) . "\n"; + +print <<EOF +usr/share/man/man3/*.3pm +EOF + diff --git a/debian/patches/0001-Introduce-a-btparse_api_version-note-and-use-it-in-d.patch b/debian/patches/0001-Introduce-a-btparse_api_version-note-and-use-it-in-d.patch new file mode 100644 index 0000000..44b1fc4 --- /dev/null +++ b/debian/patches/0001-Introduce-a-btparse_api_version-note-and-use-it-in-d.patch @@ -0,0 +1,95 @@ +From: David Bremner <bremner@debian.org> +Date: Sat, 3 Mar 2012 15:23:40 -0400 +Subject: Introduce a btparse_api_version note and use it in definine the + SONAME. + +Most linux distributions require a versioned SONAME for all libraries +in /usr/lib. This provides such an SONAME by defining the version in +Build.PL. + +We also provide a symlink with unversioned name to make the linking of +binaries to the shared library transparent. + +Arguably this should be defined in the C source of btparse, but since +the version is taken from the perl module, this alternative is maybe +more acceptable; it is certainly simpler than parsing another file in +Build.PL. +--- + Build.PL | 4 ++++ + inc/MyBuilder.pm | 22 ++++++++++++++++++---- + 2 files changed, 22 insertions(+), 4 deletions(-) + +--- a/Build.PL ++++ b/Build.PL +@@ -99,6 +99,10 @@ + } + } + $builder->notes( 'btparse_version' => $version ); ++# ++# this should be increased everytime there is a non-upward compatible ++# change the library ABI. ++$builder->notes( 'btparse_api_version' => 1 ); + $builder->notes( 'lib_path' => $libdir ); + $builder->add_build_element('usrlib'); + $builder->install_path( 'usrlib' => $libdir ); +--- a/inc/MyBuilder.pm ++++ b/inc/MyBuilder.pm +@@ -15,7 +15,7 @@ + + use File::Spec::Functions qw.catdir catfile.; + use File::Path qw.mkpath.; +-use Cwd 'abs_path'; ++use Cwd; + + my @EXTRA_FLAGS = (); + my @BINARIES = qw(biblex bibparse dumpnames); +@@ -321,9 +321,14 @@ + + + my $libbuilder = $self->notes('libbuilder'); ++ my $APIVERSION = $self->notes('btparse_api_version'); + my $LIBEXT = $libbuilder->{libext}; + +- print STDERR "\n** Creating libbtparse$LIBEXT\n"; ++ my $symlink_exists = eval { symlink("",""); 1 }; ++ ++ my $SONAME= $symlink_exists ? "libbtparse$LIBEXT.$APIVERSION" : "libbtparse$LIBEXT"; ++ ++ print STDERR "\n** Creating $SONAME\n"; + + my @modules = qw:init input bibtex err scan error + lex_auxiliary parse_auxiliary bibtex_ast sym +@@ -333,15 +338,15 @@ + my @objects = map { "btparse/src/$_.o" } @modules; + + my $libpath = $self->notes('lib_path'); +- $libpath = catfile($libpath, "libbtparse$LIBEXT"); +- my $libfile = "btparse/src/libbtparse$LIBEXT"; ++ $libpath = catfile($libpath, $SONAME); ++ my $libfile = "btparse/src/$SONAME"; + + my $extra_linker_flags = ""; + if ($^O =~ /darwin/) { + my $abs_path = abs_path($libfile); + $extra_linker_flags = "-install_name $abs_path"; + } elsif ($LIBEXT eq ".so") { +- $extra_linker_flags = "-Wl,-soname,libbtparse$LIBEXT"; ++ $extra_linker_flags = "-Wl,-soname,$SONAME"; + } + + if (!$self->up_to_date(\@objects, $libfile)) { +@@ -351,6 +356,14 @@ + extra_linker_flags => $extra_linker_flags); + } + ++ if ($symlink_exists) { ++ my $olddir = getcwd; ++ chdir ("btparse/src"); ++ unlink("libbtparse$LIBEXT"); ++ symlink ($SONAME, "libbtparse$LIBEXT") or die("$!"); ++ chdir ($olddir); ++ } ++ + my $libdir = catdir($self->blib, 'usrlib'); + mkpath( $libdir, 0, 0777 ) unless -d $libdir; + diff --git a/debian/patches/0002-disable-rpath-if-installing-into-usr-lib.patch b/debian/patches/0002-disable-rpath-if-installing-into-usr-lib.patch new file mode 100644 index 0000000..0c8ffa7 --- /dev/null +++ b/debian/patches/0002-disable-rpath-if-installing-into-usr-lib.patch @@ -0,0 +1,29 @@ +From: David Bremner <bremner@debian.org> +Date: Sat, 3 Mar 2012 20:33:47 -0400 +Subject: disable rpath if installing into /usr/lib + +rpath isn't needed then, and setting has some undesirable +side-effects, the more obvious being that it prevents relocating the +libraries in the files system. +--- + inc/MyBuilder.pm | 8 +++++++- + 1 files changed, 7 insertions(+), 1 deletions(-) + +--- a/inc/MyBuilder.pm ++++ b/inc/MyBuilder.pm +@@ -219,8 +219,14 @@ + + print STDERR "\n** Creating binaries (",join(", ", map { $_.$EXEEXT } @BINARIES), ")\n"; + ++ my $rpath_arg = ''; ++ ++ if ( ($^O !~ /darwin/) && $btparselibdir ne "/usr/lib") { ++ $rpath_arg = "-Wl,-R${btparselibdir}"; ++ } ++ + my $extra_linker_flags = sprintf("-Lbtparse/src %s -lbtparse ", +- ($^O !~ /darwin/)?"-Wl,-R${btparselibdir}":""); ++ $rpath_arg); + + my @toinstall; + diff --git a/debian/patches/0003-no-ldconfig.patch b/debian/patches/0003-no-ldconfig.patch new file mode 100644 index 0000000..a3cb0f1 --- /dev/null +++ b/debian/patches/0003-no-ldconfig.patch @@ -0,0 +1,23 @@ +Description: make sure we don't run ldconfig +Origin: vendor +Forwarded: not-needed +Author: gregor herrmann <gregoa@debian.org> +Last-Update: 2016-07-09 + +--- a/inc/MyBuilder.pm ++++ b/inc/MyBuilder.pm +@@ -52,10 +52,10 @@ sub ACTION_install { + $self->install_path( 'usrlib' => $usrlib ); + } + $self->SUPER::ACTION_install; +- if ($^O =~ /linux/ && $ENV{USER} eq 'root') { +- my $linux = Config::AutoConf->check_prog("ldconfig"); +- system $linux if (-x $linux); +- } ++# if ($^O =~ /linux/ && $ENV{USER} eq 'root') { ++# my $linux = Config::AutoConf->check_prog("ldconfig"); ++# system $linux if (-x $linux); ++# } + if ($^O =~ /(?:linux|bsd|sun|sol|dragonfly|hpux|irix|darwin|gnu)/ + && + $usrlib !~ m!^/usr(/local)?/lib/?$!) diff --git a/debian/patches/0004-manpage-section.patch b/debian/patches/0004-manpage-section.patch new file mode 100644 index 0000000..1d3a7cc --- /dev/null +++ b/debian/patches/0004-manpage-section.patch @@ -0,0 +1,31 @@ +Description: install manpages into section 3 +Origin: vendor +Forwarded: no +Author: gregor herrmann <gregoa@debian.org> +Last-Update: 2016-07-09 + +--- a/inc/MyBuilder.pm ++++ b/inc/MyBuilder.pm +@@ -172,18 +172,18 @@ + my $version = $self->notes('btparse_version'); + for my $pod (@$pods) { + my $man = $pod; +- $man =~ s!.pod!.1!; ++ $man =~ s!.pod!.3!; + $man =~ s!btparse/doc!blib/bindoc!; ## FIXME - path + next if $self->up_to_date($pod, $man); + ## FIXME +- `pod2man --section=1 --center="btparse" --release="btparse, version $version" $pod $man`; ++ `pod2man --section=3 --center="btparse" --release="btparse, version $version" $pod $man`; + } + + my $pod = 'btool_faq.pod'; +- my $man = catfile('blib','bindoc','btool_faq.1'); ++ my $man = catfile('blib','bindoc','btool_faq.3'); + unless ($self->up_to_date($pod, $man)) { + ## FIXME +- `pod2man --section=1 --center="btparse" --release="btparse, version $version" $pod $man`; ++ `pod2man --section=3 --center="btparse" --release="btparse, version $version" $pod $man`; + } + } + diff --git a/debian/patches/0005-hardening-flags.patch b/debian/patches/0005-hardening-flags.patch new file mode 100644 index 0000000..90317ee --- /dev/null +++ b/debian/patches/0005-hardening-flags.patch @@ -0,0 +1,26 @@ +Description: add LDFLAGS when linking the .so +Origin: vendor +Forwarded: no +Author: gregor herrmann <gregoa@debian.org> +Last-Update: 2016-07-09 + +--- a/inc/MyBuilder.pm ++++ b/inc/MyBuilder.pm +@@ -203,7 +203,7 @@ + $object =~ s/\.c/.o/; + next if $self->up_to_date($file, $object); + $cbuilder->compile(object_file => $object, +- extra_compiler_flags=>["-D_FORTIFY_SOURCE=1",@EXTRA_FLAGS], ++ extra_compiler_flags=>[@EXTRA_FLAGS], + source => $file, + include_dirs => ["btparse/src"]); + } +@@ -352,7 +352,7 @@ + my $abs_path = abs_path($libfile); + $extra_linker_flags = "-install_name $abs_path"; + } elsif ($LIBEXT eq ".so") { +- $extra_linker_flags = "-Wl,-soname,$SONAME"; ++ $extra_linker_flags = "-Wl,-soname,$SONAME $ENV{LDFLAGS}"; + } + + if (!$self->up_to_date(\@objects, $libfile)) { diff --git a/debian/patches/0006-no-lib64.patch b/debian/patches/0006-no-lib64.patch new file mode 100644 index 0000000..899b073 --- /dev/null +++ b/debian/patches/0006-no-lib64.patch @@ -0,0 +1,17 @@ +Description: don't install into /usr/lib64 even if it exists +Origin: vendor +Bug-Debian: https://bugs.debian.org/905594 +Forwarded: not-needed +Author: gregor herrmann <gregoa@debian.org> +Last-Update: 2018-08-06 + +--- a/Build.PL ++++ b/Build.PL +@@ -64,6 +64,7 @@ + + ## HACK HACK HACK HACK + my $libdir = $builder->install_destination("bin"); ++$libdir =~ s/\bbin\b/lib/; # ignores the lib64 hackery later + if ( $^O =~ /mswin32/i ) { + $libdir = undef; + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4c69211 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,6 @@ +0001-Introduce-a-btparse_api_version-note-and-use-it-in-d.patch +0002-disable-rpath-if-installing-into-usr-lib.patch +0003-no-ldconfig.patch +0004-manpage-section.patch +0005-hardening-flags.patch +0006-no-lib64.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2117ab2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install + # move manpages. should be done via Module::Build but meh + mv -v $(CURDIR)/debian/tmp/usr/share/man/man1/* $(CURDIR)/debian/tmp/usr/share/man/man3/ + rmdir --verbose --ignore-fail-on-non-empty $(CURDIR)/debian/tmp/usr/share/man/man1 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/tests/pkg-perl/smoke-files b/debian/tests/pkg-perl/smoke-files new file mode 100644 index 0000000..6545c0c --- /dev/null +++ b/debian/tests/pkg-perl/smoke-files @@ -0,0 +1,2 @@ +t +btparse/tests/data/ diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..e15836e --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Archive: CPAN +Contact: Alberto Simões <ambs@cpan.org>, Greg Ward <gward@python.net> +Name: Text-BibTeX +Repository: https://github.com/ambs/Text-BibTeX diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..2c69191 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://metacpan.org/release/Text-BibTeX .*/Text-BibTeX-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ |