Opened 15 years ago
Closed 3 years ago
#24520 closed enhancement (duplicate)
warn when an unavailable version is requested for install
Reported by: | ottd@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.8.2 |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: |
Description
I found the following strange behaviour:
> sudo port install zlib@1.2.3_4+universal ---> Computing dependencies for zlib ---> Deactivating zlib @1.2.4_1 ---> Activating zlib @1.2.4_1+universal ---> Cleaning zlib > port installed zlib The following ports are currently installed: zlib @1.2.3_3 zlib @1.2.3_4 zlib @1.2.4_1 zlib @1.2.4_1+universal (active) > port MacPorts 1.8.2
I expected actually that the 1.2.3_4 version would be re-compiled as universal library with the first command shown. Maybe this is similar to #17367 ?
Change History (7)
comment:1 Changed 15 years ago by danielluke (Daniel J. Luke)
comment:2 Changed 15 years ago by ottd@…
Oh, I missed that. Thanks for pointing that out and giving the link.
May this ticket then be changed in a feature request so that installation of older versions in the described manner can work? It will be helpful in cases like this where one likes to test code against different library versions or where for example the current version is defective (zlib 1.2.4 has confirmed by zlib devs a broken gzeof which some of my programmes rely on, zlib < 1.2.3_4 doesn't show that defect).
comment:3 Changed 15 years ago by jmroot (Joshua Root)
Summary: | activation of wrong version → warn when an unavailable version is requested for install |
---|---|
Type: | defect → enhancement |
comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Giving MacPorts the ability to install older versions would be a major change that I doubt we want to make.
zlib has already been updated to 1.2.5 to address the known defects you mentioned.
comment:7 Changed 3 years ago by jmroot (Joshua Root)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Macports can only build the current version of a port. See InstallingOlderPort for how to build an older version.
The current implementation could probably error out if you specify a version that doesn't match the current portfile, though.