alonbl 14/06/07 18:40:15 Added: libtasn1-3.6-build.patch Log: Version bump, bug#511536 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
Revision Changes Path 1.1 dev-libs/libtasn1/files/libtasn1-3.6-build.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libtasn1/files/libtasn1-3.6-build.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libtasn1/files/libtasn1-3.6-build.patch?rev=1.1&content-type=text/plain Index: libtasn1-3.6-build.patch =================================================================== >From 895e00804990040e252d93093c7c2adcdfa3efa5 Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev <[email protected]> Date: Sat, 7 Jun 2014 21:36:30 +0300 Subject: [PATCH] build: tests: fix Test_choice within separate builddir Signed-off-by: Alon Bar-Lev <[email protected]> --- tests/Makefile.am | 2 +- tests/Test_choice.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index d6c850a..4762a69 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -44,7 +44,7 @@ TESTS = Test_parser Test_tree Test_encoding Test_indefinite \ TESTS_ENVIRONMENT = \ ASN1PARSER=$(srcdir)/Test_parser.asn \ ASN1TREE=$(srcdir)/Test_tree.asn \ - ASN1PKIX=$(srcdir)/pkix.asn \ + ASN1CHOICE=$(srcdir)/choice.asn \ ASN1PKIX=$(srcdir)/pkix.asn \ ASN1CRLDER=$(srcdir)/crl.der \ ASN1INDEF=$(srcdir)/TestIndef.p12 \ diff --git a/tests/Test_choice.c b/tests/Test_choice.c index 07da57e..8a0b5c1 100644 --- a/tests/Test_choice.c +++ b/tests/Test_choice.c @@ -8,12 +8,16 @@ main (int argc, char** argv) int result = 0; asn1_node definitions = NULL, node1 = NULL, node2 = NULL; char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE]; + const char *choicefile = getenv ("ASN1CHOICE"); char data[1024]; int data_size = sizeof (data); + if (!choicefile) + choicefile = "choice.asn"; + /* Encode */ - result = asn1_parser2tree ("choice.asn", &definitions, errorDescription); + result = asn1_parser2tree (choicefile, &definitions, errorDescription); if (result != ASN1_SUCCESS) { printf ("error in %d\n", __LINE__); -- 1.8.5.5
