From a50bf349f9d691486b5e6c723711dd720c640a80 Mon Sep 17 00:00:00 2001 From: Linuxoid85 Date: Thu, 10 Mar 2022 20:32:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D0=B1=D0=BE=D1=80=D0=BE=D1=87=D0=BD?= =?UTF-8?q?=D1=8B=D1=85=20=D0=B8=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=86?= =?UTF-8?q?=D0=B8=D0=B9=20=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=D0=B0=20libcap=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D0=BA=D0=BE=D0=B9=20=D1=81=D1=82=D1=80=D1=83=D0=BA?= =?UTF-8?q?=D1=82=D1=83=D1=80=D1=8B=20=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/build-system/libcap.md | 6 ++++-- docs/packages/libcap/cldirs | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/build-system/libcap.md b/docs/build-system/libcap.md index e999fd20..9316b9b8 100644 --- a/docs/build-system/libcap.md +++ b/docs/build-system/libcap.md @@ -32,9 +32,11 @@ {{ include('../packages/libcap/postinstall') }} ``` -## При раздельной структуре каталогов +## Объяснения параметров -Уберите `prefix=/usr` в сборке и установке. +`lib=lib` - этот параметр устанавливает директорию с библиотеками в `/usr/lib` вместо `/usr/lib64`. + +## При раздельной структуре каталогов ```bash {{ include('../packages/libcap/cldirs') }} diff --git a/docs/packages/libcap/cldirs b/docs/packages/libcap/cldirs index f2fbc797..5790642b 100644 --- a/docs/packages/libcap/cldirs +++ b/docs/packages/libcap/cldirs @@ -1,3 +1,5 @@ -mv -v /lib/libpsx.a /usr/lib -rm -v /lib/libcap.so -ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so +for lib_n in cap psx; do + mv -v /usr/lib/lib${lib_n}.so.* /lib + ln -sfv ../../lib/lib${lib_n}.so.2 /usr/lib/lib${lib_n}.so + chmod -v 755 /lib/lib${lib_n}.so.2.48 +done