Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829765 - app-emulation/xen-4.16.0 USE="-efi" - installation fails if /boot is on fat fs
Summary: app-emulation/xen-4.16.0 USE="-efi" - installation fails if /boot is on fat fs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-12-21 10:05 UTC by korte
Modified: 2022-01-15 09:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (xen-4.16.0:20211221-095311.log.gz,25.63 KB, application/gzip)
2021-12-21 10:07 UTC, korte
Details
build.log xen-4.16.0-r1 OK (xen-4.16.0-r1:20211223-201017.log.gz,26.68 KB, application/gzip)
2021-12-23 20:23 UTC, korte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description korte 2021-12-21 10:05:56 UTC
I even moved all /boot/xen* away to make sure, there is no old file left.

>>> Installing (1 of 3) app-emulation/xen-4.16.0::gentoo
 * checking 7 files for package collisions
>>> Merging app-emulation/xen-4.16.0 to /
 * Your boot partition was detected as being mounted at /boot.
 * Files will be installed there for xen to function correctly.
--- /boot/
>>> /boot/xen-4.16.0.config
>>> /boot/xen-4.16.0
!!! failed to properly create symlink:
!!! /boot/xen-4 -> xen-4.16.0
!!! [Errno 1] Operation not permitted: b'xen-4.16.0' -> b'/boot/xen-4'
!!! Failed to move file.
!!! /boot/xen-4 -> xen-4.16.0

>>> Failed to install app-emulation/xen-4.16.0, Log file:

My system is a Pi400, arm64, /boot is vfat.


Possibly a followup to the fix in https://bugs.gentoo.org/829288#c13


Reproducible: Always




emerge --info
Portage 3.0.28 (python 3.9.9-final-0, default/linux/arm64/17.0, gcc-11.2.0, glibc-2.33-r7, 5.10.63-v8 aarch64)
=================================================================
System uname: Linux-5.10.63-v8-aarch64-with-glibc2.33
KiB Mem:     3831556 total,   1372768 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Tue, 21 Dec 2021 05:00:01 +0000
Head commit of repository gentoo: d5719d86bf576ff6730c59a86e672a1bace7447a
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
ccache version 4.4.2 [enabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p8::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r3::gentoo
dev-lang/python:           3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.0_p1::gentoo
dev-lang/rust:             1.56.1::gentoo
dev-util/ccache:           4.4.2::gentoo
dev-util/cmake:            3.21.4::gentoo
dev-util/meson:            0.59.4::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.4::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            11.1.0::gentoo, 12.0.1::gentoo, 13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.10-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

guru
    location: /var/lib/layman/guru
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50

salfter
    location: /var/lib/layman/salfter
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="* @EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox s
fperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="24-bit-color 256-color X \ aalib acl alsa ap apng arm64 avif bittorrent bluetooth bogofilter brotli bzip2 cacert cairo cdda cddb cli codec2 crypt cups curl dav1d dbus dri egl elogind encode evdev exif faac faad fasteap ffmpeg flac fortran gd gdbm gentoo-vm ghcbootstrap gif gles1 gles2 gme gpg gstreamer gtk gtk2 g
tk3 harfbuzz hddtemp hwaccel iconv icu id3tag inotify ipv6 ithreads jingle jpeg kms libdrm libglvnd libmpeg2 libnotify libtirpc lz4 lzma lzo mad matroska metalink midi mikmod minizip mod modplug mp3 mpeg musicbrainz ncurses network nls nptl offlinehelp ogg omemo openal opengl openh264 openmp opus pcre pdf pdfimport pe
rl png postproc postscript pulseaudio rar rav1e readline rtmp rubberband samba sdl seccomp sftp smime snappy sox speech speex spell split-usr ssh ssl svg taglib text theora threads tiff timidity tk toolame tremor truetype twolame unicode upnp usb v4l verify-sig vorbis vpx wavpack webp x264 x265 xattr xen xface xml xml
rpc xorg xpm xv xvid xxhash zeroconf zip zlib zstd" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav
 dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rr
dtool swap syslog" CPU_FLAGS_ARM="crc32 edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip
 tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGET
S="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="aarch64 i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev v3d vc4" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4o
ptions ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORT
AGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 korte 2021-12-21 10:07:45 UTC
Created attachment 759970 [details]
build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-21 10:09:42 UTC
I think this is because your /boot doesn't support symlinks.
Comment 3 korte 2021-12-21 10:29:12 UTC
(In reply to Sam James from comment #2)
> I think this is because your /boot doesn't support symlinks.

How about adding an useflag no-symlink, copy_instead_of_symlink or checking for vfat on /boot?

The files could be copied instead of linked. All Raspberry Pi require vfat on /boot because of their special booting. 

Not to create the symlink and give a warning like "With /boot on vfat you need to copy the xen-x.y.z file to xen, xen-x, xen-x.y manually." would be a solution to me, too.

How do other distribution handle this?

I read, that xen might be faster then qemu's tcg. I want to try to get a virtual machine with x86/amd64 because of my binary printer driver. The printer was too expensive to buy a fully supported one.
Comment 4 Tomáš Mózes 2021-12-21 12:02:22 UTC
Currently we only skip symlinks when the efi use-flag is set because efi is on fat fs.
Comment 5 korte 2021-12-21 12:24:24 UTC
There is an UEFI Bios available: https://rpi4-uefi.dev/
Comment 6 Tomáš Mózes 2021-12-23 19:43:27 UTC
In https://github.com/gentoo/gentoo/pull/23484 you can specify USE="-boot-symlinks" emerge -v app-emulation/xen, please test.
Comment 7 korte 2021-12-23 20:22:32 UTC
(In reply to Tomáš Mózes from comment #6)
> In https://github.com/gentoo/gentoo/pull/23484 you can specify
> USE="-boot-symlinks" emerge -v app-emulation/xen, please test.

emerge ran successfully.
I did not check any other behaviour yet.
Comment 8 korte 2021-12-23 20:23:55 UTC
Created attachment 760160 [details]
build.log xen-4.16.0-r1 OK
Comment 9 Larry the Git Cow gentoo-dev 2022-01-15 09:31:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a3df79bc9bdd024fb463382ad35c8339c856306

commit 8a3df79bc9bdd024fb463382ad35c8339c856306
Author:     Tomáš Mózes <hydrapolic@gmail.com>
AuthorDate: 2021-12-23 19:35:40 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-01-15 09:31:18 +0000

    app-emulation/xen: add USE to disable boot symlinks
    
    Closes: https://bugs.gentoo.org/829765
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/23484
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-emulation/xen/files/xen-4.16-efi.patch         | 38 ----------------------
 app-emulation/xen/files/xen-4.16-no-symlink.patch  | 17 ++++++++++
 app-emulation/xen/metadata.xml                     |  1 +
 .../{xen-4.16.0.ebuild => xen-4.16.0-r1.ebuild}    | 13 ++++----
 4 files changed, 25 insertions(+), 44 deletions(-)