Skip to content

Commit

Permalink
net-im/telegram-desktop: Hardcode XDG_DATA_DIRS variable
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/920819
Closes: gentoo#34576
Thanks-to: tt_1
Signed-off-by: Esteve Varela Colominas <[email protected]>
Signed-off-by: Yixun Lan <[email protected]>
  • Loading branch information
mid-kid authored and dlan17 committed Jan 2, 2024
1 parent 6839353 commit aab45ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net-im/telegram-desktop/telegram-desktop-4.12.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ src_prepare() {
}

src_configure() {
# Having user paths sneak into the build environment through the
# XDG_DATA_DIRS variable causes all sorts of weirdness with cppgir:
# - bug 909038: can't read from flatpak directories (fixed upstream)
# - bug 920819: system-wide directories ignored when variable is set
export XDG_DATA_DIRS="${EPREFIX}/usr/share"

# Evil flag (bug #919201)
filter-flags -fno-delete-null-pointer-checks

Expand Down
6 changes: 6 additions & 0 deletions net-im/telegram-desktop/telegram-desktop-4.13.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ src_prepare() {
}

src_configure() {
# Having user paths sneak into the build environment through the
# XDG_DATA_DIRS variable causes all sorts of weirdness with cppgir:
# - bug 909038: can't read from flatpak directories (fixed upstream)
# - bug 920819: system-wide directories ignored when variable is set
export XDG_DATA_DIRS="${EPREFIX}/usr/share"

# Evil flag (bug #919201)
filter-flags -fno-delete-null-pointer-checks

Expand Down

0 comments on commit aab45ee

Please sign in to comment.