Summary: | sys-apps/openrc-0.11.4: double slash in initscript symlinks | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Alexander Tsoy <alexander> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | CC: | arfrever.fta |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 439098 | ||
Attachments: |
openrc-0.11.4.ebuild.patch
openrc-0.11.4.ebuild.patch |
Description
Alexander Tsoy
2012-11-06 11:07:18 UTC
Created attachment 328534 [details, diff]
openrc-0.11.4.ebuild.patch
This patch should fix this.
Created attachment 328536 [details, diff]
openrc-0.11.4.ebuild.patch
(In reply to comment #2) ${D}, ${ED}, ${ROOT} and ${EROOT} are guaranteed by PMS to always end with "/", so ebuild can use: ln -snf "${EROOT}"etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd} This is fixed in thelive ebuild. Based on the information in comment #3, I did not use the patch in Comment #2. You can also remove slashes in the following lines: $ grep -E '\${E?(D|ROOT)}"?/' openrc-9999.ebuild local file="${ED}/$1" var=$2 val com #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die rm -rf "${ED}"/etc/runlevels rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \ cp "${EROOT}"etc/conf.d/net "${ED}"/etc/conf.d/ if [[ -e ${EROOT}etc/conf.d/clock && ! -e ${EROOT}/etc/timezone ]] ; then for f in $(cd "${ED}"/usr/share/${PN}/runlevels/boot || exit; echo *) ; do [[ -e "${EROOT}"etc/conf.d/rc ]] && source "${EROOT}"/etc/conf.d/rc ' "${f}" >> "${ED}"/etc/conf.d/modules [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u |