#67670 closed defect (fixed)

netpbm: build failed on Mac OS X 14.0 Developer Beta

Reported by: thelastlin (Xavier Hsinyuan) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: libnetpbm

Description

:debug:sysinfo macOS 14.0 (darwin/23.0.0) arch arm
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode none, CLT 15.0.0.0.1.1685693485
:debug:sysinfo SDK 14
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 14.0

...

:info:build error: environment variable 'SOURCE_DATE_EPOCH' ('1679576858
:info:build ') must be a non-negative decimal integer <= 253402300799
:info:build gnumake[1]: *** [typegen.o] Error 1

Workaround, test on Sonoma beta(23A5276g):

edit Portfile

pre-build {
    set fp [open ${workpath}/mtime r]
    set mtime [read -nonewline ${fp}]
    close ${fp}
    build.env-append    SOURCE_DATE_EPOCH=${mtime}
}

Change History (2)

comment:1 Changed 17 months ago by jmroot (Joshua Root)

Owner: set to ryandesign
Status: newassigned

comment:2 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 0b50a6fee208aab527e8e2ce6b79d4f825846cd1/macports-ports (master):

netpbm: Don't include newline in SOURCE_DATE_EPOCH

Closes: #67670

Note: See TracTickets for help on using tickets.