postPortPatch hook

Joe Marcus Clarke marcus at marcuscom.com
Sun Dec 11 13:02:05 EST 2011


On 12/6/11 9:40 PM, Philip M. Gollucci wrote:
> All,
> 
> Lets say I have local patches for ports that can not be committed to the
> port, or would be rejected if suggested.  (I actually agree with this in
> these cases).
> 
> The real question is how do I get this local patch to apply via a hook
> in Tinderbox correctly. Normally I would say use the prePortBuild patch
> but that doesn't quite work. We came up with the attached diff to
> lib/portbuild to add this hook?

This patch looks incomplete.  You're calling buildscript with a phase
argument of 4.  What does phase 4 do?  Breaking out buildscript into
more phases is something itetcu wanted.  If you have patches to do that,
that would be great.

Joe

> 
> Additionally, we need add an arg to build script in the same file.  Note
> the ${TD}
> 
> -    chroot ${chroot} /usr/bin/nice -n $nice /buildscript ${dirname} 4
> "$ED" "$PD" "$FD" "$BD" "$RD" "${plistcheck}" >
> ${chroot}/tmp/${pkgname}.log4 2>&1
> +    chroot ${chroot} /usr/bin/nice -n $nice /buildscript ${dirname} 4
> "$ED" "$PD" "$FD" "$BD" "$RD" "$TD" "${plistcheck}" >
> ${chroot}/tmp/${pkgname}.log4 2>&1
> 
> 
> 
> 
> 
> 
> For instance --
> 
> $ cat qmail-Makefile.patch
> Apply this to the /usr/ports/mail/qmail directory *after* a portsnap.
> 
> root at loki:/usr/ports/mail/qmail# diff -u Makefile.orig Makefile
> --- Makefile.orig       2011-02-28 02:21:30.433505432 +0000
> +++ Makefile    2011-02-28 02:24:00.235931829 +0000
> @@ -526,6 +526,7 @@
>  # Some default values, these can be modified by make command line
>  .if defined(WITH_BIG_CONCURRENCY_PATCH) &&
> !defined(BARRIER_BIG_CONCURRENCY_PATCH)
>  WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT?= 509
> +CFLAGS += -DFD_SETSIZE=8192
>  .endif
> 
> Why?
> Because we moved from 32 to 64 architecture for our qmail server which
> has 1000s of lists.  Converting them wasn't really an option so we
> hacked the qmail code to DTRT.
> 
> 
> 
> 
> _______________________________________________
> tinderbox-list at marcuscom.com mailing list
> http://marcuscom.com/mailman/listinfo/tinderbox-list
> To unsubscribe, send any mail to "tinderbox-list-unsubscribe at marcuscom.com"


-- 
PGP Key : http://www.marcuscom.com/pgp.asc


More information about the tinderbox-list mailing list