i-nex / I-Nex

System information tool written in gambas3, python, bash
http://i-nex.linux.pl/
174 stars 24 forks source link

modernize your makefile #28

Open shirishag75 opened 8 years ago

shirishag75 commented 8 years ago

While trying to build the tool came across the following -

┌─[shirish@debian] - [~/games/I-Nex] - [10097]
└─[$] fakeroot debian/rules build                                                                                      
dh build  --with autoreconf
   dh_testdir
   dh_update_autotools_config
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/home/shirish/games/I-Nex'
cd I-Nex && autoreconf -i
configure.ac:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:4: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation

Please fix as given at http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38224710-modernize-your-makefile?utm_campaign=plugin&utm_content=tracker%2F488098&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F488098&utm_medium=issues&utm_source=github).
eloaders commented 8 years ago

Is i-nex was built?

shirishag75 commented 8 years ago

@nope, not built, in part I think due to https://github.com/eloaders/I-Nex/issues/29

Here's the whole build log -

[$] fakeroot debian/rules binary                                                                                                   
dh binary  --with autoreconf
   dh_testroot
   dh_prep
   dh_auto_install
    make -j1 install DESTDIR=/home/shirish/games/I-Nex/debian/i-nex AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/home/shirish/games/I-Nex'
Create nedded dirs...
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/applications
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/i-nex/pastebinit
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/i-nex/pastebinit/pastebin.d
Install pastebinit and other...
install -m 0755 debian/i-nex.desktop /home/shirish/games/I-Nex/debian/i-nex/usr/share/applications/
install -m 0755 debian/i-nex-library.desktop /home/shirish/games/I-Nex/debian/i-nex/usr/share/applications/
install -m 0755 pastebinit /home/shirish/games/I-Nex/debian/i-nex/usr/share/i-nex/pastebinit/
install -m 0755 pastebinit.xml /home/shirish/games/I-Nex/debian/i-nex/usr/share/i-nex/pastebinit/
install -m 0755 release.conf /home/shirish/games/I-Nex/debian/i-nex/usr/share/i-nex/pastebinit/
make -C pastebin.d install
make[2]: Entering directory '/home/shirish/games/I-Nex/pastebin.d'
Installing Pastebinit Config files...
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/i-nex/pastebinit/pastebin.d
install -Dm644 susepaste.org.conf pastebin.com.conf paste.opensuse.org.conf lpaste.net.conf slexy.org.conf hpaste.org.conf paste.kde.org.conf paste.pound-python.org.conf paste.pocoo.org.conf paste.ubuntu.org.cn.conf pastie.org.conf paste.debian.net.conf dpaste.com.conf pastebin.mate-desktop.org.conf paste2.org.conf cxg.de.conf paste.openstack.org.conf yourpaste.net.conf p.defau.lt.conf paste.drizzle.org.conf paste.ubuntu.com.conf sprunge.us.conf fpaste.org.conf pb.daviey.com.conf /home/shirish/games/I-Nex/debian/i-nex/usr/share/i-nex/pastebinit/pastebin.d/
make[2]: Leaving directory '/home/shirish/games/I-Nex/pastebin.d'
Install pixmaps...
make -C pixmaps install
make[2]: Entering directory '/home/shirish/games/I-Nex/pixmaps'
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/pixmaps
install -m 644 i-nex.png /home/shirish/games/I-Nex/debian/i-nex/usr/share/pixmaps/
install -m 644 i-nex-16.png /home/shirish/games/I-Nex/debian/i-nex/usr/share/pixmaps/
install -m 644 i-nex-32.png /home/shirish/games/I-Nex/debian/i-nex/usr/share/pixmaps/
install -m 644 i-nex-128.png /home/shirish/games/I-Nex/debian/i-nex/usr/share/pixmaps/
make[2]: Leaving directory '/home/shirish/games/I-Nex/pixmaps'
Install changelogs...
make -C changelogs install
make[2]: Entering directory '/home/shirish/games/I-Nex/changelogs'
Installing Changelogs...
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex
install -Dm644 changelog-7.2.1 changelog-0.5.0 changelog-0.4.8 changelog-0.4.6 changelog-0.6.4 changelog-7.4.0 changelog-0.5.8 changelog-0.5.6 changelog-0.4.8.1 changelog-0.6.2 changelog-7.2.0 changelog-7.0.0 changelog-0.6.0 changelog-0.5.4 changelog-0.5.1 changelog-0.6.6 changelog-0.5.2 /home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex
Compress Changelogs...
gzip -9 /home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex/changelog-*
make[2]: Leaving directory '/home/shirish/games/I-Nex/changelogs'
Install manpages...
make -C manpages install
make[2]: Entering directory '/home/shirish/games/I-Nex/manpages'
Installing Man pages 1...
mkdir -p "/home/shirish/games/I-Nex/debian/i-nex/usr/share/man/man1/"
install -Dm644 i-nex.1 i-nex-cpuid.1 i-nex-lspci.1 i-nex.gambas.1 i-nex-edid.1 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/man/man1/"
Compress Man pages 1...
gzip -9 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/man/man1/i-nex-cpuid.1"
gzip -9 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/man/man1/i-nex-edid.1"
gzip -9 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/man/man1/i-nex-lspci.1"
gzip -9 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/man/man1/i-nex.1"
gzip -9 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/man/man1/i-nex.gambas.1"
make[2]: Leaving directory '/home/shirish/games/I-Nex/manpages'
Install docs...
make -C docs install
make[2]: Entering directory '/home/shirish/games/I-Nex/docs'
Create directory...
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex
Installing Docs copyright...
install -Dm644 copyright "/home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex/copyright"
Create directory...
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex
Installing Docs I-Nex.LICENSE...
install -Dm644 I-Nex.LICENSE "/home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex/I-Nex.LICENSE"
Create directory...
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex
Installing Docs Pastebinit.LICENSE...
install -Dm644 Pastebinit.LICENSE "/home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex/Pastebinit.LICENSE"
Compress Docs copyright...
gzip -9 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex/copyright"
Compress Docs I-Nex.LICENSE...
gzip -9 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex/I-Nex.LICENSE"
Compress Docs Pastebinit.LICENSE...
gzip -9 "/home/shirish/games/I-Nex/debian/i-nex/usr/share/doc/i-nex/Pastebinit.LICENSE"
make[2]: Leaving directory '/home/shirish/games/I-Nex/docs'
Install JSON...
make -C JSON install
make[2]: Entering directory '/home/shirish/games/I-Nex/JSON'
chmod +x i-nex-edid
chmod +x i-nex-cpuid
test -d /home/shirish/games/I-Nex/debian/i-nex/usr/bin || mkdir /home/shirish/games/I-Nex/debian/i-nex/usr/bin
install -m 0755 i-nex-edid /home/shirish/games/I-Nex/debian/i-nex/usr/bin
test -d /home/shirish/games/I-Nex/debian/i-nex/usr/bin || mkdir /home/shirish/games/I-Nex/debian/i-nex/usr/bin
install -m 0755 i-nex-cpuid /home/shirish/games/I-Nex/debian/i-nex/usr/bin
test -d /home/shirish/games/I-Nex/debian/i-nex/usr/bin || mkdir /home/shirish/games/I-Nex/debian/i-nex/usr/bin
install -m 0755 i-nex-dimms /home/shirish/games/I-Nex/debian/i-nex/usr/bin
make[2]: Leaving directory '/home/shirish/games/I-Nex/JSON'
Install I-Nex...
make -C I-Nex install
make[2]: Entering directory '/home/shirish/games/I-Nex/I-Nex'
make[3]: Entering directory '/home/shirish/games/I-Nex/I-Nex'
Installing i-nex.gambas file in /usr/bin...
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/shirish/games/I-Nex/I-Nex'
make[2]: Leaving directory '/home/shirish/games/I-Nex/I-Nex'
Install Scripts...
make -C Scripts install
make[2]: Entering directory '/home/shirish/games/I-Nex/Scripts'
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/usr/bin
chmod +x i-nex-lspci
install -m 0755 i-nex-lspci /home/shirish/games/I-Nex/debian/i-nex/usr/bin
make[2]: Leaving directory '/home/shirish/games/I-Nex/Scripts'
install -Dm 600 i2c_smbus.rules /home/shirish/games/I-Nex/debian/i-nex/etc/udev/rules.d/i2c_smbus.rules
ln -s /usr/bin/i-nex.gambas /home/shirish/games/I-Nex/debian/i-nex/usr/bin/i-nex
Install database files...
make -C Database install
make[2]: Entering directory '/home/shirish/games/I-Nex/Database'
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database/Logos
install -m 0755 ../Database/Logos/23.gif ../Database/Logos/116.gif ../Database/Logos/169.gif ../Database/Logos/245.gif ../Database/Logos/27.gif ../Database/Logos/246.gif ../Database/Logos/288.gif ../Database/Logos/99.gif ../Database/Logos/110.gif ../Database/Logos/297.gif ../Database/Logos/33.gif ../Database/Logos/310.gif ../Database/Logos/21.gif ../Database/Logos/14.gif ../Database/Logos/36.gif ../Database/Logos/301.gif ../Database/Logos/201.gif ../Database/Logos/171.gif ../Database/Logos/145.gif ../Database/Logos/70.gif ../Database/Logos/122.gif ../Database/Logos/299.gif ../Database/Logos/175.gif ../Database/Logos/199.gif ../Database/Logos/138.gif ../Database/Logos/312.gif ../Database/Logos/40.gif ../Database/Logos/233.gif ../Database/Logos/242.gif ../Database/Logos/117.gif ../Database/Logos/115.gif ../Database/Logos/304.gif ../Database/Logos/45.gif ../Database/Logos/72.gif ../Database/Logos/12.gif ../Database/Logos/177.gif ../Database/Logos/104.gif ../Database/Logos/217.gif ../Database/Logos/183.gif ../Database/Logos/123.gif ../Database/Logos/314.gif ../Database/Logos/43.gif ../Database/Logos/15.gif ../Database/Logos/57.gif ../Database/Logos/291.gif ../Database/Logos/6.gif ../Database/Logos/181.gif ../Database/Logos/216.gif ../Database/Logos/71.gif ../Database/Logos/61.gif ../Database/Logos/67.gif ../Database/Logos/118.gif ../Database/Logos/41.gif ../Database/Logos/287.gif ../Database/Logos/31.gif ../Database/Logos/218.gif ../Database/Logos/300.gif ../Database/Logos/119.gif ../Database/Logos/160.gif ../Database/Logos/35.gif ../Database/Logos/4.gif ../Database/Logos/249.gif ../Database/Logos/172.gif ../Database/Logos/306.gif ../Database/Logos/22.gif ../Database/Logos/296.gif ../Database/Logos/311.gif ../Database/Logos/9.gif ../Database/Logos/124.gif ../Database/Logos/83.gif ../Database/Logos/274.gif ../Database/Logos/290.gif ../Database/Logos/80.gif ../Database/Logos/100.gif ../Database/Logos/50.gif ../Database/Logos/82.gif ../Database/Logos/308.gif ../Database/Logos/20.gif ../Database/Logos/107.gif ../Database/Logos/263.gif ../Database/Logos/128.gif ../Database/Logos/221.gif ../Database/Logos/139.gif ../Database/Logos/166.gif ../Database/Logos/81.gif ../Database/Logos/121.gif ../Database/Logos/193.gif ../Database/Logos/112.gif ../Database/Logos/186.gif ../Database/Logos/237.gif ../Database/Logos/79.gif ../Database/Logos/135.gif ../Database/Logos/292.gif ../Database/Logos/158.gif ../Database/Logos/59.gif ../Database/Logos/247.gif ../Database/Logos/16.gif ../Database/Logos/159.gif ../Database/Logos/101.gif ../Database/Logos/305.gif ../Database/Logos/29.gif ../Database/Logos/162.gif ../Database/Logos/19.gif ../Database/Logos/105.gif ../Database/Logos/180.gif ../Database/Logos/25.gif ../Database/Logos/47.gif ../Database/Logos/298.gif ../Database/Logos/147.gif ../Database/Logos/114.gif ../Database/Logos/64.gif ../Database/Logos/267.gif ../Database/Logos/225.gif ../Database/Logos/235.gif ../Database/Logos/108.gif ../Database/Logos/125.gif ../Database/Logos/11.gif ../Database/Logos/268.gif ../Database/Logos/185.gif ../Database/Logos/224.gif ../Database/Logos/265.gif ../Database/Logos/140.gif ../Database/Logos/77.gif ../Database/Logos/191.gif ../Database/Logos/271.gif ../Database/Logos/294.gif ../Database/Logos/120.gif ../Database/Logos/26.gif ../Database/Logos/55.gif ../Database/Logos/302.gif ../Database/Logos/262.gif ../Database/Logos/102.gif ../Database/Logos/163.gif ../Database/Logos/182.gif ../Database/Logos/313.gif ../Database/Logos/261.gif ../Database/Logos/97.gif ../Database/Logos/248.gif ../Database/Logos/176.gif ../Database/Logos/283.gif ../Database/Logos/134.gif ../Database/Logos/192.gif ../Database/Logos/270.gif ../Database/Logos/60.gif ../Database/Logos/275.gif ../Database/Logos/46.gif ../Database/Logos/18.gif ../Database/Logos/188.gif ../Database/Logos/272.gif ../Database/Logos/30.gif ../Database/Logos/62.gif ../Database/Logos/196.gif ../Database/Logos/178.gif ../Database/Logos/34.gif ../Database/Logos/1.gif ../Database/Logos/276.gif ../Database/Logos/42.gif ../Database/Logos/190.gif ../Database/Logos/154.gif ../Database/Logos/32.gif ../Database/Logos/133.gif ../Database/Logos/66.gif ../Database/Logos/293.gif ../Database/Logos/65.gif ../Database/Logos/211.gif ../Database/Logos/241.gif ../Database/Logos/129.gif ../Database/Logos/269.gif ../Database/Logos/309.gif ../Database/Logos/234.gif ../Database/Logos/137.gif ../Database/Logos/37.gif ../Database/Logos/127.gif ../Database/Logos/96.gif ../Database/Logos/109.gif ../Database/Logos/174.gif ../Database/Logos/273.gif ../Database/Logos/170.gif ../Database/Logos/111.gif ../Database/Logos/243.gif ../Database/Logos/244.gif ../Database/Logos/266.gif ../Database/Logos/203.gif ../Database/Logos/103.gif ../Database/Logos/63.gif ../Database/Logos/98.gif ../Database/Logos/68.gif ../Database/Logos/56.gif ../Database/Logos/48.gif ../Database/Logos/7.gif ../Database/Logos/38.gif ../Database/Logos/184.gif ../Database/Logos/295.gif ../Database/Logos/223.gif ../Database/Logos/289.gif ../Database/Logos/78.gif ../Database/Logos/189.gif ../Database/Logos/84.gif ../Database/Logos/257.gif ../Database/Logos/39.gif ../Database/Logos/220.gif ../Database/Logos/303.gif ../Database/Logos/28.gif ../Database/Logos/24.gif ../Database/Logos/8.gif ../Database/Logos/136.gif ../Database/Logos/113.gif ../Database/Logos/13.gif ../Database/Logos/126.gif ../Database/Logos/206.gif /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database/Logos/
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database/Distlogos
install -m 0755 ../Database/Distlogos/debian.png ../Database/Distlogos/elementaryos.png ../Database/Distlogos/mint.png ../Database/Distlogos/slax.png ../Database/Distlogos/archlinux.png ../Database/Distlogos/linux_mint_LMDE_Big_sticker.png ../Database/Distlogos/opensuse.png ../Database/Distlogos/LinuxDeepin.png ../Database/Distlogos/gentoo.png ../Database/Distlogos/kubuntu.png ../Database/Distlogos/centos.png ../Database/Distlogos/manjaro.png ../Database/Distlogos/fedora.png ../Database/Distlogos/sabayon.png ../Database/Distlogos/linux_mint_Fluxbox_BIG_sticker.png ../Database/Distlogos/slackware.png ../Database/Distlogos/linux_mint_XFCE_Big_sticker.png ../Database/Distlogos/ubuntu.png ../Database/Distlogos/linux_mint_LXDE_BIG_sticker.png ../Database/Distlogos/xubuntu.png ../Database/Distlogos/linux_mint_KDE_BIG_sticker.png ../Database/Distlogos/mandriva.png ../Database/Distlogos/kde_neon.png ../Database/Distlogos/netrunner.png ../Database/Distlogos/redhat.png /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database/Distlogos/
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database
install -m 0755 ../Database/A6.json ../Database/i5.json ../Database/atom.json ../Database/intel_Core_2_Duo.json ../Database/i7.json ../Database/Xeon.json ../Database/Opteron.json ../Database/intel.json ../Database/amd.json ../Database/i3.json ../Database/NULLD.json /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database/
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database/i2c
install -m 0755 ../Database/i2c/devices.json /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/Database/i2c/
make[2]: Leaving directory '/home/shirish/games/I-Nex/Database'
Install SIV files...
make -C SIV install
make[2]: Entering directory '/home/shirish/games/I-Nex/SIV'
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex
mkdir -p /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/SIV
install -m 0755 ../SIV/usbdevs.txt ../SIV/pcidevs.txt ../SIV/pnpdevs.txt ../SIV/mondevs.txt ../SIV/pcmdevs.txt /home/shirish/games/I-Nex/debian/i-nex/etc/i-nex/SIV/
make[2]: Leaving directory '/home/shirish/games/I-Nex/SIV'
make[1]: Leaving directory '/home/shirish/games/I-Nex'
   dh_installdocs
   dh_installchangelogs
   dh_installman
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   debian/rules override_dh_fixperms
make[1]: Entering directory '/home/shirish/games/I-Nex'
dh_fixperms
make[1]: Leaving directory '/home/shirish/games/I-Nex'
   dh_strip
   dh_makeshlibs
   dh_shlibdeps
dpkg-shlibdeps: error: no dependency information found for /usr/lib/libcpuid.so.11 (used by debian/i-nex/usr/bin/i-nex-cpuid)
Hint: check if the library actually comes from a package.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/i-nex.substvars debian/i-nex/usr/bin/i-nex-cpuid debian/i-nex/usr/bin/i-nex-edid returned exit code 2
debian/rules:20: recipe for target 'binary' failed
make: *** [binary] Error 2

The last few lines make it evident why it fails.

eloaders commented 8 years ago

automake scripts are automatically created by gambas3 ide. So you can report the error to the author of the idea gambas3 to correct script generation. I will try to investigate the problem. However, the program builds correctly in spite of the error.

shirishag75 commented 8 years ago

No, it does not get built, at least on machine. See the last few lines -

dpkg-shlibdeps: error: no dependency information found for /usr/lib/libcpuid.so.11 (used by debian/i-nex/usr/bin/i-nex-cpuid)
Hint: check if the library actually comes from a package.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/i-nex.substvars debian/i-nex/usr/bin/i-nex-cpuid debian/i-nex/usr/bin/i-nex-edid returned exit code 2
debian/rules:20: recipe for target 'binary' failed

Till that is not resolved, don't think it will work :(

Just to try, did try again and again it didn't build the binary with the latest master.

eloaders commented 8 years ago

fixed?

shirishag75 commented 8 years ago

actually not till this warning is not fixed -

[$] fakeroot debian/rules build                                                                                            
dh build  --with autoreconf
   dh_testdir
   dh_update_autotools_config
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/home/shirish/games/I-Nex'
cd I-Nex && autoreconf -i
configure.ac:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:4: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
make[1]: Leaving directory '/home/shirish/games/I-Nex'
eloaders commented 8 years ago

The program builds correctly?

shirishag75 commented 8 years ago

It does built, this is more of an enhancement request rather than a necessity at this point in time.