Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#54217 closed defect (fixed)

gdb 7.12.1 does not work on macOS Sierra

Reported by: plinss (Peter Linss) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: haspatch Cc: uliano, rickyz (Ricky Zhou), plinss (Peter Linss), lks100
Port: gdb

Description

Apparently there's still a patch required for gdb to work on Sierra 10.12.4+

Applying this patch appear to work: https://raw.githubusercontent.com/Homebrew/formula-patches/9d3dbc2/gdb/0001-darwin-nat.c-handle-Darwin-16-aka-Sierra.patch

Also, setting the procmod group interferes with codesigning gdb (which is now required on Sierra).

Attaching a patch to the portfile to address these.

Attachments (2)

Portfile-rrdtool.diff (1.4 KB) - added by plinss (Peter Linss) 8 years ago.
Patch to portfile
patch-gdb-darwin-nat.c.diff (16.5 KB) - added by plinss (Peter Linss) 8 years ago.
Patch to gdb (slight edit to correct path)

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by plinss (Peter Linss)

Attachment: Portfile-rrdtool.diff added

Patch to portfile

Changed 8 years ago by plinss (Peter Linss)

Attachment: patch-gdb-darwin-nat.c.diff added

Patch to gdb (slight edit to correct path)

comment:1 Changed 8 years ago by plinss (Peter Linss)

Cc: plinss added

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Cc: plinss removed
Keywords: haspatch added; gdb removed

Thanks!

As reporter, you do not need to Cc yourself.

comment:3 Changed 8 years ago by plinss (Peter Linss)

Neglected to mention this fixes the issue: "During startup program terminated with signal ?, unknown signal." while attempting to run any program.

FWIW, the same patch is being used by homebrew, see: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gdb.rb

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Cc: uliano rickyz plinss lks100 added

Has duplicate #52889.

comment:5 Changed 7 years ago by raimue (Rainer Müller)

Owner: set to raimue
Resolution: fixed
Status: newclosed

In 380ef99dde4cec0516cba66797d478ff0d97239d/macports-ports:

gdb: Fix running on macOS >= 10.12.4

Also replace outdated taskgated instructions with a link to the gdb wiki
for codesigning.

Closes: #54217

comment:6 Changed 7 years ago by raimue (Rainer Müller)

Thank you for your contribution. Committed with an additional increase of revision, since this changes files installed by the port.

comment:7 Changed 7 years ago by raimue (Rainer Müller)

Note: See TracTickets for help on using tickets.