Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 368706 Details for
Bug 417383
games.eclass: please move /etc/env.d/90games to a separate package
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
games.eclass.patch
games.eclass.patch (text/plain), 1.45 KB, created by
Julian Ospald
on 2014-01-25 18:39:34 UTC
(
hide
)
Description:
games.eclass.patch
Filename:
MIME Type:
Creator:
Julian Ospald
Created:
2014-01-25 18:39:34 UTC
Size:
1.45 KB
patch
obsolete
>move /etc/env.d/90games to a separate package wrt #417383 > >--- eclass/games.eclass >+++ eclass/games.eclass >@@ -18,6 +18,11 @@ > 2|3|4|5) EXPORT_FUNCTIONS pkg_setup src_configure src_compile pkg_preinst pkg_postinst ;; > *) die "no support for EAPI=${EAPI} yet" ;; > esac >+ >+if [[ ${PN} != "gentoo-envd" ]] ; then >+ # environment file >+ RDEPEND="games-misc/gentoo-envd" >+fi > > export GAMES_PREFIX=${GAMES_PREFIX:-/usr/games} > export GAMES_PREFIX_OPT=${GAMES_PREFIX_OPT:-/opt} >@@ -124,23 +129,6 @@ > find "${D}/${GAMES_BINDIR}" -maxdepth 1 -type f -exec chmod 750 '{}' \; > } > >-gamesenv() { >- local d libdirs >- >- for d in $(get_all_libdirs) ; do >- libdirs="${libdirs}:${GAMES_PREFIX}/${d}" >- done >- >- # Wish we could use doevnd here, but we dont want the env >- # file to be tracked in the CONTENTS of every game >- cat <<-EOF > "${ROOT}"/etc/env.d/${GAMES_ENVD} >- LDPATH="${libdirs:1}" >- PATH="${GAMES_BINDIR}" >- EOF >- gamesowners "${ROOT}"/etc/env.d/${GAMES_ENVD} >- gamesperms "${ROOT}"/etc/env.d/${GAMES_ENVD} >-} >- > games_pkg_setup() { > tc-export CC CXX LD AR RANLIB > >@@ -183,9 +171,8 @@ > done < <(find "${D}/${GAMES_STATEDIR}" -type f -printf '%P\n' 2>/dev/null) > } > >-# pkg_postinst function ... create env.d entry and warn about games group >+# pkg_postinst function ... warn about games group > games_pkg_postinst() { >- gamesenv > if [[ -z "${GAMES_SHOW_WARNING}" ]] ; then > ewarn "Remember, in order to play games, you have to" > ewarn "be in the '${GAMES_GROUP}' group."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 417383
:
368704
|
368706
|
369356
|
369358
|
369390
|
370268