[Bug 274420] mail/spamassassin build fails due to chmod missing folders

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 12 Oct 2023 01:37:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274420

            Bug ID: 274420
           Summary: mail/spamassassin build fails due to chmod missing
                    folders
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: dewayne@heuristicsystems.com.au
             Flags: maintainer-feedback?(cy@FreeBSD.org)
          Assignee: cy@FreeBSD.org

Unfortunately there seems to be some missing files or folers. The following
from:

FreeBSD 102 12.4-STABLE FreeBSD 12.4-STABLE #1 myworkingbranch-b40ded9f0-dirty:
Sun Oct  8 04:12:08 AEDT 2023    
root@102:/big/obj/big/src/amd64.amd64/sys/BSD12 amd64 1204500 1204500

The OS is recently built, and /usr/ports were git updated within this week.

Please note the WRKDIRPREFIX is /var/ports, and /usr/ports links with
/big/ports.  The last few lines of the build log are:

(cd /var/ports/big/ports/mail/spamassassin/work/Mail-SpamAssassin-4.0.0 &&
/bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1)
&&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' &&
chmod 755 "$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' &&
chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE "sql ldap"
/var/ports/big/ports/mail/spamassassin/work/stage/usr/local/share/doc/spamassassin)
chmod: sql/txrep_sqlite.sql: No such file or directory
chmod: sql/README.txrep: No such file or directory
chmod: sql/README.bayes: No such file or directory
chmod: sql/decodeshorturl_sqlite.sql: No such file or directory
chmod: sql/README.awl: No such file or directory
chmod: sql/txrep_mysql.sql: No such file or directory
chmod: sql/bayes_mysql.sql: No such file or directory
chmod: sql/awl_pg.sql: No such file or directory
chmod: sql/README: No such file or directory
chmod: sql/awl_mysql.sql: No such file or directory
chmod: sql/userpref_pg.sql: No such file or directory
chmod: sql/txrep_pg.sql: No such file or directory
chmod: sql/decodeshorturl_pg.sql: No such file or directory
chmod: sql/bayes_pg.sql: No such file or directory
chmod: sql/decodeshorturl_mysql.sql: No such file or directory
chmod: sql/userpref_mysql.sql: No such file or directory
chmod: ldap/README: No such file or directory
chmod: ldap/README.testing: No such file or directory
chmod: ldap/sa_test.ldif: No such file or directory
chmod: sql: No such file or directory
chmod: ldap: No such file or directory
*** Error code 1

Attempt to diagnose.  The folder does exist:
# ls
/var/ports/big/ports/mail/spamassassin/work/stage/usr/local/share/doc/spamassassin
CREDITS                 NOTICE                  TRADEMARK              
procmailrc.example
Changes                 PACKAGING               UPGRADE
INSTALL                 README                  USAGE

And a randomly picked source file also exists:
# find /var/ports/big/ports/mail/spamassassin/work/ -name decodeshorturl_pg.sql
/var/ports/big/ports/mail/spamassassin/work/Mail-SpamAssassin-4.0.0/sql/decodeshorturl_pg.sql

Perhaps a mkdir is required before the chmod?

Background:
# make -C /usr/ports/mail/spamassassin showconfig
===> The following configuration options are available for
spamassassin-4.0.0_4:
     AS_ROOT=off: Run spamd as root (recommended)
     DOCS=off: Build and/or install documentation
     SSL=on: SSL protocol support
====> Optional user-config/bayes database backends
     MYSQL=off: MySQL database support
     PGSQL=off: PostgreSQL database support
====> Optional SpamAssassin plugins
     DCC=off: DCC digest list support (mail/dcc-dccd)
     DKIM=on: Verify DKIM records (mail/p5-Mail-DKIM)
     PYZOR=off: Pyzor digest list support (mail/pyzor)
     RAZOR=on: Vipul's Razor digest list support (mail/razor-agents)
     RELAY_COUNTRY=on: Location-based scoring (net/p5-GeoIP2)
     RLIMIT=off: Resource limits (devel/p5-BSD-Resource)
     SPF_QUERY=on: Verify SPF records (mail/p5-Mail-SPF)
====> GnuPG (for sa-update): you have to select exactly one of them
     GNUPG_NONE=off: Do not use GnuPG
     GNUPG=on: GnuPG 1 (security/gnupg1)
     GNUPG2=off: GnuPG 2 (security/gnupg)
===> Use 'make config' to modify these settings

Happy to provide more information as required :)

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