[Bug 223126] 'make makepatch' may remove all patches under certain condition

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Oct 20 09:50:44 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223126

            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 at FreeBSD.org
          Reporter: mzaki at niid.go.jp
                CC: freebsd-ports-bugs at FreeBSD.org

Created attachment 187325
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187325&action=edit
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 illegal
option error, making new_list null.

Suggested workaround is adding -f before * (patch attached).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list