Archlinux template for Qubes R4 build is working

350 views
Skip to first unread message

qubes...@secmail.pro

unread,
May 30, 2018, 11:37:17 AM5/30/18
to qubes...@googlegroups.com
Archlinux template seems to be fully working and building completely but
requires minor changes:

run ./setup
release 4.0 stable
select archlinux

edit the file
qubes-src/builder-archlinux/scripts/04_install_qubes.sh

find the line:
echo " --> Registering Qubes custom repository..."
cut out what is in 4 lines after this one echo and paste this instead:
su -c 'echo "[qubes] " >> $INSTALLDIR/etc/pacman.conf'
su -c 'echo " #QubesTMP" >> $INSTALLDIR/etc/pacman.conf'
su -c 'echo "SigLevel = Optional TrustAll " >> $INSTALLDIR/etc/pacman.conf'
su -c 'echo " #QubesTMP" >> $INSTALLDIR/etc/pacman.conf'
su -c 'echo "Server = file:///tmp/qubes-packages-mirror-repo/pkgs " >>
$INSTALLDIR/etc/pacman.conf'
su -c 'echo " #QubesTMP" >> $INSTALLDIR/etc/pacman.conf'

The build script has some problem with #comments.
Not sure why this fix works but different fixes were not, was about to
give up but then it worked.

Another couple of edits (taken from 2 day old fix on github)
/qubes-src/gui-agent-linux/archlinux/PKGBUILD
In line 11

makedepends=(pkg-config make gcc patch git automake autoconf libtool
pulseaudio xorg-server-devel xorg-util-macros xf86dgaproto libxcomposite
qubes-vm-gui-common qubes-libvchan-xen qubes-db-vm libxt pixman)

pixman is added just to be sure but im unsure how it helps, as said on
github too.

within the same file edit line 62:
'xorg-server>=1.19.0' 'xorg-server<1.21.0'

changed from "1.20.0" to "1.21.0"

and that would be it. Builds.

The qubes repository with archlinux binaries has its pgp signature expired
for over 2 months so Qubes- stuff does not upgrade from within template.
[qubes-r4.0]
Server = http://olivier.medoc.free.fr/archlinux/current
thats why it does not matter (much) if it is left disabled by default.

the only leftover would be to edit /etc/pacman.conf and remove last 3
lines which were used during template build.

Thank you all

reightt...@gmail.com

unread,
Jun 2, 2018, 9:29:55 AM6/2/18
to qubes-users
Hi. Thanks for the guide. It works.
It will only be possible to use the basic system utilities?

[user@archlinux ~]$ sudo pacman -Suuy
:: Synchronizing package databases...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6114 100 6114 0 0 14626 0 --:--:-- --:--:-- --:--:-- 14661
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 287 100 287 0 0 668 0 --:--:-- --:--:-- --:--:-- 667
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 403 Forbidden
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 129k 100 129k 0 0 152k 0 --:--:-- --:--:-- --:--:-- 151k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
^C
Interrupt signal received

[user@archlinux ~]$ ^C
[user@archlinux ~]$


# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist
[qubes]
SigLevel = Optional TrustAll
Server = file:///tmp/qubes-packages-mirror-repo/pkgs
#[archlinuxfr]
#SigLevel= Never
#Server = http://repo.archlinux.fr/$arch
#[qubes-r4.0]
#Server = http://olivier.medoc.free.fr/archlinux/current

stallm...@gmail.com

unread,
Aug 14, 2018, 4:21:24 PM8/14/18
to qubes-users
release 4.1 build success

you need comment out "ttf-symbola"

line # Particularly good Unicode coverage:

$HOME/qubes-builder/qubes-src/builder-archlinux/scripts/packages.list

---
Cheers ;)

Антон Чехов

unread,
Sep 18, 2018, 5:16:20 AM9/18/18
to qubes-users
Hello,

I am having some difficulties building the Arch Linux template for Qubes 4.0.

I have been following the steps along the lines of this guide:
https://github.com/QubesOS/qubes-issues/issues/3185

Everything is looking fine until “make template”.

The logfile is showing this error message:

--> Updating pacman sources...
warning: config file /etc/pacman.conf, line 104: directive '[qubes] # QubesTMP'$
error: config file /etc/pacman.conf, line 105: invalid value for 'SigLevel' : '$
error: config file /etc/pacman.conf, line 105: invalid value for 'SigLevel' : '$
make[1]: *** [Makefile:64: rootimg-build] Error 1

I changed the SigLevel in the pacman.conf to “Optional TrustAll” and started the whole process again but nothing changed.

I tried cutting out the lines and pasting these but there were more error messages instead suggesting that there is something wrong in these lines. Has anybody an idea what went wrong and what I could do?

A little help would be very welcome. I’ve been using Arch for quite some time and it would be great to have it as a template.

Thanks!

Foppe de Haan

unread,
Jan 25, 2019, 12:50:42 PM1/25/19
to qubes-users
For me, the template builds just fine, but thunderbird-qubes and the GUI )file transfer agent integrated with thunar are missing. (invoking these via the CLI works fine, though.)
Reply all
Reply to author
Forward
0 new messages