×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

indi-3rdparty debian build script (make_deb_pkgs) needs update

2 weeks 3 days ago
Reiner
Fresh Boarder
Fresh Boarder
Posts: 2
More
Topic Author
indi-3rdparty debian build script (make_deb_pkgs) needs update #57222
Hello,

The included script seems to be from versions where 3rdparty was
included within indi-library (before 1.8.2). This script is broken
under debian testing. (Here modified for indi-asi)


IMHO only 2 lines needs to be adjusted:

change
SRC_DIR=`pwd`"/.."
to
SRC_DIR=`pwd`""

and change
cp -r ${SRC_DIR}/3rdparty/$drv .
to
cp -r ${SRC_DIR}/$drv .


Best regards
Reiner


See both scripts below:


not working
#!/bin/bash

DRV_LIST="indi-asi"
SRC_DIR=`pwd`"/.."

for drv in $DRV_LIST ; do
(
mkdir deb_${drv}
cd deb_${drv}
cp -r ${SRC_DIR}/3rdparty/$drv .
cp -r ${SRC_DIR}/debian/$drv debian
cp -r ${SRC_DIR}/cmake_modules $drv/
fakeroot debian/rules binary
)
done

ls -l



changing the script for indi-asi like below will work:

working
#!/bin/bash

DRV_LIST="indi-asi"
SRC_DIR=`pwd`""

for drv in $DRV_LIST ; do
(
mkdir deb_${drv}
cd deb_${drv}
cp -r ${SRC_DIR}/$drv .
cp -r ${SRC_DIR}/debian/$drv debian
cp -r ${SRC_DIR}/cmake_modules $drv/
fakeroot debian/rules binary
)
done

ls -l

Please Log in or Create an account to join the conversation.

2 weeks 3 days ago
knro
Administrator
Administrator
Posts: 8205
Karma: 51
indi-3rdparty debian build script (make_deb_pkgs) needs update #57277
Thank you. Can you please submit a PR in Github so that other developers can take a look? I think instead of hardcoded drivers, they should be passed as arguments as well. I admit I never used this script once.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Please Log in or Create an account to join the conversation.

2 weeks 2 days ago
Reiner
Fresh Boarder
Fresh Boarder
Posts: 2
More
Topic Author
indi-3rdparty debian build script (make_deb_pkgs) needs update #57304
Hello,

Thank you for your feedback. Your advice to pass arguments to the script is a good idea.
So, i will trim this script to be a little more convenient ;-)
I just created an account on Github, a PR will be done when the script is ready.

Best regards

Reiner

Please Log in or Create an account to join the conversation.

Time to create page: 0.313 seconds