At the last step of emerging app-misc/ca-certificates, it doesn't update $EPREFIX/etc/ssl/certs but fails to update /etc/ssl/certs. Reproducible: Always Steps to Reproduce: 1.emerge ca-certificates Actual Results: >>> Original instance of package unmerged safely. /Users/tetsushi/Gentoo/usr/sbin/update-ca-certificates: line 42: cd: /etc/ssl/certs: No such file or directory >>> app-misc/ca-certificates-20080514 merged. Expected Results: $EPREFIX/etc/ssl/certs should be updated, and /etc/ssl/certs shouldn't be touched. $EPREFIX/usr/sbin/update-ca-certificates has the following lines: ETCCERTSDIR=/etc/ssl/certs cd $ETCCERTSDIR while ca-certificates-20080514.ebuild has the following lines: # dirty prefix job (someone gotta do it...) sed -i -e "1s|^.*$|#!${EPREFIX}/bin/bash -e|" \ -e "/^\(CERTSCONF\|CERTSDIR\)=/s|=|=\"${EPREFIX}\"|" \ -e "s|^cd /etc/ssl/certs$|cd \"${EPREFIX}\"/etc/ssl/certs|" \ usr/sbin/update-ca-certificates || die "Can't prefixify" The second expression doesn't match to any lines. The way to fix seems trivial.
I don't see it? CERTSCONF="/Library/Gentoo"/etc/ca-certificates.conf CERTSDIR="/Library/Gentoo"/usr/share/ca-certificates CERTBUNDLE=ca-certificates.crt cd "/Library/Gentoo"/etc/ssl/certs
I don't understand what does it mean...? How original files can differ if they come from the same package? But, anyway, I have these lines in my $EPREFIX/usr/sbin/update-ca-certificates: CERTSCONF="/Users/tetsushi/Gentoo"/etc/ca-certificates.conf CERTSDIR="/Users/tetsushi/Gentoo"/usr/share/ca-certificates CERTBUNDLE=ca-certificates.crt ETCCERTSDIR=/etc/ssl/certs cd $ETCCERTSDIR if [ "$fresh" = 1 ]; thern echo -n "Clearing symlinks in $ETCCERTSDIR..." And of course, it is refreshed by emerging ca-certificates: -rwxr-xr-x 1 tetsushi tetsushi 2748 2008-05-28 16:13 update-ca-certificates
fixed, thanks!
Thanks, but now I have another error: >>> Original instance of package unmerged safely. Updating certificates in /Users/tetsushi/Gentoo/etc/ssl/certs....done. Running hooks in /etc/ca-certificates/update.d....run-parts: failed to open directory /etc/ca-certificates/update.d: No such file or directory done. The HOOKSDIR=/etc/ca-certificates/update.d line should be also eprefixified.
reopen
should be fixed in ca-certificates-20080514-r1.ebuild now, thanks again!