[Bug 257363] net/gitup not cleaning stale patches in ports tree

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 23 Jul 2021 18:58:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257363

            Bug ID: 257363
           Summary: net/gitup not cleaning stale patches in ports tree
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: eduardo@FreeBSD.org
          Reporter: zarychtam@plan-b.pwste.edu.pl
             Flags: maintainer-feedback?(eduardo@FreeBSD.org)
          Assignee: eduardo@FreeBSD.org

net/gitup with this config:

        "ports" : {
                "repository" : "/ports.git",
                "branch"     : "main",
                "target"     : "/usr/ports",
                "ignores"    : [
                        "distfiles",
                        "packages",
                ],
        },

is leaving stale patches, for example after recent texinfo update after running
"gitup ports" it has left
/usr/ports/texinfo/files/patch-tp-Texinfo-XS-parsetexi-Parser-5556.pm and
patch-tp-Texinfo-XS-parsetexi-errors.c which both should have been deleted.
Such a mess leads usually only to breakage at the patching stage (see below),
but could probably lead to more pessimistic endings.

===>  Patching for texinfo-6.8,1
===>  Applying FreeBSD patches for texinfo-6.8,1 from
/usr/ports/print/texinfo/files
File to patch: ^C===>  FAILED Applying FreeBSD
patch-tp-Texinfo-XS-parsetexi-Parser-5556.pm
===> FAILED to apply cleanly FreeBSD patch(es) 
patch-tp-Texinfo-XS-parsetexi-Parser-5556.pm
*** Error code 1
*** Signal 2

It's only an example, I have fallen into this many times, especially while
updating python modules.

-- 
You are receiving this mail because:
You are the assignee for the bug.