Re: make replace
Greg Troxel <[email protected]> Fri, 20 Mar 2026 18:44:46 -0400
| Newsgroups | gmane.os.netbsd.devel.packages |
|---|---|
| Message-ID | <[email protected]> |
Benny Siegert <[email protected]> writes: > On Fri, 20 Mar 2026, Greg Troxel wrote: > >>> => Creating binary package /usr/pkgsrc/packages/All/graphviz-14.1.3.tgz >>> ===> replace-message [graphviz-14.1.3] ===> Replacing for graphviz-14.1.3 >>> *** Error code 1 >> >> That's a feature :-). You can't replace when the old version was >> missing. You can package-install instead. > > Personally, I think it's a mis-feature. I wish there was a "make > install-or-replace" that I can put as DEPENDS_TARGET, for example. A fair point. (nit: it's package-install-or-replace because 'install' installs to destdir). This would let you build something whose deps were out of date and replace them if a newer version is required. You might get into a funny state and have to pkg_rr -uv, but now you basically have to do that first.