debian/0000755000000000000000000000000012226501455007170 5ustar debian/README.Debian0000644000000000000000000000056112157657141011242 0ustar asn1c for Debian ---------------- Package asn1c excludes RFC text files due to their non-free license. If you intend to use examples, please extract them from the original upstream sources. Following files are removed: examples/rfc4511.txt examples/rfc3280.txt examples/rfc3525.txt -- Eugene Seliverstov Mon, 17 Jul 2013 20:00:00 +0400 debian/docs0000644000000000000000000000007012157650140010037 0ustar AUTHORS BUGS FAQ README TODO doc/docsrc/asn1c-usage.pdf debian/rules0000755000000000000000000000363712224532536010263 0ustar #!/usr/bin/make -f export DH_VERBOSE=1 # Grab the version before dfsg DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST))) DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ | sed -rne 's,^Version: ([^-]+)([.+]dfsg[^-]*)-.*,\1,p') DEB_DFSG_VERSION=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ | sed -rne 's,^Version: ([^-]+)([.+]dfsg[^-]*)-.*,\2,p') %: dh $@ --with autoreconf override_dh_install: dh_install rm debian/asn1c/usr/bin/*.pl rm debian/asn1c/usr/share/doc/asn1c/COPYING rm debian/asn1c/usr/share/doc/asn1c/ChangeLog override_dh_auto_clean: dh_auto_clean -rm -rf asn1c/tests/test-check-* -rm -f doc/docsrc/*.pdf -rm -f doc/docsrc/asn1c-usage.xdv override_dh_auto_build: dh_auto_build $(MAKE) -C doc/docsrc regen get-orig-source: uscan --noconf --force-download --rename --download-current-version --destdir=. $(DEB_DEBIAN_DIR)/.. [ ! -d asn1c-$(DEB_UPSTREAM_VERSION)$(DEB_DFSG_VERSION) ] || \ (echo "Directory with unpacked target tarball already exists" ; exit 1) rm -rf asn1c-$(DEB_UPSTREAM_VERSION) tar -xf $(DEB_DEBIAN_DIR)/../asn1c_$(DEB_UPSTREAM_VERSION).orig.tar.gz rm $(DEB_DEBIAN_DIR)/../asn1c_$(DEB_UPSTREAM_VERSION).orig.tar.gz # remove IETF non-free RFC files rm asn1c-$(DEB_UPSTREAM_VERSION)/examples/rfc3280.txt rm asn1c-$(DEB_UPSTREAM_VERSION)/examples/rfc3525.txt rm asn1c-$(DEB_UPSTREAM_VERSION)/examples/rfc4511.txt # remove pdf documentation without sources rm asn1c-$(DEB_UPSTREAM_VERSION)/doc/asn1c-quick.pdf rm asn1c-$(DEB_UPSTREAM_VERSION)/doc/asn1c-usage.pdf # repack sources with dfsg prefix mv asn1c-$(DEB_UPSTREAM_VERSION) asn1c-$(DEB_UPSTREAM_VERSION)$(DEB_DFSG_VERSION) GZIP=--best tar -cz --owner root --group root --mode a+rX \ -f asn1c_$(DEB_UPSTREAM_VERSION)$(DEB_DFSG_VERSION).orig.tar.gz \ asn1c-$(DEB_UPSTREAM_VERSION)$(DEB_DFSG_VERSION) rm -r asn1c-$(DEB_UPSTREAM_VERSION)$(DEB_DFSG_VERSION) debian/compat0000644000000000000000000000000212021702267010363 0ustar 9 debian/watch0000644000000000000000000000021012223077254010214 0ustar # watch control file for uscan version=3 opts=dversionmangle=s/[\+\.]dfsg\d*// \ http://sf.net/asn1c/asn1c-(.+)\.tar\.gz debian uupdate debian/README.source0000644000000000000000000000133012157657111011350 0ustar asn1c for Debian ---------------- Examples build is disabled because needed IETF text files are removed from a package due to non-free license. PDF documentation file doc/asn1c-quick.pdf is excluded because sources are missing. PDF documentation file doc/asn1c-usage.pdf is excluded but generated from sources during the build. To build the package from source you need a repackaged DFSG tarball. It can be created from upstream sources by launching script: debian/rules/get-orig-source The source package uses quilt for the modifications of the upstream source. Please consult with quilt documentation in /usr/share/doc/quilt/README.source -- Eugene Seliverstov Mon, 17 Jul 2013 20:00:00 +0400 debian/copyright0000644000000000000000000000533012157606310011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ASN.1 Compiler Upstream-Author: Lev Walkin Source: http://asn1c.sourceforge.net Disclaimer: The IETF documents rfc3280.txt, rfc3525.txt, and rfc4511.txt have been removed by Debian from asn1c-0.9.21/samples/ due to their non-free license. If you need them, e.g. to build the samples, get the original source from the address above. Files: * Copyright: (c) 2003, 2004, 2005, 2006, 2007 Lev Walkin License: BSD-2-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY AUTHORS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2012 Eugene Seliverstov 2005 W. Martin Borgert 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 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/patches/0000755000000000000000000000000012224534450010616 5ustar debian/patches/03_nodebugoutcheck.diff0000644000000000000000000000215612157604104015126 0ustar Description: Disable dumping binary strings to stderr while executing tests. Modified a build flag controlling verbose tests output that can damage a console output. Forwarded: not-needed Author: Eugene Seliverstov Last-Update: 2012-09-04 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/asn1c/tests/check-assembly.sh +++ b/asn1c/tests/check-assembly.sh @@ -39,7 +39,7 @@ cat > Makefile < #include -#define EMIT_ASN_DEBUG 1 +#define EMIT_ASN_DEBUG 0 #include #include --- a/skeletons/tests/check-REAL.c +++ b/skeletons/tests/check-REAL.c @@ -2,7 +2,7 @@ #include #include -#define EMIT_ASN_DEBUG 1 +#define EMIT_ASN_DEBUG 0 #include static char reconstructed[2][512]; debian/patches/07_asneeded.diff0000644000000000000000000000120112045707046013524 0ustar Description: fix FTBFS with --as-needed linker option Libraries must be placed after source files in command line. Bug-Debian: http://bugs.debian.org/692307 Author: Ilya Barygin --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/asn1c/tests/check-assembly.sh +++ b/asn1c/tests/check-assembly.sh @@ -48,7 +48,7 @@ CC ?= ${CC} all: check-executable check-executable: compiled-module *.c* @rm -f *.core - \$(CC) \$(CFLAGS) -o check-executable -lm *.c* + \$(CC) \$(CFLAGS) -o check-executable *.c* -lm # Compile the corresponding .asn1 spec. compiled-module: ${asn_module} ../../asn1c debian/patches/00_norfcsamples.diff0000644000000000000000000000075012157603553014453 0ustar Description: Removed tests that used non-free IETF files. Author: W. Borgert Last-Update: 2013-06-17 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -14,7 +14,7 @@ ASN1_FILES_3 = \ rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1 -all: $(ASN1_FILES_1) $(ASN1_FILES_2) $(ASN1_FILES_3) +all: $(ASN1_FILES_1): crfc2asn1.pl $(ASN1_SOURCE_1) ./crfc2asn1.pl $(ASN1_SOURCE_1) debian/patches/10_fixdocfont.patch0000644000000000000000000000076712224534321014311 0ustar Description: Build PDF documentation with standard fonts. Author: Eugene Seliverstov Last-Update: 2013-10-07 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/doc/docsrc/asn1c-usage.tex +++ b/doc/docsrc/asn1c-usage.tex @@ -6,9 +6,6 @@ \usepackage[hmargin={1in,1in},vmargin={2in,2in}]{geometry} \defaultfontfeatures{Mapping=tex-text} -\setmainfont{Myriad Pro} -\setsansfont{Myriad Pro} -\setmonofont{Consolas} \usepackage{fancyhdr} \pagestyle{fancy} debian/patches/08_serialtests.patch0000644000000000000000000000107512157603403014513 0ustar Description: fix FTBFS with automake 1.12 or later. Declared tests as serial because default behaviour is parallel test harness. Bug-Debian: http://bugs.debian.org/712548 Author: Eugene Seliverstov Last-Update: 2013-06-17 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_INIT([asn1c], [0.9.24], [vlm@lionet.info]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign serial-tests]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_MACRO_DIR([m4]) debian/patches/05_nooverflowtests.diff0000644000000000000000000000442512157604612015247 0ustar Description: Disable tests for integer overflowing for 32-bit architectures. Disables some tests for overflowing INTEGER and OID types for ILP32 machines. Tests are fair but specified behaviour is not implemented yet. Forwarded: not-needed Author: Eugene Seliverstov Last-Update: 2012-10-01 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/asn1c/tests/check-assembly.sh +++ b/asn1c/tests/check-assembly.sh @@ -39,7 +39,7 @@ cat > Makefile <2147483649", 0); check_xer(-1, "3147483649", 0); check_xer(-1, "4147483649", 0); +#ifndef NO_OVERFLOW_TESTS check_xer(-1, "5147483649", 0); /* special */ check_xer(-1, "9147483649", 0); check_xer(-1, "9999999999", 0); check_xer(-1, "-5147483649", 0);/* special */ check_xer(-1, "-9147483649", 0); check_xer(-1, "-9999999999", 0); +#endif } if(sizeof(long) == 8) { check_xer(0, "2147483648", 2147483648); --- a/skeletons/tests/check-OIDs.c +++ b/skeletons/tests/check-OIDs.c @@ -416,6 +416,7 @@ check_parse("1.2000000000.3", 3); check_parse("1.2147483647.3", 3); if(sizeof(long) == 4) { +#ifndef NO_OVERFLOW_TESTS check_parse("1.2147483648.3", -1); /* overflow on ILP32 */ check_parse("1.2147483649.3", -1); /* overflow on ILP32 */ check_parse("1.3000000000.3", -1); @@ -423,6 +424,7 @@ check_parse("1.5000000000.3", -1); check_parse("1.6000000000.3", -1); check_parse("1.9000000000.3", -1); +#endif } else if(sizeof(long) == 8) { check_parse("1.2147483648.3", 3); check_parse("1.9223372036854775807.3", 3); --- a/skeletons/tests/Makefile.am +++ b/skeletons/tests/Makefile.am @@ -1,4 +1,4 @@ -AM_CPPFLAGS = -I$(top_srcdir)/skeletons +AM_CPPFLAGS = -I$(top_srcdir)/skeletons -DNO_OVERFLOW_TESTS check_PROGRAMS = \ check-ber_tlv_tag \ debian/patches/04_nopdf.diff0000644000000000000000000000063112157604213013061 0ustar Description: Exclude pdf from build because of missing sources. Forwarded: not-needed Author: Eugene Seliverstov Last-Update: 2013-06-17 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -3,7 +3,7 @@ docsdir = $(datadir)/doc/asn1c -docs_DATA = $(srcdir)/*.pdf +docs_DATA = -EXTRA_DIST = $(srcdir)/*.pdf +EXTRA_DIST = debian/patches/series0000644000000000000000000000027112224534360012033 0ustar 00_norfcsamples.diff 03_nodebugoutcheck.diff 04_nopdf.diff 05_nooverflowtests.diff 06_implicitdecl.diff 07_asneeded.diff 08_serialtests.patch 09_automakewarns.patch 10_fixdocfont.patch debian/patches/09_automakewarns.patch0000644000000000000000000000140112157655445015041 0ustar Description: Fixed automake warnings, enabled AM_PROG_AR. Author: Eugene Seliverstov Last-Update: 2013-06-17 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,8 @@ AC_INIT([asn1c], [0.9.24], [vlm@lionet.info]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign serial-tests]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign serial-tests 1.12]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_MACRO_DIR([m4]) -AM_PROG_LIBTOOL - dnl Checks for programs. AC_PROG_CC AC_PROG_CPP @@ -13,7 +11,9 @@ AC_PROG_MAKE_SET AC_PROG_YACC AM_PROG_LEX -AC_PATH_PROG(AR, ar, ar, $PATH:/usr/ucb:/usr/ccs/bin) dnl for Solaris +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + +AM_PROG_LIBTOOL case "$host_os" in cygwin) debian/patches/06_implicitdecl.diff0000644000000000000000000000057212032371625014423 0ustar Description: Fixed isspace implicit declaration warning. Author: Eugene Seliverstov Last-Update: 2012-10-01 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/asn1c/tests/check-70.c +++ b/asn1c/tests/check-70.c @@ -13,6 +13,7 @@ #include #include #include +#include #include debian/asn1c.examples0000644000000000000000000000005412157605015011734 0ustar examples/clyx2asn1.pl examples/crfc2asn1.pl debian/source/0000755000000000000000000000000012021702270010457 5ustar debian/source/format0000644000000000000000000000001412021702270011665 0ustar 3.0 (quilt) debian/asn1c.doc-base0000644000000000000000000000031112157650506011574 0ustar Document: asn1c Title: ASN.1 C Compiler Manual Author: Lev Walkin Abstract: ASN.1 C Compiler Manual Section: Programming/C Format: PDF Files: /usr/share/doc/asn1c/asn1c-usage.pdf.gz debian/control0000644000000000000000000000136712224523515010601 0ustar Source: asn1c Section: devel Priority: extra Maintainer: Eugene Seliverstov Build-Depends: debhelper (>= 9.0.0), autotools-dev, dh-autoreconf, automake, libtool, m4, flex, texlive, texlive-xetex, lmodern Standards-Version: 3.9.4 Homepage: http://asn1c.sourceforge.net Vcs-Svn: svn://anonscm.debian.org/collab-maint/deb-maint/asn1c/trunk Vcs-Browser: http://anonscm.debian.org/viewvc/collab-maint/deb-maint/asn1c/trunk Package: asn1c Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: ASN.1 compiler for C This ASN.1 compiler turns the formal ASN.1 specifications into the C code. The compiler is shipped together with conformant BER/DER/XER codecs. The X.509 and GSM TAP3 decoding examples are shipped as well. debian/changelog0000644000000000000000000000655012224541074011047 0ustar asn1c (0.9.24+dfsg-1) unstable; urgency=low * New upstream release * Changed DFSG naming to '+dfsg' instead of '.dfsg' * Build asn1c-usage PDF from sources and use standard packaged fonts (patch 10_fixdocfont) * Fix warnings for automake (patch 09_automakewarns) * Drop patches 01_hardening, 02_asnctfail as they are fixed in upstream -- Eugene Seliverstov Mon, 07 Oct 2013 18:00:00 +0400 asn1c (0.9.21.dfsg1-4) unstable; urgency=low * Fix FTBFS with automake 1.12 or later. (Closes: #712548) * Updated policy version to 3.9.4 -- Eugene Seliverstov Mon, 17 Jun 2013 14:27:06 +0400 asn1c (0.9.21.dfsg1-3) unstable; urgency=low * Fix FTBFS with --as-needed linker option. Thanks to Ilya Barygin for the report and patch. (closes: #692307). -- Eugene Seliverstov Mon, 05 Nov 2012 14:26:20 +0400 asn1c (0.9.21.dfsg1-2) unstable; urgency=low * Fixed failed test suite for 32-bit architectures. * Fixed implicit declaration warning. -- Eugene Seliverstov Tue, 02 Oct 2012 01:01:33 +0400 asn1c (0.9.21.dfsg1-1) unstable; urgency=low * Initial release (Closes: #686380) * Re-adopted removed package asn1c (version 0.9.21.dsfg-4) * Hardened sources and patched some Wformat-security errors * Repackaged upstream tarball to exclude PDFs without sources -- Eugene Seliverstov Mon, 03 Sep 2012 20:51:03 +0400 asn1c (0.9.21.dfsg-4) unstable; urgency=low * Endorse NMU (closes: #472593). * New (= old) maintainer, because team does not exist. -- W. Martin Borgert Tue, 22 Jul 2008 16:28:36 +0000 asn1c (0.9.21.dfsg-3.1) unstable; urgency=low * NMU. * debian/control, debian/rules: Replace automake1.8 with automake1.9 to facilitate automake1.8 removal. (Closes: #472593) -- Eric Dorland Sat, 03 May 2008 00:00:22 -0400 asn1c (0.9.21.dfsg-3) unstable; urgency=low * Fix build dependencies, again (closes: #430098). Sorry for having been too lazy to install pbuilder on my laptop earlier. -- W. Borgert Fri, 22 Jun 2007 13:01:04 +0000 asn1c (0.9.21.dfsg-2) unstable; urgency=low * Fix automake build dependency (closes: #430098). -- W. Borgert Fri, 22 Jun 2007 11:29:21 +0000 asn1c (0.9.21.dfsg-1) unstable; urgency=low * Removed non-free RFCs (closes: #393357), which unfortunately disables the samples. -- W. Borgert Thu, 21 Jun 2007 11:12:30 +0000 asn1c (0.9.21-2) unstable; urgency=low * New build, forgot to separate sources/diff. * New release (closes: #327621). -- W. Borgert Sat, 23 Sep 2006 13:50:05 +0000 asn1c (0.9.21-1) unstable; urgency=low * New release (closes: #327621). -- W. Borgert Sat, 23 Sep 2006 12:27:12 +0000 asn1c (0.9.16-1) unstable; urgency=low * New release: manual page describes -fcompound-names option (closes: #311978), gcc-4.0 fix (closes: #314343). * New maintainer: Debian FDT tool team , FDT = Formal Description Technique (e.g. ASN.1, MSC, SDL, TTCN-3). -- W. Borgert Tue, 02 Aug 2005 17:27:57 +0000 asn1c (0.9.14-1) unstable; urgency=low * Initial Release (closes: #287046). -- W. Borgert Sat, 28 May 2005 12:36:42 +0000