[Bug 288795] print/gimp-gutenprint: : invalid option -- D

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 11 Aug 2025 16:11:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288795

            Bug ID: 288795
           Summary: print/gimp-gutenprint: : invalid option -- D
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ohartmann@walstatt.org

On recent CURRENT (FreeBSD 15.0-PRERELEASE #14 master-n279538-084a3e1e0337: Sun
Aug 10 18:23:31 CEST 2025 amd64) installation of port

print/gimp-gutenprint

fails when made via "make". The problem is well known, please see Bug 277961 or
search for "invalid option -- D", see below.

The problem can be solved easily by changing print/gutenprint Makefile,
replacing $SETENV} with ${SETENVI} (I do not know whether adjacent ${WRK_ENV}
is necessary).

[...]
gmake[2]: Leaving directory
'/usr/ports/print/gimp-gutenprint/work/gutenprint-5.3.4/src/gimp2'
gmake[1]: Leaving directory
'/usr/ports/print/gimp-gutenprint/work/gutenprint-5.3.4/src/gimp2'
: invalid option -- D
Usage: gmake [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -E STRING, --eval=STRING    Evaluate STRING as a makefile statement.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from recipes.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  --jobserver-style=STYLE     Select the style of jobserver to use.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any recipe; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -O[TYPE], --output-sync[=TYPE]
                              Synchronize output of parallel jobs by TYPE.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no recipe; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  --shuffle[={SEED|random|reverse|none}]
                              Perform shuffle of prerequisites and goals.
  -s, --silent, --quiet       Don't echo recipes.
  --no-silent                 Echo recipes (disable --silent mode).

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