diff options
author | Jiri Pospisil | 2024-02-02 21:29:05 +0000 |
---|---|---|
committer | Jiri Pospisil | 2024-02-02 21:33:18 +0000 |
commit | d39505a6da0318f269b2431961e263583f40b596 (patch) | |
tree | 6e5143207cb8706fb0784e39955a3111d0e79c24 | |
parent | e2cbe9646c33b20772ef02a7d56bc12db7666ae9 (diff) | |
download | aur-cbmc.tar.gz |
v5.95.1
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | CHANGELOG | 11 | ||||
-rw-r--r-- | PKGBUILD | 86 |
4 files changed, 79 insertions, 44 deletions
@@ -1,22 +1,18 @@ pkgbase = cbmc - pkgdesc = Bounded Model Checking for ANSI-C - pkgver = 5.11 + pkgdesc = C Bounded Model Checker + pkgver = 5.95.1 pkgrel = 1 - url = http://www.cprover.org/cbmc/ - arch = i686 + url = https://diffblue.github.io + changelog = CHANGELOG arch = x86_64 - license = custom - makedepends = flex - makedepends = bison - makedepends = make - makedepends = patch - makedepends = perl-libwww + license = custom:4-clause BSD license provides = cbmc conflicts = cbmc conflicts = cbmc-git conflicts = cbmc-bin - source = https://github.com/diffblue/cbmc/archive/cbmc-5.11.tar.gz - sha256sums = 5c3e621c07ff9903beff99b2b91645d82fbb31d5e761384a7c19ef022ffa2c85 + source = https://github.com/diffblue/cbmc/archive/refs/tags/cbmc-5.95.1.tar.gz + source = https://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz + b2sums = 463c7a815caf5bc8f9ecae9f6e144a88003e3d8656488d95618f34630096df978a1aafb1db37be4cde86b843bb1d708b702c918bee7066364f2b69b44c87d3d1 + b2sums = de9bded4bd8a17ec157af486c0572d47429cd0f59bdd57e1238d3c031d7406dc4e305e5e7368898c991e0184ed845bae21717f10a8ba36ea6b60aac0fb84dc71 pkgname = cbmc - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..dec7332cfcc2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +src/ +pkg/ +*.log diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 000000000000..2be7beb5036b --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,11 @@ +# CBMC 5.95.1 + +What's Changed: + +- Multiplication encoding: cleanup, Dadda, data by @tautschnig in https://github.com/diffblue/cbmc/pull/7984 + +Bug Fixes: + +- Remove extraneous y parameter from calls to exp and logl by @NlightNFotis in https://github.com/diffblue/cbmc/pull/7985 + +Full Changelog: https://github.com/diffblue/cbmc/compare/cbmc-5.95.0...cbmc-5.95.1 @@ -1,43 +1,67 @@ -# Maintainer: Python Shell <pythonshell@yeah.net> +# Maintainer: Jiri Pospisil <jiri@jpospisil.com> +# Contributor: Python Shell <pythonshell@yeah.net> pkgname=cbmc -pkgver=5.11 +pkgver=5.95.1 pkgrel=1 -pkgdesc="Bounded Model Checking for ANSI-C" -arch=('i686' 'x86_64') -url="http://www.cprover.org/cbmc/" -license=('custom') -# No longer need subversion -makedepends=('flex' 'bison' 'make' 'patch' 'perl-libwww') +pkgdesc='C Bounded Model Checker' +arch=('x86_64') +url='https://diffblue.github.io' +license=('custom:4-clause BSD license') provides=('cbmc') conflicts=('cbmc' 'cbmc-git' 'cbmc-bin') -source=("https://github.com/diffblue/cbmc/archive/cbmc-5.11.tar.gz") -sha256sums=('5c3e621c07ff9903beff99b2b91645d82fbb31d5e761384a7c19ef022ffa2c85') +changelog=CHANGELOG +_minisatver=2.2.1 +source=( + "https://github.com/diffblue/cbmc/archive/refs/tags/cbmc-$pkgver.tar.gz" + "https://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_$_minisatver.orig.tar.gz") +b2sums=('463c7a815caf5bc8f9ecae9f6e144a88003e3d8656488d95618f34630096df978a1aafb1db37be4cde86b843bb1d708b702c918bee7066364f2b69b44c87d3d1' + 'de9bded4bd8a17ec157af486c0572d47429cd0f59bdd57e1238d3c031d7406dc4e305e5e7368898c991e0184ed845bae21717f10a8ba36ea6b60aac0fb84dc71') -_pkg_src_root="${pkgname}-${pkgname}-${pkgver}" +prepare() { + mv "minisat2-$_minisatver" "minisat-$_minisatver" + mv "minisat-$_minisatver" "$srcdir/cbmc-cbmc-$pkgver" + + cd "$srcdir/cbmc-cbmc-$pkgver/minisat-$_minisatver" + patch -p1 < "../scripts/minisat-$_minisatver-patch" +} build() { - cd "${srcdir}/${_pkg_src_root}/src/" - # Makefile typo fix - # No longer typo in 5.8, 20171201 - #sed -i '/libzip_1.1.2.orig/a\\t\@mv libzip_1.1.2.orig.tar.gz libzip-1.1.2.tar.gz' Makefile - # Remove -Werror in config.inc::CXXFLAGS - sed -i '/ CXXFLAGS += -Wall -pedantic -Werror/c\ CXXFLAGS += -Wall -pedantic' config.inc - make minisat2-download - # No longer need these two - #make libzip-download zlib-download - #make libzip-build - make + make -C "$srcdir/cbmc-cbmc-$pkgver/src" } package() { - install -D "${srcdir}/${_pkg_src_root}/src/cbmc/cbmc"\ - "${pkgdir}/usr/bin/cbmc" - install -D "${srcdir}/${_pkg_src_root}/src/goto-cc/goto-cc"\ - "${pkgdir}/usr/bin/goto-cc" - install -D "${srcdir}/${_pkg_src_root}/src/goto-instrument/goto-instrument"\ - "${pkgdir}/usr/bin/goto-instrument" - install -D -m644\ - "${srcdir}/${_pkg_src_root}/LICENSE"\ - "${pkgdir}/usr/share/licenses/cbmc/LICENSE" + cd "$srcdir/cbmc-cbmc-$pkgver/src" + + local -a binaries=( + cbmc/cbmc + cprover/cprover + crangler/crangler + goto-analyzer/goto-analyzer + goto-cc/goto-cc + goto-diff/goto-diff + goto-harness/goto-harness + goto-inspect/goto-inspect + goto-instrument/goto-instrument + goto-synthesizer/goto-synthesizer + memory-analyzer/memory-analyzer + solvers/smt2_solver + symtab2gb/symtab2gb + ) + install -Dm755 -t "$pkgdir/usr/bin" "${binaries[@]}" + + ln -s "goto-cc" "$pkgdir/usr/bin/goto-gcc" + ln -s "goto-cc" "$pkgdir/usr/bin/goto-ld" + + cd .. + + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" "LICENSE" + + for binary in "${binaries[@]}"; do + local name="doc/man/${binary##*/}.1" + [[ -e "$name" ]] && install -Dm644 -t "$pkgdir/usr/share/man/man1" $name + done + + ln -s "goto-cc.1.gz" "$pkgdir/usr/share/man/man1/goto-gcc.1.gz" + ln -s "goto-cc.1.gz" "$pkgdir/usr/share/man/man1/goto-ld.1.gz" } |