Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 407502 Details for
Bug 524456
sys-apps/baselayout-java - /etc/profile.d/java-config-2.sh: user_id is not set
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix this and other set -u issues
baselayout-java-setu.patch (text/plain), 833 bytes, created by
Martin Väth
on 2015-07-24 09:00:35 UTC
(
hide
)
Description:
Fix this and other set -u issues
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2015-07-24 09:00:35 UTC
Size:
833 bytes
patch
obsolete
>--- 1/src/java-config-2.sh.in >+++ 1/src/java-config-2.sh.in >@@ -9,13 +9,14 @@ > # See https://bugs.gentoo.org/show_bug.cgi?id=169925 > # for more details" > >-if [ -z "${UID}" ] ; then >+if [ -z "${UID-}" ] ; then > # id lives in /usr/bin which might not be mounted > if type id >/dev/null 2>/dev/null ; then > user_id=$(id -u) > else >- [ "${USER}" = "root" ] && user_id=0 >+ [ "${USER-}" = "root" ] && user_id=0 > fi >+else user_id=${UID} > fi > > # The root user uses the system vm >@@ -27,7 +28,7 @@ > fi > > # prepending to come before generation 1 >-export MANPATH="${JAVA_HOME}/man:${MANPATH}" >-export JDK_HOME=${JAVA_HOME} >-export JAVAC=${JDK_HOME}/bin/javac >+export MANPATH="${JAVA_HOME}/man${MANPATH:+:}${MANPATH-}" >+export JDK_HOME="${JAVA_HOME}" >+export JAVAC="${JDK_HOME}/bin/javac" > unset gentoo_user_vm gentoo_system_vm user_id
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 524456
: 407502