[Bug 219274] Improve Scripts/check-stagedir.sh to handle nested 'info/dir's

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 14 13:04:39 UTC 2017


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

            Bug ID: 219274
           Summary: Improve Scripts/check-stagedir.sh to handle nested
                    'info/dir's
           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: gerald at FreeBSD.org
                CC: bapt at FreeBSD.org, freebsd-ports-bugs at FreeBSD.org,
                    portmgr at FreeBSD.org
 Attachment #182589 maintainer-approval?(portmgr at FreeBSD.org)
             Flags:
                CC: portmgr at FreeBSD.org

Created attachment 182589
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=182589&action=edit
Proposed patch

After

  r370199 | bapt | 2014-10-06 18:13:15 +0000 (Mon, 06 Oct 2014) | 5 lines

  Comment out info/dir files
  indexinfo is taking care of generating it at package installation time

many ports such as the lang/gcc* family had entries such as

  @comment info/gcc%%SUFFIX%%/dir

When I now removed this for lang/gcc5-devel (r439213), 
Scripts/check-stagedir.sh started to warn

  Error: Orphaned: info/gcc5/dir

Looking into the script there already is whitelisting in place for
these info's dir files in general, alas not for ports that need to
use a subdirectory to avoid conflicts between different versions:

  # Handle whitelisting
        while read path; do
                case "${path}" in
                *.bak) ;;
                *.orig) ;;
                :
                */info/dir|info/dir) ;;

This patch takes care of that.  Okay?

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


More information about the freebsd-ports-bugs mailing list