Bug 143164 - [maintainer update] ports/vmailmgr -- fix package's logic for installing python API
Summary: [maintainer update] ports/vmailmgr -- fix package's logic for installing pyth...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-24 13:50 UTC by mij@sshguard.net
Modified: 2010-02-11 20:30 UTC (History)
0 users

See Also:


Attachments
vmailmgr.diff.bz2 (62.41 KB, text/plain)
2010-01-24 13:50 UTC, mij@sshguard.net
no flags Details
vmailmgr-port.diff (8.75 KB, patch)
2010-02-06 16:39 UTC, mij@sshguard.net
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mij@sshguard.net 2010-01-24 13:50:01 UTC
	I recently noticed that VMailMGR's logic for installing its python API
    is buggy. For locating the target directory, ./configure runs something like:
    local_cv_python_lib_dir=`$PYTHON -c "import sys;print sys.path[1]"`
    [..]
    pythonlibdir="$local_cv_python_lib_dir/vmailmgr"

    Besides possibly ending up installing in locations like
    /usr..python../lib-tk/, this code can yield a filename, e.g.
    /usr../setuptools-0.6c11-py2.6.egg . When this happens, it breaks the
    installation as soon as it tries to create/write the respective /vmailmgr
    folder in it. This bug is somewhat subtle, because it depends on what
    python components are installed in the system, and the order of them.

    The attached patch fixes such problem by enforcing to install in
    PYTHON_SITELIBDIR. For passing this value from make down to the package I
    add a --with-pythonapi=<loc> to the package's ./configure script. When set,
    <loc> points to the desired target location.  When omitted, the python API
    is not installed. The port's Makefile determines whether to pass this value
    based on an user OPTION, defaulting disabled. When enabled, the python API
    is installed in PYTHON_SITELIBDIR.

    As a side note, the patch is big because autoconf generates vastly different
    code with respect to the original (5 years passed).

    Changes:
    * fix broken installation in some environments
    * add option for enabling/disabling python API
    * add MAKE_JOBS_SAFE=yes
    * bump portrevision
Comment 1 Philip M. Gollucci freebsd_committer freebsd_triage 2010-02-01 04:03:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgollucci

I'll take it.
Comment 2 Philip M. Gollucci freebsd_committer freebsd_triage 2010-02-04 04:01:19 UTC
State Changed
From-To: open->feedback

the patch works, but we typically prefer to patch the configure.ac files 
and then USE_AUTOOLS to re-generate things, is that not possible here ?"
Comment 3 mij@sshguard.net 2010-02-06 16:39:06 UTC
sure, here we go
Comment 4 Philip M. Gollucci freebsd_committer freebsd_triage 2010-02-10 18:04:16 UTC
State Changed
From-To: feedback->open

Submitter has fixed.
Comment 5 Philip M. Gollucci freebsd_committer freebsd_triage 2010-02-11 20:25:48 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2010-02-11 20:25:56 UTC
pgollucci    2010-02-11 20:25:44 UTC

  FreeBSD ports repository

  Modified files:
    mail/vmailmgr        Makefile pkg-plist 
    mail/vmailmgr/files  patch-recursive.diff 
  Log:
  - fix package's logic for installing python API
  
  PR:             ports/143164
  Submitted by:   Mij <mij@bitchx.it>
  
  Revision  Changes    Path
  1.14      +18 -3     ports/mail/vmailmgr/Makefile
  1.2       +37 -22    ports/mail/vmailmgr/files/patch-recursive.diff
  1.6       +22 -0     ports/mail/vmailmgr/pkg-plist
_______________________________________________
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"