[Pkg-samba-maint] r2730 - trunk/samba/debian/patches

obnox-guest at alioth.debian.org obnox-guest at alioth.debian.org
Wed Apr 29 15:09:18 UTC 2009


Author: obnox-guest
Date: 2009-04-29 15:09:18 +0000 (Wed, 29 Apr 2009)
New Revision: 2730

Modified:
   trunk/samba/debian/patches/shrink-dead-code.patch
Log:
samba:shrink-dead-code.patch: add a comment why this patch is bad

Michael



Modified: trunk/samba/debian/patches/shrink-dead-code.patch
===================================================================
--- trunk/samba/debian/patches/shrink-dead-code.patch	2009-04-26 17:53:48 UTC (rev 2729)
+++ trunk/samba/debian/patches/shrink-dead-code.patch	2009-04-29 15:09:18 UTC (rev 2730)
@@ -1,3 +1,21 @@
+Comment by Michael Adam <obnox at samba.org>:
+
+While this patch is clever in one respect, it has bad side effects:
+Functions that not used are removed from the binaries.
+For functions that are only used in shared objects, this is very bad,
+since these will refuse to work (load).
+
+Example: librpc/gen_ndr/ndr_xattr.c:ndr_pull_xattr_NTACL() is only
+used in the acl_tdb and acl_xattr vfs modules.
+So the symbol is not present in smbd, and thus these modules will
+not work. The _do_ not work in the 3.3. packages that are out there.
+
+I recommend not using this patch!
+
+Better reduction is done by fixing the linking dependencies... :-(
+
+Michael
+
 Index: samba/source/Makefile.in
 ===================================================================
 --- samba.orig/source/Makefile.in




More information about the Pkg-samba-maint mailing list