Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Pfsense 1.2.3 FreeBSD 7.3 development /build system

    Development
    2
    5
    3470
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brunoe last edited by

      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.rej

      If 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.rej

      Looking 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.rej

      What 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.rej

      Eric Bruno

      1 Reply Last reply Reply Quote 0
      • jimp
        jimp Rebel Alliance Developer Netgate last edited by

        Is there a reason you need to build against 7.3 and not 7.2? It should work as-is against 7.2…

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • B
          brunoe last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • jimp
            jimp Rebel Alliance Developer Netgate last edited by

            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.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • B
              brunoe last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post