• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..02-May-20175

changelogH A D17-Jan-2011104.5 KiB

config.cacheH A D17-Jan-20119.3 KiB

config.cache.alpha-linuxH A D17-Jan-2011558

config.cache.sparc-linuxH A D17-Jan-2011609

controlH A D17-Jan-20118.5 KiB

copyrightH A D17-Jan-20111.2 KiB

gdbcommandsH A D17-Jan-20118

libpam-smbpass.docsH A D17-Jan-201151

libpam-smbpass.examplesH A D17-Jan-2011199

libpam-smbpass.filesH A D17-Jan-201128

libsmbclient-dev.examplesH A D17-Jan-201123

libsmbclient-dev.filesH A D17-Jan-201174

libsmbclient.filesH A D17-Jan-201154

libsmbclient.shlibsH A D17-Jan-201142

mksmbpasswd.8H A D17-Jan-2011948

mksmbpasswd.awkH A D17-Jan-2011206

mount.cifs.filesH A D17-Jan-201148

panic-actionH A D17-Jan-20111.5 KiB

patches/H02-May-201712

po/H02-May-20178

python2.2-samba.filesH A D17-Jan-201133

README.buildH A D17-Jan-201117.9 KiB

README.build-upstreamH A D17-Jan-20113.3 KiB

README.debianH A D17-Jan-20117.9 KiB

rulesH A D17-Jan-20119.4 KiB

samba-common.configH A D17-Jan-20113.9 KiB

samba-common.dhcpH A D17-Jan-2011888

samba-common.dirsH A D17-Jan-201143

samba-common.filesH A D17-Jan-2011435

samba-common.postinstH A D17-Jan-20114.2 KiB

samba-common.postrmH A D17-Jan-2011117

samba-common.templatesH A D17-Jan-20112.9 KiB

samba-doc.docsH A D17-Jan-201194

samba-doc.examplesH A D17-Jan-201138

samba.configH A D17-Jan-20112 KiB

samba.cron.dailyH A D17-Jan-2011383

samba.dirsH A D17-Jan-2011144

samba.docsH A D17-Jan-201130

samba.filesH A D17-Jan-2011471

samba.initH A D17-Jan-20111.7 KiB

samba.logrotateH A D17-Jan-2011328

samba.pamdH A D17-Jan-2011102

samba.postinstH A D17-Jan-20116.4 KiB

samba.postrmH A D17-Jan-2011543

samba.prermH A D17-Jan-2011243

samba.templatesH A D17-Jan-20112.2 KiB

scripts/H02-May-20174

smb.confH A D17-Jan-20117.5 KiB

smbclient.filesH A D17-Jan-2011356

smbfs.filesH A D17-Jan-2011235

smbwrapper.dirsH A D17-Jan-201124

smbwrapper.docsH A D17-Jan-201151

smbwrapper.filesH A D17-Jan-201114

swat.configH A D17-Jan-2011174

swat.dirsH A D17-Jan-201130

swat.filesH A D17-Jan-201161

swat.postinstH A D17-Jan-2011368

swat.postrmH A D17-Jan-2011245

swat.templatesH A D17-Jan-2011287

TODOH A D17-Jan-201188

winbind.dirsH A D17-Jan-201128

winbind.filesH A D17-Jan-2011213

winbind.initH A D17-Jan-2011824

winbind.lintianH A D17-Jan-2011432

winbind.logrotateH A D17-Jan-2011189

wins2dns.awkH A D17-Jan-2011912

README.build

1From: Steve Langasek <vorlon@netexpress.net>
2To: "Eloy A. Paris" <eloy.paris@usa.net>
3Date: Thu, 23 Aug 2001 21:20:05 -0500 (CDT)
4Subject: Re: autobuilder failure on arm for samba-2.2.1a-3
5In-Reply-To: <20010823100906.A1092@antenas>
6Message-ID: <Pine.LNX.4.30.0108231744090.11071-100000@tennyson.netexpress.net>
7MIME-Version: 1.0
8Content-Type: TEXT/PLAIN; charset=US-ASCII
9
10On Thu, 23 Aug 2001, Eloy A. Paris wrote:
11
12> On Wed, Aug 22, 2001 at 03:01:01PM -0500, Steve Langasek wrote:
13
14> > Hmm.  Maybe the thing to do is to focus on getting config.cache (not log,
15> > cache) support into the package.  Issues like this are frequent enough with
16> > Samba, and the configure tests add enough time to the build process, that I
17> > think there'd be much benefit in being able to step past a lot of these.
18
19> Uhhmmm... I don't know, I guess I don't like much the idea of
20> maintaining a config.cache. It looks like extra work plus a
21> compilation process that is "synthetic" or atificial. What happens if
22> the Samba Team adds a new test, or modifies the configure script, will
23> the config.cache pick those up?
24
25> In any case, you are the expert, so if you think that's the way to go,
26> and the burden far exceeds the problems we have right now I say let's
27> go for it. I am not well versed on autoconf and the configure process,
28> that's all...
29
30Well, I'll attach my work to the bottom of this message and let you judge it
31for yourself.
32
33The config.cache I'm trying to generate here is not equivalent to what
34a configure script outputs.  The only values I'm including are those which 1)
35are no-brainers on any glibc-based platform, 2) are questions we need to force
36a particular value for regardless of the kernel being built against, or 3) are
37questions about specific bizarre features of proprietary Unices that we'll
38always get an answer of 'no' to.
39
40I've removed all of the config.cache variables related to headers, or to
41checks for particular libraries; I think it's pretty safe to assert that glibc
42provides basic C functions like select(), setenv(), and waitpid() on all our
43build targets, but I think it's less safe to assert that they'll always be
44provided by particular header files.
45
46So the config.cache won't automatically be updated with answers to new
47configure tests, but it also doesn't need to in order to be useful.  There's
48really only a handful of variables in there that we /need/ in order to
49guarantee correctly-built packages, and if you want to leave out everything
50else, that's perfectly ok too.  Everything from the fifth stanza on down is
51just a build-time speed-up for some of the slower architectures.  Well, it
52also has the fringe benefit that the packages will FAIL to build if someone
53tries rebuilding for a really bizarre (non-Linux, non-glibc) architecture.  I
54see that as a plus :), you may disagree, but in any case my next trick would
55be to add a global variable developers can set to bypass the provided
56config.cache.
57
58
59It is a little artificial, but the whole point of .debs is to be able to build
60binaries in a controlled environment.  Right now, we don't really have control
61over what happens in the autobuilders.  We have even /less/ control over what
62happens in a stable release:  it's been two weeks now since I built binaries
63for bug #94380, and they haven't been uploaded to security.d.o yet.  I'm
64guessing they won't be uploaded until Wichert is back from vacation, either --
65which is fine, but it would be nice if we didn't have to worry about
66mis-builds by the security team, or about putting the security team to extra
67trouble after the fact to get packages fixed.
68
69With a pre-loaded config.cache, we can ensure that bugs of this kind don't
70happen in woody.  We can take the arm autobuilder problem into our own hands,
71and not have to worry about quirkiness in the build environment.  We can even
72close bug #109773, since we no longer have to worry about detecting the
73setuid() routines.
74
75
76So to me, it definitely seems worth it.  But you're the maintainer, and I
77won't ask you to put anything in the package that you're not comfortable with.
78
79
80> By the way, I think I remember someone was able to build 2.2.x succesfully on
81> the ARM. If this is the case, could it be that there's something weird
82> with Phillip's setup?
83
84It could be.  There are arm packages for 2.2.1a-1, so at /some/ point the
85autobuilder was able to pass the locking test.
86
87
88> P.S. How did you know about the ARM build problems? I don't see any
89> bugs about this...
90
91<http://ftp-master.debian.org/testing/>, follow the links for samba...  The
92exact reference for the arm autobuilder is at
93<http://buildd.armlinux.org/~buildd/build.php?pkg=samba&ver=2.2.1a-4&arch=arm>.
94
95Regards,
96Steve Langasek
97postmodern programmer
98
99
100diff -uNrw samba-2.2.1a-bak/debian/changelog samba-2.2.1a/debian/changelog
101--- samba-2.2.1a-bak/debian/changelog	Thu Aug 23 10:27:54 2001
102+++ samba-2.2.1a/debian/changelog	Thu Aug 23 10:28:08 2001
103@@ -1,3 +1,12 @@
104+samba (2.2.1a-4.1) unstable; urgency=low
105+
106+  * Fix up the build system to avoid needing to run configure as root to
107+    answer questions we already know the answers to.
108+  * In the process, make surprising progress towards being able to
109+    cross-compile the samba packages.
110+
111+ -- Steve Langasek <vorlon@debian.org>  Wed, 22 Aug 2001 23:35:00 -0500
112+
113 samba (2.2.1a-4) unstable; urgency=low
114
115   * Fixed typo in smbmount's mount page.
116diff -uNrw samba-2.2.1a-bak/debian/config.cache samba-2.2.1a/debian/config.cache
117--- samba-2.2.1a-bak/debian/config.cache	Wed Dec 31 18:00:00 1969
118+++ samba-2.2.1a/debian/config.cache	Thu Aug 23 10:28:08 2001
119@@ -0,0 +1,231 @@
120+#
121+# 22 August 2001  Steve Langasek <vorlon@debian.org>
122+#
123+# This file is a shell script that caches the results of configure
124+# tests run on this system so they can be shared between configure
125+# scripts and configure runs.  It is not useful on other systems.
126+# If it contains results you don't want to keep, you may remove or edit it.
127+#
128+# By default, configure uses ./config.cache as the cache file,
129+# creating it if it does not exist already.  You can give configure
130+# the --cache-file=FILE option to use a different cache file; that is
131+# what configure does when it calls configure scripts in
132+# subdirectories, so they share the cache.
133+# Giving --cache-file=/dev/null disables caching, for debugging configure.
134+# config.status only pays attention to the cache file if you give it the
135+# --recheck option to rerun configure.
136+#
137+#
138+# This config.cache file contains a list of acceptable autoconf
139+# values which can be used in compiling Samba for Debian woody/sid.
140+#
141+# Autoconf sorts options alphabetically in its output.  This file
142+# groups options logically.
143+
144+
145+# Load any architecture-specific settings
146+if [ -n "$DEB_HOST_GNU_TYPE" \
147+     -a -f ../debian/config.cache.${DEB_HOST_GNU_TYPE} ]; then
148+	. ../debian/config.cache.${DEB_HOST_GNU_TYPE}
149+fi
150+
151+
152+# This is at the top because it's most in need of regular tweaking.
153+# These are options which are supported on 2.4 kernels, but not on 2.2
154+# kernels.
155+
156+samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no}
157+samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no}
158+samba_cv_HAVE_KERNEL_SHARE_MODES=${samba_cv_HAVE_KERNEL_SHARE_MODES=no}
159+
160+
161+# These are present in 2.2 kernels, but not in 2.0...
162+
163+samba_cv_have_setresuid=${samba_cv_have_setresuid=yes}
164+samba_cv_have_setresgid=${samba_cv_have_setresgid=yes}
165+samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=yes}
166+
167+
168+# POSIX ACL support not present in Linux 2.2; not allowed in the
169+# Debian packages, even if present on the build machine.
170+
171+ac_cv_header_sys_acl_h=${ac_cv_header_sys_acl_h=no}
172+
173+
174+# Various basic libc/compiler stuff that it's blindingly obvious that
175+# Linux supports (now watch me get bitten for saying that)
176+
177+ac_cv_c_const=${ac_cv_c_const=yes}
178+ac_cv_c_inline=${ac_cv_c_inline=inline}
179+samba_cv_volatile=${samba_cv_volatile=yes}
180+ac_cv_dirent_d_off=${ac_cv_dirent_d_off=yes}
181+ac_cv_func_bzero=${ac_cv_func_bzero=yes}
182+ac_cv_func_chmod=${ac_cv_func_chmod=yes}
183+ac_cv_func_chown=${ac_cv_func_chown=yes}
184+ac_cv_func_chroot=${ac_cv_func_chroot=yes}
185+ac_cv_func_connect=${ac_cv_func_connect=yes}
186+ac_cv_func_dup2=${ac_cv_func_dup2=yes}
187+ac_cv_func_execl=${ac_cv_func_execl=yes}
188+ac_cv_func_fchmod=${ac_cv_func_fchmod=yes}
189+ac_cv_func_fchown=${ac_cv_func_fchown=yes}
190+ac_cv_func_fstat=${ac_cv_func_fstat=yes}
191+ac_cv_func_fsync=${ac_cv_func_fsync=yes}
192+ac_cv_func_ftruncate=${ac_cv_func_ftruncate=yes}
193+ac_cv_func_getcwd=${ac_cv_func_getcwd=yes}
194+ac_cv_func_getgrent=${ac_cv_func_getgrent=yes}
195+ac_cv_func_getgrnam=${ac_cv_func_getgrnam=yes}
196+ac_cv_func_getspnam=${ac_cv_func_getspnam=yes}
197+ac_cv_func_glob=${ac_cv_func_glob=yes}
198+ac_cv_func_grantpt=${ac_cv_func_grantpt=yes}
199+ac_cv_func_initgroups=${ac_cv_func_initgroups=yes}
200+ac_cv_func_llseek=${ac_cv_func_llseek=yes}
201+ac_cv_func_memcmp_clean=${ac_cv_func_memcmp_clean=yes}
202+ac_cv_func_memmove=${ac_cv_func_memmove=yes}
203+ac_cv_func_memset=${ac_cv_func_memset=yes}
204+ac_cv_func_mktime=${ac_cv_func_mktime=yes}
205+ac_cv_func_pipe=${ac_cv_func_pipe=yes}
206+ac_cv_func_poll=${ac_cv_func_poll=yes}
207+ac_cv_func_pread=${ac_cv_func_pread=yes}
208+ac_cv_func_pwrite=${ac_cv_func_pwrite=yes}
209+ac_cv_func_rand=${ac_cv_func_rand=yes}
210+ac_cv_func_random=${ac_cv_func_random=yes}
211+ac_cv_func_readlink=${ac_cv_func_readlink=yes}
212+ac_cv_func_rename=${ac_cv_func_rename=yes}
213+ac_cv_func_select=${ac_cv_func_select=yes}
214+ac_cv_func_setenv=${ac_cv_func_setenv=yes}
215+ac_cv_func_setgroups=${ac_cv_func_setgroups=yes}
216+ac_cv_func_setsid=${ac_cv_func_setsid=yes}
217+ac_cv_func_sigaction=${ac_cv_func_sigaction=yes}
218+ac_cv_func_sigblock=${ac_cv_func_sigblock=yes}
219+ac_cv_func_sigprocmask=${ac_cv_func_sigprocmask=yes}
220+ac_cv_func_snprintf=${ac_cv_func_snprintf=yes}
221+ac_cv_func_srand=${ac_cv_func_srand=yes}
222+ac_cv_func_srandom=${ac_cv_func_srandom=yes}
223+ac_cv_func_strcasecmp=${ac_cv_func_strcasecmp=yes}
224+ac_cv_func_strchr=${ac_cv_func_strchr=yes}
225+ac_cv_func_strdup=${ac_cv_func_strdup=yes}
226+ac_cv_func_strerror=${ac_cv_func_strerror=yes}
227+ac_cv_func_strftime=${ac_cv_func_strftime=yes}
228+ac_cv_func_strpbrk=${ac_cv_func_strpbrk=yes}
229+ac_cv_func_strtoul=${ac_cv_func_strtoul=yes}
230+ac_cv_func_symlink=${ac_cv_func_symlink=yes}
231+ac_cv_func_usleep=${ac_cv_func_usleep=yes}
232+ac_cv_func_utime=${ac_cv_func_utime=yes}
233+ac_cv_func_utimes=${ac_cv_func_utimes=yes}
234+ac_cv_func_vsnprintf=${ac_cv_func_vsnprintf=yes}
235+ac_cv_func_waitpid=${ac_cv_func_waitpid=yes}
236+ac_cv_type_ino_t=${ac_cv_type_ino_t=yes}
237+ac_cv_type_mode_t=${ac_cv_type_mode_t=yes}
238+ac_cv_type_pid_t=${ac_cv_type_pid_t=yes}
239+ac_cv_type_size_t=${ac_cv_type_size_t=yes}
240+ac_cv_type_uid_t=${ac_cv_type_uid_t=yes}
241+samba_cv_socklen_t=${samba_cv_socklen_t=yes}
242+
243+# Yes, we know Linux supports fcntl locking.  Just ignore
244+# any errors caused by building on an NFS mount.
245+samba_cv_HAVE_FCNTL_LOCK=${samba_cv_HAVE_FCNTL_LOCK=yes}
246+
247+
248+# smbwrapper doesn't work because the glibc maintainers don't want
249+# to support transparent userland VFS.  We might as well preempt
250+# any checks for shadowed symbols that are only useful for smbwrapper.
251+
252+ac_cv_func___acl=${ac_cv_func___acl=no}
253+ac_cv_func__acl=${ac_cv_func__acl=no}
254+ac_cv_func___chdir=${ac_cv_func___chdir=no}
255+ac_cv_func__chdir=${ac_cv_func__chdir=no}
256+ac_cv_func___close=${ac_cv_func___close=no}
257+ac_cv_func__close=${ac_cv_func__close=no}
258+ac_cv_func___closedir=${ac_cv_func___closedir=no}
259+ac_cv_func__closedir=${ac_cv_func__closedir=no}
260+ac_cv_func___dup=${ac_cv_func___dup=no}
261+ac_cv_func__dup=${ac_cv_func__dup=no}
262+ac_cv_func___dup2=${ac_cv_func___dup2=no}
263+ac_cv_func__dup2=${ac_cv_func__dup2=no}
264+ac_cv_func___facl=${ac_cv_func___facl=no}
265+ac_cv_func__facl=${ac_cv_func__facl=no}
266+ac_cv_func___fchdir=${ac_cv_func___fchdir=no}
267+ac_cv_func__fchdir=${ac_cv_func__fchdir=no}
268+ac_cv_func___fcntl=${ac_cv_func___fcntl=no}
269+ac_cv_func__fcntl=${ac_cv_func__fcntl=no}
270+ac_cv_func___fork=${ac_cv_func___fork=no}
271+ac_cv_func__fork=${ac_cv_func__fork=no}
272+ac_cv_func___fstat=${ac_cv_func___fstat=no}
273+ac_cv_func__fstat=${ac_cv_func__fstat=no}
274+ac_cv_func___fstat64=${ac_cv_func___fstat64=no}
275+ac_cv_func__fstat64=${ac_cv_func__fstat64=no}
276+ac_cv_func___fxstat=${ac_cv_func___fxstat=no}
277+ac_cv_func___getcwd=${ac_cv_func___getcwd=no}
278+ac_cv_func__getcwd=${ac_cv_func__getcwd=no}
279+ac_cv_func___getdents=${ac_cv_func___getdents=no}
280+ac_cv_func__getdents=${ac_cv_func__getdents=no}
281+ac_cv_func___llseek=${ac_cv_func___llseek=no}
282+ac_cv_func___sys_llseek=${ac_cv_func___sys_llseek=no}
283+ac_cv_func__llseek=${ac_cv_func__llseek=no}
284+ac_cv_func___lseek=${ac_cv_func___lseek=no}
285+ac_cv_func__lseek=${ac_cv_func__lseek=no}
286+ac_cv_func___lstat=${ac_cv_func___lstat=no}
287+ac_cv_func__lstat=${ac_cv_func__lstat=no}
288+ac_cv_func___lstat64=${ac_cv_func___lstat64=no}
289+ac_cv_func__lstat64=${ac_cv_func__lstat64=no}
290+ac_cv_func___lxstat=${ac_cv_func___lxstat=no}
291+ac_cv_func___open=${ac_cv_func___open=no}
292+ac_cv_func__open=${ac_cv_func__open=no}
293+ac_cv_func___open64=${ac_cv_func___open64=no}
294+ac_cv_func__open64=${ac_cv_func__open64=no}
295+ac_cv_func___opendir=${ac_cv_func___opendir=no}
296+ac_cv_func__opendir=${ac_cv_func__opendir=no}
297+ac_cv_func___pread=${ac_cv_func___pread=no}
298+ac_cv_func__pread=${ac_cv_func__pread=no}
299+ac_cv_func___pread64=${ac_cv_func___pread64=no}
300+ac_cv_func__pread64=${ac_cv_func__pread64=no}
301+ac_cv_func___pwrite=${ac_cv_func___pwrite=no}
302+ac_cv_func__pwrite=${ac_cv_func__pwrite=no}
303+ac_cv_func___pwrite64=${ac_cv_func___pwrite64=no}
304+ac_cv_func__pwrite64=${ac_cv_func__pwrite64=no}
305+ac_cv_func___read=${ac_cv_func___read=no}
306+ac_cv_func__read=${ac_cv_func__read=no}
307+ac_cv_func___readdir=${ac_cv_func___readdir=no}
308+ac_cv_func__readdir=${ac_cv_func__readdir=no}
309+ac_cv_func___readdir64=${ac_cv_func___readdir64=no}
310+ac_cv_func__readdir64=${ac_cv_func__readdir64=no}
311+ac_cv_func___seekdir=${ac_cv_func___seekdir=no}
312+ac_cv_func__seekdir=${ac_cv_func__seekdir=no}
313+ac_cv_func___stat=${ac_cv_func___stat=no}
314+ac_cv_func__stat=${ac_cv_func__stat=no}
315+ac_cv_func___stat64=${ac_cv_func___stat64=no}
316+ac_cv_func__stat64=${ac_cv_func__stat64=no}
317+ac_cv_func___telldir=${ac_cv_func___telldir=no}
318+ac_cv_func__telldir=${ac_cv_func__telldir=no}
319+ac_cv_func___write=${ac_cv_func___write=no}
320+ac_cv_func__write=${ac_cv_func__write=no}
321+ac_cv_func___xstat=${ac_cv_func___xstat=no}
322+
323+
324+
325+# Miscellaneous stuff that isn't, and shouldn't be, available
326+# in Debian.  Those interested in building debs for other systems may
327+# need to remove some of these defines.
328+
329+ac_cv_func_bigcrypt=${ac_cv_func_bigcrypt=no}
330+ac_cv_func_crypt16=${ac_cv_func_crypt16=no}
331+ac_cv_func_getauthuid=${ac_cv_func_getauthuid=no}
332+ac_cv_func_getprpwnam=${ac_cv_func_getprpwnam=no}
333+ac_cv_func_getpwanam=${ac_cv_func_getpwanam=no}
334+ac_cv_func_putprpwnam=${ac_cv_func_putprpwnam=no}
335+ac_cv_func_rdchk=${ac_cv_func_rdchk=no}
336+ac_cv_func_set_auth_parameters=${ac_cv_func_set_auth_parameters=no}
337+ac_cv_func_setgidx=${ac_cv_func_setgidx=no}
338+ac_cv_func_setluid=${ac_cv_func_setluid=no}
339+ac_cv_func_setpriv=${ac_cv_func_setpriv=no}
340+ac_cv_func_setuidx=${ac_cv_func_setuidx=no}
341+ac_cv_lib_sec_bigcrypt=${ac_cv_lib_sec_bigcrypt=no}
342+ac_cv_lib_sec_getprpwnam=${ac_cv_lib_sec_getprpwnam=no}
343+ac_cv_lib_sec_getspnam=${ac_cv_lib_sec_getspnam=no}
344+ac_cv_lib_sec_putprpwnam=${ac_cv_lib_sec_putprpwnam=no}
345+ac_cv_lib_sec_set_auth_parameters=${ac_cv_lib_sec_set_auth_parameters=no}
346+ac_cv_lib_security_bigcrypt=${ac_cv_lib_security_bigcrypt=no}
347+ac_cv_lib_security_getprpwnam=${ac_cv_lib_security_getprpwnam=no}
348+ac_cv_lib_security_getspnam=${ac_cv_lib_security_getspnam=no}
349+ac_cv_lib_security_putprpwnam=${ac_cv_lib_security_putprpwnam=no}
350+ac_cv_lib_security_set_auth_parameters=${ac_cv_lib_security_set_auth_parameters=no}
351diff -uNrw samba-2.2.1a-bak/debian/config.cache.alpha-linux samba-2.2.1a/debian/config.cache.alpha-linux
352--- samba-2.2.1a-bak/debian/config.cache.alpha-linux	Wed Dec 31 18:00:00 1969
353+++ samba-2.2.1a/debian/config.cache.alpha-linux	Thu Aug 23 10:28:08 2001
354@@ -0,0 +1,12 @@
355+# 22 Aug 2001  Steve Langasek <vorlon@debian.org>
356+
357+# This file contains autoconf settings specific to the alpha-linux
358+# platform that should be preloaded when building for this architecture.
359+
360+
361+# Linux 2.2 on Alpha doesn't have a functional setresgid() call, but
362+# Linux 2.4 does.  Ensure that packages compiled for woody remain
363+# compatible with 2.2 kernels, even if the build machine is running 2.4.
364+samba_cv_have_setresgid=${samba_cv_have_setresgid=no}
365+samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=no}
366+samba_cv_USE_SETREUID=${samba_cv_USE_SETREUID=yes}
367diff -uNrw samba-2.2.1a-bak/debian/rules samba-2.2.1a/debian/rules
368--- samba-2.2.1a-bak/debian/rules	Thu Aug 23 10:27:54 2001
369+++ samba-2.2.1a/debian/rules	Thu Aug 23 10:28:08 2001
370@@ -15,6 +15,14 @@
371 # This has to be exported to make some magic below work.
372 export DH_OPTIONS
373
374+# Set the host and build architectures for use with config.cache loading,
375+# cross-building, etc.
376+DEB_HOST_GNU_TYPE	:= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
377+DEB_BUILD_GNU_TYPE	:= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
378+
379+export DEB_HOST_GNU_TYPE
380+export DEB_BUILD_GNU_TYPE
381+
382 BVARS = SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb
383
384 DESTDIR=`pwd`/debian/samba
385@@ -48,8 +56,11 @@
386 #     ./configure --with-fhs --prefix=/usr --sysconfdir=/etc \
387 #        --localstatedir=/var
388
389+	if [ -f debian/config.cache ]; then \
390+		cp -f debian/config.cache source/config.cache; \
391+	fi
392 #	[ -f source/Makefile ] || (cd source && ./configure --with-fhs --prefix=/usr --exec-prefix=/usr --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp)
393-	[ -f source/Makefile ] || (cd source && ./configure --with-fhs --prefix=/usr --sysconfdir=/etc --with-privatedir=/etc/samba --with-lockdir=/var/state/samba --localstatedir=/var --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp --with-readline --with-pam_smbpass)
394+	[ -f source/Makefile ] || (cd source && ./configure --host=$(DEB_HOST_GNU_TYPE)-gnu --build=$(DEB_BUILD_GNU_TYPE)-gnu --with-fhs --prefix=/usr --sysconfdir=/etc --with-privatedir=/etc/samba --with-lockdir=/var/state/samba --localstatedir=/var --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp --with-readline --with-pam_smbpass)
395
396 	touch configure-stamp
397
398

README.build-upstream

1Building Samba Packages for Debian GNU/Linux
2--------------------------------------------
3
4Building Debian packages is not as hard as some people might think.
5The following instructions will allow you to build your own Samba
6Debian packages. These instructions and the files in packaging/Debian/
7are current as of Samba 3.0.0, and allow you to build Debian packages
8for Debian unstable (so you need some development packages available
9only in Debian unstable.) If you are using something newer than 3.0.0
10you might want to try to follow the instructions to see if patches
11apply cleanly. If some patches don't apply cleanly please e-mail
12samba@packages.debian.org since we might have fixed patches that we have
13not yet integrated into upstream Samba.
14
15We try to maintain as much compatibility with previous releases
16of Debian as possible, so it is possible that the files in
17packaging/Debian/ can also be used to build Samba Debian packages for
18other Debian releases. However, sometimes this is just not possible
19because we need to use stuff that is only available on Debian unstable.
20
21Instructions
22------------
23
24If you want to build Samba packages for Debian and you just want to use
25upstream sources, i.e. you don't want to wait for us to put official
26packages out, or you want packages for a Debian version for which we
27don't provide deb's, or you don't want to use official packages, or
28you want to add --this-cool-switch to configure, or whatever, follow
29these instructions:
30
310) Make sure you have the following packages installed (in addition
32to the normal Debian development packages -- dpkg-dev, libc6-dev,
33devscripts, etc.):
34
35  autoconf
36  debhelper
37  libpam0g-dev
38  libreadline4-dev
39  libcupsys2-dev
40  acl-dev, libacl1
41  libkrb5-dev
42  libldap2-dev
43  python2.2-dev
44
45  Notes regarding the packages required to build Samba Debian packages:
46
47  * The libcupsys2-dev is not available in Debian Potato (Debian 2.2).
48    That's fine; the configure script won't detect CUPS support and the
49    resulting binaries won't support CUPS.
50
51  * The list above is current as of samba-3.0.0rc2, but it can get
52    out of date. The best way to check what packages are required to
53    build the samba packages on Debian is to look for the Build-Depends:
54    field in the file debian/control.
55
561) cd samba[-<version>]. For example, "cd samba-3.0.0rc2".
572) cp -a packaging/Debian/debian/ debian
58  It's important that you copy instead of symlink because the build
59  tools in Potato have a problem that prevents the build to work with
60  a symlink.
613) dch -i (this is completely optional - only do it if you understand
62   Debian version numbers! Don't complain later if you can't upgrade
63   to official versions of the Samba packages for Debian.)
64  - Edit the changelog and make sure the version is right. For example,
65    for Samba 3.0.0beta3, the version number should something like
66  3.0.0beta3-0.1.
674) Run 'debian/rules binary'.
68  - It is better that you prefix the above command with 'fakeroot'.
69    If you have problems you might try building as root.
705) That's it. Your new packages should be in ../. Install with dpkg.
71
72Please e-mail samba@packages.debian.org with comments, questions or
73suggestions. Please talk to us and not to the Samba Team. They have
74better things to do and know nothing about the Debian packaging system.
75
76Eloy A. Paris <peloy@debian.org>
77Steve Langasek <vorlon@debian.org>
78
79

README.debian

10. Samba Team Notes:
2This package is targeted at the current stable release of debian distribution
3(woody) running on a 2.4.x kernel.
4This package has been made by Simo Sorce on behalf of the Samba Team.
5Do not use Debian BTS to report bugs, it's not a debian project package.
6Thanks to Eloy Paris and Steve "Vorlon" Langasek for the work they've done
7and continue to do on debian unstable packages. That made me possible to
8build up debian packages for the Team.
9
10
11ATTENTION: This package works correctly only with recent 2.4.x kernels due to
12deep optimizations that samba uses when compiled on such kernels.
13
14
15Original README.Debian foolows.
16-----------------------------------------------------------------------------
17
18Samba for Debian
19----------------
20
21This package was built by Eloy Paris <peloy@debian.org> and Steve Langasek
22<vorlon@debian.org>, current maintainers of the Samba packages for Debian,
23based on previous work from Bruce Perens <Bruce@Pixar.com>, Andrew
24Howell <andrew@it.com.au>, Klee Dienes <klee@debian.org> and Michael
25Meskes <meskes@topsystem.de>, all previous maintainers of the packages
26samba and sambades (merged together for longer than we can remember.)
27
28Contents of this README file:
29
301. Notes
312. Upgrading from Samba 2.2
323. Packages Generated from the Samba Sources
334. Support for NT Domains
345. Reporting bugs
35
36
371. Notes
38--------
39
40- As of Samba 2.0.6-1, the Debian version of Samba is compiled with
41  Pluggable Authentication Modules (PAM) support. PAM support was 
42  discontinued during the libc5 -> libc6 migration process and I never
43  brought it back until 2.0.6-1.
44
45- The smbfs package does not support the 2.0.x Linux kernels anymore.
46  This has been the case since the very first packages of the CVS sources
47  that eventually became Samba 2.2. To use the smbfs package you need to
48  run a 2.2.x kernel or later.
49
50- Starting with the Debian packages for Samba 2.2, the Samba log files (for
51  nmbd and smbd) have been moved to a new location: /var/log/samba/. The
52  files also have new names: log.nmbd and log.smbd. The old files
53  (/var/log/{nmb,smb} were moved to the new location.
54
55
562. Upgrading from Samba 2.2
57---------------------------
58
59Samba 3.0 provides greatly improved support for modern Windows systems,
60including support for Unicode and LDAP.  In the process, Samba 3.0
61necessarily also breaks backward compatiblity with past releases.  These
62issues are documented herein; if you are aware of other problems related
63to upgrading from Samba 2.2, please let us know at
64<samba@packages.debian.org>.
65
66Samba and LDAP
67--------------
68Starting with Samba 2.999+3.0cvs20020723-1 we are building Samba with
69LDAP support.  However, the LDAP schema for Samba 3.0 differs
70substantially from the schema used by many sites with Samba 2.2 (not
71enabled in the Debian packages).  If upgrading from an LDAP-enabled 2.2,
72you will need to run the convertSambaAccount script found in
73/usr/share/doc/samba-doc/examples/LDAP.  A copy of the schema itself can
74also be found at /usr/share/doc/samba-doc/examples/LDAP/samba.schema.
75
76Character Sets
77--------------
78Samba 3.0 introduces support for negotiating Unicode (UCS-2LE) with
79Windows clients.  Owing to the close similarity between Windows and Unix
80NLS charsets, in the past, many users were able to pass filenames
81containing non-ASCII characters between clients and servers without
82configuring Samba to know what character set was in use.  Now, Samba
83must be able to convert Unix filenames to Unicode before sending to the
84client, so Samba must know what character set the filenames are being
85converted from.  If you will be sharing files with non-ASCII names, and
86the filenames are not encoded with UTF-8, you will need to tell Samba
87which character set to use with the 'unix charset' option.
88
89If you had previously specified 'character set' and 'client code page'
90options under 2.2, these settings should be automatically converted for
91you.
92
93
943. Packages Generated from the Samba Sources
95--------------------------------------------
96
97Currently, the Samba sources produce the following binary packages:
98
99samba: A LanManager like file and printer server for Unix.
100samba-common: Samba common files used by both the server and the client.
101smbclient: A LanManager like simple client for Unix.
102swat: Samba Web Administration Tool
103samba-doc: Samba documentation.
104smbfs: Mount and umount commands for the smbfs (works with 2.2.x and
105	above kernels, not with 2.0.x kernels.)
106libpam-smbpass: pluggable authentication module for SMB password
107	database.
108libsmbclient: Shared library that allows applications to talk to SMB servers.
109libsmbclient-dev: libsmbclient shared libraries.
110winbind: Service to resolve user and group information from a Windows NT 
111	server.
112python2.2-samba: Python bindings that allow access to various aspects of
113	Samba.
114
115Please note that the package smbwrapper (a shared library that provides
116SMB client services that existed between Samba 2.0.0-1 and Samba-2.0.5a-4
117does not exist any more. The reason is that starting with Samba 2.0.6-1, that
118code does not even compile, and the upstream author (Andrew Tridgell)
119recommended to disable the compilation of smbwrapper until some issues
120with glibc2.1 get cleared out (the problem is with glibc, not with Samba
121itself).
122
123
1244. Support for NT Domains
125-------------------------
126
127Samba 2.2 includes preliminary support for NT domains. A Samba server
128can now be part of a Windows NT domain whose Primary Domain Controller
129is a Windows NT server. This feature is supposed to be stable although I
130haven't tried it myself. Read the documentation in the samba-doc package
131for help on how to do this (hint: "security = domain" in the smb.conf
132file).
133
134Samba 2.2 has also experimental support for Primary Domain
135Controller. This means that a Samba server can act now as a PDC. There
136are no special flags needed to compile Samba with NT domain PDC
137support. Please read the NTDOM PDC FAQ at www.samba.org (Documentation
138section).
139
140Please note that NT domain PDC support is far from complete and is still 
141experimental.
142
143
1445. Reporting Bugs
145-----------------
146
147**** NOTE: This package is distributed by the Samba Team based on Debian
148     packages, please submit bus to https://bugzilla.samba.org instead ****
149
150If you believe you have found a bug please make sure the possible bug
151also exists in the latest version of Samba that is available for the
152unstable Debian distribution. If you are running Debian stable this
153means that you will probably have to build your own packages. And if the
154problem does not exist in the latest version of Samba we have packaged it
155means that you will have to run the version of Samba you built yourself
156since it is not easy to upload new packages to the stable distribution,
157unless they fix critical security problems.
158
159If you can reproduce the problem in the latest version of Samba then
160it is likely to be a real bug. Your best shot is to search the Samba
161mailing lists to see if it is something that has already been reported
162and fixed - if it is a simple fix we can add the patch to our packages
163without waiting for a new Samba release.
164
165If you decide that your problem deserves to be submitted to the Debian
166Bug Tracking System (BTS) we expect you to be responsive if we request
167more information. If we request more information and do not receive
168any in a reasonable time frame expect to see your bug closed without
169explanation - we can't fix bugs we can't reproduce, and most of the
170time we need more information to be able to reproduce them.
171
172When submitting a bug to the Debian BTS please include the version of
173the Debian package you are using as well as the Debian distribution you
174are using. Think _twice_ about the severity you assign to the bug: we
175are _very_ sensitive about bug severities; the fact that it doesn't
176work for you doesn't mean that the severity must be such that it holds
177a major Debian release. In fact, that it doesn't work for you it
178doesn't mean that it doesn't work for others. So again: think _twice_.
179
180
181Eloy A. Paris <peloy@debian.org>
182Steve Langasek <vorlon@debian.org>
183
184