Bug#927946: python-audit: SWIG-related type errors render module unusable

2019-04-25 Thread Chris Hofstaedtler
Dear Maintainer,

the following patch fixes the problem for me, tested locally.
Please consider applying it.

Cheers,
Chris

--- audit-2.8.4.orig/bindings/swig/src/auditswig.i
+++ audit-2.8.4/bindings/swig/src/auditswig.i
@@ -41,6 +41,6 @@ typedef unsigned __u32;
 typedef unsigned uid_t;
 %include "/usr/include/linux/audit.h"
 #define __extension__ /*nothing*/
-%include "/usr/include/stdint.h"
+%include 
 %include "../lib/libaudit.h"
 



Bug#927946: python-audit: SWIG-related type errors render module unusable

2019-04-25 Thread Michael Renner
Package: python-audit
Version: 1:2.8.4-2
Severity: grave
Tags: upstream
Justification: renders package unusable

Dear Maintainer,

The following operations fail due to a SWIG-related type error:

```
% sudo python
Python 2.7.16 (default, Apr  6 2019, 01:42:57)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import audit
>>> fd = audit.audit_open()
>>> audit.audit_set_enabled(fd, 1)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: in method 'audit_set_enabled', argument 2 of type 'uint32_t'
>>>
```

Relevant discussion: 
http://swig.10945.n7.nabble.com/SWIG-vs-uint32-t-td15045.html

Best regards,
Michael

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to 
en_US.UTF-8), LANGUAGE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-audit depends on:
ii  libaudit11:2.8.4-2
ii  libauparse0  1:2.8.4-2
ii  libc62.28-8
ii  python   2.7.16-1

python-audit recommends no packages.

python-audit suggests no packages.

-- no debconf information


signature.asc
Description: Digital signature