]> git.pld-linux.org Git - packages/initramfs-tools.git/blob - initramfs-tools-klibcdir.patch
- sync to 0.114; needs testing if anyone still uses it
[packages/initramfs-tools.git] / initramfs-tools-klibcdir.patch
1 --- initramfs-tools/hooks/klibc.orig    2013-09-12 15:20:05.000000000 +0200
2 +++ initramfs-tools/hooks/klibc 2013-10-20 20:54:57.609254142 +0200
3 @@ -16,16 +16,17 @@
4  esac
5  
6  # klibc
7 -cp -pnL /usr/lib/klibc/bin/* ${DESTDIR}/bin
8 -cp -pL /lib/klibc-*.so ${DESTDIR}/lib
9 +mkdir -p ${DESTDIR}/__KLIBCDIR__
10 +cp -pnL /usr/__KLIBCDIR__/klibc/bin/* ${DESTDIR}/bin
11 +cp -pL /__KLIBCDIR__/klibc-*.so ${DESTDIR}/__KLIBCDIR__
12  rm -f ${DESTDIR}/bin/kinit* ${DESTDIR}/bin/zcat
13  if [ "${BUSYBOX}" = "n" ] || [ ! -e ${BUSYBOXDIR}/busybox ]; then
14         if [ -e ${DESTDIR}/bin/sh.shared ]; then
15                 # Some platforms build a shared klibc/sh:
16                 mv ${DESTDIR}/bin/sh.shared ${DESTDIR}/bin/sh
17 -       elif [ -e /usr/lib/klibc/bin/sh ]; then
18 +       elif [ -e /usr/__KLIBCDIR__/klibc/bin/sh ]; then
19                 # Others build a static version instead:
20 -               cp -pL /usr/lib/klibc/bin/sh ${DESTDIR}/bin/sh
21 +               cp -pL /usr/__KLIBCDIR__/klibc/bin/sh ${DESTDIR}/bin/sh
22         fi
23  else
24         # Nobody wanted it, so save a tiny bit of space:
This page took 0.082343 seconds and 3 git commands to generate.