Bug 250511

Summary: patch(1) failure: patch doesn't replace the line according to the patch file, but replaces an entirely different line instead
Product: Base System Reporter: Yuri Victorovich <yuri>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 12.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-Makefile.am
none
Makefile.am none

Description Yuri Victorovich freebsd_committer 2020-10-21 16:06:21 UTC
Created attachment 218950 [details]
patch-Makefile.am

The attached patch file is supposed to replace one line with another line in the attached Makefile.am:
> @@ -1,4 +1,4 @@
> -SUBDIRS = lib src lv2 tests
> +SUBDIRS = lib src lv2
> 
>  AUTOMAKE_OPTIONS = 1.9 dist-bzip2 no-dist-gzip
>  ACLOCAL_AMFLAGS = -I m4 -Wno-portability

Instead, it leaves that line intact and replaces an entirely different line:
> $ diff Makefile.am.orig Makefile.am
> 9c9
> < endif
> ---
> > SUBDIRS = lib src lv2
Comment 1 Yuri Victorovich freebsd_committer 2020-10-21 16:07:14 UTC
Created attachment 218951 [details]
Makefile.am