0

For some old project that I'm using, I need to have FreeBSD and the project requires boost library. However, it was using boost-1_52_0 whereas ports have boost-1_55_0.

According to this, it should be really easy and straight forward, BUT portdowngrade is not even under sysutils anymore. It is quite outdated and not quite straight forward anymore. There is no prompt in portdowngrade anymore. Also when I try man portdowngrade, it say no manual for portdowngrade and no help either.

I continued to search and find this, in which old versions should be under /var/cache/pkg, but no luck again.

I found the boost-lib-1_52_0(not source, just pkg distribution etc. which is like in the ports, downloading source and installing) and it does sanity check and says the port is outdated.

Finally, I couldn't find a way to install different versions with pkg install.

I have to use FreeBSD and I want to use boost-lib-1_52_0 because I have to solve a lot of other problems with 1_55_0.

Any help is appreciated,

smttsp
  • 4,011
  • 3
  • 33
  • 62

1 Answers1

0

You can use this repo branch (adjust it accordingly to your FreeBSD version and arch) to install boost 1.52 with pkg. To point pkg to this repo create /usr/local/etc/pkg/repos/old.conf file with following content:

old: {
  url: "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/release_0",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

Now run pkg search boost to make sure boost-libs-1.52 is available.

Another way would be checking out ports tree with svn on some older revision that have boost-libs port at version 1.52 and then building it.

arrowd
  • 33,231
  • 8
  • 79
  • 110
  • I've done all and now I can see `boost-libs-1.52.0_2` is available. But I wonder how am I going to fetch and install it. `pkg install boost` seems to install `boost-libs-1.55` and old version doesn't seem to be under ports. I'm not sure how am I going to make it default. – smttsp Nov 18 '15 at 17:08
  • Set version explicitly: `pkg install boost-libs-1.52.0_2`. – arrowd Nov 18 '15 at 17:12
  • I did as you said, but it tries to download `boost-libs-1.55.0_8` and bunch of more programs. I accepted even thought the old boost is not in the download list and I see that 1_55 is installed (from `/usr/local/include/boost/version.hpp`) – smttsp Nov 18 '15 at 17:26
  • By the way, when I search for boost, it says `pkg.FreeBSD.org/freebsd:10:x86:32/release_0/meta.txz` not found. But it finds the old boost. – smttsp Nov 18 '15 at 17:38
  • Hum, well, you can `fetch http://pkg.freebsd.org/freebsd:10:x86:32/release_0/All/boost-libs-1.52.0_2.txz` manually, and then do `pkg add fetched_file.txz` – arrowd Nov 20 '15 at 06:11
  • Thanks, I should have thought of this. – smttsp Nov 20 '15 at 22:37