I'm not surprised, given that it is in the repo. That's why I was asking if anyone tried building it themselves and, if so, did they have the same issue as I describe below? Alternatively, any tips/advice on solving my build issue would be helpful. digimer On 07/03/16 07:29 PM, Nux! wrote:> It built just fine in mock, results here > http://li.nux.ro/download/nux/tmp/mtr6/ > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > > ----- Original Message ----- >> From: "Digimer" <lists at alteeve.ca> >> To: "CentOS mailing list" <centos at centos.org> >> Sent: Tuesday, 8 March, 2016 00:05:59 >> Subject: [CentOS] Can anyone compile mtr source RPM on CentOS 6.7? > >> Hi all, >> >> I was trying to rebuild mtr >> (http://vault.centos.org/6.7/os/Source/SPackages/mtr-0.75-5.el6.src.rpm) >> and I keep getting: >> >> ===>> Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.gu9Ds0 >> + umask 022 >> + cd /root/rpmbuild/BUILD >> + '[' /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64 '!=' / ']' >> + rm -rf /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64 >> ++ dirname /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64 >> + mkdir -p /root/rpmbuild/BUILDROOT >> + mkdir /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64 >> + cd mtr-0.75 >> + LANG=C >> + export LANG >> + unset DISPLAY >> + rm -rf /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64 >> + mkdir -p /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64//usr/bin >> + mkdir -p /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64//usr/sbin >> + mkdir -p /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64//usr/share/pixmaps >> + mkdir -p >> /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64//usr/share/man/man8 >> + install -m 0755 mtr >> /root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64//usr/sbin/mtr >> + make DESTDIR=/root/rpmbuild/BUILDROOT/mtr-0.75-5.el6.x86_64 install >> make: *** No rule to make target `install'. Stop. >> error: Bad exit status from /var/tmp/rpm-tmp.gu9Ds0 (%install) >> ===>> >> I fully admit to not knowing much about Makefiles, so maybe I am >> missing something obvious. The Makefile is pretty sparce: >> >> ===>> # >> # This is an attempt on simplifying the compilation of mtr to a simple >> "make". >> # >> >> firstrule: >> ./configure >> $(MAKE) >> >> clean: >> rm -f *.o *~ core >> >> distclean: clean >> rm -f mtr config.cache config.status config.log \ >> stamp-h stamp-h[0-9]* TAGS ID >> ===>> >> Obviously the mtr package built for CentOS itself, so I have to assume >> I am doing something dumb. >> >> Thanks for any insight/tips! >> >> -- >> Digimer >> Papers and Projects: https://alteeve.ca/w/ >> What if the cure for cancer is trapped in the mind of a person without >> access to education? >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education?
James Hogarth
2016-Mar-08 08:38 UTC
[CentOS] Can anyone compile mtr source RPM on CentOS 6.7?
On 8 Mar 2016 00:51, "Digimer" <lists at alteeve.ca> wrote:> > I'm not surprised, given that it is in the repo. That's why I was asking > if anyone tried building it themselves and, if so, did they have the > same issue as I describe below? > > Alternatively, any tips/advice on solving my build issue would be helpful. >1) please don't top post 2) given it builds fine in mock and that's the best way of providing the clean reproducible environment to build anything perhaps you'd get better feedback and tips (beyond the sensible "use mock") if you provided details on what you are actually trying to accomplish? Your actual end goal?
Leon Fauster
2016-Mar-08 10:07 UTC
[CentOS] Can anyone compile mtr source RPM on CentOS 6.7?
Am 08.03.2016 um 01:50 schrieb Digimer <lists at alteeve.ca>:> I'm not surprised, given that it is in the repo. That's why I was asking > if anyone tried building it themselves and, if so, did they have the > same issue as I describe below? > > Alternatively, any tips/advice on solving my build issue would be helpful.what says /var/tmp/rpm-tmp.gu9Ds0? all dependencies installed? -- LF
James Hogarth
2016-Mar-08 12:11 UTC
[CentOS] Can anyone compile mtr source RPM on CentOS 6.7?
On 8 March 2016 at 10:07, Leon Fauster <leonfauster at googlemail.com> wrote:> Am 08.03.2016 um 01:50 schrieb Digimer <lists at alteeve.ca>: > > I'm not surprised, given that it is in the repo. That's why I was asking > > if anyone tried building it themselves and, if so, did they have the > > same issue as I describe below? > > > > Alternatively, any tips/advice on solving my build issue would be > helpful. > > > > what says /var/tmp/rpm-tmp.gu9Ds0? > > all dependencies installed? > > >No need to check that .... the error is clear "make: *** No rule to make target `install'. Stop." ... that mini Makefile he posted doesn't include an install: section Of course what the OP is missing is *that* makefile does not get used. In the tarball there is a Makefile.in that gets processed into the actual makefile by ./configure (well %configure in the spec but you get the point) So we come back round the houses to the key point - Digimer what are you *actually* trying to do? You obviously aren't building from the spec in that src.rpm or using mock as those have configure which would generate the valid makefile with the make install target... so what are you doing and what do you want to achieve? The %install phase you posted is really not of interest to your 'problem' but rather the %build phase would be telling.