Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

shadowsocks-libev newest commit #9

Closed
debiansid opened this issue Nov 4, 2017 · 8 comments
Closed

shadowsocks-libev newest commit #9

debiansid opened this issue Nov 4, 2017 · 8 comments

Comments

@debiansid
Copy link

Hi
is there a way to build newest commit via APKBUILD?

@DDoSolitary
Copy link
Owner

DDoSolitary commented Nov 4, 2017

pkgname=shadowsocks-libev
pkgver=3.1.0
pkgrel=0
pkgdesc="lightweight secured SOCKS5 proxy"
url="https://github.com/shadowsocks/shadowsocks-libev"
arch="all"
license="GPLv3"
makedepends="autoconf automake libtool linux-headers
	mbedtls-dev libsodium-dev pcre-dev libev-dev c-ares-dev
	asciidoc xmlto"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/$pkgname"

build() {
	cd "$srcdir"
	git clone "$url"
	cd "$builddir"
	git submodule update --init --recursive
	./autogen.sh
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

Try this APKBUILD. I didn't test it but it should work.

@debiansid
Copy link
Author

ramnode:~/shadowsocks-libev-git$ abuild -r
>>> shadowsocks-libev: abuild 3.1.0-r1
>>> shadowsocks-libev: Checking sanity of /home/ezhang/shadowsocks-libev-git/APKBUILD...
>>> WARNING: shadowsocks-libev: No maintainer
>>> shadowsocks-libev: Analyzing dependencies...
ERROR: unsatisfiable constraints:
  libsodium-1.0.15-r0:
    conflicts: libsodium-1.0.14-r0
    satisfies: libsodium-dev-1.0.15-r0[libsodium=1.0.15-r0]
  .makedepends-shadowsocks-libev-0:
    masked in: cache
    satisfies: world[.makedepends-shadowsocks-libev]
  libsodium-1.0.14-r0:
    conflicts: libsodium-1.0.15-r0
    breaks: libsodium-dev-1.0.15-r0[libsodium=1.0.15-r0]
    satisfies: shadowsocks-libev-3.1.0-r0[so:libsodium.so.18]
>>> ERROR: shadowsocks-libev: all failed
>>> shadowsocks-libev: Uninstalling dependencies...

@DDoSolitary
Copy link
Owner

You should uninstall your locally installed shadowsocks-libev first. It requires libsodium v1.0.14, but abuild wants to install v1.0.15, which breaks the dependency.
BTW, it's never a good idea to build a package in a dirty system. I suggest always use a clean chroot environment.

@debiansid
Copy link
Author

simple-obfs needs upgrading

@DDoSolitary
Copy link
Owner

Got it.

@debiansid
Copy link
Author

this apk is not working before I add
cd "$pkgname"
before
git submodule update --init --recursive

@DDoSolitary
Copy link
Owner

DDoSolitary commented Nov 27, 2017

Oh, I'm sorrt, that's my fault. Just updated.

@debiansid
Copy link
Author

hi
just in case we want to test new feature like this
shadowsocks/shadowsocks-libev#2360
I am asking for setting up new package like shadowsocks-libev-trunk which we can set some specific commit to build.

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants