• NetBSD
  • Compiling Programs From pkgsrc

People i was trying to compile a program from pkgsrc, and the first time i tried i got an error where pkgsrc complained about having already installed a dependency it needed, something like:
A different version of libXYZ2.0 is already installed cannot install libXYZ2.0nb2

At this point I went into libXYZ2.0 directory and did make replace.
Everything worked.

At this point I re-tried to compile the program and I got the same exact error but referred to another package.

Is there a way to automatically/automagically compile and replace all needed packages? I mean in an automatic/recursive way?
Or i have to do it manually for every package?

Thanks

  • pin replied to this.
  • Jay likes this.

    It actually didn't work, i still get: A different version of curl-7.76.1nb1 is already installed: curl-7.76.0

    Make stopped: in lang/llvm
    make replace failed for package llvm.
    I am confused.

    • pin replied to this.

      netbsdnoob This is because you're using different sources. For example, if you're installing binaries from 2021-Q1 you should unpack the corresponding tarball from pkgsrc, if not there will be missmatches like this.

      If you want to run pkgsrc-current, there're builds for this, http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.0_current/

      These are updated monthly(ish).

      Also, you should remember to update your tree cvs up -dP.
      Your system might be a bit messed-up right now but there's no need to reinstall.

      What would you like to do?

        pin ok i am going to update, anyway the strange thing is that I though that both pkgsrc and binaries would be on the same track.
        So how can i check if they are not aligned ?

        pin So basically I want to learn how to troubleshoot these kinds of problems.
        So to recap:
        1) How to understand what my binaries are set on ? 8.0/9.0 / 9.1 and what the pkgsrc source tree is following
        2) How to set both on the same track, e.g., -current
        3) I still didn't understand how to make my NetBSD totally current as a sort of rolling-release

        • pin replied to this.

          netbsdnoob
          1) look inside /usr/pkg/etc/pkgin/repositories.conf

          2) by pulling and unpacking the pkgsrc tarball corresponding to what you have in 1)

          3) It's possible, I'll answer in your other thread