Re: How to pin a package?
On Mar 15, 2020, at 09:13, Ken Cunningham wrote: > on macports you pin a package using a personal repository. > > I explained it a few answers above. It's a very simple, 30 second, procedure. But that is not what we want users to need to do. When a user encounters a problem, we do not want the official answer to be "manually perform such and such workaround". We want the answer to be "we will fix the problem in the official ports collection so that all users receive the fix automatically when they selfupdate."
Re: How to pin a package?
On Sat, Mar 14, 2020 at 11:24 AM Ryan Schmidt wrote: > > On Mar 14, 2020, at 00:39, Jeffrey Walton wrote: > > > My old PowerMac G5 cannot build the CMake being supplied with > > MacPorts. I know CMake now requires C+11 or C++14, and the antique > > tools on the Mac do not meet the requirements. I want to pin CMake to > > an older version for the Mac. For example, 3.15.4 or 3.14.6. > > > > How do I pin a package using MacPorts? > > MacPorts doesn't have a "pin a package" feature. We would not be able to > accommodate the explosion of bug reports that would arise if we allowed users > to construct arbitrary combinations of versions of ports from the past. > Instead, we focus on providing a single collection of ports that are > hopefully somewhat up to date and should work together. > > In a collection of this size, it is inevitable that at any given point some > things will be broken, such as the bug you found where cmake doesn't build on > 10.5 right now. Those bugs should be fixed. > > While we don't allow users to decide what version of a port they want, the > maintainer of a port can make such decisions and it can be based on > variables. For example, several ports already restrict themselves to an older > version of the software when the port is installed on older operating systems > if the latest version of the software no longer builds on older systems. If > that were necessary to resolve this issue for 10.5, the maintainer of the > port could choose to do that, however it's not clear at this point whether > that would help. Ack, thanks. Based on Ken's advice I'll build it with GCC 5. Jeff
Re: How to pin a package?
On Mar 14, 2020, at 00:39, Jeffrey Walton wrote: > My old PowerMac G5 cannot build the CMake being supplied with > MacPorts. I know CMake now requires C+11 or C++14, and the antique > tools on the Mac do not meet the requirements. I want to pin CMake to > an older version for the Mac. For example, 3.15.4 or 3.14.6. > > How do I pin a package using MacPorts? MacPorts doesn't have a "pin a package" feature. We would not be able to accommodate the explosion of bug reports that would arise if we allowed users to construct arbitrary combinations of versions of ports from the past. Instead, we focus on providing a single collection of ports that are hopefully somewhat up to date and should work together. In a collection of this size, it is inevitable that at any given point some things will be broken, such as the bug you found where cmake doesn't build on 10.5 right now. Those bugs should be fixed. While we don't allow users to decide what version of a port they want, the maintainer of a port can make such decisions and it can be based on variables. For example, several ports already restrict themselves to an older version of the software when the port is installed on older operating systems if the latest version of the software no longer builds on older systems. If that were necessary to resolve this issue for 10.5, the maintainer of the port could choose to do that, however it's not clear at this point whether that would help.
Re: How to pin a package?
you might be interested in this ticket re: cmake on 10.5 ppc https://trac.macports.org/ticket/59832 tl;dr it works if you activate libgcc7 7.4.0
How to pin a package?
My old PowerMac G5 cannot build the CMake being supplied with MacPorts. I know CMake now requires C+11 or C++14, and the antique tools on the Mac do not meet the requirements. I want to pin CMake to an older version for the Mac. For example, 3.15.4 or 3.14.6. How do I pin a package using MacPorts? - Here's what I have been experiencing for several months. ---> Attempting to fetch cmake-3.16.5_0.darwin_9.ppc.tbz2 from http://packages.macports.org/cmake ---> Attempting to fetch cmake-3.16.5_0.darwin_9.ppc.tbz2 from http://aus.us.packages.macports.org/macports/packages/cmake ---> Attempting to fetch cmake-3.16.5_0.darwin_9.ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/cmake ---> Configuring cmake Error: Failed to configure cmake: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log for details. Error: Problem while installing cmake