Skip to content

Commit

Permalink
x11-drivers/evdi: add filter-lto to fix building with global lto enabled
Browse files Browse the repository at this point in the history
It looks like the module fails to build when lto is enabled, so lets
just enforce it to be always disabled.

Fixes #8
  • Loading branch information
SuperTux88 committed Jul 15, 2024
1 parent 73e5386 commit 53dc31a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions metadata/md5-cache/x11-drivers/evdi-1.14.5
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ DESCRIPTION=Extensible Virtual Display Interface
EAPI=8
HOMEPAGE=https://github.com/DisplayLink/evdi
IDEPEND=sys-apps/kmod[tools]
INHERIT=linux-mod-r1
INHERIT=linux-mod-r1 flag-o-matic
IUSE=dist-kernel modules-compress modules-sign +strip
KEYWORDS=~amd64
LICENSE=GPL-2 LGPL-2.1
RDEPEND=x11-libs/libdrm sys-apps/kmod[tools] dist-kernel? ( virtual/dist-kernel:= )
SLOT=0
SRC_URI=https://github.com/DisplayLink/evdi/archive/v1.14.5.tar.gz -> evdi-1.14.5.tar.gz
_eclasses_=mount-boot-utils 221f3b57621b98ab8e76d42420601f6d toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 dist-kernel-utils c5204a4147b612736aef239e7cc69885 edo 367e103a74bf77e6a8da7894d999fa3c linux-info e967b81f54be6f49f4219a57ce7db437 multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe linux-mod-r1 0bdab9f1f3187180a16e0c6827bc13c2
_md5_=ca0c2938d205edeb431b4665be227a59
_eclasses_=mount-boot-utils 69218c024651aa10db01df7e8a5b63e0 toolchain-funcs e56c7649b804f051623c8bc1a1c44084 multilib c19072c3cd7ac5cb21de013f7e9832e0 dist-kernel-utils c5204a4147b612736aef239e7cc69885 edo 367e103a74bf77e6a8da7894d999fa3c linux-info ea4122ba1d8791a12b78e53f9510a2e3 multiprocessing 30ead54fa2e2b5f9cd4e612ffc34d0fe linux-mod-r1 0bdab9f1f3187180a16e0c6827bc13c2 flag-o-matic e503ea5acc20410237ba33ec3f7c857d
_md5_=05baae589687b7ae79ca6c4b5aef4550
6 changes: 5 additions & 1 deletion x11-drivers/evdi/evdi-1.14.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit linux-mod-r1
inherit linux-mod-r1 flag-o-matic

DESCRIPTION="Extensible Virtual Display Interface"
HOMEPAGE="https://github.com/DisplayLink/evdi"
Expand All @@ -24,6 +24,10 @@ pkg_setup() {
}

src_compile() {
# The kernel module doesn't build with lto
# See: https://github.com/SuperTux88/gentoo-overlay/issues/8
filter-lto

MODULES_MAKEARGS+=( CONFIG_DRM_EVDI=m )
local modlist=( evdi=video:"${S}/module" )
linux-mod-r1_src_compile
Expand Down

0 comments on commit 53dc31a

Please sign in to comment.