* [ISSUE] Cyclyic Build-Time Dependency for `python3-numpy`
@ 2024-12-27 16:46 Clos3y
2024-12-27 17:49 ` Cyclic " Johnnynator
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Clos3y @ 2024-12-27 16:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]
New issue by Clos3y on void-packages repository
https://github.com/void-linux/void-packages/issues/53720
Description:
### Is this a new report?
Yes
### System Info
Void 6.12.6_3 x86_64 AuthenticAMD uptodate rrrmFFFFFF
### Package(s) Affected
python3-numpy-2.2.1_1 python3-hypothesis-6.123.0_1
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
Not that I can see, no.
### Expected behaviour
`python3-numpy` is successfully built for running a package check
### Actual behaviour
```
=> ERROR: Build-time cyclic dependency python3-numpy(host), python3-hypothesis(host), python3-numpy(host) detected.
```
### Steps to reproduce
1. `$ ./xbps-src pkg -K [PACKAGE WITH python3-numpy AS A CHECKDEPENDS]`
I'm making a template file for cadabra, and it needs `python3-numpy` to pass the checks. This is my current template file.
```Bash
# Template file for 'cadabra'
pkgname=cadabra
version=2.5.10
revision=1
build_style=cmake
hostmakedepends="python3-devel pkg-config glibmm-devel sqlite-devel boost-devel openssl-devel gmp-devel gmpxx-devel gtkmm-devel git"
checkdepends="python3-gmpy2 python3-sympy python3-numpy"
short_desc="A field-theory motivated approach to computer algebra"
maintainer="clos3y <sam.w.close@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://cadabra.science"
changelog="https://cadabra.science/changelog.html"
distfiles="https://github.com/kpeeters/cadabra2/archive/refs/tags/${version}.tar.gz"
checksum=d08bc3a159c677263a4e7ec6823b8e7cef04d540e1a540e1da1ef70c16f6abc7
```
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cyclic Build-Time Dependency for `python3-numpy`
2024-12-27 16:46 [ISSUE] Cyclyic Build-Time Dependency for `python3-numpy` Clos3y
@ 2024-12-27 17:49 ` Johnnynator
2024-12-27 18:12 ` Clos3y
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2024-12-27 17:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
New comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/issues/53720#issuecomment-2563908558
Comment:
I don't think there is a sane way to solve this in a way that allows to run the check stage while compiling for the first time. `python3-hypothesis` (or `python3-numpy`) have to be build first without `-Q` / `XBPS_CHECK_PKGS` before the tests can be run.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cyclic Build-Time Dependency for `python3-numpy`
2024-12-27 16:46 [ISSUE] Cyclyic Build-Time Dependency for `python3-numpy` Clos3y
2024-12-27 17:49 ` Cyclic " Johnnynator
@ 2024-12-27 18:12 ` Clos3y
2024-12-27 23:10 ` Clos3y
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Clos3y @ 2024-12-27 18:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
New comment by Clos3y on void-packages repository
https://github.com/void-linux/void-packages/issues/53720#issuecomment-2563925853
Comment:
> I don't think there is a sane way to solve this
I guess a semi-sane way would be to patch out the troublesome tests? It's only a handful of tests that require `numpy`, but it feels like a bit of a stop-gap solution.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cyclic Build-Time Dependency for `python3-numpy`
2024-12-27 16:46 [ISSUE] Cyclyic Build-Time Dependency for `python3-numpy` Clos3y
2024-12-27 17:49 ` Cyclic " Johnnynator
2024-12-27 18:12 ` Clos3y
@ 2024-12-27 23:10 ` Clos3y
2024-12-29 16:15 ` [ISSUE] [CLOSED] " ahesford
2024-12-29 16:15 ` ahesford
4 siblings, 0 replies; 6+ messages in thread
From: Clos3y @ 2024-12-27 23:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 395 bytes --]
New comment by Clos3y on void-packages repository
https://github.com/void-linux/void-packages/issues/53720#issuecomment-2564083189
Comment:
> I guess a semi-sane way would be to patch out the troublesome tests? It's only a handful of tests that require `numpy`, but it feels like a bit of a stop-gap solution.
Yeah scratch that, this is something that probably needs fixing in general.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ISSUE] [CLOSED] Cyclic Build-Time Dependency for `python3-numpy`
2024-12-27 16:46 [ISSUE] Cyclyic Build-Time Dependency for `python3-numpy` Clos3y
` (2 preceding siblings ...)
2024-12-27 23:10 ` Clos3y
@ 2024-12-29 16:15 ` ahesford
2024-12-29 16:15 ` ahesford
4 siblings, 0 replies; 6+ messages in thread
From: ahesford @ 2024-12-29 16:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1729 bytes --]
Closed issue by Clos3y on void-packages repository
https://github.com/void-linux/void-packages/issues/53720
Description:
### Is this a new report?
Yes
### System Info
Void 6.12.6_3 x86_64 AuthenticAMD uptodate rrrmFFFFFF
### Package(s) Affected
python3-numpy-2.2.1_1 python3-hypothesis-6.123.0_1
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
Not that I can see, no.
### Expected behaviour
`python3-numpy` is successfully built for running a package check
### Actual behaviour
```
=> ERROR: Build-time cyclic dependency python3-numpy(host), python3-hypothesis(host), python3-numpy(host) detected.
```
### Steps to reproduce
1. `$ ./xbps-src pkg -K [PACKAGE WITH python3-numpy AS A CHECKDEPENDS]`
I'm making a template file for cadabra, and it needs `python3-numpy` to pass the checks. This is my current template file.
```Bash
# Template file for 'cadabra'
pkgname=cadabra
version=2.5.10
revision=1
build_style=cmake
hostmakedepends="python3-devel pkg-config glibmm-devel sqlite-devel boost-devel openssl-devel gmp-devel gmpxx-devel gtkmm-devel git"
checkdepends="python3-gmpy2 python3-sympy python3-numpy"
short_desc="A field-theory motivated approach to computer algebra"
maintainer="clos3y <sam.w.close@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://cadabra.science"
changelog="https://cadabra.science/changelog.html"
distfiles="https://github.com/kpeeters/cadabra2/archive/refs/tags/${version}.tar.gz"
checksum=d08bc3a159c677263a4e7ec6823b8e7cef04d540e1a540e1da1ef70c16f6abc7
```
**EDIT** This happens more generally. If you have `python3-numpy` as a *depends and add either `-K/-Q` this will occur.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Cyclic Build-Time Dependency for `python3-numpy`
2024-12-27 16:46 [ISSUE] Cyclyic Build-Time Dependency for `python3-numpy` Clos3y
` (3 preceding siblings ...)
2024-12-29 16:15 ` [ISSUE] [CLOSED] " ahesford
@ 2024-12-29 16:15 ` ahesford
4 siblings, 0 replies; 6+ messages in thread
From: ahesford @ 2024-12-29 16:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 288 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/issues/53720#issuecomment-2564771169
Comment:
As noted, just pre-build all the `checkdepends` for the package you wish to check. Avoid cycles in testing environments will never be possible.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-12-29 16:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-27 16:46 [ISSUE] Cyclyic Build-Time Dependency for `python3-numpy` Clos3y
2024-12-27 17:49 ` Cyclic " Johnnynator
2024-12-27 18:12 ` Clos3y
2024-12-27 23:10 ` Clos3y
2024-12-29 16:15 ` [ISSUE] [CLOSED] " ahesford
2024-12-29 16:15 ` ahesford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).