Skip to content

Commit

Permalink
ld64-97 : add patch for text islands error
Browse files Browse the repository at this point in the history
  • Loading branch information
kencu committed Jan 22, 2018
1 parent 329f3d2 commit ebbbb98
Show file tree
Hide file tree
Showing 50 changed files with 3,637 additions and 0 deletions.
111 changes: 111 additions & 0 deletions devel/gdb/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup muniversal 1.0

name gdb
version 7.6.8
categories devel
license GPL-3+
maintainers dweber openmaintainer
description GDB: The GNU Project Debugger

long_description \
GDB, the GNU Project debugger, allows you to see what is going on 'inside' \
another program while it executes -- or what another program was doing at the \
moment it crashed. GDB can do four main kinds of things (plus other things \
in support of these) to help you catch bugs in the act: \
a) start your program, specifying anything that might affect its behavior, \
b) make your program stop on specified conditions, \
c) examine what has happened, when your program has stopped, \
d) change things in your program, so you can experiment with correcting \
the effects of one bug and go on to learn about another. \
The program being debugged can be written in Ada, C, C++, Objective-C, \
Pascal (and many other languages). Those programs might be executing on \
the same machine as GDB (native) or on another machine (remote). GDB \
can run on most popular UNIX and Microsoft Windows variants.

homepage http://www.gnu.org/software/gdb/
platforms darwin

master_sites sourceforge:tenfourfox
distname gdb768-104fx-4
checksums rmd160 290bf787eb557d8e08c73a3a2ba8deffd14516c2 \
sha256 c2fd9f9da6623a225f0a60aaea6d7cf58551dd1c121daaa81ee3c739642e25c4

depends_build port:gettext port:zlib

#use_configure no
worksrcdir gdb-768/src

#build.env GDB_ROOT=${prefix}
#build.cmd ./gdb.sh
#build.args

build.cmd ${prefix}/bin/gmake

configure.args \
--infodir=${prefix}/share/info \
--mandir=${prefix}/share/man \
--with-docdir=${prefix}/share/doc \
--program-prefix=g \
--disable-werror

post-configure {
#reinplace out -Wno-long-double in scr/gdb/Makefile
}

post-destroot {
#system "chgrp procmod ${destroot}${prefix}/bin/ggdb*"
system "chmod g+s ${destroot}${prefix}/bin/ggdb*"

foreach info [glob -tails -directory ${destroot}${prefix}/share/info g*] {
move ${destroot}${prefix}/share/info/${info} ${destroot}${prefix}/share/info/g${info}
}
#move ${destroot}${prefix}/share/info/standards.info ${destroot}${prefix}/share/info/ggdb-standards.info

xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
}
}

set pythons_suffixes {25 26 27 31 32 33}

set pythons_ports {}
foreach s ${pythons_suffixes} {
lappend pythons_ports python${s}
}

foreach s ${pythons_suffixes} {
set p python${s}
set v [string index ${s} 0].[string index ${s} 1]
set i [lsearch -exact ${pythons_ports} ${p}]
set c [lreplace ${pythons_ports} ${i} ${i}]
eval [subst {
variant ${p} description "Build GDB with Python ${v} Scripting" conflicts ${c} {
depends_lib-append port:${p}
configure.args-append --with-python=${prefix}/bin/python${v}
patchfiles-append patch-python-config.py.diff
}
}]
}

if {${os.platform} eq "darwin" && ${os.major} >= 12} {
notes "
You will need to make sure /System/Library/LaunchDaemons/com.apple.taskgated.plist\
has the '-p' option, e.g.
<key>ProgramArguments</key>
<array>
<string>/usr/libexec/taskgated</string>
<string>-sp</string>
</array>
Due to kernel caching, you usually need to restart Mac OS X for this option to effect.
"
}


livecheck.type regex
livecheck.url http://ftp.gnu.org/gnu/gdb/
livecheck.regex gdb-(\\d+(?:\\.\\d+)+)\\.tar
11 changes: 11 additions & 0 deletions devel/gdb/files/patch-python-config.py.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- gdb/python/python-config.py-orig 2013-05-20 15:34:28.000000000 -0500
+++ gdb/python/python-config.py 2013-05-20 15:35:05.000000000 -0500
@@ -72,8 +72,8 @@
libs.insert(0, '-L' + getvar('LIBPL'))
elif os.name == 'nt':
libs.insert(0, '-L' + sysconfig.PREFIX + '/libs')
- if getvar('LINKFORSHARED') is not None:
+ if not getvar('PYTHONFRAMEWORK'):
libs.extend(getvar('LINKFORSHARED').split())
print (to_unix_path(' '.join(libs)))

Loading

0 comments on commit ebbbb98

Please sign in to comment.