ericek111 / libmirisdr-5

Support of Mirics MSi001 + MSi2500 SDR devices
GNU General Public License v2.0
27 stars 7 forks source link

Initial debian package support #7

Open godarklight opened 1 month ago

godarklight commented 1 month ago

You'll want to check this one out locally and verify that everything is OK.

I did bump the CMAKE version from 4 to 5 to match the library name to avoid any possible conflict with debian's libmirisdr4 package in their repository, this will break things currently linked against the library, which as far as I know is only SoapyMiri.

I'm happy to make any changes to get this merged, the only issue I can think of is this package currently builds as an 'all' package, but in any case you can install it and it does work.

You do need the debhelper-compat and devscripts package installed, but after that creating a debian package is as simple as cd'ing into the folder and typing 'dpkg-buildpackage', similar to how the entire openwebrx+ project is set up.

ericek111 commented 4 weeks ago

Thank you very much. I'm not sure if I want to support Debian and be listed as a maintainer -- I primarily use Arch. I'll test it and merge your PR (also in SoapyMiri) this week. Just one request -- if you could, please, change the e-mail address to erik@brocko.eu, that'd be appreciated. Thanks again!

godarklight commented 4 weeks ago

Updated, I do want to stress the change in the cmake file, it renames the output to '/usr/lib/libmirisdr.so.5' - although I really should fix this so it ends up inside the architecture folder as other packages do, and mark this as a conflict with debians libmirisdr4 package.

ericek111 commented 4 weeks ago

Yes, that's a good idea. While this project is presently backwards API/ABI-compatible with libmirisdr4, it's not guaranteed to stay that way.

godarklight commented 4 weeks ago

I think it's close, it does build fine and correctly marks as a conflict, and also builds as the correct architecture, it is just not in the correct library folder so far. I think I will leave it here today, this will at least give you something to play with if you want to debootstrap yourself a chroot :)

I have tested it on stable and unstable, it builds correctly on both - but let me know if you run into issues.

godarklight commented 4 weeks ago

Fixed the other email sorry, will do the same in SoapyMiri now too.