Your message dated Wed, 21 Nov 2007 16:02:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#452224: fixed in fakeroot 1.8.7
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: fakeroot
Version: 1.8.5
We've done a little more work fixing fakeroot to work on various
flavours of Solaris, so I'm attaching a few more patches.
Firstly, a patch to cope with 64-bit builds on Solaris - where
'stat()' is already 64-bit, so stat64() isn't needed.
Then there's a patch and a tarball to cope with Solaris versions
earlier than 10 - these don't have the setenv() and unsetenv()
functions. There's a standard GNU workaround, the files in the
tarball are lifted from the gnutar source.
The final patch is a small update (and I've added some comments) to
our fake_get_owner() function. I'm still trying to get permission
to send you our Perl module which talks to fake_get_owner() - I
think we have engineering approval, just have to convince our legal
people that our business won't collapse as a result of sharing a
Perl module...
These patches modify configure.ac and Makefile.am, so one needs
to run autoconf and automake.
--
Andrew Benham [EMAIL PROTECTED] [EMAIL PROTECTED]
Finchley, London N3 2QQ, U.K. Tel: 020 8495 6343 Fax: 020 8495 6037
Index: communicate.h
===================================================================
RCS file: /cvsroot/upstream/fakeroot/communicate.h,v
retrieving revision 1.1.1.3
retrieving revision 1.13
diff -u -r1.1.1.3 -r1.13
--- communicate.h 30 Oct 2007 16:46:09 -0000 1.1.1.3
+++ communicate.h 30 Oct 2007 17:16:01 -0000 1.13
@@ -35,7 +35,7 @@
#endif
/* Then decide whether we do or do not use the stat64 support */
-#if defined(sun) || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
+#if (defined(sun) && !defined(__SunOS_5_5_1) && !defined(_LP64)) || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
# define STAT64_SUPPORT
#else
# warning Not using stat64 support
Index: Makefile.am
===================================================================
RCS file: /cvsroot/upstream/fakeroot/Makefile.am,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 Makefile.am
--- Makefile.am 7 Nov 2005 01:19:39 -0000 1.1.1.3
+++ Makefile.am 20 Nov 2007 11:14:11 -0000
@@ -7,8 +7,8 @@
lib_LTLIBRARIES=libfakeroot.la
libfakeroot_la_SOURCES=libfakeroot.c statconv/glibc/linux/alpha/stats.h wrapdef.h wrapstruct.h communicate.h
libfakeroot_la_LDFLAGS=-release 0
-libfakeroot_la_DEPENDENCIES=wrapdef.h wrapstruct.h libcommunicate.la
-libfakeroot_la_LIBADD = libcommunicate.la
+libfakeroot_la_DEPENDENCIES=wrapdef.h wrapstruct.h libcommunicate.la $(LTLIBOBJS)
+libfakeroot_la_LIBADD = libcommunicate.la $(LTLIBOBJS)
bin_PROGRAMS=faked
faked_SOURCES = faked.c
Index: config.h.in
===================================================================
RCS file: /cvsroot/upstream/fakeroot/config.h.in,v
retrieving revision 1.1.1.3
retrieving revision 1.5
diff -u -r1.1.1.3 -r1.5
--- config.h.in 12 Oct 2007 14:14:28 -0000 1.1.1.3
+++ config.h.in 13 Nov 2007 17:24:01 -0000 1.5
@@ -9,6 +9,14 @@
/* use TCP instead of SysV IPC */
#undef FAKEROOT_FAKENET
+/* Define to 1 if you have the declaration of `setenv', and to 0 if you don't.
+ */
+#undef HAVE_DECL_SETENV
+
+/* Define to 1 if you have the declaration of `unsetenv', and to 0 if you don't.
+ */
+#undef HAVE_DECL_UNSETENV
+
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
*/
#undef HAVE_DIRENT_H
@@ -79,6 +87,9 @@
/* have the semun union */
#undef HAVE_SEMUN_DEF
+/* Define to 1 if you have the `setenv' function. */
+#undef HAVE_SETENV
+
/* Define to 1 if you have the `setfsgid' function. */
#undef HAVE_SETFSGID
@@ -138,6 +149,9 @@
/* Define to 1 if you have the `unlinkat' function. */
#undef HAVE_UNLINKAT
+/* Define to 1 if you have the `unsetenv' function. */
+#undef HAVE_UNSETENV
+
/* second argument of initgroups */
#undef INITGROUPS_SECOND_ARG
Index: configure.ac
===================================================================
RCS file: /cvsroot/upstream/fakeroot/configure.ac,v
retrieving revision 1.1.1.3
retrieving revision 1.11
diff -u -r1.1.1.3 -r1.11
--- configure.ac 30 Oct 2007 16:46:09 -0000 1.1.1.3
+++ configure.ac 19 Nov 2007 16:30:49 -0000 1.11
@@ -408,6 +408,9 @@
dnl Checks for library functions.
AC_CHECK_FUNCS(strdup strstr getresuid setresuid getresgid setresgid setfsuid setfsgid)
+AC_CHECK_DECLS([setenv, unsetenv])
+AC_REPLACE_FUNCS([setenv unsetenv])
+
dnl kludge
AH_VERBATIM([WRAP_STAT],
[/* Stuff. */
Index: libfakeroot.c
===================================================================
RCS file: /cvsroot/upstream/fakeroot/libfakeroot.c,v
retrieving revision 1.1.1.3
retrieving revision 1.7
diff -u -r1.1.1.3 -r1.7
--- libfakeroot.c 20 Sep 2007 17:51:39 -0000 1.1.1.3
+++ libfakeroot.c 14 Nov 2007 11:12:01 -0000 1.7
@@ -58,6 +58,14 @@
#include <dirent.h>
#include <errno.h>
+#if !HAVE_DECL_SETENV
+extern int setenv (const char *name, const char *value, int replace);
+#endif
+#if !HAVE_DECL_UNSETENV
+extern int unsetenv (const char *name);
+#endif
+
+
/*
Where are those shared libraries?
If I knew of a configure/libtool way to find that out, I'd use it. Or
fakeroot_setenv_files.tar.gz
Description: GNU Zip compressed data
Index: communicate.c
===================================================================
RCS file: /cvsroot/upstream/fakeroot/communicate.c,v
retrieving revision 1.1.1.3
retrieving revision 1.7
diff -u -r1.1.1.3 -r1.7
--- communicate.c 3 Nov 2007 01:41:04 -0000 1.1.1.3
+++ communicate.c 20 Nov 2007 10:54:31 -0000 1.7
@@ -807,8 +807,11 @@
return msg_snd;
}
+/* fake_get_owner() allows a process which has not set LD_PRELOAD to query
+ the fake ownership etc. of files. That process needs to know the key
+ in use by faked - faked prints this at startup. */
int fake_get_owner(int is_lstat, const char *key, const char *path,
- uid_t *uid, gid_t *gid){
+ uid_t *uid, gid_t *gid, mode_t *mode){
struct stat st;
int i;
@@ -820,7 +823,7 @@
if (i < 0)
return i;
- /* Now give pass it to faked */
+ /* Now pass it to faked */
get_ipc_key(atoi(key));
#ifndef STUPID_ALPHA_HACK
send_get_stat(&st);
@@ -828,11 +831,13 @@
send_get_stat(&st, _STAT_VER);
#endif
- /* Now return the values inside the pointers */
+ /* Return the values inside the pointers */
if (uid)
*uid = st.st_uid;
if (gid)
*gid = st.st_gid;
+ if (mode)
+ *mode = st.st_mode;
return 0;
}
--- End Message ---
--- Begin Message ---
Source: fakeroot
Source-Version: 1.8.7
We believe that the bug you reported is fixed in the latest version of
fakeroot, which is due to be installed in the Debian FTP archive:
fakeroot_1.8.7.dsc
to pool/main/f/fakeroot/fakeroot_1.8.7.dsc
fakeroot_1.8.7.tar.gz
to pool/main/f/fakeroot/fakeroot_1.8.7.tar.gz
fakeroot_1.8.7_i386.deb
to pool/main/f/fakeroot/fakeroot_1.8.7_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Clint Adams <[EMAIL PROTECTED]> (supplier of updated fakeroot package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 21 Nov 2007 09:39:29 -0500
Source: fakeroot
Binary: fakeroot
Architecture: source i386
Version: 1.8.7
Distribution: unstable
Urgency: low
Maintainer: Clint Adams <[EMAIL PROTECTED]>
Changed-By: Clint Adams <[EMAIL PROTECTED]>
Description:
fakeroot - Gives a fake root environment
Closes: 452224
Changes:
fakeroot (1.8.7) unstable; urgency=low
.
* Apply patch from Andrew Benham to handle platforms without
setenv() and unsetenv(). closes: #452224.
* Use setenv compatibility code from GNU libc CVS HEAD.
Files:
9fe4c6d2c559bb196a79afd0e12b0d69 638 utils optional fakeroot_1.8.7.dsc
6d26e51ee27683545d772e492818addb 384772 utils optional fakeroot_1.8.7.tar.gz
b59788459294214cf556cabd9232597c 110846 utils optional fakeroot_1.8.7_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Debian!
iD8DBQFHRFIW5m0u66uWM3ARArrjAKCiJBnsOtx2xdxCN+ZBJfYwnfFuVQCeIaKq
F1ywkIL6Ek6xU+BHKXZKTbE=
=YyFA
-----END PGP SIGNATURE-----
--- End Message ---