Codebase list pktanon / debian/2_git20160407.0.2bde4f2+dfsg-6
include patches to fix FTBFS Sascha Steinbiss 4 years ago
4 changed file(s) with 44 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 pktanon (2~git20160407.0.2bde4f2+dfsg-6) unstable; urgency=medium
1
2 [ Peter Michael Green ]
3 * Move <pcap.h> include outside namespace.
4 * Clean up some stuff left behind by testsuite.
5 * Disable testsuite, it doesn't get run on the autobuilders anyway,
6 so it just acts as a trap for people building manually.
7
8 -- Sascha Steinbiss <satta@debian.org> Fri, 01 Nov 2019 08:18:43 +0100
9
010 pktanon (2~git20160407.0.2bde4f2+dfsg-5) unstable; urgency=medium
111
212 * Use debhelper 12.
0 Description: Move #include <pcap.h> outside namespace
1 Utils.h includes pcap.h from within the pktannon namespace, this causes system
2 structures to be incorrectly placed in the pktanon namespace breaking stuff
3 later. This patch moves the include outside of the namespace.
4 Author: Peter Michael Green <plugwash@debian.org>
5
6 --- pktanon-2~git20160407.0.2bde4f2+dfsg.orig/src/Utils.h
7 +++ pktanon-2~git20160407.0.2bde4f2+dfsg/src/Utils.h
8 @@ -13,6 +13,11 @@
9 #include <PktAnon.h>
10 // #include <transformations/ErrorCodes.h>
11
12 +# ifdef HAVE_LIBPCAP
13 +
14 +# include <pcap.h>
15 +# endif
16 +
17 namespace pktanon
18 {
19
20 @@ -35,8 +40,6 @@ inline void transform_packet ( PCAP_REC_
21
22 # ifdef HAVE_LIBPCAP
23
24 -# include <pcap.h>
25 -
26 inline void transform_packet ( struct pcap_pkthdr* pkt_header, const uint8_t* original_packet, uint8_t* transformed_packet, Stats& stats )
27 {
28 auto new_pkt_len = PktAnon::transform_packet ( original_packet, transformed_packet, pkt_header->caplen );
00 rename-enums.patch
11 0001-remove-CryptoPan.patch
22 0002-add-support-for-xerces-c-3.2.patch
3 0004-include-pcap.h-outside-namespace.patch
1919 override_dh_auto_clean:
2020 dh_auto_clean
2121 rm -rf $(MANPAGES)
22 rm -f tests/pktanon-runtime/trace.pcap.gz tests/transformations/out.pcap tests/dejagnu_logs/*.sum tests/dejagnu_logs/*.log
2223
2324 override_dh_installman: $(MANPAGES)
2425 dh_installman
2627 override_dh_auto_install:
2728 dh_auto_install
2829 rm -rfv debian/pktanon/usr/lib
30
31 override_dh_auto_test:
32 echo testsuite disabled.