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

Re: Problem with S_IFGITLINK

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Aug 24, 2011, 14:43 UTC
Message-ID
<4E550E03.3080104@drmicha.warpmail.net>
In-Reply-To
<4E54F364.7000503@gmail.com>
Adam Kłobukowski venit, vidit, dixit 24.08.2011 14:49:
Show 10 quoted lines
> Hello
> 
> I'm trying to compile git on some very exotic u*ix flavor (FreeMiNT 
> anyone? :)) and I encountered problem with S_IFGITLINK.
> 
> Unfortunately, on my system S_IFGITLINK = S_IFLNK, and it breaks build 
> in entry.c write_entry.
> 
> Should I report a bug? (where?, I could not find any reference to 
> bugtracker on git pages)
Yes. Here.
A short log of the build break would be nice.
> Can I fix it somehow? Can I change value of S_IFGITLINK to something else?
From git's cache.h:
/*
 * A "directory link" is a link to another git directory.
 *
 * The value 0160000 is not normally a valid mode, and
 * also just happens to be S_IFDIR + S_IFLNK
 *
 * NOTE! We *really* shouldn't depend on the S_IFxxx macros
 * always having the same values everywhere. We should use
 * our internal git values for these things, and then we can
 * translate that to the OS-specific value. It just so
 * happens that everybody shares the same bit representation
 * in the UNIX world (and apparently wider too..)
 */
Time to implement that translation :|
Michael
Previous: Adam KłobukowskiNext: Adam Kłobukowski
Message 2 of 6 in “Problem with S_IFGITLINK”
  1. Adam KłobukowskiAug 24, 2011
  2. Michael J GruberAug 24, 2011
  3. Adam KłobukowskiAug 24, 2011
  4. Nguyen Thai Ngoc DuyAug 24, 2011
  5. Michael SchubertAug 24, 2011
  6. Adam KłobukowskiAug 24, 2011

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.