Bug 131910

Summary: www/wordpress: WordPress port requires GD support
Product: Ports & Packages Reporter: Jeff Kletsky <jeff+freebsd>
Component: Individual Port(s)Assignee: Martin Wilke <miwi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Jeff Kletsky 2009-02-20 17:20:04 UTC
The WordPress system uses GD to resize upladed images in its stock configuration. The presentation of images is a common function of blogging, so this is a common activity for many users, not an "optional" feature.

Without GD support, the options within the media library to use alternate sized images (e.g., Thumbnails and page-sized version) are not selectable.

Problem was resolved here by installing gd-2.0.35,1 built with -DWITHOUT_X11 (to prevent building of a lot of "useless crap" including all of Python) and then installing php5-gd-5.2.8_1

I have not yet checked to see if php5-gd would be sufficient, but I would suspect that it is.

Current port list here is:
GeoIP-1.4.5_1
apache-2.2.11_3
autoconf-2.62
autoconf-wrapper-20071109
awstats-6.9,1
expat-2.0.1
freetype2-2.3.7
gd-2.0.35,1
gettext-0.17_1
gmake-3.81_3
help2man-1.36.4_2
jpeg-6b_7
libiconv-1.11_1
libtool-1.5.26
libxml2-2.7.3
m4-1.4.11,1
mysql-client-5.1.30
mysql-server-5.1.30
p5-Geo-IP-1.35
p5-Net-XWhois-0.90_4
p5-gettext-1.05_2
pcre-7.8
perl-5.8.9_1
php5-5.2.8
php5-gd-5.2.8_1
php5-mysql-5.2.8
php5-xml-5.2.8
pkg-config-0.23_1
png-1.2.34
portaudit-0.5.12
portmaster-2.7
postfix-2.5.6,1
t1lib-5.1.2_1,1

Fix: 

Add php5-gd as a wordpress dependency.

www/wordpress
www/wordpress-mu
chinese/wordpress
german/wordpress

Should not have to explicitly add GD, but needs to be confirmed

Can compile with -DWITHOUT_X11 for this purpose, but might interact with other ports/pkkgs
How-To-Repeat: Install WordPress from port/pkg on a machine without GD support already installed.

Upload an image to the gallery.

Note that the options for any sizes other than "Full Size" cannot be selected.
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2009-02-20 17:37:55 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Jeff Kletsky 2009-02-20 17:51:33 UTC
In testing, note that images uploaded prior to the GD support will still 
not have size options. Only those uploaded after the GD support is 
available will have the alternate sizes available.
Comment 3 Jeff Kletsky 2009-03-11 15:49:24 UTC
A recent rebuild because of the changes to PHP 5.2.9 was done with only 
php5-gd (no explicit graphics/gd) suggests that is sufficient.

Note also that the changes to PHP 5.2.9 now requires php5-pcre to be 
included for WordPress to have functional MySQL access.

ports-mgmt/portmaster
www/apache22 (failed at first)
devel/pcre (required for apache22 build)
www/apache22
databases/mysql51-server
lang/php5
grahpics/php5-gd (failed at first)
devel/t1lib (required for php5-gd build)
graphics/php5-gd
databases/php5-mysql
textproc/php5-xml
devel/php5-pcre

I was having some strange behavior when I was building, where certain 
"make install" actions seemed to act as if the port had already been 
installed. A "make clean" and "make install" were required unexpectedly 
in several cases. This is not a part of this PR, but may explain some of 
the "strangeness" of needing devel/pcre and devel/tlib to be explicitly 
installed in the above sequence.
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2009-03-14 13:20:31 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2009-03-14 13:20:43 UTC
miwi        2009-03-14 13:20:24 UTC

  FreeBSD ports repository

  Modified files:
    www/wordpress        Makefile 
    www/wordpress-mu     Makefile 
    german/wordpress     Makefile 
  Log:
  - Add missing php-gd support
  
  PR:             131910
  Submitted by:   Jeff Kletsky <jeff+freebsd@wagsky.com>
  Approved by:    wordpress and wordpress-mu maintainer timeout
  
  Revision  Changes    Path
  1.28      +1 -1      ports/german/wordpress/Makefile
  1.25      +1 -1      ports/www/wordpress-mu/Makefile
  1.46      +1 -1      ports/www/wordpress/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"