After upgrade from openrc-0.10* to openrc-0.11.4 this symlinks got created: $ ls -l /etc/runlevels/*/ | grep '//' lrwxrwxrwx 1 root root 27 нояб. 6 12:28 tmpfiles.setup -> //etc/init.d/tmpfiles.setup lrwxrwxrwx 1 root root 18 нояб. 6 12:27 sysfs -> //etc/init.d/sysfs Reproducible: Always
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