Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How does this work again?: (4 Items)
   
How does this work again?  
Ok, I have the general concept of how this system works, but the devil as they say is in the details..

As you are aware, I am playing with the samba package.  So far, I have found a couple things that need to be fixed.  The
 first is some edits to one of the include files (which is part of the downloaded package).  I assume I have to put my 
edits somewhere so they will get properly patched into the downloaded source.  Is there a trick to this, or a tool, or a
 ... whatever?

The other change was the whole strptime() thing.  I edited the base Makefile to include a post patch target for ${OPSYS}
 == "QNX" which copies the file.  I assume I will also have to do the above patching process to fix the Makefile in the 
lib directory.

So the bottom line is how to I create the necessary files and where do I put them to create the patches?

Thanks,
Rick..
Re: How does this work again?  
On Thu, Sep 27, 2007 at 12:29:39PM -0400, Rick Duff wrote:
> Ok, I have the general concept of how this system works, but the devil
> as they say is in the details..
> 
> As you are aware, I am playing with the samba package.  So far, I have
> found a couple things that need to be fixed.  The first is some edits to
> one of the include files (which is part of the downloaded package).  I
> assume I have to put my edits somewhere so they will get properly
> patched into the downloaded source.  Is there a trick to this, or a
> tool, or a ... whatever?
> 
> The other change was the whole strptime() thing.  I edited the base
> Makefile to include a post patch target for ${OPSYS} == "QNX" which
> copies the file.  I assume I will also have to do the above patching
> process to fix the Makefile in the lib directory.
> 
> So the bottom line is how to I create the necessary files and where do I
> put them to create the patches?
> 
> Thanks,
> Rick..

I'm by no means an expert on this but here's what I do:
- install the pkgtools/pkgdiff package
- When I edit a file, I use pkgvi which automatically backs
  up the old:
	# cd mail/sendmail
	# pkgvi work/sendmail-8.14.1/devtools/OS/QNX.6.x
- create patches
	# mkpatches
- see if I'm happy with them
	# patchdiff
- copy them over
	# cp work/.newpatches/patch-xx patches
- remake the digest
	# bmake mdi
- verify the whole thing
	# bmake clean && bmake

Hope that helps.

-seanb
Re: How does this work again?  
> On Thu, Sep 27, 2007 at 12:29:39PM -0400, Rick Duff wrote:
> 
> I'm by no means an expert on this but here's what I do:
> - install the pkgtools/pkgdiff package
> - When I edit a file, I use pkgvi which automatically backs
>   up the old:
> 	# cd mail/sendmail
> 	# pkgvi work/sendmail-8.14.1/devtools/OS/QNX.6.x
> - create patches
> 	# mkpatches
> - see if I'm happy with them
> 	# patchdiff
> - copy them over
> 	# cp work/.newpatches/patch-xx patches
> - remake the digest
> 	# bmake mdi

Not sure if you need to remake the digest. I have gone through NetBSD docs the other day, you can actually:

               # bmake makepatchsum

To refresh the distinfo.

-xtang
Re: How does this work again?  
Cool, those were the kind of answers I was looking for.  Now I need to try it out and see what kind of luck I have. ;-)

Rick..