Re: Build-Depends-If-Available

2020-08-11 Thread Wouter Verhelst
Package: debian-policy On Sun, Aug 09, 2020 at 06:28:50PM +0100, Barak A. Pearlmutter wrote: > I understand what you're saying, and indeed trying to encode > "Build-Depends-If-Available: foo" as "Build-Depends: foo | something" > is a bad idea from the get-go. After a

Re: Build-Depends-If-Available

2020-08-09 Thread Barak A. Pearlmutter
On Sun, 9 Aug 2020 at 19:01, Adrian Bunk wrote: > The number of tools parsing build dependencies or doing dependency > resolution is larger than you might expect. Yeah, I can only imagine. And they're not all in one great big git repo either! That's one reason I thought pushing it into the

Re: Build-Depends-If-Available

2020-08-09 Thread Adrian Bunk
On Sun, Aug 09, 2020 at 06:28:50PM +0100, Barak A. Pearlmutter wrote: >... > "Build-Depends-If-Available: foo" as "Build-Depends: foo | something" > is a bad idea from the get-go. After all, foo can have three states on > an architecture: installable, unavailable,

Re: Build-Depends-If-Available

2020-08-09 Thread Barak A. Pearlmutter
"Build-Depends-If-Available: foo" as "Build-Depends: foo | something" is a bad idea from the get-go. After all, foo can have three states on an architecture: installable, unavailable, or available-but-uninstallable-for-some-reason. And we want different behaviour in the three cases: build

Re: Build-Depends-If-Available

2020-08-09 Thread Julien Puydt
Hi, Le dim. 9 août 2020 à 18:16, Simon McVittie a écrit : > Unfortunately, to the best of my knowledge, this is currently the least bad > thing to do. > if the current practices/software doesn't give enough leeway, perhaps we should seek to improve the situation. How would that fly if there

Re: Build-Depends-If-Available

2020-08-09 Thread Adrian Bunk
On Sun, Aug 09, 2020 at 03:22:20PM +0100, Barak A. Pearlmutter wrote: > I'm maintaining mlpack. It is able to generate julia bindings, so on > architectures in which julia is available I'd like to generate julia > bindings, and this requires julia to be installed at build time. I've > set up

Re: Build-Depends-If-Available

2020-08-09 Thread Simon McVittie
On Sun, 09 Aug 2020 at 15:22:20 +0100, Barak A. Pearlmutter wrote: > I could check which architectures have julia, and which have clang, > and list them. > > Build-Depends: julia [amd64 arm64 i386 ...], clang [amd64 arm64 armel > armhf i386 ...] > > but that makes my skin crawl because it is

Re: Build-Depends-If-Available

2020-08-09 Thread Roberto C . Sánchez
On Sun, Aug 09, 2020 at 03:22:20PM +0100, Barak A. Pearlmutter wrote: > I'm maintaining mlpack. It is able to generate julia bindings, so on > architectures in which julia is available I'd like to generate julia > bindings, and this requires julia to be installed at build time. I've > set up

Build-Depends-If-Available

2020-08-09 Thread Barak A. Pearlmutter
I'm maintaining mlpack. It is able to generate julia bindings, so on architectures in which julia is available I'd like to generate julia bindings, and this requires julia to be installed at build time. I've set up debian/rules to check if julia is installed, and set configuration options