* [PATCH] Fix use of hardlinks in "make install"
@ 2008-08-28 14:04 Alex Riesen
2008-08-28 14:17 ` Alex Riesen
0 siblings, 1 reply; 8+ messages in thread
From: Alex Riesen @ 2008-08-28 14:04 UTC (permalink / raw)
To: Git Mailing List; +Cc: Junio C Hamano
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]
The code tried to create a hardlink to the file ($execdir/git-add) it just
removed, so ln failed (but because stderr was redirected into /dev/null the
error was never seen), and the whole install ended up using "ln -s" instead.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
It created endless symlink loops on cygwin, but obviously nowhere else.
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-use-of-hardlinks-in-make-install.patch --]
[-- Type: text/x-patch; name=0001-Fix-use-of-hardlinks-in-make-install.patch, Size: 1160 bytes --]
From 943e0824b9fd1a8c2798ae9fd341b6a9b7429cc1 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Thu, 28 Aug 2008 15:57:32 +0200
Subject: [PATCH] Fix use of hardlinks in "make install"
The code tried to create a hardlink to the file ($execdir/git-add) it just
removed, so ln failed (but because stderr was redirected into /dev/null the
error was never seen), and the whole install ended up using "ln -s" instead.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index bf400e6..20a1704 100644
--- a/Makefile
+++ b/Makefile
@@ -1380,7 +1380,7 @@ endif
ln git-add$X "$$execdir/git-add$X" 2>/dev/null || \
cp git-add$X "$$execdir/git-add$X"; } && \
{ $(foreach p,$(filter-out git-add,$(BUILT_INS)), $(RM) "$$execdir/$p" && \
- ln "$$execdir/git-add$X" "$$execdir/$p" 2>/dev/null || \
+ ln "git-add$X" "$$execdir/$p" || \
ln -s "git-add$X" "$$execdir/$p" 2>/dev/null || \
cp "$$execdir/git-add$X" "$$execdir/$p" || exit;) } && \
./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X"
--
1.6.0.1.150.g8307.dirty
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Fix use of hardlinks in "make install"
2008-08-28 14:04 [PATCH] Fix use of hardlinks in "make install" Alex Riesen
@ 2008-08-28 14:17 ` Alex Riesen
2008-08-28 14:30 ` Alex Riesen
2008-08-30 0:20 ` [PATCH/resend] " Alex Riesen
0 siblings, 2 replies; 8+ messages in thread
From: Alex Riesen @ 2008-08-28 14:17 UTC (permalink / raw)
To: Git Mailing List; +Cc: Junio C Hamano
2008/8/28 Alex Riesen <raa.lkml@gmail.com>:
> The code tried to create a hardlink to the file ($execdir/git-add) it just
> removed, so ln failed (but because stderr was redirected into /dev/null the
> error was never seen), and the whole install ended up using "ln -s" instead.
>
> Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> ---
>
> It created endless symlink loops on cygwin, but obviously nowhere else.
>
Sh@#! Scrap that, there is something else going on in that cygwindows thing...
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] Fix use of hardlinks in "make install"
2008-08-28 14:17 ` Alex Riesen
@ 2008-08-28 14:30 ` Alex Riesen
2008-08-30 0:20 ` [PATCH/resend] " Alex Riesen
1 sibling, 0 replies; 8+ messages in thread
From: Alex Riesen @ 2008-08-28 14:30 UTC (permalink / raw)
To: Git Mailing List; +Cc: Junio C Hamano
[-- Attachment #1: Type: text/plain, Size: 863 bytes --]
The code failed to filter-out git-add properly on platforms were $X is
not empty (ATM there is only one such a platform).
Than it tried to create a hardlink to the file ($execdir/git-add) it just
removed (because git-add is first in the BUILT_INS), so ln failed (but
because stderr was redirected into /dev/null the error was never seen), and
the whole install ended up using "ln -s" instead.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
2008/8/28 Alex Riesen <raa.lkml@gmail.com>:
> 2008/8/28 Alex Riesen <raa.lkml@gmail.com>:
>>
>> It created endless symlink loops on cygwin, but obviously nowhere else.
>>
>
> Sh@#! Scrap that, there is something else going on in that cygwindows thing...
>
Well, as usual, simple fix for trivial typo caused by existence of an
idiotic platform.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-use-of-hardlinks-in-make-install.patch --]
[-- Type: text/x-patch; name=0001-Fix-use-of-hardlinks-in-make-install.patch, Size: 1337 bytes --]
From 6d83dbb0e3b78bfaad9522b2266d0864e434acce Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Thu, 28 Aug 2008 15:57:32 +0200
Subject: [PATCH] Fix use of hardlinks in "make install"
The code failed to filter-out git-add properly on platforms were $X is
not empty (ATM there is only one such a platform).
Than it tried to create a hardlink to the file ($execdir/git-add) it just
removed (because git-add is first in the BUILT_INS), so ln failed (but
because stderr was redirected into /dev/null the error was never seen), and
the whole install ended up using "ln -s" instead.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index bf400e6..20f028f 100644
--- a/Makefile
+++ b/Makefile
@@ -1379,7 +1379,7 @@ endif
{ $(RM) "$$execdir/git-add$X" && \
ln git-add$X "$$execdir/git-add$X" 2>/dev/null || \
cp git-add$X "$$execdir/git-add$X"; } && \
- { $(foreach p,$(filter-out git-add,$(BUILT_INS)), $(RM) "$$execdir/$p" && \
+ { $(foreach p,$(filter-out git-add$X,$(BUILT_INS)), $(RM) "$$execdir/$p" && \
ln "$$execdir/git-add$X" "$$execdir/$p" 2>/dev/null || \
ln -s "git-add$X" "$$execdir/$p" 2>/dev/null || \
cp "$$execdir/git-add$X" "$$execdir/$p" || exit;) } && \
--
1.6.0.1.152.g6969c
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH/resend] Fix use of hardlinks in "make install"
2008-08-28 14:17 ` Alex Riesen
2008-08-28 14:30 ` Alex Riesen
@ 2008-08-30 0:20 ` Alex Riesen
2008-08-30 8:59 ` Andreas Färber
1 sibling, 1 reply; 8+ messages in thread
From: Alex Riesen @ 2008-08-30 0:20 UTC (permalink / raw)
To: Git Mailing List; +Cc: Junio C Hamano
The code failed to filter-out git-add properly on platforms were $X is
not empty (ATM there is only one such a platform).
Than it tried to create a hardlink to the file ($execdir/git-add) it just
removed (because git-add is first in the BUILT_INS), so ln failed (but
because stderr was redirected into /dev/null the error was never seen), and
the whole install ended up using "ln -s" instead.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
2008/8/28 Alex Riesen <raa.lkml@gmail.com>:
> 2008/8/28 Alex Riesen <raa.lkml@gmail.com>:
>>
>> It created endless symlink loops on cygwin, but obviously nowhere else.
>>
>
> Sh@#! Scrap that, there is something else going on in that cygwindows thing...
>
Well, as usual, simple fix for a trivial typo caused by existence of an
idiotic platform.
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index bf400e6..20f028f 100644
--- a/Makefile
+++ b/Makefile
@@ -1379,7 +1379,7 @@ endif
{ $(RM) "$$execdir/git-add$X" && \
ln git-add$X "$$execdir/git-add$X" 2>/dev/null || \
cp git-add$X "$$execdir/git-add$X"; } && \
- { $(foreach p,$(filter-out git-add,$(BUILT_INS)), $(RM) "$$execdir/$p" && \
+ { $(foreach p,$(filter-out git-add$X,$(BUILT_INS)), $(RM) "$$execdir/$p" && \
ln "$$execdir/git-add$X" "$$execdir/$p" 2>/dev/null || \
ln -s "git-add$X" "$$execdir/$p" 2>/dev/null || \
cp "$$execdir/git-add$X" "$$execdir/$p" || exit;) } && \
--
1.6.0.1.152.g6969c
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH/resend] Fix use of hardlinks in "make install"
2008-08-30 0:20 ` [PATCH/resend] " Alex Riesen
@ 2008-08-30 8:59 ` Andreas Färber
2008-08-30 10:08 ` Alex Riesen
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Färber @ 2008-08-30 8:59 UTC (permalink / raw)
To: Alex Riesen; +Cc: Git Mailing List, Junio C Hamano
Am 30.08.2008 um 02:20 schrieb Alex Riesen:
> The code failed to filter-out git-add properly on platforms were $X is
> not empty (ATM there is only one such a platform).
>
> Than it tried to create a hardlink to the file ($execdir/git-add) it
> just
> removed (because git-add is first in the BUILT_INS), so ln failed (but
> because stderr was redirected into /dev/null the error was never
> seen), and
> the whole install ended up using "ln -s" instead.
>
> Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> ---
> Well, as usual, simple fix for a trivial typo caused by existence of
> an
> idiotic platform.
>
> Makefile | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index bf400e6..20f028f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1379,7 +1379,7 @@ endif
> { $(RM) "$$execdir/git-add$X" && \
> ln git-add$X "$$execdir/git-add$X" 2>/dev/null || \
> cp git-add$X "$$execdir/git-add$X"; } && \
> - { $(foreach p,$(filter-out git-add,$(BUILT_INS)), $(RM) "$$execdir/
> $p" && \
> + { $(foreach p,$(filter-out git-add$X,$(BUILT_INS)), $(RM) "$
> $execdir/$p" && \
> ln "$$execdir/git-add$X" "$$execdir/$p" 2>/dev/null || \
> ln -s "git-add$X" "$$execdir/$p" 2>/dev/null || \
> cp "$$execdir/git-add$X" "$$execdir/$p" || exit;) } && \
> --
> 1.6.0.1.152.g6969c
Your patch seems to work on Haiku, don't have a MinGW setup to test.
Sorry for the breakage.
Andreas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH/resend] Fix use of hardlinks in "make install"
2008-08-30 8:59 ` Andreas Färber
@ 2008-08-30 10:08 ` Alex Riesen
2008-08-30 11:39 ` Andreas Färber
0 siblings, 1 reply; 8+ messages in thread
From: Alex Riesen @ 2008-08-30 10:08 UTC (permalink / raw)
To: Andreas Färber; +Cc: Git Mailing List, Junio C Hamano
2008/8/30 Andreas Färber <planche2k@googlemail.com>:
> Am 30.08.2008 um 02:20 schrieb Alex Riesen:
>
>> Well, as usual, simple fix for a trivial typo caused by existence of an
>> idiotic platform.
>>
> Your patch seems to work on Haiku, don't have a MinGW setup to test. Sorry
> for the breakage.
What?! Haiku uses stupid file extensions to mark executables?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH/resend] Fix use of hardlinks in "make install"
2008-08-30 10:08 ` Alex Riesen
@ 2008-08-30 11:39 ` Andreas Färber
2008-08-30 15:48 ` Alex Riesen
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Färber @ 2008-08-30 11:39 UTC (permalink / raw)
To: Alex Riesen; +Cc: Git Mailing List, Junio C Hamano
Am 30.08.2008 um 12:08 schrieb Alex Riesen:
> 2008/8/30 Andreas Färber <planche2k@googlemail.com>:
>> Am 30.08.2008 um 02:20 schrieb Alex Riesen:
>>
>>> Well, as usual, simple fix for a trivial typo caused by existence
>>> of an
>>> idiotic platform.
>>>
>> Your patch seems to work on Haiku, don't have a MinGW setup to
>> test. Sorry
>> for the breakage.
>
> What?! Haiku uses stupid file extensions to mark executables?
No, it doesn't. Like BeOS, it uses MIME types stored as BFS attributes
as well as the standard POSIX executable bit.
Since no one appeared to have replied yet, I confirmed that your
Windows patch does not break things here and looks reasonable to me as
co-author of the offending commit.
Andreas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH/resend] Fix use of hardlinks in "make install"
2008-08-30 11:39 ` Andreas Färber
@ 2008-08-30 15:48 ` Alex Riesen
0 siblings, 0 replies; 8+ messages in thread
From: Alex Riesen @ 2008-08-30 15:48 UTC (permalink / raw)
To: Andreas Färber; +Cc: Git Mailing List, Junio C Hamano
2008/8/30 Andreas Färber <planche2k@googlemail.com>:
>
> Since no one appeared to have replied yet, I confirmed that your Windows
> patch does not break things here and looks reasonable to me as co-author of
> the offending commit.
Ok
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-08-30 15:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-28 14:04 [PATCH] Fix use of hardlinks in "make install" Alex Riesen
2008-08-28 14:17 ` Alex Riesen
2008-08-28 14:30 ` Alex Riesen
2008-08-30 0:20 ` [PATCH/resend] " Alex Riesen
2008-08-30 8:59 ` Andreas Färber
2008-08-30 10:08 ` Alex Riesen
2008-08-30 11:39 ` Andreas Färber
2008-08-30 15:48 ` Alex Riesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).