• NetBSD
  • pkgsrc binaries vs source

Hello all, is it ok to have both installed pkgin and the source tree, and sometimes compile programs
while some other times installing binaries?
Is this ok as a thing or i should stick to either only binaries or only sources?

Also how is the situation in other BSDs? Is it the same?

    netbsdnoob yes, it's fine, I do this myself as compiling things like web browsers takes ages, so I mix own compiled binaries with pre-compiled ones.

    Just make sure they are compiled from the same source tree, else expect breakage.

      netbsdnoob Also how is the situation in other BSDs? Is it the same?

      Yes. I typically use packages only except for a few programs that I want compiled with different options than the default ones. Like pin said, it will work as long as both your packages and ports tree are from the same branch (this only applies to NetBSD and FreeBSD because OpenBSD and DragonFly only have one ports/packages branch available for a defined release).

      pin How do i deal with breakage? how do i troubleshoot these kind of issues?

      • pin replied to this.

        netbsdnoob Honestly, stick with the same branch. Q-release of binaries with the corresponding Q-release of pkgsrc or, current binaries with pkgsrc-current.

        To fix breakage, you need to hunt down changes, often it happens due to different versions of shared libs or dependencies.

        • Jay likes this.