I'm running Ubuntu 11.10. I'm installing GNAT, but I want GNAT 3.40 (which came with Ubuntu 5.10), not the latest version. Is it possible to get GNAT 3.40 on an Ubuntu 11.10 machine?
I thought about this solution:
/etc/apt/preferences.d/gnat
Package: gnat
Pin: release v=5.10, l=Ubuntu
Pin-Priority: 1001
Package: gcc
Pin: release v=5.10, l=Ubuntu
Pin-Priority: 1001
Package: libc6
Pin: release v=5.10, l=Ubuntu
Pin-Priority: 1001
Package: libc6-dev
Pin: release v=5.10, l=Ubuntu
Pin-Priority: 1001
Package: libgcc1
Pin: release v=5.10, l=Ubuntu
Pin-Priority: 1001
Package: libgnat
Pin: release v=5.10, l=Ubuntu
Pin-Priority: 1001
Package: libgnatprj4.1
Pin: release v=5.10, l=Ubuntu
Pin-Priority: 1001
Package: libgnatvsn4.1
Pin: release v=5.10, l=Ubuntu
Pin-Priority: 1001
Or is this impossible? Maybe these version are too old to be compatible with Ubuntu 11.10? Or the changes are too extensive?
Please state your arch. I'd try rebuilding the gnat source package on your current Ubuntu. Based on a quick Google, and looking at eg https://launchpad.net/ubuntu/+source/gcc-3.4/3.4.3-9ubuntu4.1 it seems like it might work, but you won't know till you try. The dsc file on that page has:
You'll need to install all the build dependencies first and then
debuild binary
or similar. This looks intimidating, but notice that most of the dependencies are>=
, which means that more recent versions should work. Note also that|
means or.If you can't install all the build dependencies, you can try removing the ones you can't get from
debian/control
, and building anyway. The gcc build procedure it designed to be reasonably robust, and it fails, it will tell you what it is missing. Forg++-3.3
,g77-3.3
,gobjc-3.3
try using the current versions and hope for the best. It is also possible to strip down the build process so that it only builds what is necessary for gnat, but this is quite a lot more complicated, so I don't suggest you go there.