Hi,
I want to migrate my mailserver to a new one. So I'm in the process of installing and building a new mailserver. However, the Postfix package doesn't come with PostgreSQL support build-in, which I happen to need. I know it's bad practice to throw both packages and ports into the mix. And since I don't want to compile all the software I need, I want to stricktly stick to packages. So I created a jail, compiled Postfix with all the build flags I needed and create a packages from that build. Then I copied the freshly build package back to the host and installed it with
Facing this dilemma, I figure I have a few options.
I wanted to build a static package, but this doesn't seem as trivial as I hoped. I eventually went with option 2 and forced the newer version devel/icu on the host. This solved my problem, but I'm not so confident it will work a second time.
So, what's the best practice in this scenario?
I want to migrate my mailserver to a new one. So I'm in the process of installing and building a new mailserver. However, the Postfix package doesn't come with PostgreSQL support build-in, which I happen to need. I know it's bad practice to throw both packages and ports into the mix. And since I don't want to compile all the software I need, I want to stricktly stick to packages. So I created a jail, compiled Postfix with all the build flags I needed and create a packages from that build. Then I copied the freshly build package back to the host and installed it with
pkg add -f postfix-3.5.2,1.txz
. So far so good. But when I tried to start Postfix, it complained that it wanted libicuuc.so.67.1. And that was a problem, because on the host (with everything installed via pkg, remember?) it was still on libicuuc.so.66.1.Facing this dilemma, I figure I have a few options.
- Try to downgrade everything in the build-jail and rebuild everything with the same version as the host.
- Make a package of devel/icu and install the newer version on the host, but risking breaking already installed packages, depending on the older version.
- Build a static package.
I wanted to build a static package, but this doesn't seem as trivial as I hoped. I eventually went with option 2 and forced the newer version devel/icu on the host. This solved my problem, but I'm not so confident it will work a second time.
So, what's the best practice in this scenario?