bug-patch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch-2.7.6.200-be8b on file systems without hard links


From: Bruno Haible
Subject: Re: patch-2.7.6.200-be8b on file systems without hard links
Date: Mon, 04 Nov 2024 01:49:12 +0100

In file systems without hard links, two tests fail:

1) On Linux, in a vfat file system:


FAIL: remember-backup-files
===========================

[38] patch -p0 < f.diff -- ok
[47] cat f.orig -- ok
ln: failed to create hard link 'g' => 'f': Operation not permitted
[71] patch -p0 < fg.diff -- FAILED
--- expected
+++ got
@@ -1,4 +1,13 @@
 patching file f
 Hunk #1 succeeded at 1 (offset -1 lines).
-patching file g
-Hunk #1 succeeded at 1 (offset -1 lines).
+can't find file to patch at input line 8
+Perhaps you used the wrong -p or --strip option?
+The text leading up to this was:
+--------------------------
+|--- g.orig
+|+++ g
+--------------------------
+File to patch: 
+Skip this patch? [y] 
+Skipping patch.
+1 out of 1 hunk ignored
[78] cat f.orig -- ok
[82] cat g.orig -- FAILED
--- expected
+++ got
@@ -1 +1 @@
-one
+cat: g.orig: No such file or directory
[101] patch --backup -p0 < f.diff -- ok
[106] cat f.orig -- ok
[110] cat f -- ok
8 tests (6 passed, 2 failed)
FAIL remember-backup-files (exit status: 1)

FAIL: unmodified-files
======================

ln: failed to create hard link 'a.first' => 'a': Operation not permitted
[31] patch -b -B backup/ a < a.diff || echo "Status: $?" -- ok
[38] test a -ef a.first -- FAILED
[40] cat backup/a -- ok
[53] patch -o b a < a.diff -- ok
[57] cat b -- ok
5 tests (4 passed, 1 failed)
FAIL unmodified-files (exit status: 1)


2) On Haiku, in a Be file system:


FAIL: remember-backup-files
===========================

[38] patch -p0 < f.diff -- ok
[47] cat f.orig -- ok
ln: failed to create hard link 'g' => 'f': Operation not supported
[71] patch -p0 < fg.diff -- FAILED
--- expected
+++ got
@@ -1,4 +1,13 @@
 patching file f
 Hunk #1 succeeded at 1 (offset -1 lines).
-patching file g
-Hunk #1 succeeded at 1 (offset -1 lines).
+can't find file to patch at input line 8
+Perhaps you used the wrong -p or --strip option?
+The text leading up to this was:
+--------------------------
+|--- g.orig
+|+++ g
+--------------------------
+File to patch: 
+Skip this patch? [y] 
+Skipping patch.
+1 out of 1 hunk ignored
[78] cat f.orig -- ok
[82] cat g.orig -- FAILED
--- expected
+++ got
@@ -1 +1 @@
-one
+cat: g.orig: No such file or directory
[101] patch --backup -p0 < f.diff -- FAILED
--- expected
+++ got
@@ -1,2 +1,4 @@
 patching file f
 patching file f
+Hunk #1 FAILED at 1.
+1 out of 1 hunk FAILED -- saving rejects to file f.rej
[106] cat f.orig -- ok
[110] cat f -- FAILED
--- expected
+++ got
@@ -1 +1 @@
-two
+cat: f: No such file or directory
8 tests (4 passed, 4 failed)
FAIL remember-backup-files (exit status: 1)

FAIL: unmodified-files
======================

ln: failed to create hard link 'a.first' => 'a': Operation not supported
[31] patch -b -B backup/ a < a.diff || echo "Status: $?" -- ok
[38] test a -ef a.first -- FAILED
[40] cat backup/a -- ok
[53] patch -o b a < a.diff -- ok
[57] cat b -- ok
5 tests (4 passed, 1 failed)
FAIL unmodified-files (exit status: 1)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]