Bug 155202 - [patch] devel/libevent2: respect PREFIX
[patch] devel/libevent2: respect PREFIX
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Martin Matuska
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-02 16:50 UTC by swell.k
Modified: 2011-03-09 12:59 UTC (History)
0 users

See Also:


Attachments
a.diff (595 bytes, patch)
2011-03-02 16:50 UTC, swell.k
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description swell.k 2011-03-02 16:50:10 UTC
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.
Comment 1 Edwin Groothuis freebsd_committer 2011-03-02 16:50:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 swell.k 2011-03-02 17:09:34 UTC
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.
Comment 3 dfilter freebsd_committer 2011-03-02 20:14:35 UTC
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"
Comment 4 Martin Matuska freebsd_committer 2011-03-09 12:59:23 UTC
State Changed
From-To: open->closed

Committed. Thanks!