postPortPatch hook

Philip M. Gollucci pgollucci at gmail.com
Tue Dec 6 21:40:46 EST 2011


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?

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.

-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
Member,                           Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Director Operations,              Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: portbuild.diff
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20111207/aa5d926e/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20111207/aa5d926e/attachment.bin>


More information about the tinderbox-list mailing list