amoralej / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 years ago
Clone

Blame SOURCES/0018-Issue-49177-Fix-pkg-config-file.patch

b69e47
From a1c4718d9db069ab088914ec983af8125eba3ac6 Mon Sep 17 00:00:00 2001
b69e47
From: Mark Reynolds <mreynolds@redhat.com>
b69e47
Date: Fri, 31 Mar 2017 09:34:27 -0400
b69e47
Subject: [PATCH] Issue 49177 - Fix pkg-config file
b69e47
b69e47
Description:  Need to remove the slash in front of the package name
b69e47
b69e47
https://pagure.io/389-ds-base/issue/49177
b69e47
b69e47
Reviewed by: lslebodn & wibrown (Thanks!!)
b69e47
---
b69e47
 Makefile.am  | 4 ++--
b69e47
 configure.ac | 4 ++--
b69e47
 2 files changed, 4 insertions(+), 4 deletions(-)
b69e47
b69e47
diff --git a/Makefile.am b/Makefile.am
b69e47
index 982dd28..485a460 100644
b69e47
--- a/Makefile.am
b69e47
+++ b/Makefile.am
b69e47
@@ -261,7 +261,7 @@ sampledatadir = $(datadir)@sampledatadir@
b69e47
 systemschemadir = $(datadir)@systemschemadir@
b69e47
 propertydir = $(datadir)@propertydir@
b69e47
 schemadir = $(sysconfdir)@schemadir@
b69e47
-serverdir = $(libdir)@serverdir@
b69e47
+serverdir = $(libdir)/@serverdir@
b69e47
 serverplugindir = $(libdir)@serverplugindir@
b69e47
 taskdir = $(datadir)@scripttemplatedir@
b69e47
 systemdsystemunitdir = @with_systemdsystemunitdir@
b69e47
@@ -276,7 +276,7 @@ infdir = $(datadir)@infdir@
b69e47
 mibdir = $(datadir)@mibdir@
b69e47
 updatedir = $(datadir)@updatedir@
b69e47
 pkgconfigdir = $(libdir)/pkgconfig
b69e47
-serverincdir = $(includedir)@serverincdir@
b69e47
+serverincdir = $(includedir)/@serverincdir@
b69e47
 
b69e47
 defaultuser=@defaultuser@
b69e47
 defaultgroup=@defaultgroup@
b69e47
diff --git a/configure.ac b/configure.ac
b69e47
index 8172bab..51c4414 100644
b69e47
--- a/configure.ac
b69e47
+++ b/configure.ac
b69e47
@@ -361,9 +361,9 @@ else
b69e47
   # relative to datadir
b69e47
   updatedir=/$PACKAGE_NAME/updates
b69e47
   # relative to libdir
b69e47
-  serverdir=/$PACKAGE_NAME
b69e47
+  serverdir=$PACKAGE_NAME
b69e47
   # relative to includedir
b69e47
-  serverincdir=/$PACKAGE_NAME
b69e47
+  serverincdir=$PACKAGE_NAME
b69e47
   # relative to libdir
b69e47
   serverplugindir=/$PACKAGE_NAME/plugins
b69e47
   # relative to datadir
b69e47
-- 
b69e47
2.9.3
b69e47