[MacPorts] #69895: base does not handle dependencies correctly from tests variant
MacPorts
noreply at macports.org
Fri May 3 15:19:18 UTC 2024
#69895: base does not handle dependencies correctly from tests variant
--------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.9.3
Keywords: | Port:
--------------------------+--------------------
For example, I add a tests variant for `R-bamlss`:
{{{
variant tests description "Enable testing" {
# Some optional deps are omitted.
depends_test-append \
port:R-BayesX \
port:R-bit \
port:R-ff \
port:R-fields \
port:R-gamlss \
port:R-gamlss.dist \
port:R-glmnet \
port:R-glogis \
port:R-interp \
port:R-knitr \
port:R-mapdata \
port:R-maps \
port:R-rjags \
port:R-rmarkdown \
port:R-scoringRules \
port:R-sdPrior \
port:R-sf \
port:R-spdep \
port:R-splines2 \
port:R-statmod \
port:R-zoo
test.run yes
}
}}}
And then this does not work:
{{{
36-142% sudo port -v test R-bamlss +tests
Warning: configured user/group macports does not exist, will build as root
---> Computing dependencies for R-bamlss..
The following dependencies will be installed: R-sdPrior
Continue? [Y/n]: y
Warning: configured user/group macports does not exist, will build as root
---> Fetching distfiles for R-sdPrior
---> sdPrior_1.0-0.tar.gz does not exist in
/opt/local/var/macports/distfiles/R-sdPrior
---> Attempting to fetch sdPrior_1.0-0.tar.gz from
https://cran.r-project.org/src/contrib
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 71871 100 71871 0 0 38905 0 0:00:01 0:00:01 --:--:--
38912
---> Verifying checksums for R-sdPrior
---> Checksumming sdPrior_1.0-0.tar.gz
---> Extracting R-sdPrior
---> Extracting sdPrior_1.0-0.tar.gz
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_R_R-sdPrior/R-sdPrior/work" &&
/usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/R-sdPrior/sdPrior_1.0-0.tar.gz' |
/usr/bin/gnutar --no-same-owner -xf -
---> Configuring R-sdPrior
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_R_R-sdPrior/R-sdPrior/work/sdPrior"
&& /opt/local/bin/R CMD build . --no-manual --no-build-vignettes --keep-
empty-dirs
* checking for file ‘./DESCRIPTION’ ... OK
* preparing ‘sdPrior’:
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
Omitted ‘LazyData’ from DESCRIPTION
* building ‘sdPrior_1.0-0.tar.gz’
---> Building R-sdPrior
xinstall: mkdir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_R_R-sdPrior/R-sdPrior/work/build
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_R_R-sdPrior/R-sdPrior/work/sdPrior"
&& /opt/local/bin/R CMD INSTALL .
--library=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_R_R-sdPrior/R-sdPrior/work/build
--install-tests
ERROR: dependency ‘pscl’ is not available for package ‘sdPrior’
* removing
‘/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_R_R-
sdPrior/R-sdPrior/work/build/sdPrior’
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_R_R-sdPrior/R-sdPrior/work/sdPrior"
&& /opt/local/bin/R CMD INSTALL .
--library=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_R_R-sdPrior/R-sdPrior/work/build
--install-tests
Exit code: 1
Error: Failed to build R-sdPrior: command execution failed
}}}
However, there is no problem with `R-sdPrior` as such, it has needed
dependencies specified:
{{{
depends_lib-append port:R-doParallel \
port:R-GB2 \
port:R-mvtnorm \
port:R-pscl
}}}
If I install it directly, it works though:
{{{
36-142% sudo port -v install R-sdPrior
Warning: configured user/group macports does not exist, will build as root
Warning: configured user/group macports does not exist, will build as root
---> Computing dependencies for R-pscl.
---> Fetching distfiles for R-pscl
---> pscl_1.5.9.tar.gz does not exist in
/opt/local/var/macports/distfiles/R-pscl
---> Attempting to fetch pscl_1.5.9.tar.gz from
https://cran.r-project.org/src/contrib
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 2948k 100 2948k 0 0 658k 0 0:00:04 0:00:04 --:--:--
678k
---> Verifying checksums for R-pscl
}}}
The same issue with `R-GB2`, which began to install without updating
dependencies, but did work correctly when invoked on its own.
--
Ticket URL: <https://trac.macports.org/ticket/69895>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list