[arch-commits] Commit in valgrind/repos (3 files)
Date: Sunday, May 10, 2020 @ 18:07:36 Author: bpiotrowski Revision: 383125 archrelease: copy trunk to staging-x86_64 Added: valgrind/repos/staging-x86_64/ valgrind/repos/staging-x86_64/PKGBUILD (from rev 383124, valgrind/trunk/PKGBUILD) valgrind/repos/staging-x86_64/valgrind-3.7.0-respect-flags.patch (from rev 383124, valgrind/trunk/valgrind-3.7.0-respect-flags.patch) + PKGBUILD | 107 +++ valgrind-3.7.0-respect-flags.patch | 13 2 files changed, 120 insertions(+) Copied: valgrind/repos/staging-x86_64/PKGBUILD (from rev 383124, valgrind/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2020-05-10 18:07:36 UTC (rev 383125) @@ -0,0 +1,107 @@ +# Maintainer: Levente Polyak +# Contributor: Dan McGee +# Contributor: Allan McRae + +pkgname=valgrind +_commit=d772e25995c3400eecf2b6070e0bf3411447c3d1 +pkgver=3.15.0+269+gd772e2599 +pkgrel=1 +pkgdesc='Tool to help find memory-management problems in programs' +arch=('x86_64') +license=('GPL') +url='http://valgrind.org/' +depends=('glibc' 'perl') +makedepends=('gdb' 'lib32-glibc' 'lib32-gcc-libs' 'git' 'docbook-xml' + 'docbook-xsl' 'docbook-sgml') +checkdepends=('procps-ng') +optdepends=('lib32-glibc: 32-bit ABI support') +provides=('valgrind-multilib') +replaces=('valgrind-multilib') +options=('!emptydirs' '!strip') +source=("git+https://repo.or.cz/valgrind.git#commit=$_commit"; +valgrind-3.7.0-respect-flags.patch) +md5sums=('SKIP' + '470d9881870aacc210b7a6efb64cc9a9') +sha512sums=('SKIP' + 'e0cec39381cefeca09ae4794cca309dfac7c8693e6315e137e64f5c33684598726d41cfbb4edf764fe985503b13ff596184ca5fc32b159d500ec092e4cf8838c') + +pkgver() { + cd valgrind + git describe --tags --always|sed -e 's|-|+|g' -e 's|VALGRIND_||g' -e 's|_|.|g' +} + +prepare() { + cd valgrind + patch -Np1 < ../valgrind-3.7.0-respect-flags.patch + sed -i 's|sgml/docbook/xsl-stylesheets|xml/docbook/xsl-stylesheets-1.79.2|' docs/Makefile.am + + autoreconf -ifv +} + +build() { + # valgrind does not like some of our flags + CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/} + CFLAGS=${CFLAGS/-fno-plt/} + CXXFLAGS=${CXXFLAGS/-fno-plt/} + + cd valgrind + ./configure \ +--prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--libexecdir=/usr/lib \ +--mandir=/usr/share/man + make + make -C docs man-pages +} + +check() { + cd valgrind + + # Make sure a basic binary runs. There should be no errors. + ./vg-in-place --error-exitcode=1 /bin/true + + # Make sure no extra FLAGS leak through, the testsuite + # sets all flags necessary. See also configure above. + make check CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS= + + # # XXX: run full regtest but only report issues some tests fail duo + # # current toolchain and expectations, take a manual look if its fine + # echo "===TESTING===" + # make regtest || : + + # # Make sure test failures show up in build.log + # # Gather up the diffs (at most the first 20 lines for each one) + # local f max_lines=20 diff_files=() + # mapfile -d '' diff_files < <(find . -name '*.diff' -print0 | sort -z) + # if (( ${#diff_files[@]} == 0 )); then + # echo "Congratulations, all tests passed!" + # else + # warning "Some tests failed!" + # for f in "${diff_files[@]}"; do + # echo "=" + # echo "${f}" + # echo "=" + # if (( $(wc -l < "${f}") < ${max_lines} )); then + # cat "${f}" + # else + # head -n ${max_lines} "${f}" + # echo "" + # fi + # done | tee diffs + # fi + # echo "===END TESTING===" +} + +package() { + cd valgrind + make DESTDIR="${pkgdir}" install + + install -Dm644 docs/*.1 -t "$pkgdir/usr/share/man/man1" + + if check_option 'debug' n; then +find "${pkgdir}/usr/bin" -type f -executable -exec strip $STRIP_BINARIES {} + || : + fi +} + +# vim: ts=2 sw=2 et: Copied: valgrind/repos/staging-x86_64/valgrind-3.7.0-respect-flags.patch (from rev 383124, valgrind/trunk/valgrind-3.7.0-respect-flags.patch) === --- staging-x86_64/valgrind-3.7.0-respect-flags.patch (rev 0) +++ staging-x86_64/valgrind-3.7.0-respect-flags.patch 2020-05-10 18:07:36 UTC (rev 383125) @@ -0,0 +1,13 @@ +diff -Naur valgrind-3.7.0.orig//mpi/Makefile.am valgrind-3.7.0/mpi/Makefile.am +--- valgrind-3.7.0.orig/mpi/Makefile.am2011-10-26 17:24:23.0 -0400 valgrind-3.7.0/mpi/Makefile.am 2011-11-10 16:03:14.0 -0500 +@@ -7,9 +7,6 @@ + CC = $(MPI_CC) + DEFS = + DEFAULT_INCLUDES = +-CPPFLAGS = +-CFLAGS = +-LDFLAGS = + + EXTRA_DIS
[arch-commits] Commit in valgrind/repos (3 files)
Date: Thursday, October 3, 2019 @ 15:33:43 Author: heftig Revision: 363700 archrelease: copy trunk to staging-x86_64 Added: valgrind/repos/staging-x86_64/ valgrind/repos/staging-x86_64/PKGBUILD (from rev 363699, valgrind/trunk/PKGBUILD) valgrind/repos/staging-x86_64/valgrind-3.7.0-respect-flags.patch (from rev 363699, valgrind/trunk/valgrind-3.7.0-respect-flags.patch) + PKGBUILD | 107 +++ valgrind-3.7.0-respect-flags.patch | 13 2 files changed, 120 insertions(+) Copied: valgrind/repos/staging-x86_64/PKGBUILD (from rev 363699, valgrind/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2019-10-03 15:33:43 UTC (rev 363700) @@ -0,0 +1,107 @@ +# Maintainer: Levente Polyak +# Contributor: Dan McGee +# Contributor: Allan McRae + +pkgname=valgrind +_commit=608cb11914e5f23d0fc12c61dad29c5c7952a1de # tags/VALGRIND_3_15_0^0 +pkgver=3.15.0 +pkgrel=1 +pkgdesc='Tool to help find memory-management problems in programs' +arch=('x86_64') +license=('GPL') +url='http://valgrind.org/' +depends=('glibc' 'perl') +makedepends=('gdb' 'lib32-glibc' 'lib32-gcc-libs' 'git' 'docbook-xml' + 'docbook-xsl' 'docbook-sgml') +checkdepends=('procps-ng') +optdepends=('lib32-glibc: 32-bit ABI support') +provides=('valgrind-multilib') +replaces=('valgrind-multilib') +options=('!emptydirs' '!strip') +source=("git+https://repo.or.cz/valgrind.git#commit=$_commit"; +valgrind-3.7.0-respect-flags.patch) +md5sums=('SKIP' + '470d9881870aacc210b7a6efb64cc9a9') +sha512sums=('SKIP' + 'e0cec39381cefeca09ae4794cca309dfac7c8693e6315e137e64f5c33684598726d41cfbb4edf764fe985503b13ff596184ca5fc32b159d500ec092e4cf8838c') + +pkgver() { + cd valgrind + git describe --tags --always|sed -e 's|-|+|g' -e 's|VALGRIND_||g' -e 's|_|.|g' +} + +prepare() { + cd valgrind + patch -Np1 < ../valgrind-3.7.0-respect-flags.patch + sed -i 's|sgml/docbook/xsl-stylesheets|xml/docbook/xsl-stylesheets-1.79.2|' docs/Makefile.am + + autoreconf -ifv +} + +build() { + # valgrind does not like some of our flags + CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/} + CFLAGS=${CFLAGS/-fno-plt/} + CXXFLAGS=${CXXFLAGS/-fno-plt/} + + cd valgrind + ./configure \ +--prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--libexecdir=/usr/lib \ +--mandir=/usr/share/man + make + make -C docs man-pages +} + +check() { + cd valgrind + + # Make sure a basic binary runs. There should be no errors. + ./vg-in-place --error-exitcode=1 /bin/true + + # Make sure no extra FLAGS leak through, the testsuite + # sets all flags necessary. See also configure above. + make check CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS= + + # XXX: run full regtest but only report issues some tests fail duo + # current toolchain and expectations, take a manual look if its fine + echo "===TESTING===" + make regtest || : + + # Make sure test failures show up in build.log + # Gather up the diffs (at most the first 20 lines for each one) + local f max_lines=20 diff_files=() + mapfile -d '' diff_files < <(find . -name '*.diff' -print0 | sort -z) + if (( ${#diff_files[@]} == 0 )); then +echo "Congratulations, all tests passed!" + else +warning "Some tests failed!" +for f in "${diff_files[@]}"; do +echo "=" +echo "${f}" +echo "=" +if (( $(wc -l < "${f}") < ${max_lines} )); then + cat "${f}" +else + head -n ${max_lines} "${f}" + echo "" +fi +done | tee diffs + fi + echo "===END TESTING===" +} + +package() { + cd valgrind + make DESTDIR="${pkgdir}" install + + install -Dm644 docs/*.1 -t "$pkgdir/usr/share/man/man1" + + if check_option 'debug' n; then +find "${pkgdir}/usr/bin" -type f -executable -exec strip $STRIP_BINARIES {} + || : + fi +} + +# vim: ts=2 sw=2 et: Copied: valgrind/repos/staging-x86_64/valgrind-3.7.0-respect-flags.patch (from rev 363699, valgrind/trunk/valgrind-3.7.0-respect-flags.patch) === --- staging-x86_64/valgrind-3.7.0-respect-flags.patch (rev 0) +++ staging-x86_64/valgrind-3.7.0-respect-flags.patch 2019-10-03 15:33:43 UTC (rev 363700) @@ -0,0 +1,13 @@ +diff -Naur valgrind-3.7.0.orig//mpi/Makefile.am valgrind-3.7.0/mpi/Makefile.am +--- valgrind-3.7.0.orig/mpi/Makefile.am2011-10-26 17:24:23.0 -0400 valgrind-3.7.0/mpi/Makefile.am 2011-11-10 16:03:14.0 -0500 +@@ -7,9 +7,6 @@ + CC = $(MPI_CC) + DEFS = + DEFAULT_INCLUDES = +-CPPFLAGS = +-CFLAGS = +-LDFLAGS = + + EXTRA_DIST = \ + mpiwrap_type_test.c
[arch-commits] Commit in valgrind/repos (3 files)
Date: Wednesday, October 17, 2018 @ 07:43:54 Author: anthraxx Revision: 336797 archrelease: copy trunk to testing-x86_64 Added: valgrind/repos/testing-x86_64/ valgrind/repos/testing-x86_64/PKGBUILD (from rev 336796, valgrind/trunk/PKGBUILD) valgrind/repos/testing-x86_64/valgrind-3.7.0-respect-flags.patch (from rev 336796, valgrind/trunk/valgrind-3.7.0-respect-flags.patch) + PKGBUILD | 108 +++ valgrind-3.7.0-respect-flags.patch | 13 2 files changed, 121 insertions(+) Copied: valgrind/repos/testing-x86_64/PKGBUILD (from rev 336796, valgrind/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2018-10-17 07:43:54 UTC (rev 336797) @@ -0,0 +1,108 @@ +# Maintainer: Levente Polyak +# Contributor: Dan McGee +# Contributor: Allan McRae + +pkgname=valgrind +_commit=3a3000290b4af0e8ef9880293c54659a6819ba78 +pkgver=3.14.0 +pkgrel=1 +pkgdesc='Tool to help find memory-management problems in programs' +arch=('x86_64') +license=('GPL') +url='http://valgrind.org/' +depends=('glibc' 'perl') +makedepends=('gdb' 'openmpi' 'lib32-glibc' 'lib32-gcc-libs' 'git' 'docbook-xml' + 'docbook-xsl' 'docbook-sgml') +checkdepends=('procps-ng') +optdepends=('openmpi: MPI support' +'lib32-glibc: 32-bit ABI support') +provides=('valgrind-multilib') +replaces=('valgrind-multilib') +options=('!emptydirs' '!strip') +source=("git+http://repo.or.cz/valgrind.git#commit=$_commit"; +valgrind-3.7.0-respect-flags.patch) +md5sums=('SKIP' + '470d9881870aacc210b7a6efb64cc9a9') +sha512sums=('SKIP' + 'e0cec39381cefeca09ae4794cca309dfac7c8693e6315e137e64f5c33684598726d41cfbb4edf764fe985503b13ff596184ca5fc32b159d500ec092e4cf8838c') + +pkgver() { + cd valgrind + git describe --tags --always|sed -e 's|-|+|g' -e 's|VALGRIND_||g' -e 's|_|.|g' +} + +prepare() { + cd valgrind + patch -Np1 < ../valgrind-3.7.0-respect-flags.patch + sed -i 's|sgml/docbook/xsl-stylesheets|xml/docbook/xsl-stylesheets-1.79.2|' docs/Makefile.am + + autoreconf -ifv +} + +build() { + # valgrind does not like stack protector flags + CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/} + CFLAGS=${CFLAGS/-fstack-protector-strong -fno-plt/} + CXXFLAGS=${CXXFLAGS/-fstack-protector-strong -fno-plt/} + + cd valgrind + ./configure \ +--prefix=/usr \ +--mandir=/usr/share/man \ +--with-mpicc=mpicc + make + make -C docs man-pages +} + +check() { + cd valgrind + + # Make sure a basic binary runs. There should be no errors. + ./vg-in-place --error-exitcode=1 /bin/true + + # Make sure no extra CFLAGS, CXXFLAGS or LDFLAGS leak through, + # the testsuite sets all flags necessary. See also configure above. + make check CFLAGS="" CXXFLAGS="" LDFLAGS="" + + # XXX: run full regtest but only report issues some tests fail duo + # current toolchain and expectations, take a manual look if its fine + echo ===TESTING=== + make regtest || : + + # Make sure test failures show up in build.log + # Gather up the diffs (at most the first 20 lines for each one) + MAX_LINES=20 + diff_files=$(find . -name '*.diff' | sort) + if [ z"${diff_files}" = z ] ; then +echo "Congratulations, all tests passed!" + else +warning "Some tests failed!" +for f in ${diff_files} ; do +echo "=" >> diffs +echo "${f}" >> diffs +echo "=" >> diffs +if [ "$(wc -l < "${f}")" -le ${MAX_LINES} ] ; then + cat "${f}" >> diffs +else + head -n ${MAX_LINES} "${f}">> diffs + echo "" >> diffs +fi +done + fi + cat diffs + echo ===END TESTING=== +} + +package() { + cd valgrind + make DESTDIR="${pkgdir}" install + + install -d "$pkgdir/usr/share/man/man1" + install -m644 docs/*.1 -t "$pkgdir/usr/share/man/man1" + + if check_option 'debug' n; then +find "${pkgdir}/usr/bin" -type f -executable -exec strip $STRIP_BINARIES {} + || true + fi +} + +# vim: ts=2 sw=2 et: Copied: valgrind/repos/testing-x86_64/valgrind-3.7.0-respect-flags.patch (from rev 336796, valgrind/trunk/valgrind-3.7.0-respect-flags.patch) === --- testing-x86_64/valgrind-3.7.0-respect-flags.patch (rev 0) +++ testing-x86_64/valgrind-3.7.0-respect-flags.patch 2018-10-17 07:43:54 UTC (rev 336797) @@ -0,0 +1,13 @@ +diff -Naur valgrind-3.7.0.orig//mpi/Makefile.am valgrind-3.7.0/mpi/Makefile.am +--- valgrind-3.7.0.orig/mpi/Makefile.am2011-10-26 17:24:23.0 -0400 valgrind-3.7.0/m