Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  5 Apr 2007 17:52:54 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/111271: [PATCH] devel/pkg-config: correctly remove pkgconfig directories on deinstall
Message-ID:  <20070405135254.922214062@hades.panopticon>
Resent-Message-ID: <200704051400.l35E0BWv019607@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111271
>Category:       ports
>Synopsis:       [PATCH] devel/pkg-config: correctly remove pkgconfig directories on deinstall
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 05 14:00:11 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE-p12 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Tue Jan 16 23:12:21 MSK 2007 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
pkg-config tries to remove directories {PREFIX,LOCALBASE,X11BASE}/lib/pkgconfig on deinstall, while .pc files are actually stored in {PREFIX,LOCALBASE,X11BASE}/libdata/pkgconfig.
Patch attached adds directives to remove additional directories.

PS. Some ports (6 at first sight) still use lib/pkgconfig - maybe this is subject to some ports tree cleanup, like ssedov@ (if I'm not mistaken) has done before. Along with ensuring that all ports that install .pc files depend on pkg-config, this will give us clean deinstall of more ports.

>How-To-Repeat:
>Fix:

--- pkg-config.patch begins here ---
diff -ruN pkg-config.orig/Makefile pkg-config/Makefile
--- pkg-config.orig/Makefile	Thu Apr  5 17:32:13 2007
+++ pkg-config/Makefile	Thu Apr  5 17:42:40 2007
@@ -8,6 +8,7 @@
 
 PORTNAME=	pkg-config
 PORTVERSION=	0.21
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://pkgconfig.freedesktop.org/releases/
 DIST_SUBDIR=	gnome2
diff -ruN pkg-config.orig/pkg-plist pkg-config/pkg-plist
--- pkg-config.orig/pkg-plist	Thu Apr  5 17:32:13 2007
+++ pkg-config/pkg-plist	Thu Apr  5 17:42:59 2007
@@ -1,5 +1,8 @@
 bin/pkg-config
 share/aclocal/pkg.m4
 @dirrmtry lib/pkgconfig
+@dirrmtry libdata/pkgconfig
 @unexec rmdir %%LOCALBASE%%/lib/pkgconfig 2>/dev/null || true
+@unexec rmdir %%LOCALBASE%%/libdata/pkgconfig 2>/dev/null || true
 @unexec rmdir %%X11BASE%%/lib/pkgconfig 2>/dev/null || true
+@unexec rmdir %%X11BASE%%/libdata/pkgconfig 2>/dev/null || true
--- pkg-config.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070405135254.922214062>