Mageia Bugzilla – Attachment 260 Details for
Bug 871
service named start fails with "initializing DST: openssl failure".
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Copy all versions of libgost.so to chroot environment after removing old.
named.patch (text/plain), 978 bytes, created by
Dave Hodgins
on 2011-04-20 20:59:19 CEST
(
hide
)
Description:
Copy all versions of libgost.so to chroot environment after removing old.
Filename:
MIME Type:
Creator:
Dave Hodgins
Created:
2011-04-20 20:59:19 CEST
Size:
978 bytes
patch
obsolete
>--- named.orig 2011-04-19 06:16:31.000000000 -0400 >+++ named 2011-04-20 14:56:15.964971158 -0400 >@@ -56,12 +56,12 @@ > # better always copy localtime so it respects the system's timezone > install -m 0644 -o root -g root /etc/localtime /var/lib/named/etc/ > >- # libgost.so needs to be in the chroot, so copy it there >- LIBGOST=$(rpm -ql $(rpm -q --whatprovides openssl-engines) | grep /libgost.so) >- mkdir -p "${LIBGOST%[/]*}" >- # copy everytime as we need to make sure everything is in sync >- cp -p $LIBGOST /var/lib/named/$LIBGOST >- >+ # libgost.so needs to be in the chroot, so copy it there, after removing >+ # any existing (possibly old) versions. >+ rm -f /var/lib/named/usr/lib*/openssl*/engines/libgost.so >+ for LIBGOST in /usr/lib*/openssl*/engines/libgost.so ; do >+ cp --parents "$LIBGOST" /var/lib/named/ >+ done > > [ -d /var/lib/named/proc ] || mkdir -p /var/lib/named/proc > if ! egrep -q '^/proc[[:space:]]+'/var/lib/named'/proc' /proc/mounts; then
--- named.orig 2011-04-19 06:16:31.000000000 -0400 +++ named 2011-04-20 14:56:15.964971158 -0400 @@ -56,12 +56,12 @@ # better always copy localtime so it respects the system's timezone install -m 0644 -o root -g root /etc/localtime /var/lib/named/etc/ - # libgost.so needs to be in the chroot, so copy it there - LIBGOST=$(rpm -ql $(rpm -q --whatprovides openssl-engines) | grep /libgost.so) - mkdir -p "${LIBGOST%[/]*}" - # copy everytime as we need to make sure everything is in sync - cp -p $LIBGOST /var/lib/named/$LIBGOST - + # libgost.so needs to be in the chroot, so copy it there, after removing + # any existing (possibly old) versions. + rm -f /var/lib/named/usr/lib*/openssl*/engines/libgost.so + for LIBGOST in /usr/lib*/openssl*/engines/libgost.so ; do + cp --parents "$LIBGOST" /var/lib/named/ + done [ -d /var/lib/named/proc ] || mkdir -p /var/lib/named/proc if ! egrep -q '^/proc[[:space:]]+'/var/lib/named'/proc' /proc/mounts; then
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 871
:
242
|
248
|
256
|
257
|
258
|
259
| 260 |
303
|
326