I load geshifilter in a panopoly distibrution. Panopoly loads already the libraries module in modules/contrib/, geshifilter is loading the libraries module in modules/
Result is that I have 2 libraries modules, and the Fatal Error:
PHP Fatal error: Cannot redeclare libraries_drush_command() (previously declared in /home/frans/workspace/fk.nl/builds/20130320-172713/profiles/panopoly/modules/contrib/libraries/libraries.drush.inc:11) in /home/frans/workspace/fk.nl/builds/20130320-172713/profiles/panopoly/modules/libraries/libraries.drush.inc on line 25

Tha patch removes the libraries module from the make file.

While I was at it, I also updated the GeSHi library to version 1.0.8.11, the latest 1.0.x version.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

soxofaan’s picture

(disclaimer: I'm not so familiar with drush makefiles)

I'm not sure this is the right fix for the problem.
It fixes your problem, but creates problems for users that don't already have the libraries module as a dependency somewhere, right?

franskuipers’s picture

Yes, it creates a problem for users without libraries...
... but now the make file in this module creates problems to include it in distributions.

I am afraid almost no-one who downloads the module will use the drush make file. It is not mentioned in the README.txt file under INSTALLATION or on the project page.

Another possible solution is to rename the geshifilter.make file to geshifilter.dmake. This will not be execute it when included in an distribution, but people can still make the libraries module & geshi filter files by invoking:

$ drush make --no-core sites/all/modules/geshifilter/geshifilter.dmake .

This could be documented in the README.txt file and the project page.

dasjo’s picture

the attached patch just renames the .make file into .make.example as appears to be the best practice for make files to not interfere with people's workflow.

see related #2002264: Rename the .make.example file to .make

soxofaan’s picture

Status: Active » Fixed

committed,
thanks for the research

hass’s picture

Status: Fixed » Needs work

How about fixing the version to 1.0.8.11?

soxofaan’s picture

Status: Needs work » Fixed

Done

theohawse’s picture

Thankyou! I was about to make a patch myself, but you guys are on top of it yay!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kienan’s picture

Issue summary: View changes

(I edited the wrong issue, sorry for the noise)