[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#993552: RFS: proton-caller/2.3.2-1 [ITP] -- Run any Windows program through Proton



BenTheTechGuy:
>> [...]
>>   debian/rules is missing a lot of functionality: mandatory targets like
>>   {build,binary}-arch; passing build flags, handling cross builds, etc.
>>   All of this would be much better done with dh (like the vast majority
>>   of packages in Debian do) -- it does know how to use cargo, etc.
>>   Likewise, there's no need to run install by hand.
> 
> I can't get it to work without manually telling dh_build to run cargo.
> If someone can point me in the right direction of how to format my
> debian/rules to build with cargo then put binaries, config files, and
> such in the right place (there is nothing about that in Cargo.toml)
> that would be very helpful.
> 
> Thank you so much Adam for helping me get some things straightened
> out, the latest upload
> https://mentors.debian.net/debian/pool/main/p/proton-caller/proton-caller_2.3.2-2.dsc
> fixes all the problems you pointed out!
> 

Indeed, the core debhelper tool stack does *not* support cargo out of
the box.  There is a `dh-cargo` add-on that may (or may not) be helpful.

>From a quick look, it should be a better of "Build-Depends: dh-cargo"
and then passing --buildsystem=cargo to dh (or to each of the dh_auto_*
tools).  But I have never used it and I could not spot any obvious
"getting started" documentation for it.

I hope that was useful as a "drive-by remark".

~Niels


Reply to: