Don't write outside of PREFIX, i.e. into base (/ and /usr) and/or LOCALBASE (/usr/local). While here, don't harcode PREFIX so that --define-variable works. How-To-Repeat: $ make install $ pkg-config libevent --libs --define-variable prefix=/foo -L/usr/local/lib/event2 -levent $ export PREFIX=/tmp/aaa PKG_DBDIR=/tmp/pkg $ make install deinstall [...] ===> Deinstalling libevent2-2.0.10 pkg_delete: file '/tmp/aaa/lib/event2/libevent-2.0.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent-2.0.so.5' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_core-2.0.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_core-2.0.so.5' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_core.a' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_core.la' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_core.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_extra-2.0.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_extra-2.0.so.5' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_extra.a' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_extra.la' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_extra.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_pthreads-2.0.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_pthreads-2.0.so.5' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_pthreads.a' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_pthreads.la' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_pthreads.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_openssl-2.0.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_openssl-2.0.so.5' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_openssl.a' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_openssl.la' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent_openssl.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent.a' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent.la' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2/libevent.so' doesn't exist pkg_delete: file '/tmp/aaa/lib/event2' doesn't exist $ unset PREFIX PKG_DBDIR $ make deinstall ===> Deinstalling libevent2-2.0.10 pkg_delete: '/usr/local/lib/event2/libevent_core.a' fails original MD5 checksum - deleted anyway. pkg_delete: '/usr/local/lib/event2/libevent_extra.a' fails original MD5 checksum - deleted anyway. pkg_delete: '/usr/local/lib/event2/libevent_pthreads.a' fails original MD5 checksum - deleted anyway. pkg_delete: '/usr/local/lib/event2/libevent_openssl.a' fails original MD5 checksum - deleted anyway. pkg_delete: '/usr/local/lib/event2/libevent.a' fails original MD5 checksum - deleted anyway.
Responsible Changed From-To: freebsd-ports-bugs->mm Over to maintainer (via the GNATS Auto Assign Tool)
Anonymous <swell.k@gmail.com> writes: > While here, don't harcode PREFIX so that --define-variable works. As this affects contents of libevent.pc PORTREVISION bump may be needed.
mm 2011-03-02 20:14:26 UTC FreeBSD ports repository Modified files: devel/libevent2 Makefile Log: - Respect PREFIX for libdir PR: ports/155202 Submitted by: swell.k@gmail.com Revision Changes Path 1.2 +1 -1 ports/devel/libevent2/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!