Pfsense 1.2.3 FreeBSD 7.3 development /build system
-
I am trying to build a FreeBSD 7.3 system to build pfSense 1.2.3.
The host system, jails …etc are running. I am having problems with the kernel patches for pfSense.
The question is
What is the best approach to generate the correct diff's to patch what current versions of the files in 7.3?Details:
The RELENG_7_3-supfile uses the cvs tag RELENG_7 this gives the following patch errors:
Using RELENG_7
/usr/pfSensesrc/src/sys/dev/usb/uftdi.c.rej
/usr/pfSensesrc/src/sys/contrib/pf/net/pf.c.rej
/usr/pfSensesrc/src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c.rej
/usr/pfSensesrc/src/contrib/pf/pfctl/parse.y.rej
/usr/pfSensesrc/src/contrib/tcsh/sh.c.rej
/usr/pfSensesrc/src/etc/rc.initdiskless.rejIf change the tag in RELENG_7_3-supfile to RELENG_7_3, RELENG_7_3_BP or RELENG_7_3_0_RELEASE
I end with the just the following two errors./usr/pfSensesrc/src/sys/contrib/pf/net/pf.c.rej
/usr/pfSensesrc/src/contrib/pf/pfctl/parse.y.rejLooking at the diff files for pf.c it is looking for
the version this is coming out of the FreeBSD cvs archive is
__FBSDID("$FreeBSD: src/sys/contrib/pf/net/pf.c,v 1.46.2.7 2010/01/23 00:41:04 delphij Exp $");
I think this diff which is having a problem.
../patches/RELENG_7_3/dummynet.RELENG_7.diff
it is looking for revision 1.3
Which is in the MAIN branch and does not have any tags*** 4667,4672 ****
{
struct pf_state_cmp key;
struct tcphdr *th = pd->hdr.tcp;
u_int16_t win = ntohs(th->th_win);
u_int32_t ack, end, seq, orig_seq;
u_int8_t sws, dws;
--- 4677,4683 ----
{
struct pf_state_cmp key;
struct tcphdr *th = pd->hdr.tcp;
+ struct pf_rule *r = NULL;
u_int16_t win = ntohs(th->th_win);
u_int32_t ack, end, seq, orig_seq;
u_int8_t sws, dws;/usr/pfSensesrc/src/sys/contrib/pf/net/pf.c.rej
/usr/pfSensesrc/src/contrib/pf/pfctl/parse.y.rejWhat is the best approach to generate the correct diff to patch what current versions of pf.c and parse.y if use RELENG_7_3_0_RELEASE
or when using RELENG_7 for
/usr/pfSensesrc/src/sys/dev/usb/uftdi.c.rej
/usr/pfSensesrc/src/sys/contrib/pf/net/pf.c.rej
/usr/pfSensesrc/src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c.rej
/usr/pfSensesrc/src/contrib/pf/pfctl/parse.y.rej
/usr/pfSensesrc/src/contrib/tcsh/sh.c.rej
/usr/pfSensesrc/src/etc/rc.initdiskless.rejEric Bruno
-
Is there a reason you need to build against 7.3 and not 7.2? It should work as-is against 7.2…
-
Patches where there for 7.3, 7.4 is close to being out. I figured I would be just one rev behind on the OS instead of two once 7.4 came out.
I can go back and start with fresh 7.2. -
I seem to recall they were from 7.3-PRERELEASE, but it really was never tried all that much. The "official" platform for 1.2.3 is FreeBSD 7.2-RELEASE (Really RELENG_7_2) so that would be the safest thing to try.
-
I moved back to 7.2 with clean system.
The kernel patch issues are gone but I still can not get clean build.
I will start another thread.