Merge pull request #8697 from blue-devil/master

gdb update
This commit is contained in:
Blue DeviL
2020-09-09 01:45:15 +02:00
committed by GitHub
18 changed files with 785 additions and 58 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure()
def build():
autotools.make()
def install():
autotools.rawInstall('DESTDIR="%s" INSTALL="install -p"' % get.installDIR())
pisitools.dodoc("README", "COPYING", "LICENSE")
+80
View File
@@ -0,0 +1,80 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>ethtool</Name>
<Homepage>https://www.kernel.org/pub/software/network/ethtool/</Homepage>
<Packager>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<PartOf>hardware.misc</PartOf>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>Utility to examine and tune ethernet-based network interfaces</Summary>
<Description>ethtool is used for querying and changing settings of an ethernet device.</Description>
<Archive sha1sum="b16ecf0ede1635f8a8abac9b8db58b831f408f7b" type="tarxz">https://mirrors.edge.kernel.org/pub/software/network/ethtool/ethtool-5.8.tar.xz</Archive>
<BuildDependencies>
<Dependency>libmnl-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>ethtool</Name>
<Summary>Utility to examine and tune ethernet-based network interfaces</Summary>
<RuntimeDependencies>
<Dependency>libmnl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="bash-completion">/usr/share/bash-completion</Path>
</Files>
</Package>
<History>
<Update release="6">
<Date>2020-09-07</Date>
<Version>5.8</Version>
<Comment>Minor version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="5">
<Date>2020-07-22</Date>
<Version>5.7</Version>
<Comment>Minor version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="4">
<Date>2020-04-28</Date>
<Version>5.4</Version>
<Comment>Patch version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="3">
<Date>2019-11-04</Date>
<Version>5.3</Version>
<Comment>Ver. bump</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="2">
<Date>2016-02-18</Date>
<Version>4.2</Version>
<Comment>Version bump</Comment>
<Name>İbrahim KARAGÜZEL</Name>
<Email>karaguzelibrahim@gmail.com</Email>
</Update>
<Update release="1">
<Date>2010-11-19</Date>
<Version>2.6.36</Version>
<Comment>First release</Comment>
<Name>Onur Küçük</Name>
<Email>onur@pardus.org.tr</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>ethtool</Name>
<Summary xml:lang="tr">Ethernet tabanlı ağ arayüzlerini tanımlamak ve ayarlamak için kullanılan bir yazılım</Summary>
<Description xml:lang="tr">Ethtool ağ aygıtınızın ayarlarını listelemeye ve bu ayarları değiştirmeye yarar.</Description>
</Source>
</PISI>
+218 -16
View File
@@ -206774,7 +206774,7 @@ It supports email, address books, calendars, tasks, news feeds and much more.</D
<SpecFile>
<Source>
<Name>gdb</Name>
<Homepage>http://www.gnu.org/software/gdb/gdb.html</Homepage>
<Homepage>http://www.gnu.org/software/gdb/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
@@ -206788,53 +206788,62 @@ It supports email, address books, calendars, tasks, news feeds and much more.</D
<Description xml:lang="en">GDB, the GNU Project debugger, allows you to see what is going on &apos;inside&apos; another program while it executes -- or what another program was doing at the moment it crashed.</Description>
<Description xml:lang="tr">GDB, GNU Proje hata ayıklama aracı, çalışır durumdaki başka bir programın `içinde&apos; olan biteni görmenizi, veya başka bir programın çöktüğü anda ne yapıyor olduğunu bilmenizi sağlar.</Description>
<Description xml:lang="es">GDB, el depurador del proyecto GNU permite ver lo que está pasando &apos;en el interior de&apos; otro programa mientras ejecuta -- o lo que estaba haciendo cuando quedó colgado.</Description>
<Archive type="tarxz" sha1sum="f45de6af561f0fa0241f0d5085198556fcfd1e5e" name="gdb-8.3.tar.xz">mirrors://gnu/gdb/gdb-8.3.tar.xz</Archive>
<Archive type="tarxz" sha1sum="356ee474a24bfb2f133894730916557dfea9da2e" name="gdb-9.2.tar.xz">https://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.xz</Archive>
<BuildDependencies>
<Dependency>xz-devel</Dependency>
<Dependency>texinfo</Dependency>
<Dependency>guile-devel</Dependency>
<Dependency>xz-devel</Dependency>
<Dependency>mpfr-devel</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>readline-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>guile2.0-devel</Dependency>
<Dependency>readline-devel</Dependency>
<Dependency>source-highlight-devel</Dependency>
</BuildDependencies>
<SourceURI>programming/debug/gdb/pspec.xml</SourceURI>
</Source>
<Package>
<Name>gdb</Name>
<Summary xml:lang="en">GNU debugger</Summary>
<RuntimeDependencies>
<Dependency>xz</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>guile</Dependency>
<Dependency>expat</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>python</Dependency>
<Dependency>readline</Dependency>
<Dependency>ncurses</Dependency>
<Dependency>guile2.0</Dependency>
<Dependency>readline</Dependency>
<Dependency>source-highlight</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc/gdb</Path>
<Path fileType="data">/usr/share/gdb</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/usr/share/gdb</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="doc">/usr/share/doc/gdb</Path>
</Files>
<AdditionalFiles>
<AdditionalFile target="/usr/share/man/man1/gstack.1" permission="0644" owner="root">gstack.1</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>gdb-devel</Name>
<Summary xml:lang="en">Development files for gdb</Summary>
<Summary xml:lang="tr">gdb için geliştirme dosyaları</Summary>
<Description xml:lang="tr">gdb-devel, provides development files for gdb.</Description>
<RuntimeDependencies>
<Dependency release="6">gdb</Dependency>
<Dependency release="7">gdb</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="7">
<Date>2020-09-07</Date>
<Version>9.2</Version>
<Comment>Major version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="6">
<Date>2020-01-07</Date>
<Version>8.3</Version>
@@ -206879,6 +206888,59 @@ It supports email, address books, calendars, tasks, news feeds and much more.</D
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>gdb-multiarch</Name>
<Homepage>http://www.gnu.org/software/gdb/</Homepage>
<Packager>
<Name>Blue DeviL</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<License>GPLv3</License>
<IsA>app::console</IsA>
<PartOf>programming.debug</PartOf>
<Summary xml:lang="en">The GNU Debugger for all gdb supported architectures (i386/arm/mips...).</Summary>
<Summary xml:lang="tr">GDB(GNU Debugger) hata ayıklayıcısının desteklediği tüm mimariler için hata ayıklayıcısı.</Summary>
<Description xml:lang="en">gdb-multiarch, is a split of GDB(GNU Debugger) which is for gdb supported architectures (i386/arm/mips...).</Description>
<Description xml:lang="tr">gdb-multiarch i386/arm/mips gibi gdb&apos;nin desteklediği tüm mimariler için hata ayıklayıcısı ve araçlarını sunar.</Description>
<Archive type="tarxz" sha1sum="356ee474a24bfb2f133894730916557dfea9da2e" name="gdb-9.2.tar.xz">https://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.xz</Archive>
<BuildDependencies>
<Dependency>texinfo</Dependency>
<Dependency>xz-devel</Dependency>
<Dependency>gdb-devel</Dependency>
<Dependency>mpfr-devel</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>guile2.0-devel</Dependency>
<Dependency>readline-devel</Dependency>
</BuildDependencies>
<SourceURI>programming/debug/gdb-multiarch/pspec.xml</SourceURI>
</Source>
<Package>
<Name>gdb-multiarch</Name>
<Summary xml:lang="en">The GNU Debugger for all gdb supported architectures (i386/arm/mips...).</Summary>
<RuntimeDependencies>
<Dependency>gdb</Dependency>
<Dependency>mpfr</Dependency>
<Dependency>expat</Dependency>
<Dependency>python</Dependency>
<Dependency>guile2.0</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/gdb-multiarch</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-04-09</Date>
<Version>9.2</Version>
<Comment>First pisi release</Comment>
<Name>Blue DeviL</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>dev86</Name>
@@ -214734,6 +214796,67 @@ It supports email, address books, calendars, tasks, news feeds and much more.</D
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>binaryen</Name>
<Homepage>https://github.com/WebAssembly/binaryen</Homepage>
<Packager>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<License>Apache2.0</License>
<IsA>app:console</IsA>
<IsA>library</IsA>
<PartOf>programming.library</PartOf>
<Summary xml:lang="en">Compiler infrastructure and toolchain library for WebAssembly</Summary>
<Summary xml:lang="tr">C++ ile WebAssembly için yazılış derleyici altyapısı ve araç zinciri.</Summary>
<Description xml:lang="en">Binaryen is a compiler and toolchain infrastructure library for WebAssembly, written in C++. It aims to make compiling to WebAssembly easy, fast, and effective.</Description>
<Description xml:lang="tr">binaryen, C++ ile WebAssembly için yazılış derleyici altyapısı ve araç zinciri sunar. Binaryen, WebAssembly ile derlemeyi kolay, hızlı ve verimli yapmayı amaçlar.</Description>
<Archive type="targz" sha1sum="199d0e0e5205332a64e21fc6308bf8e12b6ab831" name="version_96.tar.gz">https://github.com/WebAssembly/binaryen/archive/version_96.tar.gz</Archive>
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>meson</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">b43807a835fc878e5eefcb8b4a18aff62d7f4540.patch</Patch>
</Patches>
<SourceURI>programming/library/binaryen/pspec.xml</SourceURI>
</Source>
<Package>
<Name>binaryen</Name>
<Summary xml:lang="en">Extremely fast hash algorithm</Summary>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="config">/etc/profile.d/binaryen.sh</Path>
</Files>
<AdditionalFiles>
<AdditionalFile target="/etc/profile.d/binaryen.sh" permission="0755" owner="root">binaryen.sh</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>binaryen-devel</Name>
<Summary xml:lang="en">Development files for binaryen</Summary>
<Summary xml:lang="tr">binaryen için geliştirme dosyaları</Summary>
<Description xml:lang="tr">binaryen-devel, binaryen için geliştirme dosyalarını içerir.</Description>
<RuntimeDependencies>
<Dependency release="1">binaryen</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-09-07</Date>
<Version>96</Version>
<Comment>First pisi release.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>glm</Name>
@@ -231391,6 +231514,85 @@ to create header files and sources from protocol files.</Description>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>ethtool</Name>
<Homepage>https://www.kernel.org/pub/software/network/ethtool/</Homepage>
<Packager>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<PartOf>hardware.misc</PartOf>
<Summary xml:lang="en">Utility to examine and tune ethernet-based network interfaces</Summary>
<Summary xml:lang="tr">Ethernet tabanlı ağ arayüzlerini tanımlamak ve ayarlamak için kullanılan bir yazılım</Summary>
<Description xml:lang="en">ethtool is used for querying and changing settings of an ethernet device.</Description>
<Description xml:lang="tr">Ethtool ağ aygıtınızın ayarlarını listelemeye ve bu ayarları değiştirmeye yarar.</Description>
<Archive type="tarxz" sha1sum="b16ecf0ede1635f8a8abac9b8db58b831f408f7b" name="ethtool-5.8.tar.xz">https://mirrors.edge.kernel.org/pub/software/network/ethtool/ethtool-5.8.tar.xz</Archive>
<BuildDependencies>
<Dependency>libmnl-devel</Dependency>
</BuildDependencies>
<SourceURI>hardware/misc/ethtool/pspec.xml</SourceURI>
</Source>
<Package>
<Name>ethtool</Name>
<Summary xml:lang="en">Utility to examine and tune ethernet-based network interfaces</Summary>
<RuntimeDependencies>
<Dependency>libmnl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="bash-completion">/usr/share/bash-completion</Path>
</Files>
</Package>
<History>
<Update release="6">
<Date>2020-09-07</Date>
<Version>5.8</Version>
<Comment>Minor version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="5">
<Date>2020-07-22</Date>
<Version>5.7</Version>
<Comment>Minor version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="4">
<Date>2020-04-28</Date>
<Version>5.4</Version>
<Comment>Patch version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="3">
<Date>2019-11-04</Date>
<Version>5.3</Version>
<Comment>Ver. bump</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="2">
<Date>2016-02-18</Date>
<Version>4.2</Version>
<Comment>Version bump</Comment>
<Name>İbrahim KARAGÜZEL</Name>
<Email>karaguzelibrahim@gmail.com</Email>
</Update>
<Update release="1">
<Date>2010-11-19</Date>
<Version>2.6.36</Version>
<Comment>First release</Comment>
<Name>Onur Küçük</Name>
<Email>onur@pardus.org.tr</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>libftdi</Name>
+1 -1
View File
@@ -1 +1 @@
eb31583b8c1830bb3fca6b9274666fab9981324c
bbe6e394b5310b32e43d4e915c506e11a32cea85
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
d8094f889eeaaf67ca123004e59474594d83dd45
871e54ee6be8ff57704393f376f6bcb6363c1601
@@ -0,0 +1,47 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
shelltools.system('sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure')
autotools.autoreconf("-vif")
pisitools.cflags.add("-Wno-stringop-truncation \
-Wno-maybe-uninitialized")
pisitools.cxxflags.add("-Wno-maybe-uninitialized")
shelltools.makedirs("build")
shelltools.cd("build")
shelltools.system("../configure \
--disable-nls \
--prefix=/build \
--enable-multilib \
--enable-interwork \
--enable-targets=all \
--enable-languages=all \
--with-guile=guile-2.0 \
--with-system-readline \
--with-python=/usr/bin/python \
--with-system-gdbinit=/etc/gdb/gdbinit")
#--disable-rpath
def build():
shelltools.cd("build")
autotools.make()
def install():
shelltools.cd("build")
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
# to avoid conflict rename binaries
pisitools.dodir("/usr/bin")
pisitools.domove("/build/bin/gdb", "/usr/bin/", "gdb-multiarch")
pisitools.removeDir("build")
# 2020-04-09 To Do
# Compile with Python3
+54
View File
@@ -0,0 +1,54 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gdb-multiarch</Name>
<Homepage>http://www.gnu.org/software/gdb/</Homepage>
<Packager>
<Name>Blue DeviL</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<PartOf>programming.debug</PartOf>
<License>GPLv3</License>
<IsA>app::console</IsA>
<Summary>The GNU Debugger for all gdb supported architectures (i386/arm/mips...).</Summary>
<Description>gdb-multiarch, is a split of GDB(GNU Debugger) which is for gdb supported architectures (i386/arm/mips...).</Description>
<Archive sha1sum="356ee474a24bfb2f133894730916557dfea9da2e" type="tarxz">https://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.xz</Archive>
<BuildDependencies>
<Dependency>texinfo</Dependency>
<Dependency>xz-devel</Dependency>
<Dependency>gdb-devel</Dependency>
<Dependency>mpfr-devel</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>guile2.0-devel</Dependency>
<Dependency>readline-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>gdb-multiarch</Name>
<Summary>The GNU Debugger for all gdb supported architectures (i386/arm/mips...).</Summary>
<RuntimeDependencies>
<Dependency>gdb</Dependency>
<Dependency>mpfr</Dependency>
<Dependency>expat</Dependency>
<Dependency>python</Dependency>
<Dependency>guile2.0</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/gdb-multiarch</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-04-09</Date>
<Version>9.2</Version>
<Comment>First pisi release</Comment>
<Name>Blue DeviL</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>gdb-multiarch</Name>
<Summary xml:lang="tr">GDB(GNU Debugger) hata ayıklayıcısının desteklediği tüm mimariler için hata ayıklayıcısı.</Summary>
<Description xml:lang="tr">gdb-multiarch i386/arm/mips gibi gdb'nin desteklediği tüm mimariler için hata ayıklayıcısı ve araçlarını sunar.</Description>
</Source>
</PISI>
+28 -22
View File
@@ -4,41 +4,47 @@
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
pisitools.dosed("config/override.m4", "2.64", "2.69")
shelltools.system('sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure')
autotools.autoreconf("-vfi")
autotools.configure("--with-system-readline \
--with-separate-debug-dir=/usr/lib/debug \
--with-gdb-datadir=/usr/share/gdb \
--with-pythondir=/usr/lib/%s/site-packages \
--disable-nls \
--disable-rpath \
--with-python \
--with-expat" % get.curPYTHON())
shelltools.makedirs("build")
shelltools.cd("build")
shelltools.system("../configure \
--enable-tui \
--prefix=/usr \
--disable-nls \
--with-python \
--disable-rpath \
--with-guile=guile-2.0 \
--with-system-readline \
--enable-source-highlight \
--with-python=/usr/bin/python \
--with-gdb-datadir=/usr/share/gdb \
--with-system-gdbinit=/etc/gdb/gdbinit \
--with-separate-debug-dir=/usr/lib/debug")
def build():
shelltools.cd("build")
autotools.make()
def install():
shelltools.cd("build")
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
for libdel in ["libbfd.a","libopcodes.a"]:
# to prevent conflict with binutils delete these files:
for libdel in ["libbfd.a", "libopcodes.a", "libctf.a", "libctf-nobfd.a"]:
pisitools.remove("/usr/lib/%s" % libdel)
# these are not necessary
#for info in ["bfd","configure","standards"]:
#pisitools.remove("/usr/share/info/%s.info" % info)
pisitools.remove("/usr/share/info/bfd.info")
for hea in ["ansidecl","symcat","dis-asm", "bfd_stdint", "diagnostics", "bfd", "bfdlink", "plugin-api"]:
for hea in ["ansidecl", "bfd", "bfdlink", "bfd_stdint", "diagnostics", "dis-asm", "plugin-api", "symcat", "ctf", "ctf-api"]:
pisitools.remove("/usr/include/%s.h" % hea)
pisitools.dodoc("README*", "MAINTAINERS", "COPYING*", "ChangeLog*")
pisitools.remove("/usr/share/info/bfd.info")
shelltools.cd("..")
pisitools.dodoc("README*", "COPYING*", "ChangeLog*")
+26 -17
View File
@@ -1,51 +1,53 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gdb</Name>
<Homepage>http://www.gnu.org/software/gdb/gdb.html</Homepage>
<Homepage>http://www.gnu.org/software/gdb/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<PartOf>programming.debug</PartOf>
<License>GPLv3</License>
<IsA>app:console</IsA>
<Summary>GNU debugger</Summary>
<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.</Description>
<Archive sha1sum="f45de6af561f0fa0241f0d5085198556fcfd1e5e" type="tarxz">mirrors://gnu/gdb/gdb-8.3.tar.xz</Archive>
<Archive sha1sum="356ee474a24bfb2f133894730916557dfea9da2e" type="tarxz">https://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.xz</Archive>
<BuildDependencies>
<Dependency>xz-devel</Dependency>
<Dependency>texinfo</Dependency>
<Dependency>guile-devel</Dependency>
<Dependency>xz-devel</Dependency>
<Dependency>mpfr-devel</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>readline-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>guile2.0-devel</Dependency>
<Dependency>readline-devel</Dependency>
<Dependency>source-highlight-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>gdb</Name>
<Summary>GNU debugger</Summary>
<RuntimeDependencies>
<Dependency>xz</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>guile</Dependency>
<Dependency>expat</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>python</Dependency>
<Dependency>readline</Dependency>
<Dependency>ncurses</Dependency>
<Dependency>guile2.0</Dependency>
<Dependency>readline</Dependency>
<Dependency>source-highlight</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc/gdb</Path>
<Path fileType="data">/usr/share/gdb</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/usr/share/gdb</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="doc">/usr/share/doc/gdb</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man1/gstack.1">gstack.1</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
@@ -60,6 +62,13 @@
</Package>
<History>
<Update release="7">
<Date>2020-09-07</Date>
<Version>9.2</Version>
<Comment>Major version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="6">
<Date>2020-01-07</Date>
<Version>8.3</Version>
@@ -103,4 +112,4 @@
<Email>ertugrulerata@gmail.com</Email>
</Update>
</History>
</PISI>
</PISI>
+3 -1
View File
@@ -2,8 +2,8 @@
<PISI>
<Source>
<Name>gdb</Name>
<Description xml:lang="tr">GDB, GNU Proje hata ayıklama aracı, çalışır durumdaki başka bir programın `içinde' olan biteni görmenizi, veya başka bir programın çöktüğü anda ne yapıyor olduğunu bilmenizi sağlar.</Description>
<Summary xml:lang="tr">GNU hata ayıklayıcısı</Summary>
<Description xml:lang="tr">GDB, GNU Proje hata ayıklama aracı, çalışır durumdaki başka bir programın `içinde' olan biteni görmenizi, veya başka bir programın çöktüğü anda ne yapıyor olduğunu bilmenizi sağlar.</Description>
<Summary xml:lang="es">Depurador GNU</Summary>
<Description xml:lang="es">GDB, el depurador del proyecto GNU permite ver lo que está pasando 'en el interior de' otro programa mientras ejecuta -- o lo que estaba haciendo cuando quedó colgado.</Description>
</Source>
@@ -11,6 +11,8 @@
<Package>
<Name>gdb-devel</Name>
<Summary xml:lang="tr">gdb için geliştirme dosyaları</Summary>
<Description xml:lang="tr">gdb-devel, gdb için geliştirme dosyalarını içerir.</Description>
<Summary xml:lang="en">Development files for gdb</Summary>
<Description xml:lang="tr">gdb-devel, provides development files for gdb.</Description>
</Package>
</PISI>
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import mesontools
def setup():
cmaketools.configure("-Bbuild \
-GNinja \
-DCMAKE_INSTALL_PREFIX=/usr")
def build():
mesontools.build()
def install():
mesontools.install()
pisitools.dodoc("LICENSE", "README*")
@@ -0,0 +1,193 @@
From b43807a835fc878e5eefcb8b4a18aff62d7f4540 Mon Sep 17 00:00:00 2001
From: Alon Zakai <azakai@google.com>
Date: Wed, 19 Aug 2020 14:55:46 -0700
Subject: [PATCH] wasm-emscripten-finalize: Make EM_ASM modifications optional
(#3044)
wasm-emscripten-finalize renames EM_ASM calls to have the signature in
the name. This isn't actually useful - emscripten doesn't benefit from that. I
think it was optimized in fastcomp, and in upstream we copied the general
form but not the optimizations, and then EM_JS came along which is
easier to optimize anyhow.
This PR makes those changes optional: when not doing them, it just
leaves the calls as they are. Emscripten will need some changes to
handle that, but those are simple.
For convenience this adds a flag to "minimize wasm changes". The idea
is that this flag avoids needing a double-roll or other inconvenience
as the changes need to happen in tandem on the emscripten side.
The same flag can be reused for later changes similar to this one.
When they are all done we can remove the flag. (Note how the code
ifdefed by the flag can be removed once we no longer need the old
way of doing things - that is, the new approach is simpler on the
binaryen side).
See #3043
---
src/tools/wasm-emscripten-finalize.cpp | 11 +++++++
src/wasm-emscripten.h | 4 +++
src/wasm/wasm-emscripten.cpp | 40 +++++++++++++++++---------
3 files changed, 42 insertions(+), 13 deletions(-)
diff --git a/src/tools/wasm-emscripten-finalize.cpp b/src/tools/wasm-emscripten-finalize.cpp
index ce1da4c9e1..960c6870cf 100644
--- a/src/tools/wasm-emscripten-finalize.cpp
+++ b/src/tools/wasm-emscripten-finalize.cpp
@@ -56,6 +56,7 @@ int main(int argc, const char* argv[]) {
bool checkStackOverflow = false;
uint64_t globalBase = INVALID_BASE;
bool standaloneWasm = false;
+ bool minimizeWasmChanges = false;
ToolOptions options("wasm-emscripten-finalize",
"Performs Emscripten-specific transforms on .wasm files");
@@ -163,6 +164,15 @@ int main(int argc, const char* argv[]) {
[&standaloneWasm](Options* o, const std::string&) {
standaloneWasm = true;
})
+ .add("--minimize-wasm-changes",
+ "",
+ "Modify the wasm as little as possible. This is useful during "
+ "development as we reduce the number of changes to the wasm, as it "
+ "lets emscripten control how much modifications to do.",
+ Options::Arguments::Zero,
+ [&minimizeWasmChanges](Options* o, const std::string&) {
+ minimizeWasmChanges = true;
+ })
.add_positional("INFILE",
Options::Arguments::One,
[&infile](Options* o, const std::string& argument) {
@@ -222,6 +232,7 @@ int main(int argc, const char* argv[]) {
EmscriptenGlueGenerator generator(wasm);
generator.setStandalone(standaloneWasm);
generator.setSideModule(sideModule);
+ generator.setMinimizeWasmChanges(minimizeWasmChanges);
generator.fixInvokeFunctionNames();
diff --git a/src/wasm-emscripten.h b/src/wasm-emscripten.h
index 395c76a160..fe8b8ed36a 100644
--- a/src/wasm-emscripten.h
+++ b/src/wasm-emscripten.h
@@ -35,6 +35,9 @@ class EmscriptenGlueGenerator {
void setStandalone(bool standalone_) { standalone = standalone_; }
void setSideModule(bool sideModule_) { sideModule = sideModule_; }
+ void setMinimizeWasmChanges(bool minimizeWasmChanges_) {
+ minimizeWasmChanges = minimizeWasmChanges_;
+ }
Function* generateMemoryGrowthFunction();
Function* generateAssignGOTEntriesFunction();
@@ -71,6 +74,7 @@ class EmscriptenGlueGenerator {
bool useStackPointerGlobal;
bool standalone;
bool sideModule;
+ bool minimizeWasmChanges;
// Used by generateDynCallThunk to track all the dynCall functions created
// so far.
std::unordered_set<Signature> sigs;
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp
index e4664e645c..f4da0e6e7a 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -320,6 +320,7 @@ std::string proxyingSuffix(Proxying proxy) {
struct AsmConstWalker : public LinearExecutionWalker<AsmConstWalker> {
Module& wasm;
+ bool minimizeWasmChanges;
std::vector<Address> segmentOffsets; // segment index => address offset
struct AsmConst {
@@ -334,8 +335,9 @@ struct AsmConstWalker : public LinearExecutionWalker<AsmConstWalker> {
// last sets in the current basic block, per index
std::map<Index, LocalSet*> sets;
- AsmConstWalker(Module& _wasm)
- : wasm(_wasm), segmentOffsets(getSegmentOffsets(wasm)) {}
+ AsmConstWalker(Module& _wasm, bool minimizeWasmChanges)
+ : wasm(_wasm), minimizeWasmChanges(minimizeWasmChanges),
+ segmentOffsets(getSegmentOffsets(wasm)) {}
void noteNonLinear(Expression* curr);
@@ -426,7 +428,9 @@ void AsmConstWalker::visitCall(Call* curr) {
int32_t address = value->value.geti32();
auto code = codeForConstAddr(wasm, segmentOffsets, address);
auto& asmConst = createAsmConst(address, code, sig, importName);
- fixupName(curr->target, baseSig, asmConst.proxy);
+ if (!minimizeWasmChanges) {
+ fixupName(curr->target, baseSig, asmConst.proxy);
+ }
}
Proxying AsmConstWalker::proxyType(Name name) {
@@ -439,6 +443,9 @@ Proxying AsmConstWalker::proxyType(Name name) {
}
void AsmConstWalker::visitTable(Table* curr) {
+ if (minimizeWasmChanges) {
+ return;
+ }
for (auto& segment : curr->segments) {
for (auto& name : segment.data) {
auto* func = wasm.getFunction(name);
@@ -515,24 +522,30 @@ void AsmConstWalker::addImports() {
}
}
-AsmConstWalker fixEmAsmConstsAndReturnWalker(Module& wasm) {
+static AsmConstWalker fixEmAsmConstsAndReturnWalker(Module& wasm,
+ bool minimizeWasmChanges) {
// Collect imports to remove
// This would find our generated functions if we ran it later
std::vector<Name> toRemove;
- for (auto& import : wasm.functions) {
- if (import->imported() && import->base.hasSubstring(EM_ASM_PREFIX)) {
- toRemove.push_back(import->name);
+ if (!minimizeWasmChanges) {
+ for (auto& import : wasm.functions) {
+ if (import->imported() && import->base.hasSubstring(EM_ASM_PREFIX)) {
+ toRemove.push_back(import->name);
+ }
}
}
// Walk the module, generate _sig versions of EM_ASM functions
- AsmConstWalker walker(wasm);
+ AsmConstWalker walker(wasm, minimizeWasmChanges);
walker.process();
- // Remove the base functions that we didn't generate
- for (auto importName : toRemove) {
- wasm.removeFunction(importName);
+ if (!minimizeWasmChanges) {
+ // Remove the base functions that we didn't generate
+ for (auto importName : toRemove) {
+ wasm.removeFunction(importName);
+ }
}
+
return walker;
}
@@ -754,7 +767,8 @@ std::string EmscriptenGlueGenerator::generateEmscriptenMetadata(
std::stringstream meta;
meta << "{\n";
- AsmConstWalker emAsmWalker = fixEmAsmConstsAndReturnWalker(wasm);
+ AsmConstWalker emAsmWalker =
+ fixEmAsmConstsAndReturnWalker(wasm, minimizeWasmChanges);
// print
commaFirst = true;
@@ -810,7 +824,7 @@ std::string EmscriptenGlueGenerator::generateEmscriptenMetadata(
commaFirst = true;
ModuleUtils::iterImportedFunctions(wasm, [&](Function* import) {
if (emJsWalker.codeByName.count(import->base.str) == 0 &&
- !import->base.startsWith(EM_ASM_PREFIX.str) &&
+ (minimizeWasmChanges || !import->base.startsWith(EM_ASM_PREFIX.str)) &&
!import->base.startsWith("invoke_")) {
if (declares.insert(import->base.str).second) {
meta << nextElement() << '"' << import->base.str << '"';
@@ -0,0 +1,3 @@
#!/bin/sh
export BINARYEN_ROOT="/usr"
+61
View File
@@ -0,0 +1,61 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>binaryen</Name>
<Homepage>https://github.com/WebAssembly/binaryen</Homepage>
<Packager>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<PartOf>programming.library</PartOf>
<License>Apache2.0</License>
<IsA>app:console</IsA>
<IsA>library</IsA>
<Summary>Compiler infrastructure and toolchain library for WebAssembly</Summary>
<Description>Binaryen is a compiler and toolchain infrastructure library for WebAssembly, written in C++. It aims to make compiling to WebAssembly easy, fast, and effective.</Description>
<Archive sha1sum="199d0e0e5205332a64e21fc6308bf8e12b6ab831" type="targz">https://github.com/WebAssembly/binaryen/archive/version_96.tar.gz</Archive>
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>meson</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">b43807a835fc878e5eefcb8b4a18aff62d7f4540.patch</Patch>
</Patches>
</Source>
<Package>
<Name>binaryen</Name>
<Summary>Extremely fast hash algorithm</Summary>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="config">/etc/profile.d/binaryen.sh</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" target="/etc/profile.d/binaryen.sh" permission="0755">binaryen.sh</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>binaryen-devel</Name>
<Summary>Development files for binaryen</Summary>
<RuntimeDependencies>
<Dependency release="current">binaryen</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-09-07</Date>
<Version>96</Version>
<Comment>First pisi release.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>binaryen</Name>
<Summary xml:lang="tr">C++ ile WebAssembly için yazılış derleyici altyapısı ve araç zinciri.</Summary>
<Description xml:lang="tr">binaryen, C++ ile WebAssembly için yazılış derleyici altyapısı ve araç zinciri sunar. Binaryen, WebAssembly ile derlemeyi kolay, hızlı ve verimli yapmayı amaçlar.</Description>
</Source>
<Package>
<Name>binaryen-devel</Name>
<Summary xml:lang="tr">binaryen için geliştirme dosyaları</Summary>
<Description xml:lang="tr">binaryen-devel, binaryen için geliştirme dosyalarını içerir.</Description>
</Package>
</PISI>