Groups | Search | Server Info | Login | Register


Groups > alt.os.development > #18713

patch command not work

From alex <1j9448a02@lnx159sneakemail.com.invalid>
Newsgroups alt.os.development
Subject patch command not work
Date 2024-08-28 14:34 +0200
Organization A noiseless patient Spider
Message-ID <van5he$3fmd8$1@dont-email.me> (permalink)

Show all headers | View raw


/tmp/tmp.YI0xO6M46g
├── bugged
│   └── file
└── patched
     ├── file
     └── file.patch

$ patch --dry-run < patched/file.patch
can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- /tmp/tmp.YI0xO6M46g/bugged/file    2024-08-28 12:15:12.742638522 +0200
|+++ /tmp/tmp.YI0xO6M46g/patched/file    2024-08-28 12:15:27.908571446 +0200
--------------------------

Why?

Here are some details

$ patch --version
GNU patch 2.7.6
Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc.
Copyright (C) 1988 Larry Wall

License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Larry Wall and Paul Eggert

$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:    jammy

$ cat bugged/file
BUGGED

$ cat patched/file
PATCHED

$ cat patched/file.patch
--- /tmp/tmp.YI0xO6M46g/bugged/file    2024-08-28 12:15:12.742638522 +0200
+++ /tmp/tmp.YI0xO6M46g/patched/file    2024-08-28 12:15:27.908571446 +0200
@@ -1 +1 @@
-BUGGED
+PATCHED

Everything seems normal, what's wrong?

Back to alt.os.development | Previous | Next | Find similar


Thread

patch command not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2024-08-28 14:34 +0200

csiph-web