Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trizen -S tigervnc-git
- :: Cloning AUR package: tigervnc-git
- hint: Using 'master' as the name for the initial branch. This default branch name
- hint: is subject to change. To configure the initial branch name to use in all
- hint: of your new repositories, which will suppress this warning, call:
- hint:
- hint: git config --global init.defaultBranch <name>
- hint:
- hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
- hint: 'development'. The just-created branch can be renamed via this command:
- hint:
- hint: git branch -m <name>
- --------------------------------------------------------------------------------
- :: Content of /tmp/trizen-mozo/tigervnc-git/PKGBUILD
- --------------------------------------------------------------------------------
- # Contributor: graysky <therealgraysky AT proton DOT me>
- # Contributor: Uroš Vampl <mobile.leecher at gmail dot com>
- pkgname=tigervnc-git
- pkgver=r4793.1e87050d
- pkgrel=1
- _xorgver=21.1.6
- pkgdesc="Suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC."
- arch=('x86_64')
- url="http://www.tigervnc.org"
- license=('GPL')
- depends=('fltk' 'pam' 'gnutls' 'libjpeg-turbo' 'libxtst' 'pixman'
- 'xorg-xauth' 'xorg-xsetroot' 'xkeyboard-config' 'xorg-xkbcomp'
- 'libgl' 'libgcrypt' 'perl' 'libxdamage' 'libxfont2' 'libdrm'
- 'xorg-xinit')
- makedepends=('cmake' 'nasm' 'xorg-font-util' 'xorg-util-macros' 'git'
- 'xtrans' 'xorgproto'
- 'mesa' 'imagemagick' 'java-environment=8')
- optdepends=('mesa: for OpenGL functionality in Xvnc')
- conflicts=('tigervnc' 'tightvnc')
- provides=('tigervnc')
- backup=(etc/pam.d/tigervnc
- etc/tigervnc/vncserver-config-defaults
- etc/tigervnc/vncserver-config-mandatory
- etc/tigervnc/vncserver.users)
- source=(git+https://github.com/TigerVNC/tigervnc.git
- https://xorg.freedesktop.org/releases/individual/xserver/xorg-server-${_xorgver}.tar.xz
- Xsession
- more-xsessions.patch
- remove-selinux.patch)
- sha256sums=('SKIP'
- '1eb86ed674d042b6c8b1f9135e59395cbbca35ed551b122f73a7d8bb3bb22484'
- 'c9276f6ea277cf9654fb2cc3bc9dadbb2e596b5cf8ca867ee906c0080cf7f810'
- 'cb57dece026b29d7019a3e1e42fd2fb201d37fc60a70c885d2a50acffb808c06'
- 'fb8bb5bd3ec990720580a664326a70fd178ce94b97c2130462df9b1e3a3925c3')
- pkgver() {
- cd tigervnc
- echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
- }
- prepare() {
- cd tigervnc
- patch -p1 -i "$srcdir"/more-xsessions.patch
- patch -p1 -i "$srcdir"/remove-selinux.patch
- cd unix/xserver
- cp -r "$srcdir"/xorg-server-${_xorgver}/* .
- patch -Np1 -i ../xserver21.1.1.patch
- }
- build() {
- cd tigervnc
- cmake -G "Unix Makefiles" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_SBINDIR=/usr/bin \
- -DCMAKE_INSTALL_LIBEXECDIR=/usr/bin \
- -DBUILD_JAVA=TRUE
- make
- cd unix/xserver
- autoreconf -fiv
- CFLAGS="$CFLAGS -I/usr/include/libdrm" ./configure --prefix=/usr \
- --disable-static --without-dtrace \
- --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
- --disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
- --disable-config-hal --disable-config-udev --with-pic \
- --disable-unit-tests --disable-devel-docs --disable-selective-werror \
- --disable-dri --enable-dri2 --enable-dri3 --enable-glx
- make
- }
- package() {
- cd tigervnc
- make DESTDIR="$pkgdir" install
- install -Dm0644 java/VncViewer.jar "${pkgdir}"/usr/share/vnc/classes/VncViewer.jar
- cd unix/xserver/hw/vnc
- make DESTDIR="$pkgdir" install
- install -Dm0755 "$srcdir"/Xsession "$pkgdir"/etc/X11/tigervnc/Xsession
- # install -Dm0644 "$srcdir"/${pkgname}-${pkgver}/unix/vncserver/vncserver@.service \
- # "$pkgdir"/usr/lib/systemd/user/vncserver@.service
- }
- =>> Edit tigervnc-git/PKGBUILD? [y/N]: n
- --------------------------------------------------------------------------------
- :: Content of /tmp/trizen-mozo/tigervnc-git/Xsession
- --------------------------------------------------------------------------------
- #!/bin/sh
- #
- # Wrapper to run around X sessions.
- # Based on lightdm
- #
- echo "Running X session wrapper"
- # Load profile
- for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
- if [ -f "$file" ]; then
- echo "Loading profile from $file";
- . "$file"
- fi
- done
- # Load resources
- for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
- if [ -f "$file" ]; then
- echo "Loading resource: $file"
- xrdb -merge "$file"
- fi
- done
- # Load keymaps
- for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
- if [ -f "$file" ]; then
- echo "Loading keymap: $file"
- setxkbmap `cat "$file"`
- XKB_IN_USE=yes
- fi
- done
- # Load xmodmap if not using XKB
- if [ -z "$XKB_IN_USE" ]; then
- for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
- if [ -f "$file" ]; then
- echo "Loading modmap: $file"
- xmodmap "$file"
- fi
- done
- fi
- unset XKB_IN_USE
- # Run all system xinitrc shell scripts
- xinitdir="/etc/X11/xinit/xinitrc.d"
- if [ -d "$xinitdir" ]; then
- for script in $xinitdir/*; do
- echo "Loading xinit script $script"
- if [ -x "$script" -a ! -d "$script" ]; then
- . "$script"
- fi
- done
- fi
- # Run user xsession shell script
- script="$HOME/.xsession"
- if [ -x "$script" -a ! -d "$script" ]; then
- echo "Loading xsession script $script"
- . "$script"
- fi
- echo "X session wrapper complete, running session $@"
- exec $@
- =>> Edit tigervnc-git/Xsession? [y/N]: n
- --------------------------------------------------------------------------------
- :: Content of /tmp/trizen-mozo/tigervnc-git/more-xsessions.patch
- --------------------------------------------------------------------------------
- diff -wbBur tigervnc-1.11.0/unix/vncserver/vncserver.in tigervnc-1.11.0.my/unix/vncserver/vncserver.in
- --- tigervnc-1.11.0/unix/vncserver/vncserver.in 2020-09-08 15:16:08.000000000 +0300
- +++ tigervnc-1.11.0.my/unix/vncserver/vncserver.in 2020-09-11 15:39:59.980775388 +0300
- @@ -438,7 +438,13 @@
- die "$prog: couldn't find \"$cmd\" on your PATH.\n";
- }
- - foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession") {
- + foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession",
- + "/etc/X11/xdm/Xsession",
- + "/usr/share/sddm/scripts/Xsession",
- + "/etc/gdm/Xsession",
- + "/etc/lightdm/Xsession",
- + "/etc/lxdm/Xsession",
- + "/etc/X11/tigervnc/Xsession") {
- if (-x "$cmd") {
- $Xsession = $cmd;
- last;
- =>> Edit tigervnc-git/more-xsessions.patch? [y/N]: n
- --------------------------------------------------------------------------------
- :: Content of /tmp/trizen-mozo/tigervnc-git/remove-selinux.patch
- --------------------------------------------------------------------------------
- diff -wbBur tigervnc-1.11.0/unix/vncserver/tigervnc.pam tigervnc-1.11.0.my/unix/vncserver/tigervnc.pam
- --- tigervnc-1.11.0/unix/vncserver/tigervnc.pam 2020-09-08 15:16:08.000000000 +0300
- +++ tigervnc-1.11.0.my/unix/vncserver/tigervnc.pam 2020-09-11 18:42:35.160649140 +0300
- @@ -1,8 +1,5 @@
- #%PAM-1.0
- -# pam_selinux.so close should be the first session rule
- --session required pam_selinux.so close
- session required pam_loginuid.so
- --session required pam_selinux.so open
- session required pam_namespace.so
- session optional pam_keyinit.so force revoke
- session required pam_limits.so
- diff -wbBur tigervnc-1.11.0/unix/vncserver/vncserver@.service.in tigervnc-1.11.0.my/unix/vncserver/vncserver@.service.in
- --- tigervnc-1.11.0/unix/vncserver/vncserver@.service.in 2020-09-08 15:16:08.000000000 +0300
- +++ tigervnc-1.11.0.my/unix/vncserver/vncserver@.service.in 2020-09-11 18:42:45.223982346 +0300
- @@ -36,8 +36,7 @@
- [Service]
- Type=forking
- ExecStart=@CMAKE_INSTALL_FULL_LIBEXECDIR@/vncsession-start %i
- PIDFile=/run/vncsession-%i.pid
- -SELinuxContext=system_u:system_r:vnc_session_t:s0
- [Install]
- WantedBy=multi-user.target
- =>> Edit tigervnc-git/remove-selinux.patch? [y/N]: n
- Repository : AUR
- Name : tigervnc-git
- Version : r4793.1e87050d-1
- Maintainer : drew33
- URL : http://www.tigervnc.org
- AUR URL : https://aur.archlinux.org/packages/tigervnc-git
- License : GPL
- Votes : 13
- Popularity : 0%
- Installed : No
- Out Of Date : No
- Depends On : fltk
- pam
- gnutls
- libjpeg-turbo
- libxtst
- pixman
- xorg-xauth
- xorg-xsetroot
- xkeyboard-config
- xorg-xkbcomp
- libgl
- libgcrypt
- perl
- libxdamage
- libxfont2
- libdrm
- xorg-xinit
- Make Deps : cmake
- git
- xorgproto
- mesa
- imagemagick
- nasm
- xorg-font-util
- xorg-util-macros
- xtrans
- java-environment=8
- Check Deps : None
- Optional Deps : mesa: for OpenGL functionality in Xvnc
- Provides : tigervnc
- Conflicts With : tigervnc
- tightvnc
- Replaces : None
- Package Base : tigervnc-git
- Last Update : Wed Nov 1 16:55:51 2023
- Description : Suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC.
- ==> Making package: tigervnc-git r4793.1e87050d-1 (Sun 13 Oct 2024 02:28:21 AM EEST)
- ==> Checking runtime dependencies...
- ==> Checking buildtime dependencies...
- ==> Installing missing dependencies...
- [sudo] password for mozo:
- resolving dependencies...
- looking for conflicting packages...
- Packages (9) java-environment-common-3-5 java-runtime-common-3-5
- jre8-openjdk-8.422.u05-1 jre8-openjdk-headless-8.422.u05-1
- jdk8-openjdk-8.422.u05-1 nasm-2.16.03-1
- xorg-font-util-1.4.1-2 xorg-util-macros-1.20.1-1
- xtrans-1.5.0-2
- Total Download Size: 37.87 MiB
- Total Installed Size: 139.35 MiB
- :: Proceed with installation? [Y/n] y
- :: Retrieving packages...
- xtrans-1.5.0-2-any 41.9 KiB 322 KiB/s 00:00 [################] 100%
- jre8-openjdk-8.4... 174.8 KiB 1142 KiB/s 00:00 [################] 100%
- nasm-2.16.03-1-x... 341.2 KiB 1625 KiB/s 00:00 [################] 100%
- xorg-font-util-1... 33.1 KiB 381 KiB/s 00:00 [################] 100%
- xorg-util-macros... 23.6 KiB 295 KiB/s 00:00 [################] 100%
- java-runtime-com... 5.0 KiB 45.1 KiB/s 00:00 [################] 100%
- java-environment... 2.6 KiB 18.7 KiB/s 00:00 [################] 100%
- jdk8-openjdk-8.4... 8.6 MiB 11.2 MiB/s 00:01 [################] 100%
- jre8-openjdk-hea... 28.6 MiB 22.8 MiB/s 00:01 [################] 100%
- Total (9/9) 37.9 MiB 28.7 MiB/s 00:01 [################] 100%
- (9/9) checking keys in keyring [################] 100%
- (9/9) checking package integrity [################] 100%
- (9/9) loading package files [################] 100%
- (9/9) checking for file conflicts [################] 100%
- :: Processing package changes...
- (1/9) installing nasm [################] 100%
- (2/9) installing xorg-font-util [################] 100%
- (3/9) installing xorg-util-macros [################] 100%
- (4/9) installing xtrans [################] 100%
- (5/9) installing java-environment-common [################] 100%
- (6/9) installing java-runtime-common [################] 100%
- For the complete set of Java binaries to be available in your PATH,
- you need to re-login or source /etc/profile.d/jre.sh
- Please note that this package does not support forcing JAVA_HOME as former package java-common did
- (7/9) installing jre8-openjdk-headless [################] 100%
- Optional dependencies for jre8-openjdk-headless
- java-rhino: for some JavaScript support
- (8/9) installing jre8-openjdk [################] 100%
- when you use a non-reparenting window manager,
- set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh
- Optional dependencies for jre8-openjdk
- icedtea-web: web browser plugin + Java Web Start
- alsa-lib: for basic sound support [installed]
- gtk3: for the Gtk+ look and feel - desktop usage [installed]
- java8-openjfx: for JavaFX GUI components support
- (9/9) installing jdk8-openjdk [################] 100%
- Optional dependencies for jdk8-openjdk
- gvfs: open links e.g. hyperlinks [installed]
- :: Running post-transaction hooks...
- (1/3) Arming ConditionNeedsUpdate...
- (2/3) Updating fontconfig cache...
- (3/3) Updating 32-bit fontconfig cache...
- ==> Retrieving sources...
- -> Cloning tigervnc git repo...
- Cloning into bare repository '/tmp/trizen-mozo/tigervnc-git/tigervnc'...
- remote: Enumerating objects: 44310, done.
- remote: Counting objects: 100% (3037/3037), done.
- remote: Compressing objects: 100% (1347/1347), done.
- remote: Total 44310 (delta 2016), reused 2225 (delta 1592), pack-reused 41273 (from 1)
- Receiving objects: 100% (44310/44310), 26.68 MiB | 26.99 MiB/s, done.
- Resolving deltas: 100% (30969/30969), done.
- -> Downloading xorg-server-21.1.6.tar.xz...
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 4 4860k 4 203k 0 0 136k 0 0:00:35 0:00:01 0:00:34 40 4860k 40 1945k 0 0 785k 0 0:00:06 0:00:02 0:00:04 84 4860k 84 4101k 0 0 1183k 0 0:00:04 0:00:03 0:00:01 1100 4860k 100 4860k 0 0 1334k 0 0:00:03 0:00:03 --:--:-- 1333k
- -> Found Xsession
- -> Found more-xsessions.patch
- -> Found remove-selinux.patch
- ==> Validating source files with sha256sums...
- tigervnc ... Skipped
- xorg-server-21.1.6.tar.xz ... Passed
- Xsession ... Passed
- more-xsessions.patch ... Passed
- remove-selinux.patch ... Passed
- ==> Extracting sources...
- -> Creating working copy of tigervnc git repo...
- Cloning into 'tigervnc'...
- done.
- -> Extracting xorg-server-21.1.6.tar.xz with bsdtar
- ==> Starting prepare()...
- patching file unix/vncserver/vncserver.in
- Hunk #1 succeeded at 447 (offset 9 lines).
- patching file unix/vncserver/tigervnc.pam
- Hunk #1 FAILED at 1.
- 1 out of 1 hunk FAILED -- saving rejects to file unix/vncserver/tigervnc.pam.rej
- patching file unix/vncserver/vncserver@.service.in
- ==> ERROR: A failure occurred in prepare().
- Aborting...
- :: Unable to build tigervnc-git - makepkg exited with code: 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement