Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773211 - games-engines/openmw-9999 build fails while applying recastnavigation patch
Summary: games-engines/openmw-9999 build fails while applying recastnavigation patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-27 01:09 UTC by Ilya Trukhanov
Modified: 2021-03-08 07:35 UTC (History)
4 users (show)

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


Attachments
build log of openmw-9999 when patch fails to apply (build.log,14.46 KB, text/x-log)
2021-02-27 01:11 UTC, Ilya Trukhanov
Details
Patch updating the build to use the new system recastnavigation option (recastnavigation-fix.patch,852 bytes, patch)
2021-03-06 19:18 UTC, Benjamin Winger
Details | Diff
Patch updating the build to use the new system recastnavigation option (recastnavigation-fix-2.patch,861 bytes, patch)
2021-03-06 19:23 UTC, Benjamin Winger
Details | Diff
Patch to fix the build, based on patch above (openmw.patch,2.45 KB, patch)
2021-03-07 21:33 UTC, Alexey
Details | Diff
Patch to fix the build, based on patch above (openmw.patch,2.50 KB, patch)
2021-03-07 21:38 UTC, Alexey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Trukhanov 2021-02-27 01:09:25 UTC
openmw-9999 fails to build when applying openmw-0.46.0-recastnavigation.patch

Reproducible: Always

Steps to Reproduce:
1. emerge =openmw-9999
Actual Results:  
portage fails to build the package.

Expected Results:  
Package gets built and runs successfully.

I think this commit may be related: https://gitlab.com/OpenMW/openmw/-/commit/1c9245bd58a07f6e3709b4136c934f441c1272f7

Portage 3.0.15 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop, gcc-10.2.0, glibc-2.32-r7, 5.10.17-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.17-gentoo-x86_64-AMD_Ryzen_7_1700_Eight-Core_Processor-with-glibc2.2.5
KiB Mem:    32872340 total,    263820 free
KiB Swap:    8358208 total,   8281424 free
Timestamp of repository gentoo: Fri, 26 Feb 2021 18:00:01 +0000
Head commit of repository gentoo: e72596727b35ecb7b2accf8fe34697bf9714d382
Timestamp of repository dotnet: Wed, 24 Feb 2021 15:55:11 +0000
Head commit of repository dotnet: 609592a1209cf39672dd948328b2ddba1d84db85

Head commit of repository grate-overlay: f0025a8fcd4281d0eb9f2fac84d0c14e8f9cacb1

Timestamp of repository steam-overlay: Wed, 24 Feb 2021 15:55:35 +0000
Head commit of repository steam-overlay: 01ea47ce41b53b47958e557262eeb7faf85575f2

Timestamp of repository vortex: Wed, 24 Feb 2021 15:55:40 +0000
Head commit of repository vortex: a4ad6302018de856d40a2784eef10b97b907e6dd

Timestamp of repository wine: Wed, 24 Feb 2021 15:56:11 +0000
Head commit of repository wine: 52230cfbd065f2ccdd1f5efc4e99ade941d1c835

sh dash 0.5.11.3-r1
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
ccache version 4.2 [disabled]
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.7.10::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-util/ccache:          4.2::gentoo
dev-util/cmake:           3.19.5::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo, 11.0.1_pre9999::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-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

dotnet
    location: /var/db/repos/dotnet
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dotnet.git
    masters: gentoo

grate-overlay
    location: /var/db/repos/grate-overlay
    sync-type: git
    sync-uri: https://github.com/grate-driver/grate-overlay.git
    masters: gentoo

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

vortex
    location: /var/db/repos/vortex
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/vortex.git
    masters: gentoo

wine
    location: /var/db/repos/wine
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wine.git
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

Installed sets: @kodi, @s6, @sc-controller, @work
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 binpkg-multi-instance 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 sfperms sign 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="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb bluray branding bzip2 cairo caps cdda cdr cli crypt dbus discord-presence dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gles gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline realtime sdl seccomp spell split-usr ssl staging startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan wayland wxwidgets x264 xattr xcb xinerama xml xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom joystick" KERNEL="linux" L10N="en-US" 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_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

games-engines/openmw-9999::gentoo was built with the following:
USE="osg-fork qt5 -devtools -doc -test" ABI_X86="(64)"
CXXFLAGS="-O2 -pipe -march=native -I/usr/include/recastnavigation"
FEATURES="config-protect-if-modified news sfperms multilib-strict unmerge-logs preserve-libs userfetch ccache merge-sync ebuild-locks xattr usersync qa-unresolved-soname-deps unmerge-orphans fixlafiles distlocks binpkg-dostrip binpkg-logs strict unknown-features-warn network-sandbox userpriv usersandbox protect-owned pid-sandbox sign ipc-sandbox parallel-fetch binpkg-docompress sandbox assume-digests"
Comment 1 Ilya Trukhanov 2021-02-27 01:11:04 UTC
Created attachment 688542 [details]
build log of openmw-9999 when patch fails to apply
Comment 2 Benjamin Winger 2021-03-06 19:18:52 UTC
Created attachment 689691 [details, diff]
Patch updating the build to use the new system recastnavigation option

There's a new OPENMW_USE_SYSTEM_RECASTNAVIGATION option which can be used instead of the custom patch.
Comment 3 Benjamin Winger 2021-03-06 19:23:27 UTC
Created attachment 689694 [details, diff]
Patch updating the build to use the new system recastnavigation option

Messed up the paths in the patch the first time.
Comment 4 Alexey 2021-03-07 20:58:15 UTC
Thanks for patch!
Comment 5 Alexey 2021-03-07 21:33:44 UTC
Created attachment 689865 [details, diff]
Patch to fix the build, based on patch above
Comment 6 Alexey 2021-03-07 21:38:50 UTC
Created attachment 689868 [details, diff]
Patch to fix the build, based on patch above
Comment 7 Joonas Niilola gentoo-dev 2021-03-08 07:31:41 UTC
 * One or more CMake variables were not used by the project:
 *   DESIRED_QT_VERSION
Comment 8 Larry the Git Cow gentoo-dev 2021-03-08 07:35:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a7657e01bf33cba95cf23d4877106b76f793fee

commit 7a7657e01bf33cba95cf23d4877106b76f793fee
Author:     Alexey Sokolov <sokolov@google.com>
AuthorDate: 2021-03-08 07:29:04 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-03-08 07:35:05 +0000

    games-engines/openmw: fix build of 9999
    
    Closes: https://bugs.gentoo.org/773211
    Signed-off-by: Alexey Sokolov <sokolov@google.com>
    Thanks-to: Benjamin Winger <bmw@disroot.org>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../openmw/files/openmw-0.47.0-bullet-debian.patch        | 15 +++++++++++++++
 games-engines/openmw/openmw-9999.ebuild                   | 10 ++++------
 2 files changed, 19 insertions(+), 6 deletions(-)