Summary: | knob to force deinstall of previous version of port before building the new version | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Kurt Jaeger <pi> |
Component: | Ports Framework | Assignee: | Port Management Team <portmgr> |
Status: | Closed Works As Intended | ||
Severity: | Affects Only Me | CC: | garga |
Priority: | --- | Keywords: | feature, needs-patch, needs-qa |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
Bug Depends on: | |||
Bug Blocks: | 194070 |
Description
Kurt Jaeger
![]() ![]() This is not perl-specific. There are non-perl cases with similar issues. You can use CONFLICTS for this See x11/gnome-session or biology/p5-bioperl-run for examples (In reply to Antoine Brodin from comment #2) > You can use CONFLICTS for this > See x11/gnome-session or biology/p5-bioperl-run for examples Is there any automatism which then resolves this ? From what understand, CONFLICTS just forces manual removal. I thought more of some knob which says "deinstall-before-build". (In reply to Kurt Jaeger from comment #3) > (In reply to Antoine Brodin from comment #2) > > You can use CONFLICTS for this > > See x11/gnome-session or biology/p5-bioperl-run for examples > > Is there any automatism which then resolves this ? From what understand, > CONFLICTS just forces manual removal. I thought more of some knob which > says "deinstall-before-build". Poudriere will build ports in a clean environment, and is the way to go if you want automation. similar effect: databases/firebird25-client, as discussed here: https://lists.freebsd.org/pipermail/freebsd-ports/2014-October/096083.html and following posts. (In reply to Kurt Jaeger from comment #1) > This is not perl-specific. There are non-perl cases with similar issues. Like: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192867 I don't understand why you don't want to use CONFLICTS for this. When I use ports and not packages, I don't want packages to be removed without me knowing and accepting it. (In reply to Antoine Brodin from comment #7) > I don't understand why you don't want to use CONFLICTS for this. I use portupgrade in a daily cronjob. If the maintainer of a port knows that to build version x+1 one has to deinstall version x, then I prefer if it happens automatically during portupgrade. Maybe some Makefile knob that is only evaluated by portupgrade would be sufficient ? Another occurance: ClamAV: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195182 (In reply to Kurt Jaeger from comment #9) > Another occurance: ClamAV: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195182 Clamav is now fixed (upstream and ports) Found that there's a knob CONFLICTS_BUILD for this kind of problem. It does not automatically deinstalls, but at least it explains it to the casual user. I do think that we shouldn't automatically remove previous versions, but only explains and let the user decide. In that area, CONFLICT_BUILD is fine with it. |