Bug 238667 - make build-depends-list / run-depends-list / pretty-print-build-depends-list / pretty-print-run-depends-list don't show dependencies recursively
Summary: make build-depends-list / run-depends-list / pretty-print-build-depends-list ...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Port Management Team
: 238668 (view as bug list)
Depends on:
Reported: 2019-06-17 13:32 UTC by matthias+freebsd+bugzilla
Modified: 2021-06-13 05:15 UTC (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description matthias+freebsd+bugzilla 2019-06-17 13:32:11 UTC
"make build-depends-list" in a port Directory should list all dependencies of he port an all dependencies of those dependencies (recusion over all dependencies)

cd /usr/ports/devel/cmake
make build-depends-list

cd /usr/ports/textproc/py-sphinx
make build-depends-list

shows that no recursion ist happening.

same thing with "make run-depends-list"

"make pretty-print-run-depends-list"
"make pretty-print-build-depends-list"

ist totaly hosed as it shows non dependencies at all.

BONUS: All dependencies pulled in bei "USES=" e.g. "USES= groff" sont Show up at all.
Comment 1 matthias+freebsd+bugzilla 2019-06-17 13:41:25 UTC
*** Bug 238668 has been marked as a duplicate of this bug. ***
Comment 2 Koichiro Iwao freebsd_committer 2019-06-18 01:40:57 UTC
I confirmed "pretty-print-" shows nothing. This is actually an issue. However I would say "*-depends-list" except for "all-depend-list" doesn't recurse by design.
Comment 3 Koichiro Iwao freebsd_committer 2019-06-18 01:57:12 UTC
Oops, pretty-print-* was working. I need to create INDEX to run pretty-print-*.  BTW, once again, *-depends-list (except all) for is designed to show direct dependencies IMO. Recursed build dependency list is a little bit too large and useless for me.
Comment 4 matthias+freebsd+bugzilla 2019-06-18 08:26:19 UTC
(In reply to Koichiro Iwao from comment #2)

"man ports":

     run-depends-list, build-depends-list
                          Print a list of all the compile and run
                          dependencies, and dependencies of those
                          dependencies, by port directory.

     all-depends-list     Print a list of all dependencies for the port.

I think this means it schould recurse by design.

P.S. It did in 10-Stable
Comment 5 matthias+freebsd+bugzilla 2019-06-18 08:30:03 UTC
(In reply to Koichiro Iwao from comment #3)

I did a "make fetchindex" INDEX12 ist there.

I now did a "make index" to generate INDEX12
but still 

root@pts/0#cd /usr/ports/devel/cmake
root@pts/0#make pretty-print-run-depends-list
This port requires package(s) "" to run.
root@pts/0#make pretty-print-build-depends-list
This port requires package(s) "" to build.
Comment 6 Koichiro Iwao freebsd_committer 2019-06-19 01:06:24 UTC
(In reply to matthias+freebsd+bugzilla from comment #4)
That doesn't say explicitly if it recurses. We need to confirm whether these make targets are designed to recurse or not. Probably portmgr@ should be responsible to this.

BTW, pretty-print-* seems to be working for me.
$ pwd
$ make pretty-print-build-depends-list                                                    
This port requires package(s) "ORBit2-2.14.19_2 adwaita-icon-theme-3.28.0 alsa-lib-1.1.2_2 aom- argyllcms-1.9.2_4 at-spi2-atk-2.26.2 at-spi2-core-2.28.0 atk-2.28.1 autoconf-wrapper-20131203 autoconf213-2.13.000227_7 avahi-app-0.7_2 c-ares-1.15.0 ca_root_nss-3.44 cairo-1.16.0,2 ccache-3.7.1 celt-0.11.3_3 colord-1.3.5 consolekit2-1.2.1_1 cups-2.2.11 curl-7.65.1 dav1d-0.3.1 db5-5.3.28_7 dbus-1.12.12 dbus-glib-0.110 dconf-0.28.0 dejavu-2.37_1 desktop-file-utils-0.23 encodings-1.0.5,1 expat-2.2.6_1 fftw3-3.3.8_3 fftw3-float-3.3.8_3 flac-1.3.2 font-bh-ttf-1.0.3_4 font-misc-ethiopic-1.0.3_4 font-misc-meltho-1.0.3_4 font-util-1.3.1 fontconfig-2.12.6,1 freeglut-3.0.0_2 freetype2-2.10.0 fribidi-0.19.7 gconf2-3.2.6_5 gdbm-1.18.1_1 gdk-pixbuf2-2.36.12 gettext-runtime-0.20.1 giflib-5.1.9 glib-2.56.3_5,1 gmake-4.2.1_3 gmp-6.1.2_1 gnome_subr-1.0 gnutls-3.6.8 gobject-introspection-1.56.1,1 graphite2-1.3.13 gtk-update-icon-cache-2.24.32 gtk2-2.24.32 gtk3-3.24.7 harfbuzz-2.5.1 hicolor-icon-theme-0.17 icu-64.2,1 indexinfo-0.3.1 jackit-0.125.0_8 jasper-1.900.1_17 jbigkit-2.1_1 jpeg-turbo-2.0.2 lcms2-2.9 libGLU-9.0.0_3 libICE-1.0.9_3,1 libIDL-0.8.14_4 libSM-1.2.3,1 libX11-1.6.7,1 libXScrnSaver-1.2.3_2 libXau-1.0.9 libXcomposite-0.4.5,1 libXcursor-1.2.0 libXdamage-1.1.5 libXdmcp-1.1.3 libXext-1.3.4,1 libXfixes-5.0.3_2 libXft-2.3.2_3 libXi-1.7.9_2,1 libXinerama-1.1.4_2,1 libXmu-1.1.3,1 libXrandr-1.5.2 libXrender-0.9.10_2 libXt-1.1.5_2,1 libXtst-1.2.3_2 libXxf86vm-1.1.4_3 libcroco-0.6.12 libdaemon-0.14_1 libdrm-2.4.96,1 libedit-3.1.20190324,1 libepoxy-1.5.2 libevent-2.1.10 libffi-3.2.1_3 libfontenc-1.1.4 libgcrypt-1.8.4_1 libgit2-0.28.1 libgpg-error-1.36 libgsf-1.14.44 libiconv-1.14_11 libidn2-2.2.0 libltdl-2.4.6 libnghttp2-1.39.1 libnotify-0.7.7_1 libogg-1.3.3,4 libpaper- libpciaccess-0.13.5 libpsl-0.21.0 libpthread-stubs-0.4 librsvg2-2.40.20 libsamplerate-0.1.9 libsndfile-1.0.28_2 libsoxr-0.1.3 libssh2-1.8.2,3 libtasn1-4.13_1 libunistring-0.9.10_1 libunwind-20170615 libuv-1.29.1 libvorbis-1.3.6,3 libvpx-1.8.0 libxcb-1.13.1 libxkbcommon-0.8.4 libxml2-2.9.9 libxshmfence-1.3 libxslt-1.1.32_1 llvm80-8.0.0_2 m4-1.4.18_1,1 mesa-libs-18.3.2 mkfontscale-1.2.1 nasm-2.14.02,1 ncurses-6.1.20190525 nettle-3.4.1_1 node-12.4.0 nspr-4.21 nss-3.44 openssl111-1.1.1c orc-0.4.28 p11-kit-0.23.15 pango-1.42.4_2 pciids-20190418 pcre-8.43_1 perl5-5.28.2 pixman-0.34.0_1 pkgconf-1.6.1,1 png-1.6.37 polkit-0.114_2 pulseaudio-12.2_5 py27-sqlite3-2.7.16_7 py36-setuptools-41.0.0 python27-2.7.16_1 python36-3.6.8_2 readline-8.0.0 rust-1.35.0 rust-cbindgen-0.8.7_2 shared-mime-info-1.10_1 speexdsp-1.2.0 spidermonkey52-52.9.0_3 sqlite3-3.28.0 startup-notification-0.12_4 tiff-4.0.10_1 tpm-emulator-0.7.4_2 trousers-0.3.14_2 v4l_compat-1.6.3_3 webp-1.0.2 webrtc-audio-processing-0.3.1_1 xcb-util-0.4.0_2,1 xkeyboard-config-2.27 xorg-fonts-truetype-7.7_1 xorgproto-2018.4 yasm-1.3.0 zip-3.0_1" to build.
Comment 7 matthias+freebsd+bugzilla 2019-06-19 14:35:45 UTC
"dependencies of those dependencies" means alt least Level 2 recursion. :)

"make search Name=cmake" works and lists "/usr/ports/devel/cmake" with r-deps and b-deps so INDEX12 seems to be ok.

"make pretty-*" still does show nothing.

requires or does "make pretty-*" uses any packaes.
e.g. "pkg?" 

Ich just did a src update from 11.2 to 12.0 and all installed Packages still 11.2