You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apt-get install debhelper git-buildpackage python-pbr quilt
git clone https://github.com/Alignak-monitoring/alignak.git ~/alignak
git clone https://github.com/Alignak-monitoring/alignak-packaging.git ~/alignak-packaging
cp -r ~/alignak-packaging/debian ~/alignak-packaging/manpages ~/alignak
cd ~/alignak
# You will package current develop here, if you need master or specific checkout what you need
# You could just use `git-buildpackage -us -uc -tc -b` here but you have to add and commit the new file added
# This commit can't be pushed upstream of course
RELEASE=$(git log -1 --format=%ct.%h)
cd ../
VERSION=$(awk -F'\(?\-?' '/alignak/ {print $2}' alignak/debian/changelog)
sed -i "s/-\([0-9]\+\))/-\1.$RELEASE)/g" alignak/debian/changelog
tar -czf alignak_$VERSION.orig.tar.gz alignak
cd alignak
dpkg-buildpackage
lintian ../alignak*.deb
What seems broken to me:
When awking the changelog file, the VERSION variable will contain 0.2 0.1 and it will raise an error in the tar command ... it seems that the awk get all the versions existing in the file :/
the sed command is modifying all the version entries in the changelog file whereas only the most recent one should be modified ?
When executing the dpkg_buildpackage some errors are raised:
running install_egg_info
Copying alignak.egg-info to /root/alignak/debian/alignak-all/usr/lib/python2.7/dist-packages/alignak-0.2.egg-info
running install_scripts
Installing alignak-broker script to /root/alignak/debian/alignak-all/usr/bin
Installing alignak-scheduler script to /root/alignak/debian/alignak-all/usr/bin
Installing alignak-receiver script to /root/alignak/debian/alignak-all/usr/bin
Installing alignak-poller script to /root/alignak/debian/alignak-all/usr/bin
Installing alignak-reactionner script to /root/alignak/debian/alignak-all/usr/bin
Installing alignak-arbiter script to /root/alignak/debian/alignak-all/usr/bin
debian/rules override_dh_install
make[1]: Entering directory '/root/alignak'
dh_install
dh_install: alignak-all missing files (systemd/*), aborting
debian/rules:12: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory '/root/alignak'
debian/rules:4: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
The text was updated successfully, but these errors were encountered:
Ok. Got it ... this script is not to be used because @Seb-Solon you build with the alignak-docker repo ... I will update the script to make it correct anyway 😉 This will avoid some others to lose time as I did...
This is the script:
What seems broken to me:
When awking the changelog file, the
VERSION
variable will contain0.2 0.1
and it will raise an error in thetar
command ... it seems that the awk get all the versions existing in the file :/the
sed
command is modifying all the version entries in the changelog file whereas only the most recent one should be modified ?When executing the
dpkg_buildpackage
some errors are raised:The text was updated successfully, but these errors were encountered: