Advertisement
Guest User

Untitled

a guest
Oct 12th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.86 KB | None | 0 0
  1. trizen -S tigervnc-git
  2. :: Cloning AUR package: tigervnc-git
  3.  
  4. hint: Using 'master' as the name for the initial branch. This default branch name
  5. hint: is subject to change. To configure the initial branch name to use in all
  6. hint: of your new repositories, which will suppress this warning, call:
  7. hint:
  8. hint: git config --global init.defaultBranch <name>
  9. hint:
  10. hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
  11. hint: 'development'. The just-created branch can be renamed via this command:
  12. hint:
  13. hint: git branch -m <name>
  14. --------------------------------------------------------------------------------
  15. :: Content of /tmp/trizen-mozo/tigervnc-git/PKGBUILD
  16. --------------------------------------------------------------------------------
  17.  
  18. # Contributor: graysky <therealgraysky AT proton DOT me>
  19. # Contributor: Uroš Vampl <mobile.leecher at gmail dot com>
  20.  
  21. pkgname=tigervnc-git
  22. pkgver=r4793.1e87050d
  23. pkgrel=1
  24. _xorgver=21.1.6
  25. pkgdesc="Suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC."
  26. arch=('x86_64')
  27. url="http://www.tigervnc.org"
  28. license=('GPL')
  29. depends=('fltk' 'pam' 'gnutls' 'libjpeg-turbo' 'libxtst' 'pixman'
  30. 'xorg-xauth' 'xorg-xsetroot' 'xkeyboard-config' 'xorg-xkbcomp'
  31. 'libgl' 'libgcrypt' 'perl' 'libxdamage' 'libxfont2' 'libdrm'
  32. 'xorg-xinit')
  33. makedepends=('cmake' 'nasm' 'xorg-font-util' 'xorg-util-macros' 'git'
  34. 'xtrans' 'xorgproto'
  35. 'mesa' 'imagemagick' 'java-environment=8')
  36. optdepends=('mesa: for OpenGL functionality in Xvnc')
  37. conflicts=('tigervnc' 'tightvnc')
  38. provides=('tigervnc')
  39. backup=(etc/pam.d/tigervnc
  40. etc/tigervnc/vncserver-config-defaults
  41. etc/tigervnc/vncserver-config-mandatory
  42. etc/tigervnc/vncserver.users)
  43. source=(git+https://github.com/TigerVNC/tigervnc.git
  44. https://xorg.freedesktop.org/releases/individual/xserver/xorg-server-${_xorgver}.tar.xz
  45. Xsession
  46. more-xsessions.patch
  47. remove-selinux.patch)
  48. sha256sums=('SKIP'
  49. '1eb86ed674d042b6c8b1f9135e59395cbbca35ed551b122f73a7d8bb3bb22484'
  50. 'c9276f6ea277cf9654fb2cc3bc9dadbb2e596b5cf8ca867ee906c0080cf7f810'
  51. 'cb57dece026b29d7019a3e1e42fd2fb201d37fc60a70c885d2a50acffb808c06'
  52. 'fb8bb5bd3ec990720580a664326a70fd178ce94b97c2130462df9b1e3a3925c3')
  53.  
  54. pkgver() {
  55. cd tigervnc
  56. echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  57. }
  58.  
  59. prepare() {
  60. cd tigervnc
  61. patch -p1 -i "$srcdir"/more-xsessions.patch
  62. patch -p1 -i "$srcdir"/remove-selinux.patch
  63.  
  64. cd unix/xserver
  65. cp -r "$srcdir"/xorg-server-${_xorgver}/* .
  66. patch -Np1 -i ../xserver21.1.1.patch
  67. }
  68.  
  69. build() {
  70. cd tigervnc
  71.  
  72. cmake -G "Unix Makefiles" \
  73. -DCMAKE_INSTALL_PREFIX=/usr \
  74. -DCMAKE_INSTALL_SBINDIR=/usr/bin \
  75. -DCMAKE_INSTALL_LIBEXECDIR=/usr/bin \
  76. -DBUILD_JAVA=TRUE
  77. make
  78.  
  79. cd unix/xserver
  80. autoreconf -fiv
  81. CFLAGS="$CFLAGS -I/usr/include/libdrm" ./configure --prefix=/usr \
  82. --disable-static --without-dtrace \
  83. --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
  84. --disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
  85. --disable-config-hal --disable-config-udev --with-pic \
  86. --disable-unit-tests --disable-devel-docs --disable-selective-werror \
  87. --disable-dri --enable-dri2 --enable-dri3 --enable-glx
  88. make
  89. }
  90.  
  91. package() {
  92. cd tigervnc
  93. make DESTDIR="$pkgdir" install
  94. install -Dm0644 java/VncViewer.jar "${pkgdir}"/usr/share/vnc/classes/VncViewer.jar
  95. cd unix/xserver/hw/vnc
  96. make DESTDIR="$pkgdir" install
  97. install -Dm0755 "$srcdir"/Xsession "$pkgdir"/etc/X11/tigervnc/Xsession
  98. # install -Dm0644 "$srcdir"/${pkgname}-${pkgver}/unix/vncserver/vncserver@.service \
  99. # "$pkgdir"/usr/lib/systemd/user/vncserver@.service
  100. }
  101.  
  102. =>> Edit tigervnc-git/PKGBUILD? [y/N]: n
  103. --------------------------------------------------------------------------------
  104. :: Content of /tmp/trizen-mozo/tigervnc-git/Xsession
  105. --------------------------------------------------------------------------------
  106.  
  107. #!/bin/sh
  108. #
  109. # Wrapper to run around X sessions.
  110. # Based on lightdm
  111. #
  112.  
  113. echo "Running X session wrapper"
  114.  
  115. # Load profile
  116. for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do
  117. if [ -f "$file" ]; then
  118. echo "Loading profile from $file";
  119. . "$file"
  120. fi
  121. done
  122.  
  123. # Load resources
  124. for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
  125. if [ -f "$file" ]; then
  126. echo "Loading resource: $file"
  127. xrdb -merge "$file"
  128. fi
  129. done
  130.  
  131. # Load keymaps
  132. for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
  133. if [ -f "$file" ]; then
  134. echo "Loading keymap: $file"
  135. setxkbmap `cat "$file"`
  136. XKB_IN_USE=yes
  137. fi
  138. done
  139.  
  140. # Load xmodmap if not using XKB
  141. if [ -z "$XKB_IN_USE" ]; then
  142. for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
  143. if [ -f "$file" ]; then
  144. echo "Loading modmap: $file"
  145. xmodmap "$file"
  146. fi
  147. done
  148. fi
  149.  
  150. unset XKB_IN_USE
  151.  
  152. # Run all system xinitrc shell scripts
  153. xinitdir="/etc/X11/xinit/xinitrc.d"
  154. if [ -d "$xinitdir" ]; then
  155. for script in $xinitdir/*; do
  156. echo "Loading xinit script $script"
  157. if [ -x "$script" -a ! -d "$script" ]; then
  158. . "$script"
  159. fi
  160. done
  161. fi
  162.  
  163. # Run user xsession shell script
  164. script="$HOME/.xsession"
  165. if [ -x "$script" -a ! -d "$script" ]; then
  166. echo "Loading xsession script $script"
  167. . "$script"
  168. fi
  169.  
  170. echo "X session wrapper complete, running session $@"
  171.  
  172. exec $@
  173.  
  174. =>> Edit tigervnc-git/Xsession? [y/N]: n
  175. --------------------------------------------------------------------------------
  176. :: Content of /tmp/trizen-mozo/tigervnc-git/more-xsessions.patch
  177. --------------------------------------------------------------------------------
  178.  
  179. diff -wbBur tigervnc-1.11.0/unix/vncserver/vncserver.in tigervnc-1.11.0.my/unix/vncserver/vncserver.in
  180. --- tigervnc-1.11.0/unix/vncserver/vncserver.in 2020-09-08 15:16:08.000000000 +0300
  181. +++ tigervnc-1.11.0.my/unix/vncserver/vncserver.in 2020-09-11 15:39:59.980775388 +0300
  182. @@ -438,7 +438,13 @@
  183. die "$prog: couldn't find \"$cmd\" on your PATH.\n";
  184. }
  185.  
  186. - foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession") {
  187. + foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession",
  188. + "/etc/X11/xdm/Xsession",
  189. + "/usr/share/sddm/scripts/Xsession",
  190. + "/etc/gdm/Xsession",
  191. + "/etc/lightdm/Xsession",
  192. + "/etc/lxdm/Xsession",
  193. + "/etc/X11/tigervnc/Xsession") {
  194. if (-x "$cmd") {
  195. $Xsession = $cmd;
  196. last;
  197.  
  198. =>> Edit tigervnc-git/more-xsessions.patch? [y/N]: n
  199. --------------------------------------------------------------------------------
  200. :: Content of /tmp/trizen-mozo/tigervnc-git/remove-selinux.patch
  201. --------------------------------------------------------------------------------
  202.  
  203. diff -wbBur tigervnc-1.11.0/unix/vncserver/tigervnc.pam tigervnc-1.11.0.my/unix/vncserver/tigervnc.pam
  204. --- tigervnc-1.11.0/unix/vncserver/tigervnc.pam 2020-09-08 15:16:08.000000000 +0300
  205. +++ tigervnc-1.11.0.my/unix/vncserver/tigervnc.pam 2020-09-11 18:42:35.160649140 +0300
  206. @@ -1,8 +1,5 @@
  207. #%PAM-1.0
  208. -# pam_selinux.so close should be the first session rule
  209. --session required pam_selinux.so close
  210. session required pam_loginuid.so
  211. --session required pam_selinux.so open
  212. session required pam_namespace.so
  213. session optional pam_keyinit.so force revoke
  214. session required pam_limits.so
  215. diff -wbBur tigervnc-1.11.0/unix/vncserver/vncserver@.service.in tigervnc-1.11.0.my/unix/vncserver/vncserver@.service.in
  216. --- tigervnc-1.11.0/unix/vncserver/vncserver@.service.in 2020-09-08 15:16:08.000000000 +0300
  217. +++ tigervnc-1.11.0.my/unix/vncserver/vncserver@.service.in 2020-09-11 18:42:45.223982346 +0300
  218. @@ -36,8 +36,7 @@
  219. [Service]
  220. Type=forking
  221. ExecStart=@CMAKE_INSTALL_FULL_LIBEXECDIR@/vncsession-start %i
  222. PIDFile=/run/vncsession-%i.pid
  223. -SELinuxContext=system_u:system_r:vnc_session_t:s0
  224.  
  225. [Install]
  226. WantedBy=multi-user.target
  227.  
  228. =>> Edit tigervnc-git/remove-selinux.patch? [y/N]: n
  229.  
  230. Repository : AUR
  231. Name : tigervnc-git
  232. Version : r4793.1e87050d-1
  233. Maintainer : drew33
  234. URL : http://www.tigervnc.org
  235. AUR URL : https://aur.archlinux.org/packages/tigervnc-git
  236. License : GPL
  237. Votes : 13
  238. Popularity : 0%
  239. Installed : No
  240. Out Of Date : No
  241. Depends On : fltk
  242. pam
  243. gnutls
  244. libjpeg-turbo
  245. libxtst
  246. pixman
  247. xorg-xauth
  248. xorg-xsetroot
  249. xkeyboard-config
  250. xorg-xkbcomp
  251. libgl
  252. libgcrypt
  253. perl
  254. libxdamage
  255. libxfont2
  256. libdrm
  257. xorg-xinit
  258. Make Deps : cmake
  259. git
  260. xorgproto
  261. mesa
  262. imagemagick
  263. nasm
  264. xorg-font-util
  265. xorg-util-macros
  266. xtrans
  267. java-environment=8
  268. Check Deps : None
  269. Optional Deps : mesa: for OpenGL functionality in Xvnc
  270. Provides : tigervnc
  271. Conflicts With : tigervnc
  272. tightvnc
  273. Replaces : None
  274. Package Base : tigervnc-git
  275. Last Update : Wed Nov 1 16:55:51 2023
  276. Description : Suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC.
  277.  
  278. ==> Making package: tigervnc-git r4793.1e87050d-1 (Sun 13 Oct 2024 02:28:21 AM EEST)
  279. ==> Checking runtime dependencies...
  280. ==> Checking buildtime dependencies...
  281. ==> Installing missing dependencies...
  282. [sudo] password for mozo:
  283. resolving dependencies...
  284. looking for conflicting packages...
  285.  
  286. Packages (9) java-environment-common-3-5 java-runtime-common-3-5
  287. jre8-openjdk-8.422.u05-1 jre8-openjdk-headless-8.422.u05-1
  288. jdk8-openjdk-8.422.u05-1 nasm-2.16.03-1
  289. xorg-font-util-1.4.1-2 xorg-util-macros-1.20.1-1
  290. xtrans-1.5.0-2
  291.  
  292. Total Download Size: 37.87 MiB
  293. Total Installed Size: 139.35 MiB
  294.  
  295. :: Proceed with installation? [Y/n] y
  296. :: Retrieving packages...
  297. xtrans-1.5.0-2-any 41.9 KiB 322 KiB/s 00:00 [################] 100%
  298. jre8-openjdk-8.4... 174.8 KiB 1142 KiB/s 00:00 [################] 100%
  299. nasm-2.16.03-1-x... 341.2 KiB 1625 KiB/s 00:00 [################] 100%
  300. xorg-font-util-1... 33.1 KiB 381 KiB/s 00:00 [################] 100%
  301. xorg-util-macros... 23.6 KiB 295 KiB/s 00:00 [################] 100%
  302. java-runtime-com... 5.0 KiB 45.1 KiB/s 00:00 [################] 100%
  303. java-environment... 2.6 KiB 18.7 KiB/s 00:00 [################] 100%
  304. jdk8-openjdk-8.4... 8.6 MiB 11.2 MiB/s 00:01 [################] 100%
  305. jre8-openjdk-hea... 28.6 MiB 22.8 MiB/s 00:01 [################] 100%
  306. Total (9/9) 37.9 MiB 28.7 MiB/s 00:01 [################] 100%
  307. (9/9) checking keys in keyring [################] 100%
  308. (9/9) checking package integrity [################] 100%
  309. (9/9) loading package files [################] 100%
  310. (9/9) checking for file conflicts [################] 100%
  311. :: Processing package changes...
  312. (1/9) installing nasm [################] 100%
  313. (2/9) installing xorg-font-util [################] 100%
  314. (3/9) installing xorg-util-macros [################] 100%
  315. (4/9) installing xtrans [################] 100%
  316. (5/9) installing java-environment-common [################] 100%
  317. (6/9) installing java-runtime-common [################] 100%
  318. For the complete set of Java binaries to be available in your PATH,
  319. you need to re-login or source /etc/profile.d/jre.sh
  320. Please note that this package does not support forcing JAVA_HOME as former package java-common did
  321. (7/9) installing jre8-openjdk-headless [################] 100%
  322. Optional dependencies for jre8-openjdk-headless
  323. java-rhino: for some JavaScript support
  324. (8/9) installing jre8-openjdk [################] 100%
  325. when you use a non-reparenting window manager,
  326. set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh
  327. Optional dependencies for jre8-openjdk
  328. icedtea-web: web browser plugin + Java Web Start
  329. alsa-lib: for basic sound support [installed]
  330. gtk3: for the Gtk+ look and feel - desktop usage [installed]
  331. java8-openjfx: for JavaFX GUI components support
  332. (9/9) installing jdk8-openjdk [################] 100%
  333. Optional dependencies for jdk8-openjdk
  334. gvfs: open links e.g. hyperlinks [installed]
  335. :: Running post-transaction hooks...
  336. (1/3) Arming ConditionNeedsUpdate...
  337. (2/3) Updating fontconfig cache...
  338. (3/3) Updating 32-bit fontconfig cache...
  339. ==> Retrieving sources...
  340. -> Cloning tigervnc git repo...
  341. Cloning into bare repository '/tmp/trizen-mozo/tigervnc-git/tigervnc'...
  342. remote: Enumerating objects: 44310, done.
  343. remote: Counting objects: 100% (3037/3037), done.
  344. remote: Compressing objects: 100% (1347/1347), done.
  345. remote: Total 44310 (delta 2016), reused 2225 (delta 1592), pack-reused 41273 (from 1)
  346. Receiving objects: 100% (44310/44310), 26.68 MiB | 26.99 MiB/s, done.
  347. Resolving deltas: 100% (30969/30969), done.
  348. -> Downloading xorg-server-21.1.6.tar.xz...
  349. % Total % Received % Xferd Average Speed Time Time Time Current
  350. Dload Upload Total Spent Left Speed
  351. 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
  352. -> Found Xsession
  353. -> Found more-xsessions.patch
  354. -> Found remove-selinux.patch
  355. ==> Validating source files with sha256sums...
  356. tigervnc ... Skipped
  357. xorg-server-21.1.6.tar.xz ... Passed
  358. Xsession ... Passed
  359. more-xsessions.patch ... Passed
  360. remove-selinux.patch ... Passed
  361. ==> Extracting sources...
  362. -> Creating working copy of tigervnc git repo...
  363. Cloning into 'tigervnc'...
  364. done.
  365. -> Extracting xorg-server-21.1.6.tar.xz with bsdtar
  366. ==> Starting prepare()...
  367. patching file unix/vncserver/vncserver.in
  368. Hunk #1 succeeded at 447 (offset 9 lines).
  369. patching file unix/vncserver/tigervnc.pam
  370. Hunk #1 FAILED at 1.
  371. 1 out of 1 hunk FAILED -- saving rejects to file unix/vncserver/tigervnc.pam.rej
  372. patching file unix/vncserver/vncserver@.service.in
  373. ==> ERROR: A failure occurred in prepare().
  374. Aborting...
  375. :: Unable to build tigervnc-git - makepkg exited with code: 4
  376.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement