@assimilat thanks, it fixes build for me
@markzz can you add this to PKGBUILD?
Git Clone URL: | https://aur.archlinux.org/edk2-git.git (read-only, click to copy) |
---|---|
Package Base: | edk2-git |
Description: | Firmware for Virtual Machines (x86_64, i686) |
Upstream URL: | https://github.com/tianocore/tianocore.github.io/wiki/OVMF |
Licenses: | BSD, MIT |
Conflicts: | ovmf |
Provides: | ovmf |
Replaces: | ovmf |
Submitter: | markzz |
Maintainer: | None |
Last Packager: | markzz |
Votes: | 31 |
Popularity: | 0.000000 |
First Submitted: | 2022-01-12 20:51 (UTC) |
Last Updated: | 2022-01-12 20:51 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 .. 13 Next › Last »
@assimilat thanks, it fixes build for me
@markzz can you add this to PKGBUILD?
JuniorJPDJ- fixed the "error 000E: File/directory not found in workspace" error by adding this to the end of the prepare funct:
cd "${srcdir}/edk2"
git submodule update --init --recursive
The package stopped building for me a while ago.
The error I'm getting:
---------------------------------------------------------------------- Ran 262 tests in 1.688s OK make[1]: Leaving directory '/home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/BaseTools/Tests' make: Leaving directory '/home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/BaseTools' WORKSPACE: /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2 EDK_TOOLS_PATH: /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/BaseTools CONF_PATH: /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/Conf Copying $EDK_TOOLS_PATH/Conf/build_rule.template to /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/Conf/build_rule.txt Copying $EDK_TOOLS_PATH/Conf/tools_def.template to /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/Conf/tools_def.txt Copying $EDK_TOOLS_PATH/Conf/target.template to /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/Conf/target.txt Build environment: Linux-4.19.2-arch1-1-ARCH-x86_64-with-glibc2.2.5 Build start time: 22:57:04, Nov.25 2018 WORKSPACE = /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2 ECP_SOURCE = /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/EdkCompatibilityPkg EDK_SOURCE = /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/EdkCompatibilityPkg EFI_SOURCE = /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/EdkCompatibilityPkg EDK_TOOLS_PATH = /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/BaseTools CONF_PATH = /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/Conf Architecture(s) = X64 Build target = RELEASE Toolchain = GCC5 Active Platform = /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/OvmfPkg/OvmfPkgX64.dsc Flash Image Definition = /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/OvmfPkg/OvmfPkgX64.fdf Processing meta-data ...... build.py... /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf(31): error 000E: File/directory not found in workspace /home/juniorjpdj/.cache/yay/ovmf-git/src/edk2/CryptoPkg/Library/OpensslLib/openssl/e_os.h - Failed - Build end time: 22:57:12, Nov.25 2018 Build total time: 00:00:07
HCF: You don't need it. Read the wiki.
I redid the PKGBUILD to closely resemble the one on the official repositories. The only change is the branch. This is why the directories changed and the ovmf_x64.bin file is no longer packaged. If you want the file back, you can modify the PKGBUILD to your liking.
The newest commit doesn't work without modifications.
FYI: Paths have changed from '/usr/share/ovmf/x64/' to '/usr/share/ovmf/'
==========
Problem: ovmf_x64.bin is not specified in PKGBUILD and thus does not get installed/compiled
Solution: Add 'install -D -m644 "${srcdir}"/edk2/Build/OvmfX64/RELEASE_${_toolchain_opt}/FV/OVMF.fd "${pkgdir}"/usr/share/ovmf/ovmf_x64.bin' before line 58 in PKGBUILD.
FYI - Build is failing using openssl-1.1.0e. Changing it to use openssl-1.1.0g fixes it for me, so I believe they've included support for the newer version.
dominicm: It's not being detected, because path changed, there is x64 folder at end ;D I had same problem 10 seconds ago
Install failed on a clean arch installation and like you said other commenters also have the same issue. Editing out the lines relating to IA32 did work but then why not remove those lines in the package? The whole point of AUR is to make it easy to install packages. If the package is broken it should be fixed or removed as not to waste people's time. Also no matter what I cannot get libvirt to detect ovmf, not sure if it might be related to this package or not but it worked for me in the past with identical config.
dominicm: Could be an issue with the PKGBUILD, but AUR helpers aren't officially supported, so if it builds in a clean chroot, there's nothing I can do for you. I will investigate though, and if you can/are willing, can you build with makepkg it better yet, in a clean chroot to see if it does build.
It looks to me like you are ignoring the comments labeling the IA32 part to be broken and I encourage you to read the comments and do what they suggest.
The package worked in the past but now the install fails with both packer and yaourt. Pretty useless to have a AUR package that can't be install automatically...
build.py... : error F002: Failed to build module /tmp/yaourt-tmp-dom/aur-ovmf-git/src/edk2/OvmfPkg/Sec/SecMain.inf [IA32, GCC49, RELEASE]
==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build ovmf-git.
Pinned Comments