SMB fileserver

Eric Dunbar eric.dunbar at gmail.com
Sun Apr 10 06:10:01 MDT 2005


On Mar 25, 2005 6:36 PM, Robert Story <rstory-l at revelstone.com> wrote:
> On Fri, 25 Mar 2005 19:52:58 +0100 Geert wrote:
> GJ> On Friday 25 March 2005 17:35, Robert Story wrote:
> GJ> > On Fri, 25 Mar 2005 08:43:01 -0500 Eric wrote:
> GJ> > ED> Has the problem with SMB passwords been fixed in YDL 4.0.1?
> GJ> >
> GJ> > No. But all you have to do is grab the source rpm, apply the spec patch,
> GJ> > and rebuild.
> GJ>
> GJ> Would you write the recipe for this ? I mean, there are certainly people on
> GJ>
> GJ> this list, that haven't done such things yet (patching is new for me too).
> GJ> Just a simple command after command example would be helpful.
> 
> 1) Grab the samba src rpm from your favorite mirror:
> 
> ftp://mirror.services.wisc.edu/mirrors/linux/distributions/yellowdog/update
> s/yellowdog-4.0/SRPMS/samba-3.0.10-1.ydl.1.src.rpm
> 
> 2) install it (as root): rpm -ivh samba-3.0.10-1.ydl.1.src.rpm
> 
> 3) Save the attached patch to /tmp/
> 
> 4) cd /usr/src/yellowdog/SPECS/; patch -p0 < /tmp/samba-pwd.pat
> 
> 5) cd ..; rpmbuild -bb SPECS/samba.spec
> 
> 6) rpm -Fvh RPMS/ppc/samba-*

Two things so far...
1. Before doing step two you'll have to "mkdir /usr/src/yellowdog"
since it appears the rpm -ivh command will not create that directory
automagically

2. patching doesn't seem to work for me. I'm now going to see if what
wasn't patched and do it manually (or see if, for some reason, the
code I have has actually been patched).

Eric.

PS This is the output of the patching effort...

[root at localhost yellowdog]# rpm -ivh /home/erdunbar/samba-3.0.10-1.ydl.1.src.rpm
warning: /home/erdunbar/samba-3.0.10-1.ydl.1.src.rpm: V3 DSA
signature: NOKEY, key ID aeb6b9c4
   1:samba                  ########################################### [100%]

[root at localhost yellowdog]# cd /usr/src/yellowdog/SPECS/; patch -p0 <
/tmp/samba-pwd.pat
missing header for unified diff at line 3 of patch
patching file samba.spec
Hunk #3 FAILED at 468.
1 out of 3 hunks FAILED -- saving rejects to file samba.spec.rej

[root at localhost SPECS]# cat samba.spec.rej
***************
*** 465,470 ****
  #%lang(ja) %{_mandir}/ja/man8/smbpasswd.8*
  
  %changelog
  * Sun Jan 16 2005 Lloyd D Budd <lbudd at terrasoftsolutions.com> - 3.0.10-1.ydl.1
  - remove pie , #%patch4 -p1 -b .pie
  
--- 468,477 ----
  #%lang(ja) %{_mandir}/ja/man8/smbpasswd.8*
  
  %changelog
+ * Mon Feb 28 2005 Robert Story <rs-yellowdog-samba at revelstone.com> -
3.0.10-2.ydl.1
+ - lower optimization setting so smbpasswd generateds correct hashes.
Remove when
+   the problem is fixed in gcc.
+ 
  * Sun Jan 16 2005 Lloyd D Budd <lbudd at terrasoftsolutions.com> - 3.0.10-1.ydl.1
  - remove pie , #%patch4 -p1 -b .pie


More information about the yellowdog-general mailing list