masterzen / mysql-snmp

Net-SNMP perl agent for monitoring MySQL servers
http://www.masterzen.fr/software-contributions/mysql-snmp-monitor-mysql-with-snmp/
GNU General Public License v2.0
67 stars 33 forks source link

error installation this package on debian 12 #32

Open zizitizi opened 2 months ago

zizitizi commented 2 months ago

hello

I assumed to install this package on Debian 12 but , I encountered a error :

dpkg-buildpackage -rfakeroot -uc -b dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: info: source package mysql-snmp dpkg-buildpackage: info: source version 1.2-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by brice brice+debian@daysofwonder.com dpkg-buildpackage: info: host architecture amd64 dpkg-source --before-build . fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp configure-stamp

Add here commands to clean up after the build process.

/usr/bin/make DESTDIR=/root/mysql-snmp/debian/mysql-snmp clean make[1]: Entering directory '/root/mysql-snmp' rm /root/mysql-snmp/debian/mysql-snmp/usr/sbin/mysql-snmp rm: cannot remove '/root/mysql-snmp/debian/mysql-snmp/usr/sbin/mysql-snmp': No such file or directory make[1]: [Makefile:23: clean] Error 1 (ignored) make[1]: Leaving directory '/root/mysql-snmp' dh_clean dh_clean: error: Compatibility levels before 7 are no longer supported (level 5 requested) make: *** [debian/rules:46: clean] Error 255 dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2

is there any help tp solve my problem?

masterzen commented 2 months ago

Hi, I'm not surprised it doesn't work anymore since this project hasn't been touched in years :) You might want to change debian/compat (replace the 5 in this file to 7). That increases the compatibility but doesn't mean that it will make the package actually compatible. To properly update you need to use https://manpages.debian.org/testing/debhelper/debhelper-obsolete-compat.7.en.html to bring the compatibility to level 7, then from there use https://manpages.debian.org/testing/debhelper/debhelper-compat-upgrade-checklist.7.en.html to upgrade to level 8. I don't have any debian systems anymore to be able to do that by myself, but I'm open to any PR you'd want to send me.

zizitizi commented 2 months ago

tankx Brice for your quick response . I would be very grateful if you could suggest an alternate solution for this issue insted of mysql-snmp for me.

sincerely

On Mon, May 6, 2024 at 12:19 PM Brice Figureau @.***> wrote:

Hi, I'm not surprised it doesn't work anymore since this project hasn't been touched in years :) You might want to change debian/compat (replace the 5 in this file to 7). That increases the compatibility but doesn't mean that it will make the package actually compatible. To properly update you need to use https://manpages.debian.org/testing/debhelper/debhelper-obsolete-compat.7.en.html to bring the compatibility to level 7, then from there use https://manpages.debian.org/testing/debhelper/debhelper-compat-upgrade-checklist.7.en.html to upgrade to level 8. I don't have any debian systems anymore to be able to do that by myself, but I'm open to any PR you'd want to send me.

— Reply to this email directly, view it on GitHub https://github.com/masterzen/mysql-snmp/issues/32#issuecomment-2095481660, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5MQE24LCVJX5LCVWSGNHBTZA47Z3AVCNFSM6AAAAABHIOX34WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJVGQ4DCNRWGA . You are receiving this because you authored the thread.Message ID: @.***>