Need Help Building Samba with the same options as Mandrake

Esh, Andrew AEsh at tricord.com
Mon Mar 18 11:18:14 GMT 2002


Your original question was: You wanted to see if the later version of Samba
fixed some printing problems. Why do you need the RPM? Is the test host
different from the build host?

If not, you could just build the new CVS sandbox with the Mandrake options,
and do a "make install". Once you've dealt with all the install issues, you
should end up with a running Samba based on the new code. This only works if
the test platform is the same as the build platform, and Mandrake doesn't do
anything further to the install process than what "make install" does (i.e.
change the location of the binaries).

If I have another host I have to update with newly compiled code, I take
binaries out of source/bin in my built CVS sandbox, and copy them over the
old binaries on the target host. This seems simpler to do than trying to get
the RPM to do the right thing for you.

-----Original Message-----
From: Steven Mackenzie [mailto:sjm at activenavigation.com]
Sent: Monday, March 18, 2002 1:01 PM
To: Mike Gerdts; samba-technical at lists.samba.org; AEsh at tricord.com
Subject: Re: Need Help Building Samba with the same options as Mandrake


Mike, Andrew,

Thanks for the hints -- obviously I've never looked at a src rpm before :)

I've taken the "build a new set of RPMs" approach, which seems to be
compiling hapilly now.

Here's what I've done, can anyone spot any silly bad things?

Download samba CVS (CVS checkout)

Rename source from samba to samba-2.2.4

Download samba-2.2.3a.src.rpm

Tar the samba CVS as samba-2.2.4.tar.bz2

Install the src rpm

Look in /usr/src/RPM/SOURCES

Replace samba-2.2.3a.tar.bz2 with the new version

Remove some patches (anything that refers to 2.2.3a):
 samba-2.2.3a-cli_spoolss_notify.patch.bz2
 samba-2.2.3a-init.patch.bz2
 samba-2.2.3a-LDAP-schema.patch.bz2
 samba-2.2.3a-pam_smbpass.patch.bz2
 samba-2.2.3a-srv_spoolss_nt.patch.bz2

Rename the README.samba-2.2.3a-10mdk as README.samba-2.2.4-0.1sjm

Look in /usr/src/RPM/SPECS

Edit samba.spec
 Change to my new version number
 Comment references to removed patches (2 places each)
 Put in a changelog entry -- very professional :)

Run rpm -ba samba.spec -- complains that I need pam-devel, libcups-devel,
libacl-devel

Download and install pam-devel, libcups1-devel, libacl1-devel,
libattr1-devel (plus dependancies) from cooker mirror

Rerun rpm -ba samba.spec. This is compiling now, and looks like I might get
some rpms out of it.

> You could probably get the Mandrake source RPM (samba-*.src.rpm),
> install it (rpm -Uvh samba-*.src.rpm), download the samba-2.2.3a
> tarball, put the tarball in /usr/src/*/SOURCES, modify the spec file
> (most likely /usr/src/*/SPECS/samba.spec) to bump the version number on
> the new RPM that you create and on the tarball.  Evaluate any patches
> that Mandrake adds to ensure that they still make sense for this new
> release, then "rpm -ba samba.spec".
>

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba-technical mailing list