Opened 10 months ago

Last modified 4 months ago

#60754 new defect

Reclaim removes build dependencies

Reported by: haberg-1 Owned by:
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc: jjstickel (Jonathan Stickel)
Port:

Description (last modified by ryandesign (Ryan Schmidt))

Using 'port reclaim' produces the list below; when answering Yes, thus uninstalling them, and then running 'port upgrade outdated', they get reinstalled again. So somehow, there are some hidden dependencies that 'port reclaim' does not see. Possibly they are related to the port lilypond-devel.

port reclaim
--->  Checking for unnecessary unrequested ports
Unrequested ports without requested dependents found:
 perl5.30  @5.30.3_0
 cmake  @3.17.3_0
 mesa  @17.1.6_2+osmesa+python27
 xorg-libXtst  @1.2.3_1
 xorg-libXi  @1.7.10_0
 xorg-libXxf86vm  @1.1.4_1
 xorg-libXrandr  @1.5.2_0
 xorg-libXinerama  @1.1.4_1
 xorg-libXcomposite  @0.4.5_0
 xorg-libXp  @1.0.3_2
 xorg-libXcursor  @1.2.0_0
 xorg-libXdamage  @1.1.5_0
 xorg-libXfixes  @5.0.3_1
 libarchive  @3.4.3_0
 flex  @2.6.4_0
 gmake  @4.3_0
 pkgconfig  @0.29.2_0
 potrace  @1.16_0
 libzzip  @0.13.69_0
 dbus  @1.12.16_0
 woff2  @1.0.2_0
 libspiro  @20190731_0
 libuninameslist  @20180701_0
 lzo2  @2.10_0
 libuv  @1.38.0_0
 libepoxy  @1.5.4_1+python38
 hicolor-icon-theme  @0.17_0
 t1utils  @1.41_0
 texlive-common  @2019_0
Would you like to uninstall them? [Y/n]:

Change History (6)

comment:1 Changed 10 months ago by ryandesign (Ryan Schmidt)

Component: portsbase
Description: modified (diff)
Port: catalina removed

Presumably reclaim is designed to remove build dependencies since they are not needed after the port has been built. From the list you showed, cmake, flex, gmake, and pkgconfig definitely fall into that category. But if you then upgrade ports and need to build them from source, build dependencies will again be needed and will be reinstalled. This is as designed, though evidently not as you expected. It might be nice if MacPorts offered the option to keep build dependencies. And that option should probably be on by default if MacPorts is configured to buildfromsource always.

comment:2 Changed 10 months ago by ryandesign (Ryan Schmidt)

Looking specifically at lilypond-devel, it has rather a lot of build dependencies:

$ port deps lilypond-devel
Full Name: lilypond-devel @2.21.2_0
Build Dependencies:   autoconf, bison, flex, fontforge, gmake, p5.28-encode,
                      p5.28-pod-escapes, p5.28-pod-simple, p5.28-podlators,
                      p5.28-scalar-list-utils, pkgconfig, t1utils, texinfo,
                      texlive-fonts-recommended, texlive-metapost,
                      urw-core35-fonts
Library Dependencies: pango, extractpdfmark, ghostscript, guile18, python38

(and those build dependencies have dependencies, and so on).

comment:3 Changed 10 months ago by ryandesign (Ryan Schmidt)

It would also be nice if reclaim could be intelligent about keeping build dependencies for ports that are known not to be distributable, but unfortunately MacPorts base does not know whether any port is distributable. This capability exists outside of MacPorts, and should be integrated into MacPorts base so that enhancements like this would be possible.

comment:4 Changed 10 months ago by ryandesign (Ryan Schmidt)

Summary: Reclaim removes hidden dependenciesReclaim removes build dependencies

comment:5 Changed 10 months ago by haberg-1

For example, the xorg addition may be due to a setting of fontforge which is not needed by lilypond-devel, and then that dependency is not propagated to reclaim.

Last edited 10 months ago by haberg-1 (previous) (diff)

comment:6 Changed 4 months ago by jjstickel (Jonathan Stickel)

Cc: jjstickel added
Note: See TracTickets for help on using tickets.