~alpine/aports

4 3

[alpine-aports] [PATCH] testing/tigervnc-client: new aport

Andrew Hills <ahills@ednos.net>
Details
Message ID
<1432873473-24671-1-git-send-email-ahills@ednos.net>
Sender timestamp
1432873473
DKIM signature
missing
Download raw message
Patch: +43 -0
http://tigervnc.org/
A high-performance, platform-neutral VNC client"

Note: TigerVNC also provides a server, but building it is more
effort than it is worth. It's recommended to install a different
VNC server; this builds only vncviewer.
---
 testing/tigervnc-client/APKBUILD | 43 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 testing/tigervnc-client/APKBUILD

diff --git a/testing/tigervnc-client/APKBUILD b/testing/tigervnc-client/APKBUILD
new file mode 100644
index 0000000..7f84cdc
--- /dev/null
+++ b/testing/tigervnc-client/APKBUILD
@@ -0,0 +1,43 @@
# Contributor: Andrew Hills <ahills@ednos.net>
# Maintainer: Andrew Hills <ahills@ednos.net>
_basepkg=tigervnc
pkgname=$_basepkg-client
pkgver=1.4.3
pkgrel=0
pkgdesc="A high-performance, platform-neutral VNC client"
url="http://tigervnc.org/"
arch="all"
license="GPL2"
depends="libjpeg-turbo libx11 fltk zlib libxext libxtst libxdamage gcc"
depends_dev=""
makedepends="$depends_dev cmake zlib-dev libjpeg-turbo-dev libx11-dev fltk-dev libxext-dev libxtst-dev libxdamage-dev"
install=""
subpackages="$pkgname-doc"
source="saveas-https://github.com/TigerVNC/tigervnc/archive/v$pkgver.tar.gz/$_basepkg-$pkgver.tar.gz"

_builddir="$srcdir/$_basepkg-$pkgver"
build() {
	cd "$_builddir"
	mkdir build && cd build || return 1
	cmake -G "Unix Makefiles" -Wno-dev \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DENABLE_GNUTLS=OFF \
	-DENABLE_NLS=OFF \
	-DENABLE_PAM=OFF \
	.. || return 1
	make
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || exit 1
	# Apparently, these can't be disabled via cmake
	for superfluous in x0vncserver vncserver vncconfig vncpasswd; do
		rm "$pkgdir"/usr/share/man/man1/$superfluous.1 \
			"$pkgdir"/usr/bin/$superfluous
	done
}

md5sums="2177ee42fa1a3902b6feeaa7747f1c2a  tigervnc-1.4.3.tar.gz"
sha256sums="0b2603db2b32dfd6e48f6f59618bd9819d187bfbb0c16218637d074a69756824  tigervnc-1.4.3.tar.gz"
sha512sums="4c740211de5a93470019350ad4b233ed0e9d2464fda8eb6ec0206c01deb6cd8e8df0e9f792ce00c9e7553a39cbe40cb80b7c74dd5469ae4ced79d33046f76b95  tigervnc-1.4.3.tar.gz"
-- 
2.4.2



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Isaac Dunham <ibid.ag@gmail.com>
Details
Message ID
<20150529045844.GA543@muslin>
In-Reply-To
<1432873473-24671-1-git-send-email-ahills@ednos.net> (view parent)
Sender timestamp
1432875524
DKIM signature
missing
Download raw message
On Fri, May 29, 2015 at 12:24:33AM -0400, Andrew Hills wrote:
> http://tigervnc.org/
> A high-performance, platform-neutral VNC client"
> 
> Note: TigerVNC also provides a server, but building it is more
> effort than it is worth. It's recommended to install a different
> VNC server; this builds only vncviewer.
> ---
>  testing/tigervnc-client/APKBUILD | 43 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 43 insertions(+)
>  create mode 100644 testing/tigervnc-client/APKBUILD
> 
> diff --git a/testing/tigervnc-client/APKBUILD b/testing/tigervnc-client/APKBUILD
> new file mode 100644
> index 0000000..7f84cdc
> --- /dev/null
> +++ b/testing/tigervnc-client/APKBUILD
> @@ -0,0 +1,43 @@
> +# Contributor: Andrew Hills <ahills@ednos.net>
> +# Maintainer: Andrew Hills <ahills@ednos.net>
> +_basepkg=tigervnc
> +pkgname=$_basepkg-client
> +pkgver=1.4.3
> +pkgrel=0
> +pkgdesc="A high-performance, platform-neutral VNC client"
> +url="http://tigervnc.org/"
> +arch="all"
> +license="GPL2"
> +depends="libjpeg-turbo libx11 fltk zlib libxext libxtst libxdamage gcc"

This is wrong.
All library dependencies should be picked up automatically.
(Also, "gcc" isn't the gcc libraries, but the compiler.)

> +depends_dev=""
> +makedepends="$depends_dev cmake zlib-dev libjpeg-turbo-dev libx11-dev fltk-dev libxext-dev libxtst-dev libxdamage-dev"
> +install=""
> +subpackages="$pkgname-doc"
> +source="saveas-https://github.com/TigerVNC/tigervnc/archive/v$pkgver.tar.gz/$_basepkg-$pkgver.tar.gz"
> +
> +_builddir="$srcdir/$_basepkg-$pkgver"
> +build() {
> +	cd "$_builddir"
> +	mkdir build && cd build || return 1
> +	cmake -G "Unix Makefiles" -Wno-dev \
> +	-DCMAKE_INSTALL_PREFIX=/usr \
> +	-DENABLE_GNUTLS=OFF \
> +	-DENABLE_NLS=OFF \
> +	-DENABLE_PAM=OFF \
> +	.. || return 1
> +	make

This will work for native builds, but seems incomplete.

> +}
> +
> +package() {
> +	cd "$_builddir"/build
> +	make DESTDIR="$pkgdir" install || exit 1
> +	# Apparently, these can't be disabled via cmake
> +	for superfluous in x0vncserver vncserver vncconfig vncpasswd; do
> +		rm "$pkgdir"/usr/share/man/man1/$superfluous.1 \
> +			"$pkgdir"/usr/bin/$superfluous
> +	done
> +}
> +
> +md5sums="2177ee42fa1a3902b6feeaa7747f1c2a  tigervnc-1.4.3.tar.gz"
> +sha256sums="0b2603db2b32dfd6e48f6f59618bd9819d187bfbb0c16218637d074a69756824  tigervnc-1.4.3.tar.gz"
> +sha512sums="4c740211de5a93470019350ad4b233ed0e9d2464fda8eb6ec0206c01deb6cd8e8df0e9f792ce00c9e7553a39cbe40cb80b7c74dd5469ae4ced79d33046f76b95  tigervnc-1.4.3.tar.gz"
> -- 
> 2.4.2
> 
> 
> 
> ---
> Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
> Help:         alpine-aports+help@lists.alpinelinux.org
> ---
> 


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Andrew Hills <ahills@ednos.net>
Details
Message ID
<20150529120312.GA9105@ataiki>
In-Reply-To
<20150529045844.GA543@muslin> (view parent)
Sender timestamp
1432900992
DKIM signature
missing
Download raw message
On Thu, May 28, 2015 at 09:58:44PM -0700, Isaac Dunham wrote:
> On Fri, May 29, 2015 at 12:24:33AM -0400, Andrew Hills wrote:
> This is wrong.
> All library dependencies should be picked up automatically.

Right, I thought the abuild output was to instruct the packager; I will
remove these and resubmit if it is still valuable to keep the package
(see below).

> (Also, "gcc" isn't the gcc libraries, but the compiler.)

The explicit dependency detected by abuild is libgcc_s.so, which is owned
by the gcc package, not gcc-libs or anything like that. But regardless, it
will be removed.

> > +	cmake -G "Unix Makefiles" -Wno-dev \
> > +	-DCMAKE_INSTALL_PREFIX=/usr \
> > +	-DENABLE_GNUTLS=OFF \
> > +	-DENABLE_NLS=OFF \
> > +	-DENABLE_PAM=OFF \
> > +	.. || return 1
> > +	make

> This will work for native builds, but seems incomplete.

What do you mean, native builds? What are the alternatives?

I disabled gnutls and NLS support because, even with the required libraries,
it would not build. It is certainly incomplete; TigerVNC's build system is a
travesty. At this point I think I would rather just do the work to find
another vncviewer, and preemptively abandon this package.


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Isaac Dunham <ibid.ag@gmail.com>
Details
Message ID
<20150530004253.GA1863@newbook>
In-Reply-To
<20150529120312.GA9105@ataiki> (view parent)
Sender timestamp
1432946574
DKIM signature
missing
Download raw message
On Fri, May 29, 2015 at 08:03:12AM -0400, Andrew Hills wrote:
> On Thu, May 28, 2015 at 09:58:44PM -0700, Isaac Dunham wrote:
> > (Also, "gcc" isn't the gcc libraries, but the compiler.)
> 
> The explicit dependency detected by abuild is libgcc_s.so, which is owned
> by the gcc package, not gcc-libs or anything like that. But regardless, it
> will be removed.

libgcc_s.so is a symlink (owned by gcc) to libgcc_s.so.1 (owned by
libgcc).
The text that abuild spits out may say libgcc_s.so, but the soname
is what it actually depends on.


> > > +	cmake -G "Unix Makefiles" -Wno-dev \
> > > +	-DCMAKE_INSTALL_PREFIX=/usr \
> > > +	-DENABLE_GNUTLS=OFF \
> > > +	-DENABLE_NLS=OFF \
> > > +	-DENABLE_PAM=OFF \
> > > +	.. || return 1
> > > +	make
> 
> > This will work for native builds, but seems incomplete.
> 
> What do you mean, native builds? What are the alternatives?
> 
> I disabled gnutls and NLS support because, even with the required libraries,
> it would not build. It is certainly incomplete; TigerVNC's build system is a
> travesty. At this point I think I would rather just do the work to find
> another vncviewer, and preemptively abandon this package.

Native builds are when you compile a package to run it on the same
architecture.
The alternative is cross-compiling (building for ARM from x86), and
Alpine tries to support that.

Thanks,
Isac Dunham


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
IT Offshore Developer <developer@it-offshore.co.uk>
Details
Message ID
<949d69cd82594b871fb3d797525423a3@it-offshore.co.uk>
In-Reply-To
<20150530004253.GA1863@newbook> (view parent)
Sender timestamp
1432952242
DKIM signature
missing
Download raw message
 

I added virt-viewer [1] with spice & vnc support to the repos recently.
The full screen support is very good & it also auto resizes the desktop.

Stuart.

On 2015-05-30 01:42, Isaac Dunham wrote:
> On Fri, May 29, 2015 at 08:03:12AM -0400, Andrew Hills wrote:
>> On Thu, May 28, 2015 at 09:58:44PM -0700, Isaac Dunham wrote:
>> > (Also, "gcc" isn't the gcc libraries, but the compiler.)
>>
>> The explicit dependency detected by abuild is libgcc_s.so, which is owned
>> by the gcc package, not gcc-libs or anything like that. But regardless, it
>> will be removed.
> 
> libgcc_s.so is a symlink (owned by gcc) to libgcc_s.so.1 (owned by
> libgcc).
> The text that abuild spits out may say libgcc_s.so, but the soname
> is what it actually depends on.
> 
> 
>> > > + cmake -G "Unix Makefiles" -Wno-dev 
>> > > + -DCMAKE_INSTALL_PREFIX=/usr 
>> > > + -DENABLE_GNUTLS=OFF 
>> > > + -DENABLE_NLS=OFF 
>> > > + -DENABLE_PAM=OFF 
>> > > + .. || return 1
>> > > + make
>>
>> > This will work for native builds, but seems incomplete.
>>
>> What do you mean, native builds? What are the alternatives?
>>
>> I disabled gnutls and NLS support because, even with the required libraries,
>> it would not build. It is certainly incomplete; TigerVNC's build system is a
>> travesty. At this point I think I would rather just do the work to find
>> another vncviewer, and preemptively abandon this package.
> 
> Native builds are when you compile a package to run it on the same
> architecture.
> The alternative is cross-compiling (building for ARM from x86), and
> Alpine tries to support that.
> 
> Thanks,
> Isac Dunham
> 
> 
> ---
> Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org
> Help: alpine-aports+help@lists.alpinelinux.org
> ---
 

Links:
------
[1] http://pkgs.alpinelinux.org/package/testing/x86/virt-viewer
Reply to thread Export thread (mbox)