Codebase list osmo-libasn1c / 55aa5d2
Import Debian changes 0.9.31-1 osmo-libasn1c (0.9.31-1) unstable; urgency=medium * New upstream release * debian/control: bump standard to 4.1.4 (no changes) Thorsten Alteholz 5 years ago
10 changed file(s) with 213 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
77 aclocal.m4
88 config.*
99 configure
10 compile
1011 depcomp
1112 libtool
1213 ltmain.sh
0 @RELMAKE@
1
02 AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
13 ACLOCAL_AMFLAGS = -I m4
24
0 AC_INIT([libasn1c], [0.9.28],
0 AC_INIT([libasn1c],
1 m4_esyscmd([./git-version-gen .tarball-version]),
12 [openbsc-devel@lists.openbsc.org])
23
34 AM_INIT_AUTOMAKE([dist-bzip2])
45
56 dnl kernel style compile messages
67 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
9 dnl include release helper
10 RELMAKE='-include osmo-release.mk'
11 AC_SUBST([RELMAKE])
712
813 dnl checks for programs
914 AC_PROG_MAKE_SET
1520 AC_CONFIG_MACRO_DIR([m4])
1621
1722 PKG_CHECK_MODULES(LIBTALLOC, talloc)
23
24 AC_ARG_ENABLE(sanitize,
25 [AS_HELP_STRING(
26 [--enable-sanitize],
27 [Compile with address sanitizer enabled],
28 )],
29 [sanitize=$enableval], [sanitize="no"])
30 if test x"$sanitize" = x"yes"
31 then
32 CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined"
33 CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined"
34 fi
35
36 AC_ARG_ENABLE(werror,
37 [AS_HELP_STRING(
38 [--enable-werror],
39 [Turn all compiler warnings into errors, with exceptions:
40 a) deprecation (allow upstream to mark deprecation without breaking builds);
41 b) "#warning" pragmas (allow to remind ourselves of errors without breaking builds)
42 ]
43 )],
44 [werror=$enableval], [werror="no"])
45 if test x"$werror" = x"yes"
46 then
47 WERROR_FLAGS="-Werror"
48 WERROR_FLAGS+=" -Wno-error=deprecated -Wno-error=deprecated-declarations"
49 WERROR_FLAGS+=" -Wno-error=cpp" # "#warning"
50 CFLAGS="$CFLAGS $WERROR_FLAGS"
51 CPPFLAGS="$CPPFLAGS $WERROR_FLAGS"
52 fi
1853
1954 # The following test is taken from WebKit's webkit.m4
2055 saved_CFLAGS="$CFLAGS"
3166 [build_debug="$enableval"], [build_debug="no"])
3267 AM_CONDITIONAL(BUILD_DEBUG, test "x$build_debug" = "xyes")
3368
69 AC_MSG_RESULT([CFLAGS="$CFLAGS"])
70 AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"])
71
3472 AC_OUTPUT(
3573 libasn1c.pc
3674 src/Makefile
3775 include/Makefile
3876 include/asn1c/Makefile
3977 Makefile)
40
00 #!/usr/bin/env bash
11 # jenkins build helper script for libasn1c. This is how we build on jenkins.osmocom.org
2
3 set -e
4 osmo-clean-workspace.sh
25
36 set +x
47 echo
912 set -x
1013
1114 autoreconf --install --force
12 ./configure CFLAGS="-Werror" CPPFLAGS="-Werror"
15 ./configure --enable-werror
1316 $MAKE $PARALLEL_MAKE
1417 $MAKE distcheck \
1518 || cat-testlogs.sh
19
20 osmo-clean-workspace.sh
0 osmo-libasn1c (0.9.31-1) unstable; urgency=medium
1
2 * New upstream release
3 * debian/control: bump standard to 4.1.4 (no changes)
4
5 -- Thorsten Alteholz <debian@alteholz.de> Thu, 21 Jun 2018 19:51:51 +0200
6
07 osmo-libasn1c (0.9.28-2) unstable; urgency=medium
18
29 * move to unstable
310 * debian/control: move to debian-mobcom maintainer
411 * debian/control: add salsa URLs
512 * debian/control: use dh11
6 * debian/control: bum standard to 4.1.3 (no changes)
7
13 * debian/control: bump standard to 4.1.3 (no changes)
14
815 -- Thorsten Alteholz <debian@alteholz.de> Mon, 19 Feb 2018 19:47:14 +0100
916
1017 osmo-libasn1c (0.9.28-1) experimental; urgency=medium
44 Uploaders: Thorsten Alteholz <debian@alteholz.de>
55 Build-Depends: debhelper (>=11),
66 libtalloc-dev
7 Standards-Version: 4.1.3
8 Vcs-Browser: https://salsa.debian.org/debian-mobcom-team/osmo-libasn1c.git
7 Standards-Version: 4.1.4
8 Vcs-Browser: https://salsa.debian.org/debian-mobcom-team/osmo-libasn1c
99 Vcs-Git: https://salsa.debian.org/debian-mobcom-team/osmo-libasn1c.git
1010 Homepage: https://projects.osmocom.org/projects/libasn1c
1111
0 #!/bin/sh
1 # Print a version string.
2 scriptversion=2010-01-28.01
3
4 # Copyright (C) 2007-2010 Free Software Foundation, Inc.
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 # This script is derived from GIT-VERSION-GEN from GIT: http://git.or.cz/.
20 # It may be run two ways:
21 # - from a git repository in which the "git describe" command below
22 # produces useful output (thus requiring at least one signed tag)
23 # - from a non-git-repo directory containing a .tarball-version file, which
24 # presumes this script is invoked like "./git-version-gen .tarball-version".
25
26 # In order to use intra-version strings in your project, you will need two
27 # separate generated version string files:
28 #
29 # .tarball-version - present only in a distribution tarball, and not in
30 # a checked-out repository. Created with contents that were learned at
31 # the last time autoconf was run, and used by git-version-gen. Must not
32 # be present in either $(srcdir) or $(builddir) for git-version-gen to
33 # give accurate answers during normal development with a checked out tree,
34 # but must be present in a tarball when there is no version control system.
35 # Therefore, it cannot be used in any dependencies. GNUmakefile has
36 # hooks to force a reconfigure at distribution time to get the value
37 # correct, without penalizing normal development with extra reconfigures.
38 #
39 # .version - present in a checked-out repository and in a distribution
40 # tarball. Usable in dependencies, particularly for files that don't
41 # want to depend on config.h but do want to track version changes.
42 # Delete this file prior to any autoconf run where you want to rebuild
43 # files to pick up a version string change; and leave it stale to
44 # minimize rebuild time after unrelated changes to configure sources.
45 #
46 # It is probably wise to add these two files to .gitignore, so that you
47 # don't accidentally commit either generated file.
48 #
49 # Use the following line in your configure.ac, so that $(VERSION) will
50 # automatically be up-to-date each time configure is run (and note that
51 # since configure.ac no longer includes a version string, Makefile rules
52 # should not depend on configure.ac for version updates).
53 #
54 # AC_INIT([GNU project],
55 # m4_esyscmd([build-aux/git-version-gen .tarball-version]),
56 # [bug-project@example])
57 #
58 # Then use the following lines in your Makefile.am, so that .version
59 # will be present for dependencies, and so that .tarball-version will
60 # exist in distribution tarballs.
61 #
62 # BUILT_SOURCES = $(top_srcdir)/.version
63 # $(top_srcdir)/.version:
64 # echo $(VERSION) > $@-t && mv $@-t $@
65 # dist-hook:
66 # echo $(VERSION) > $(distdir)/.tarball-version
67
68 case $# in
69 1) ;;
70 *) echo 1>&2 "Usage: $0 \$srcdir/.tarball-version"; exit 1;;
71 esac
72
73 tarball_version_file=$1
74 nl='
75 '
76
77 # First see if there is a tarball-only version file.
78 # then try "git describe", then default.
79 if test -f $tarball_version_file
80 then
81 v=`cat $tarball_version_file` || exit 1
82 case $v in
83 *$nl*) v= ;; # reject multi-line output
84 [0-9]*) ;;
85 *) v= ;;
86 esac
87 test -z "$v" \
88 && echo "$0: WARNING: $tarball_version_file seems to be damaged" 1>&2
89 fi
90
91 if test -n "$v"
92 then
93 : # use $v
94 elif
95 v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
96 || git describe --abbrev=4 HEAD 2>/dev/null` \
97 && case $v in
98 [0-9]*) ;;
99 v[0-9]*) ;;
100 *) (exit 1) ;;
101 esac
102 then
103 # Is this a new git that lists number of commits since the last
104 # tag or the previous older version that did not?
105 # Newer: v6.10-77-g0f8faeb
106 # Older: v6.10-g0f8faeb
107 case $v in
108 *-*-*) : git describe is okay three part flavor ;;
109 *-*)
110 : git describe is older two part flavor
111 # Recreate the number of commits and rewrite such that the
112 # result is the same as if we were using the newer version
113 # of git describe.
114 vtag=`echo "$v" | sed 's/-.*//'`
115 numcommits=`git rev-list "$vtag"..HEAD | wc -l`
116 v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
117 ;;
118 esac
119
120 # Change the first '-' to a '.', so version-comparing tools work properly.
121 # Remove the "g" in git describe's output string, to save a byte.
122 v=`echo "$v" | sed 's/-/./;s/\(.*\)-g/\1-/'`;
123 else
124 v=UNKNOWN
125 fi
126
127 v=`echo "$v" |sed 's/^v//'`
128
129 # Don't declare a version "dirty" merely because a time stamp has changed.
130 git status > /dev/null 2>&1
131
132 dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
133 case "$dirty" in
134 '') ;;
135 *) # Append the suffix only if there isn't one already.
136 case $v in
137 *-dirty) ;;
138 *) v="$v-dirty" ;;
139 esac ;;
140 esac
141
142 # Omit the trailing newline, so that m4_esyscmd can use the result directly.
143 echo "$v" | tr -d '\012'
144
145 # Local variables:
146 # eval: (add-hook 'write-file-hooks 'time-stamp)
147 # time-stamp-start: "scriptversion="
148 # time-stamp-format: "%:y-%02m-%02d.%02H"
149 # time-stamp-end: "$"
150 # End:
55 Name: asn1c runtime library
66 Description: C Utility Library
77 Version: @VERSION@
8 Libs: -L${libdir} @LIBTALLOC_LIBS@ -lasn1c -lm
8 Libs: -L${libdir} @LIBTALLOC_LIBS@ -lasn1c
99 Cflags: -I${includedir}/ -I${includedir}/asn1c @LIBTALLOC_CFLAGS@
1010
00 # This is _NOT_ the library release version, it's an API version.
11 # Please read Chapter 6 "Library interface versions" of the libtool
22 # documentation before making any modification
3 LIBVERSION=1:0:0
3 LIBVERSION=1:1:0
44
55 AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include/asn1c
66 AM_CFLAGS = -fPIC -Wall $(LIBTALLOC_CFLAGS)
1010
1111 lib_LTLIBRARIES = libasn1c.la
1212
13 libasn1c_la_LDFLAGS = $(LIBTALLOC_LIBS)
13 libasn1c_la_LDFLAGS = $(LIBTALLOC_LIBS) -lm
1414 libasn1c_la_SOURCES = ANY.c constraints.c GeneralizedTime.c NumericString.c T61String.c asn_codecs_prim.c constr_CHOICE.c GeneralString.c ObjectDescriptor.c TeletexString.c asn_SEQUENCE_OF.c constr_SEQUENCE.c GraphicString.c OBJECT_IDENTIFIER.c UniversalString.c asn_SET_OF.c constr_SEQUENCE_OF.c IA5String.c OCTET_STRING.c UTCTime.c ber_decoder.c constr_SET.c INTEGER.c per_decoder.c UTF8String.c ber_tlv_length.c constr_SET_OF.c ISO646String.c per_encoder.c VideotexString.c ber_tlv_tag.c constr_TYPE.c NativeEnumerated.c per_support.c VisibleString.c BIT_STRING.c NativeInteger.c PrintableString.c xer_decoder.c BMPString.c der_encoder.c NativeReal.c REAL.c xer_encoder.c BOOLEAN.c ENUMERATED.c NULL.c RELATIVE-OID.c xer_support.c per_opentype.c asn1helpers.c
1515
6363 st->bits_unused = 0;
6464 return 0;
6565 }
66
67 if (len < 0)
68 len = strlen((char*)str);
6966
7067 buf = MALLOC(len);
7168 if (!buf) {