I do hope this questions hasn't been asked before, but I've seen no indication that is has.
Here is my dilemma: I have two packages (google-authenticator and nginx) where I literally need to change only 5 lines of code in the source before compiling. Otherwise, binary packages work very well for my needs.
Initially, I decided to go the route of using ports only, as it is not considered good practice to mix packages and ports. It worked nicely when building most ports, but when I had to install shellcheck it literally took 12+ hours to compile. Not to mention, I couldn't get it to build on a VPS with 1G of RAM, so I have had to upgrade my VPS to have 2G of memory for the sole purpose of compiling a single port, which dollar-wise would add up very quickly if/when I need to deploy many VPSs in production.
To my understanding, while pkg uses the ports tree to build packages, it is always using an older snapshot of the ports that is not aligned with the current ports tree (which makes mixing ports and packages a bad idea as it can cause dependency hell). Is it possible to get the ports tree that pkg is using to build packages, as opposed to the current ports tree?
If it is not possible to do so, is there any other way I might safely mix packages with ports? It just seems like a terrible waste of resources to build every single package from the ports tree when I am literally changing a couple of lines of code in a single package or two before compiling. I am aware of poudriere, and it sounds great (and I also intend to learn it), but again, it just seems like overkill to build my own repository when I am making such minuscule modifications to one or two packages.
Here is my dilemma: I have two packages (google-authenticator and nginx) where I literally need to change only 5 lines of code in the source before compiling. Otherwise, binary packages work very well for my needs.
Initially, I decided to go the route of using ports only, as it is not considered good practice to mix packages and ports. It worked nicely when building most ports, but when I had to install shellcheck it literally took 12+ hours to compile. Not to mention, I couldn't get it to build on a VPS with 1G of RAM, so I have had to upgrade my VPS to have 2G of memory for the sole purpose of compiling a single port, which dollar-wise would add up very quickly if/when I need to deploy many VPSs in production.
To my understanding, while pkg uses the ports tree to build packages, it is always using an older snapshot of the ports that is not aligned with the current ports tree (which makes mixing ports and packages a bad idea as it can cause dependency hell). Is it possible to get the ports tree that pkg is using to build packages, as opposed to the current ports tree?
If it is not possible to do so, is there any other way I might safely mix packages with ports? It just seems like a terrible waste of resources to build every single package from the ports tree when I am literally changing a couple of lines of code in a single package or two before compiling. I am aware of poudriere, and it sounds great (and I also intend to learn it), but again, it just seems like overkill to build my own repository when I am making such minuscule modifications to one or two packages.