{"thread":{"id":"1423","subject":"Can't build RPM's from current cogito tree","startedAt":"2005-08-04T20:47:19Z","lastAt":"2005-08-04T23:54:29Z","messageCount":2,"participants":["Wolfgang Denk","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"6826","messageId":"20050804204719.23F9D353C13@atlas.denx.de","threadId":"1423","inReplyTo":null,"subject":"Can't build RPM's from current cogito tree","fromName":"Wolfgang Denk","fromEmail":"wd@denx.de","sentAt":"2005-08-04T20:47:19Z","receivedAt":"2005-08-04T20:47:19Z","isPatch":false,"sender":{"key":"wd@denx.de","avatar":null},"body":"Building of RPM's from the current cogito tree fails:\n\n-> rpmbuild -ba cogito.spec \n...\nmake -C tools install\nmake[1]: Entering directory `/usr/local/BUILD/cogito-0.12.1/tools'\ngcc -g -O2 -Wall -o git-mailsplit mailsplit.c\ngcc -g -O2 -Wall -o git-mailinfo mailinfo.c\ninstall -m755 -d /usr/bin\ninstall: cannot change permissions of `/usr/bin': Operation not permitted\nmake[1]: *** [install] Error 1\nmake[1]: Leaving directory `/usr/local/BUILD/cogito-0.12.1/tools'\nmake: *** [install-tools] Error 2\nerror: Bad exit status from /var/tmp/rpm-tmp.6363 (%install)\n\n\nThis fixes it:\n\ndiff --git a/Makefile b/Makefile\n--- a/Makefile\n+++ b/Makefile\n@@ -245,10 +245,10 @@ install-cogito: $(SCRIPT) $(LIB_SCRIPT) \n \tdone\n \n install-tools:\n-\t$(MAKE) -C tools install\n+\t$(MAKE) -C tools dest=$(DESTDIR) install\n \n install-doc:\n-\t$(MAKE) -C Documentation install\n+\t$(MAKE) -C Documentation dest=$(DESTDIR) install\n \n uninstall:\n \tcd $(DESTDIR)$(bindir) && rm -f $(PROG) $(SCRIPTS) $(SCRIPT) $(GEN_SCRIPT)\n\n\nBest regards,\n\nWolfgang Denk\n\n-- \nSoftware Engineering:  Embedded and Realtime Systems,  Embedded Linux\nPhone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de\nEvery program has at least one bug and can be shortened by  at  least\none  instruction  --  from  which,  by induction, one can deduce that\nevery program can be reduced to one instruction which doesn't work.\n"},{"id":"6827","messageId":"20050804235428.GC3900@pasky.ji.cz","threadId":"1423","inReplyTo":"20050804204719.23F9D353C13@atlas.denx.de","subject":"Re: Can't build RPM's from current cogito tree","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-08-04T23:54:29Z","receivedAt":"2005-08-04T23:54:29Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Thu, Aug 04, 2005 at 10:47:19PM CEST, I got a letter\nwhere Wolfgang Denk <wd@denx.de> told me that...\n> Building of RPM's from the current cogito tree fails:\n> \n> -> rpmbuild -ba cogito.spec \n> ...\n> make -C tools install\n> make[1]: Entering directory `/usr/local/BUILD/cogito-0.12.1/tools'\n> gcc -g -O2 -Wall -o git-mailsplit mailsplit.c\n> gcc -g -O2 -Wall -o git-mailinfo mailinfo.c\n> install -m755 -d /usr/bin\n> install: cannot change permissions of `/usr/bin': Operation not permitted\n> make[1]: *** [install] Error 1\n> make[1]: Leaving directory `/usr/local/BUILD/cogito-0.12.1/tools'\n> make: *** [install-tools] Error 2\n> error: Bad exit status from /var/tmp/rpm-tmp.6363 (%install)\n> \n> \n> This fixes it:\n> \n> diff --git a/Makefile b/Makefile\n> --- a/Makefile\n> +++ b/Makefile\n> @@ -245,10 +245,10 @@ install-cogito: $(SCRIPT) $(LIB_SCRIPT) \n>  \tdone\n>  \n>  install-tools:\n> -\t$(MAKE) -C tools install\n> +\t$(MAKE) -C tools dest=$(DESTDIR) install\n>  \n>  install-doc:\n> -\t$(MAKE) -C Documentation install\n> +\t$(MAKE) -C Documentation dest=$(DESTDIR) install\n>  \n>  uninstall:\n>  \tcd $(DESTDIR)$(bindir) && rm -f $(PROG) $(SCRIPTS) $(SCRIPT) $(GEN_SCRIPT)\n\nThanks, I fixed it the other way around, changing Documentation/Makefile\nto use $DESTDIR. :-)\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nIf you want the holes in your knowledge showing up try teaching\nsomeone.  -- Alan Cox\n"}]}