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

Re: git-diff-files and fakeroot

From
RARyan Anderson <ryan@michonline.com>
Date
Jan 17, 2006, 05:27 UTC
Message-ID
<20060117052758.GA22839@mythryan2.michonline.com>
In-Reply-To
<7vzmlvk2bs.fsf@assigned-by-dhcp.cox.net>
On Mon, Jan 16, 2006 at 06:36:39PM -0800, Junio C Hamano wrote:
Show 11 quoted lines
> Ryan Anderson <ryan@michonline.com> writes:
> 
> > I've been trying to track down a strange issue with building kernels
> > (and scripts/setlocalversion) and finally realized the problem was the
> > when run under fakeroot, git-diff-files thinks everything is changed
> > (deleted, I believe)
> 
> BTW, Ryan, I suspect this is where you try to append "-dirty" to
> the version number.  But I wonder why you are doing the build
> under fakeroot to begin with?  Wasn't the SOP "build as
> yourself, install as root"?

That's exactly what started this search, because I was running "make deb-pkg". (Effectively.) dpkg-buildpackage wants to think it is running as root, either via sudo or via fakeroot. I had my build environment switched over entirely to fakeroot, as it just seems to be a better practice, but I've temporarily switched back to sudo.

However, your explanation has pointed out to me how I can solve this - run "fakeroot -u" instead of "fakeroot", and I think it will be fixed.

lkml cc:ed to hopefully stick this in an archive where someone else will find it.

-- 
Ryan Anderson
  sometimes Pug Majere
Previous: Junio C HamanoNext: Kyle Moffett
Message 4 of 7 in “git-diff-files and fakeroot”
  1. Ryan AndersonJan 17, 2006
  2. Junio C HamanoJan 17, 2006
  3. Junio C HamanoJan 17, 2006
  4. Ryan AndersonJan 17, 2006
  5. Kyle MoffettJan 17, 2006
  6. Ryan AndersonJan 17, 2006
  7. Sam RavnborgJan 17, 2006

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.