[opam-devel] Fwd: AUR Comment for aspcud-svn

Roland Kaminski kaminski at cs.uni-potsdam.de
Wed Sep 10 11:30:10 BST 2014


Hi, I fixed this in trunk. Thanks for reporting. -Roland

On Wednesday, September 10, 2014 11:00:44 AM Vincent B. wrote:
> -------- Forwarded Message --------
> Subject: AUR Comment for aspcud-svn
> Date: Tue,  9 Sep 2014 18:10:17 +0000 (UTC)
> From: notify at aur.archlinux.org
> Reply-To: noreply at aur.archlinux.org
> To: undisclosed-recipients: ;
> 
> from https://aur.archlinux.org/pkgbase/aspcud-svn/
> zhenya1007 wrote:
> 
> From af83aff2dae812bdcf8086b5ef642c52186abd86 Mon Sep 17 00:00:00
> 2001
> From: Evgeny Roubinchtein <zhenya1007 at gmail.com>
> Date: Tue, 9 Sep 2014 10:53:36 -0700
> Subject: [PATCH] A compilation fix.
> 
> Needed this patch to get the source to compile with.
> boost 1.56.0-1
> gcc 4.9.1-1
> ---
>  aspcud-svn/PKGBUILD             | 13 ++++++++++---
>  aspcud-svn/dependency.cpp.patch | 11 +++++++++++
>  2 files changed, 21 insertions(+), 3 deletions(-)
>  create mode 100644 aspcud-svn/dependency.cpp.patch
> 
> diff --git a/aspcud-svn/PKGBUILD b/aspcud-svn/PKGBUILD
> index 5929cb1..a29e97d 100644
> --- a/aspcud-svn/PKGBUILD
> +++ b/aspcud-svn/PKGBUILD
> @@ -2,7 +2,7 @@
> 
>  pkgname=aspcud-svn
>  groups=('potassco')
> -pkgver=r8385
> +pkgver=r8738
>  pkgrel=1
>  pkgdesc="Solver for package dependencies"
>  arch=('x86_64' 'i686' 'armv6h' 'armv7h')
> @@ -12,8 +12,10 @@ depends=('clasp>=2.1.3' 'gringo>=4.2.1')
>  conflicts=('aspcud')
>  provides=('aspcud')
>  makedepends=('boost' 'cmake' 're2c')
> -source=("$pkgname"::'svn+svn://svn.code.sf.net/p/potassco/code/trunk/aspcud
> ') -md5sums=('SKIP')
> +source=("$pkgname"::'svn+svn://svn.code.sf.net/p/potassco/code/trunk/aspcud
> ' +	dependency.cpp.patch)
> +md5sums=('SKIP'
> +	'c417b8aff0c290e07e6be27d68efe48a')
> 
>  pkgver() {
>      cd "$srcdir/$pkgname"
> @@ -21,6 +23,11 @@ pkgver() {
>      printf "r%s" "${ver//[[:alpha:]]}"
>  }
> 
> +prepare() {
> +    cd "$srcdir/$pkgname"
> +    patch -p3 -i $srcdir/dependency.cpp.patch
> +}
> +
>  build() {
>      cd "$srcdir/$pkgname"
>      mkdir -p build/release
> diff --git a/aspcud-svn/dependency.cpp.patch
> b/aspcud-svn/dependency.cpp.patch
> new file mode 100644
> index 0000000..15b05b8
> --- /dev/null
> +++ b/aspcud-svn/dependency.cpp.patch
> @@ -0,0 +1,11 @@
> +--- ./src/aspcud-svn/libcudf/src/dependency.cpp.orig	2014-09-08
> 17:35:55.375674302 -0700
> ++++ ./src/aspcud-svn/libcudf/src/dependency.cpp	2014-09-08
> 18:09:00.832366212 -0700
> +@@ -49,7 +49,7 @@
> +
> +     struct CudfPackageRefFilter {
> +         CudfPackageRefFilter(const Cudf::PackageRef &ref) :
> ref(&ref) { }
> +-        bool operator()(const Entity *entity) {
> ++        bool operator()(const Entity *entity) const {
> +             switch (ref->op) {
> +                 case Cudf::PackageRef::EQ:
> +                     return (entity->version == ref->version ||
> entity->allVersions()) && ref->version != 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20140910/14500621/attachment.sig>


More information about the opam-devel mailing list