git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Can't build RPM's from current cogito tree

From
Petr Baudis <pasky@suse.cz>
Date
Aug 4, 2005, 23:54 UTC
Message-ID
<20050804235428.GC3900@pasky.ji.cz>
In-Reply-To
<20050804204719.23F9D353C13@atlas.denx.de>

Dear diary, on Thu, Aug 04, 2005 at 10:47:19PM CEST, I got a letter where Wolfgang Denk <wd@denx.de> told me that...

Show 34 quoted lines
> Building of RPM's from the current cogito tree fails:
> 
> -> rpmbuild -ba cogito.spec 
> ...
> make -C tools install
> make[1]: Entering directory `/usr/local/BUILD/cogito-0.12.1/tools'
> gcc -g -O2 -Wall -o git-mailsplit mailsplit.c
> gcc -g -O2 -Wall -o git-mailinfo mailinfo.c
> install -m755 -d /usr/bin
> install: cannot change permissions of `/usr/bin': Operation not permitted
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/usr/local/BUILD/cogito-0.12.1/tools'
> make: *** [install-tools] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.6363 (%install)
> 
> 
> This fixes it:
> 
> diff --git a/Makefile b/Makefile
> --- a/Makefile
> +++ b/Makefile
> @@ -245,10 +245,10 @@ install-cogito: $(SCRIPT) $(LIB_SCRIPT) 
>  	done
>  
>  install-tools:
> -	$(MAKE) -C tools install
> +	$(MAKE) -C tools dest=$(DESTDIR) install
>  
>  install-doc:
> -	$(MAKE) -C Documentation install
> +	$(MAKE) -C Documentation dest=$(DESTDIR) install
>  
>  uninstall:
>  	cd $(DESTDIR)$(bindir) && rm -f $(PROG) $(SCRIPTS) $(SCRIPT) $(GEN_SCRIPT)

Thanks, I fixed it the other way around, changing Documentation/Makefile to use $DESTDIR. :-)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
Previous: Wolfgang Denk
Message 2 of 2 in “Can't build RPM's from current cogito tree”
  1. Wolfgang DenkAug 4, 2005
  2. Petr BaudisAug 4, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.