Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363637 - >=sys-apps/openrc-0.8.0: conf.d/local -> local.d transition broken (typo in ebuild)
Summary: >=sys-apps/openrc-0.8.0: conf.d/local -> local.d transition broken (typo in e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 295613
  Show dependency tree
 
Reported: 2011-04-14 21:01 UTC by Robert Trace
Modified: 2011-04-15 03:45 UTC (History)
0 users

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


Attachments
Fix local.d paths (openrc_fixlocal.patch,756 bytes, text/plain)
2011-04-14 21:01 UTC, Robert Trace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Trace 2011-04-14 21:01:44 UTC
Created attachment 269985 [details]
Fix local.d paths

There's a bug in the openrc-0.8.1 ebuild that causes the conf.d/local.st* transition to fail.  Specifically:

# Handle the conf.d/local.{start,stop} -> local.d transition
if path_exists -o "${ROOT}"/etc/conf.d/local.{start,stop} ; then
   elog "Moving your /etc/conf.d/local.{start,stop} files to /etc/local.d"
   mv "${ROOT}"/etc/conf.d/local.start "${ROOT}"/local.d/baselayout1.start
   mv "${ROOT}"/etc/conf.d/local.stop "${ROOT}"/local.d/baselayout1.stop
   chmod +x "${ROOT}"/local.d/*{start,stop}
fi

Notice the destination of the mv and the chmod?  They're "${ROOT}"/local.d instead of "${ROOT}"/etc/local.d.  This'll result in:

 * Moving your /etc/conf.d/local.{start,stop} files to /etc/local.d
mv: cannot move `//etc/conf.d/local.start' to `//local.d/baselayout1.start': No such file or directory
mv: cannot move `//etc/conf.d/local.stop' to `//local.d/baselayout1.stop': No such file or directory
chmod: cannot access `//local.d/*start': No such file or directory
chmod: cannot access `//local.d/*stop': No such file or directory
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-04-14 21:08:38 UTC
Thanks for the report. It was broken in 0.8.0 too.

(Btw, your patch is reversed. It is "diff -u <old> <new>" )
Comment 2 Robert Trace 2011-04-14 21:12:22 UTC
(In reply to comment #1)
> 
> (Btw, your patch is reversed. It is "diff -u <old> <new>" )

oops.. yea, I was typing too fast.  :-)

Nothing a little -R won't solve however.  (I assume you don't really need me to fix it.)
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-04-14 21:21:05 UTC
(In reply to comment #2)
> Nothing a little -R won't solve however.  (I assume you don't really need me to
> fix it.)

Informational message only, (sometimes people don't know how to use diff properly). Don't worry about it.
Comment 4 William Hubbs gentoo-dev 2011-04-15 03:45:30 UTC
This has been fixed and will be available in 0.8.2.