Netgate SG-1000 microFirewall

Author Topic: Building from source branch 2_4_2 fails at the final stages  (Read 349 times)

0 Members and 1 Guest are viewing this topic.

Offline lemonparty1

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Building from source branch 2_4_2 fails at the final stages
« on: December 31, 2017, 09:08:08 pm »
Hey guys, I have been at this for a week. My build fails at the final stages and I can't seem to figure it out. What am I missing here?

The only modification I have done is change the name of the software from nonsense to GNS, I understand I can't build using pfSense as the name due to copyright and licensing. I just want to build this for personal use and testing in my homelab.
 
I am following PiBa-NL's guide here: https://github.com/PiBa-NL/PiBa-NL-WIKI/wiki/How-to-building-a-pfSense-.iso-from-sources

You can find my build.log attached and below are some additional info:

I have made my own pkg repo for building as this is required. I am using nginx to make the pkg repo available internally and I can browse and download from it just fine.

FreeBSD: { enabled: no }

GNS-core: {
  url: "pkg+http://pkgdevel.gns.local/packages/GNS_v2_4_2_amd64-core",
  mirror_type: "srv",
  signature_type: "PUBKEY",
  pubkey: "/usr/local/etc/ssl/repo.pub",
  enabled: yes
}

GNS: {
  url: "pkg+http://pkgstaging.gns.local/packages/GNS_v2_4_2_amd64-GNS_v2_4_2",
  mirror_type: "srv",
  signature_type: "PUBKEY",
  pubkey: "/usr/local/etc/ssl/repo.pub",
  enabled: yes
}

Offline Gertjan

  • Hero Member
  • *****
  • Posts: 2579
  • Karma: +207/-9
    • View Profile
Re: Building from source branch 2_4_2 fails at the final stages
« Reply #1 on: January 02, 2018, 08:19:06 am »
Line 12520 ?!

Offline lemonparty1

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Building from source branch 2_4_2 fails at the final stages
« Reply #2 on: January 03, 2018, 06:06:19 am »
Line 12520 ?!

Did you mean line 2520? No, that is not causing the build to fail. It turns out I had setup the repo.conf file template wrong. Since I chose not to sign packages for testing the build, I should have left out verification of package signatures from the template as well.
All seems well now, ISO build succeeds.

Offline Gertjan

  • Hero Member
  • *****
  • Posts: 2579
  • Karma: +207/-9
    • View Profile
Re: Building from source branch 2_4_2 fails at the final stages
« Reply #3 on: January 03, 2018, 07:42:06 am »
Line 12520 ?!

Did you mean line 2520? No, that is not causing the build to fail. It turns out I had setup the repo.conf file template wrong. Since I chose not to sign packages for testing the build, I should have left out verification of package signatures from the template as well.
All seems well now, ISO build succeeds.
Line 12520 really - in your file/log.
>>> Cloning everything to /usr/MyFirewall/tmp/stage-dir staging area...mv: rename /usr/MyFirewall/tmp/stage-dir/usr/local/sbin/pfSense-upgrade to /usr/MyFirewall/tmp/stage-dir/usr/local/sbin/GNS-upgrade: No such file or directory

as you already figured out  ;D

Offline fabricioguzzy

  • Jr. Member
  • **
  • Posts: 45
  • Karma: +2/-0
    • View Profile
Re: Building from source branch 2_4_2 fails at the final stages
« Reply #4 on: March 24, 2018, 12:34:09 pm »
Hello LemonParty1

It seems we are doing the same thing but for different reasons. Anyway, I see you renamed the firewall to GNS, but taking a closer look to your log file, it seems you forgot to rename one of the build.conf lines to GNS, cause it is still showing "MyFirewall" as the PIBA-NL wiki is showing.
Not sure if you already figured it out, but if you don't, try it again renaming all fields to "GNS" as you did to the other fields/lines.
I could generate a brand new ISO file with a different name. It took me a week to understand everything, but it's now much more clear to me.
I didn't try to generate a RELEASE ISO file yet, just a DEVELOPMENT. Let me know if you could finally finish your compilation.
Meybe we can exchange good information.

Regards
Fabricio.