Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223905 - app-misc/ca-certificates-20080514 doesn't update $EPREFIX/etc/ssl/certs
Summary: app-misc/ca-certificates-20080514 doesn't update $EPREFIX/etc/ssl/certs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-27 23:00 UTC by MATSUI Tetsushi
Modified: 2008-06-01 16:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2008-05-27 23:00:42 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2008-05-28 07:04:04 UTC
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
Comment 2 MATSUI Tetsushi 2008-05-28 07:47:35 UTC
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

Comment 3 Fabian Groffen gentoo-dev 2008-05-28 10:03:29 UTC
fixed, thanks!
Comment 4 MATSUI Tetsushi 2008-05-29 12:48:26 UTC
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.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-29 15:55:12 UTC
reopen
Comment 6 Fabian Groffen gentoo-dev 2008-06-01 16:56:41 UTC
should be fixed in ca-certificates-20080514-r1.ebuild now, thanks again!