Date: Fri, 20 Oct 2017 09:50:44 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 223126] 'make makepatch' may remove all patches under certain condition Message-ID: <bug-223126-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223126 Bug ID: 223126 Summary: 'make makepatch' may remove all patches under certain condition Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: mzaki@niid.go.jp CC: freebsd-ports-bugs@FreeBSD.org Created attachment 187325 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187325&action= =3Dedit diff for Mk/Scripts/smart_makepatch.sh In the case that file(s) with name beginning with '-' exists in ${PATCH_WRKSRC}, 'make makepatch' removes all existing patches in ${PATCHDIR} rather than regenerating them. This is caused by 'find -s * -type f...' in regenerate_patches() in Mk/Scripts/smart_makepatch.sh The glob expanded to (for example) '-m Makefile ...' causes 'find' an illeg= al option error, making new_list null. Suggested workaround is adding -f before * (patch attached). --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223126-13>