Skip to content

Commit

Permalink
Drop PREFIX macro. RC_PREFIX is set in all scenarios
Browse files Browse the repository at this point in the history
Signed-off-by: Yiyang Wu <[email protected]>
  • Loading branch information
littlewu2508 committed Jan 7, 2024
1 parent c56d8b4 commit b3eb315
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion man/openrc-run.8
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ A special variable to describe the system more.
Possible values are OPENVZ, XENU, XEN0, UML and VSERVER.
.It Va RC_PREFIX
In a Gentoo Prefix installation, this variable contains the prefix
offset. Otherwise it is undefined.
offset. Otherwise it is empty string.
.It Va RC_UNAME
The result of `uname -s`.
.It Va RC_CMD
Expand Down
2 changes: 0 additions & 2 deletions src/shared/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ env_config(void)
if (sys)
setenv("RC_SYS", sys, 1);

#ifdef PREFIX
setenv("RC_PREFIX", RC_PREFIX, 1);
#endif

/* Some scripts may need to take a different code path if
Linux/FreeBSD, etc
Expand Down

0 comments on commit b3eb315

Please sign in to comment.