The portage warns about broken symlinks when emerged app-misc/ca-certificates-20110504-r2, and in fact the symlinks point files in a wrong directory. For example: $ cd $EPREFIX $ ls -l etc/ssl/certs/t* lrwxrwxrwx 1 tetsushi staff 61 Sep 5 10:22 etc/ssl/certs/thawte_Primary_Root_CA.pem -> /usr/share/ca-certificates/mozilla/thawte_Primary_Root_CA.crt lrwxrwxrwx 1 tetsushi staff 66 Sep 5 10:22 etc/ssl/certs/thawte_Primary_Root_CA_-_G2.pem -> /usr/share/ca-certificates/mozilla/thawte_Primary_Root_CA_-_G2.crt lrwxrwxrwx 1 tetsushi staff 66 Sep 5 10:22 etc/ssl/certs/thawte_Primary_Root_CA_-_G3.pem -> /usr/share/ca-certificates/mozilla/thawte_Primary_Root_CA_-_G3.crt The link /usr/share/... should be $EPREFIX/usr/share/... I don't exactly know how to solve the issue, but I guess it is caused by stripping $ROOT from $CERT in function add of update-ca-certificates script.
update-ca-certificates is broken after the migration to gx86 --root support isn't enough for prefix support
@base-system: to solve this mess, I need the following changes: diff -u -r1.3 ca-certificates-20110502-r2.ebuild --- ca-certificates-20110502-r2.ebuild 3 Sep 2011 17:33:45 -0000 1.3 +++ ca-certificates-20110502-r2.ebuild 5 Sep 2011 18:03:45 -0000 @@ -31,13 +31,21 @@ } src_unpack() { + if [[ -n ${EPREFIX} ]] ; then + # need to perform everything in the offset, #381937 + mkdir -p "./${EPREFIX}" + cd "./${EPREFIX}" || die + fi unpack ${A} unpack ./data.tar.gz rm -f control.tar.gz data.tar.gz debian-binary } src_prepare() { + cd "./${EPREFIX}" || die epatch "${FILESDIR}"/${PN}-20090709-root.patch + sed -i -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \ + usr/sbin/update-ca-certificates || die } src_compile() { @@ -45,17 +53,15 @@ echo "# Automatically generated by ${CATEGORY}/${PF}" echo "# $(date -u)" echo "# Do not edit." - cd "${S}"/usr/share/ca-certificates + cd "${S}${EPREFIX}"/usr/share/ca-certificates find * -name '*.crt' | LC_ALL=C sort - ) > "${S}"/etc/ca-certificates.conf + ) > "${S}${EPREFIX}"/etc/ca-certificates.conf - sed -i "/^ROOT=""/s:=.*:='${EPREFIX}':" "${S}"/usr/sbin/update-ca-certificates || die - "${S}"/usr/sbin/update-ca-certificates --root "${S}" + "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" } src_install() { - mkdir -p "${ED}" - cp -pPR * "${ED}"/ || die + cp -pPR * "${D}"/ || die mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die prepalldocs cvs diff: Diffing files
grobian: +1 for you to commit it w/ a revbump
(In reply to comment #3) > +1 for you to commit it w/ a revbump obviously, thanks!
Oops, did not fully complete testing when I committed the first version. Sorry for the trouble(s). =/