Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471442 - apache-module.eclass: src_install should use pushd/popd instead of `cd`
Summary: apache-module.eclass: src_install should use pushd/popd instead of `cd`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-27 15:30 UTC by SpanKY
Modified: 2013-06-22 00:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2013-05-27 15:30:59 UTC
the current apache-module_src_install func changes the working dir which makes it messy for packages that use it

simple fix: in apache-module_src_install, change:
-    cd "${CD_DIR}" || die "cd ${CD_DIR} failed"
+    pushd "${CD_DIR}" >/dev/null || die "cd ${CD_DIR} failed"

and at the end of the func add:
    popd >/dev/null