Bug 111014 - www/joomla - pkg-plist not using %%JOOMLA_DIR%% for substitutions
Summary: www/joomla - pkg-plist not using %%JOOMLA_DIR%% for substitutions
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: Li-Wen Hsu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 17:40 UTC by Scot Hetzel
Modified: 2007-06-23 12:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2007-03-29 17:40:03 UTC
When installing the port, you have the option of specifying an alternate JOOMLA_DIR (default: www/joomla).  The problem is that the pkg-plist doesn't record the correct location of the installed files, when an alternate JOOMLA_DIR is specified.

make install JOOMLA_DIR=www/joomla_test
pkg_delete joomla-1.0.12

:
pkg_delete: file '/usr/local/www/joomla' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/www/joomla'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)

Fix: 

Since the port already adds JOOMLA_DIR to PLIST_SUB, the only thing that needs to be patched is pkg-plist:

sed -i .bak -e "s@www/joomla@%%JOOMLA_DIR%%@" pkg-plist
How-To-Repeat: make install JOOMLA_DIR=www/joomla_test
make deinstall
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-03-29 17:40:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Li-Wen Hsu freebsd_committer freebsd_triage 2007-04-12 19:38:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lwhsu

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-06-23 12:41:51 UTC
lwhsu       2007-06-23 11:41:46 UTC

  FreeBSD ports repository

  Modified files:
    www/joomla           Makefile pkg-plist 
    www/joomla/files     pkg-message.in 
  Log:
  - Use WWWDIR, to solve the problem described in [1]
  - Solve fetch problem [2]
  
  PR:             ports/111014 [1], ports/112012 [2] (base on these two)
  Submitted by:   Scot Hetzel <swhetzel AT gmail.com> [1]
                  Craig Butler <craig001 AT lerwick.hopto.org> [2]
  Approved by:    "Francisco Cabrita <include>" <include AT npf.pt.freebsd.org>
                  (maintainer)
  
  Revision  Changes      Path
  1.13      +11 -16      ports/www/joomla/Makefile
  1.2       +1 -1        ports/www/joomla/files/pkg-message.in
  1.10      +1997 -1997  ports/www/joomla/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"
Comment 4 Li-Wen Hsu freebsd_committer freebsd_triage 2007-06-23 12:56:07 UTC
State Changed
From-To: feedback->closed

Solved in ports/112012.