[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#745082: fakechroot: chfn in a fakechroot environment



control: reassign -1 src:fakechroot

This was thought to be a debootstrap bug for a while, but it
originates in fakechroot.

I applied upstream's recent fix, patch attached, and tested that
debootstrap now works with the modified fakechroot:

$ sudo dpkg -i sudo dpkg -i fakechroot_2.17.2-1.1_all.deb
libfakechroot_2.17.2-1.1_amd64.deb
$ fakechroot fakeroot debootstrap --variant=fakechroot unstable
[...]
I: Base system installed successfully.

Best wishes,
Mike
diff -Nru fakechroot-2.17.2/debian/changelog fakechroot-2.17.2/debian/changelog
--- fakechroot-2.17.2/debian/changelog	2013-12-24 20:04:16.000000000 +0000
+++ fakechroot-2.17.2/debian/changelog	2015-10-18 03:51:18.000000000 +0000
@@ -1,3 +1,10 @@
+fakechroot (2.17.2-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add empty audit_log_acct_message (closes: #745082).
+
+ -- Michael Gilbert <mgilbert@debian.org>  Sun, 18 Oct 2015 03:46:22 +0000
+
 fakechroot (2.17.2-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru fakechroot-2.17.2/debian/patches/audit.patch fakechroot-2.17.2/debian/patches/audit.patch
--- fakechroot-2.17.2/debian/patches/audit.patch	1970-01-01 00:00:00.000000000 +0000
+++ fakechroot-2.17.2/debian/patches/audit.patch	2015-10-18 03:50:40.000000000 +0000
@@ -0,0 +1,32 @@
+description: add empty audit_log_acct_message
+bug-debian: http://bugs.debian.org/745082
+
+--- /dev/null
++++ b/src/audit_log_acct_message.c
+@@ -0,0 +1,16 @@
++/*
++ * Copyright (C) 2015      JH Chatenet <jhcha54008@free.fr>
++ *
++ * Licensed under the LGPL v2.1.
++*/
++
++
++#include <config.h>
++
++#include "libfakechroot.h"
++
++
++wrapper(audit_log_acct_message, int, (int audit_fd, int type, const char *pgname, const char *op, const char *name, unsigned int id, const char *host, const char *addr, const char *tty, int result))
++{
++    return 0;
++}
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -28,6 +28,7 @@ libfakechroot_la_SOURCES = \
+     _xftw64.c \
+     access.c \
+     acct.c \
++    audit_log_acct_message.c \
+     bind.c \
+     bindtextdomain.c \
+     canonicalize_file_name.c \
diff -Nru fakechroot-2.17.2/debian/patches/series fakechroot-2.17.2/debian/patches/series
--- fakechroot-2.17.2/debian/patches/series	2013-12-24 17:56:39.000000000 +0000
+++ fakechroot-2.17.2/debian/patches/series	2015-10-18 03:36:33.000000000 +0000
@@ -1,2 +1,3 @@
 # series file
 Export-V-variable-so-it-can-be-changed-with-config.patch
+audit.patch

Reply to: