[dev] horde-git-tools install fails

Michael J Rubinsky mrubinsk at horde.org
Thu Oct 19 12:22:14 UTC 2017


Quoting Ralf Lang <lang at b1-systems.de>:

> Am 19.10.2017 um 08:53 schrieb Ralf Lang:
>> Hallo, I have verified this on both SUSE and debian
>>
>> with most recent composer
>> Composer version 1.5.2 2017-09-11 16:59:25
>>
>> the install operation fails for a fresh git checkout, both with  
>> php5 and php7.
>>
>> maintaina:~/horde-git-tools # composer install -v
>> Loading composer repositories with package information
>> Installing dependencies (including require-dev) from lock file
>> Dependency resolution completed in 0.002 seconds
>> Analyzed 114 packages to resolve dependencies
>> Analyzed 413 rules to resolve dependencies
>> Package operations: 66 installs, 0 updates, 0 removals
>> Installs: pear-pear.horde.org/Horde_Util:2.5.8,  
>> pear-pear.horde.org/Horde_Translation:2.2.2,  
>> pear-pear.horde.org/Horde_Exception:2.0.8,  
>> pear-pear.horde.org/Horde_Text_Diff:2.2.0,  
>> pear-pear.horde.org/Horde_Role:1.0.1,  
>> pear-pear.horde.org/Horde_Serialize:2.0.5,  
>> pear-pear.horde.org/Horde_Xml_Element:2.0.4,  
>> pear-pear.horde.org/Horde_Stream_Wrapper:2.1.3,  
>> pear-pear.horde.org/Horde_Support:2.2.0,  
>> pear-pear.horde.org/Horde_Group:2.1.1,  
>> pear-pear.horde.org/Horde_Nls:2.2.1,  
>> pear-pear.horde.org/Horde_Date:2.4.1,  
>> pear-pear.horde.org/Horde_Db:2.4.0,  
>> pear-pear.horde.org/Horde_Perms:2.1.7,  
>> pear-pear.horde.org/Horde_Stream:1.6.3,  
>> pear-pear.horde.org/Horde_Http:2.1.7,  
>> pear-pear.horde.org/Horde_View:2.0.6,  
>> pear-pear.horde.org/Horde_Url:2.2.6,  
>> pear-pear.horde.org/Horde_Token:2.0.9,  
>> pear-pear.horde.org/Horde_Idna:1.1.1,  
>> pear-pear.horde.org/Horde_Text_Filter:2.3.5,  
>> pear-pear.horde.org/Horde_Text_Filter_Csstidy:2.0.1,  
>> pear-pear.horde.org/Horde_Template:2.0.3,  
>> pear-pear.horde.org/Horde_Share:2.1.2,  
>> pear-pear.horde.org/Horde_SessionHandler:2.2.9,  
>> pear-pear.horde.org/Horde_Crypt_Blowfish:1.1.2,  
>> pear-pear.horde.org/Horde_Secret:2.0.6,  
>> pear-pear.horde.org/Horde_Text_Flowed:2.0.3,  
>> pear-pear.horde.org/Horde_Stream_Filter:2.0.4,  
>> pear-pear.horde.org/Horde_Mime:2.10.3,  
>> pear-pear.horde.org/Horde_Mail:2.6.4,  
>> pear-pear.horde.org/Horde_ListHeaders:1.2.5,  
>> pear-pear.horde.org/Horde_Prefs:2.8.1,  
>> pear-pear.horde.org/Horde_Notification:2.0.4,  
>> pear-pear.horde.org/Horde_Compress:2.2.1,  
>> pear-pear.horde.org/Horde_Browser:2.0.15,  
>> pear-pear.horde.org/Horde_Mime_Viewer:2.2.2,  
>> pear-pear.horde.org/Horde_LoginTasks:2.0.7,  
>> pear-pear.horde.org/Horde_Constraint:2.0.3,  
>> pear-pear.horde.org/Horde_Log:2.3.0,  
>> pear-pear.horde.org/Horde_Lock:2.1.4,  
>> pear-pear.horde.org/Horde_Injector:2.0.5,  
>> pear-pear.horde.org/Horde_History:2.3.6,  
>> pear-pear.horde.org/Horde_Icalendar:2.1.7,  
>> pear-pear.horde.org/Horde_Data:2.1.4,  
>> pear-pear.horde.org/Horde_Controller:2.0.4,  
>> pear-pear.horde.org/Horde_Compress_Fast:1.1.1,  
>> pear-pear.horde.org/Horde_Cli:2.2.4,  
>> pear-pear.horde.org/Horde_Cache:2.5.5,  
>> pear-pear.horde.org/Horde_Autoloader:2.1.2,  
>> pear-pear.horde.org/Horde_Auth:2.2.2,  
>> pear-pear.horde.org/Horde_Alarm:2.2.10,  
>> pear-pear.horde.org/Horde_Core:2.4.3,  
>> pear-pear.horde.org/Horde_Dav:1.1.4,  
>> pear-pear.horde.org/Horde_Rpc:2.1.7,  
>> pear-pear.horde.org/Horde_Release:3.0.2,  
>> pear-pear.horde.org/Horde_Pear:1.0.0alpha12,  
>> pear-pear.horde.org/Horde_Argv:2.1.0,  
>> pear-pear.horde.org/Horde_Cli_Modular:2.1.0,  
>> horde/components:dev-master c908aaf,  
>> pear-pear.horde.org/Horde_Yaml:2.0.6, pear/pear:v1.10.5,  
>> pear/xml_util:v1.4.3, pear/structures_graph:v1.1.1,  
>> pear/console_getopt:v1.4.1, pear/archive_tar:1.4.3
>>   - Installing pear-pear.horde.org/horde_util (2.5.8): Loading from cache
>>     Cleaning up
>> Deprecation Notice: The callback  
>> Horde\GitTools\Callbacks::linkHordeRole declared at  
>> /root/horde-git-tools/lib/Callbacks.php accepts a  
>> Composer\Script\Event but post-package-install events use a  
>> Composer\Installer\PackageEvent instance. Please adjust your type  
>> hint accordingly, see  
>> https://getcomposer.org/doc/articles/scripts.md#event-classes in  
>> phar:///bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:330
>> Stack trace:
>>  phar:///bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:274
>>  phar:///bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:205
>>  phar:///bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:116
>>  phar:///bin/composer/src/Composer/Installer.php:608
>>  phar:///bin/composer/src/Composer/Installer.php:223
>>  phar:///bin/composer/src/Composer/Command/InstallCommand.php:119
>>  phar:///bin/composer/vendor/symfony/console/Command/Command.php:266
>>  phar:///bin/composer/vendor/symfony/console/Application.php:861
>>  phar:///bin/composer/vendor/symfony/console/Application.php:208
>>  phar:///bin/composer/src/Composer/Console/Application.php:245
>>  phar:///bin/composer/vendor/symfony/console/Application.php:127
>>  phar:///bin/composer/src/Composer/Console/Application.php:100
>>  phar:///bin/composer/bin/composer:54
>>  /bin/composer:24
>> > post-package-install: Horde\GitTools\Callbacks::linkHordeRole
>> Script Horde\GitTools\Callbacks::linkHordeRole handling the  
>> post-package-install event terminated with an exception
>>
>>
>>   [ErrorException]
>>   symlink(): No such file or directory
>>
>>
>> Exception trace:
>>  () at /root/horde-git-tools/lib/Callbacks.php:33
>>  Composer\Util\ErrorHandler::handle() at n/a:n/a
>>  symlink() at /root/horde-git-tools/lib/Callbacks.php:33
>>  Horde\GitTools\Callbacks::linkHordeRole() at  
>> phar:///bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:282
>>  Composer\EventDispatcher\EventDispatcher->executeEventPhpScript()  
>> at  
>> phar:///bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:205
>>  Composer\EventDispatcher\EventDispatcher->doDispatch() at  
>> phar:///bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:116
>>  Composer\EventDispatcher\EventDispatcher->dispatchPackageEvent()  
>> at phar:///bin/composer/src/Composer/Installer.php:608
>>  Composer\Installer->doInstall() at  
>> phar:///bin/composer/src/Composer/Installer.php:223
>>  Composer\Installer->run() at  
>> phar:///bin/composer/src/Composer/Command/InstallCommand.php:119
>>  Composer\Command\InstallCommand->execute() at  
>> phar:///bin/composer/vendor/symfony/console/Command/Command.php:266
>>  Symfony\Component\Console\Command\Command->run() at  
>> phar:///bin/composer/vendor/symfony/console/Application.php:861
>>  Symfony\Component\Console\Application->doRunCommand() at  
>> phar:///bin/composer/vendor/symfony/console/Application.php:208
>>  Symfony\Component\Console\Application->doRun() at  
>> phar:///bin/composer/src/Composer/Console/Application.php:245
>>  Composer\Console\Application->doRun() at  
>> phar:///bin/composer/vendor/symfony/console/Application.php:127
>>  Symfony\Component\Console\Application->run() at  
>> phar:///bin/composer/src/Composer/Console/Application.php:100
>>  Composer\Console\Application->run() at phar:///bin/composer/bin/composer:54
>>  require() at /bin/composer:24
>>
>> install [--prefer-source] [--prefer-dist] [--dry-run] [--dev]  
>> [--no-dev] [--no-custom-installers] [--no-autoloader]  
>> [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose]  
>> [-o|--optimize-autoloader] [-a|--classmap-authoritative]  
>> [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
>>
>>
>> I think the first one isn't critical but the 2nd one is a killer.  
>> At the point where horde_util is being installed, Horde_Role files  
>> seem to not yet exist. Might be horde_util has no direct dependency  
>> on horde_role, which is normally not a problem.
>>
> Provided a fix for the first one.
>
> https://github.com/horde/git-tools/pull/2
>
> However, no idea for the 2nd one. Maybe ensure the hook is only run  
> after Horde_Role is present or only if the file exists?

https://github.com/horde/git-tools/commit/372e5104257c43a7ff9cdaf13ee51b262bd2f5c7#comments


>
> -- 
> Ralf Lang
> Linux Consultant / Developer
> Tel.: +49-170-6381563
> Mail: lang at b1-systems.de
> B1 Systems GmbH
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
> -- 
> dev mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/dev/attachments/20171019/960390d3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 821 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/dev/attachments/20171019/960390d3/attachment-0001.bin>


More information about the dev mailing list