Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570228 - app-admin/drush-8.x version bump
Summary: app-admin/drush-8.x version bump
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/drush-ops/drush/re...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-30 10:19 UTC by zasire
Modified: 2022-02-06 01:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zasire 2015-12-30 10:19:15 UTC
There is a new version of drush 6 and drush 8. Since drush 7 was not possible to add into portage because of composer, drush 8.0.1 comes as a phar file. It would be nice to have it in portage!

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -pv drush
3. 
Actual Results:  
no current version

Expected Results:  
should have 6.7 and 8.0.1
Comment 1 Michael Orlitzky gentoo-dev 2016-01-01 00:11:06 UTC
I just bumped the 6.x series:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2e1784ce6a673b87c415179bcffbad7033c4ad0

The phar version of drush-8.x looks like another disappointing move. They copy/pasted all of Drush's dependencies into the phar file. You can download and extract it with,

  $ wget http://files.drush.org/drush.phar
  $ php -r '$phar = new Phar("drush.phar"); $phar->extractTo("./");'

Then if you look in ./vendor...

  $ ls -lh vendor/
  total 52K
  -rw-rw-rw- 1 mjo mjo  183 2015-12-31 18:54 autoload.php
  drwxr-xr-x 2 mjo mjo 4.0K 2015-12-31 18:54 composer
  drwxr-xr-x 3 mjo mjo 4.0K 2015-12-31 18:54 dnoegel
  drwxr-xr-x 3 mjo mjo 4.0K 2015-12-31 18:54 doctrine
  drwxr-xr-x 4 mjo mjo 4.0K 2015-12-31 18:54 jakub-onderka
  drwxr-xr-x 3 mjo mjo 4.0K 2015-12-31 18:54 nikic
  drwxr-xr-x 3 mjo mjo 4.0K 2015-12-31 18:54 pear
  drwxr-xr-x 3 mjo mjo 4.0K 2015-12-31 18:54 phpdocumentor
  drwxr-xr-x 3 mjo mjo 4.0K 2015-12-31 18:54 phpspec
  drwxr-xr-x 9 mjo mjo 4.0K 2015-12-31 18:54 phpunit
  drwxr-xr-x 3 mjo mjo 4.0K 2015-12-31 18:54 psy
  drwxr-xr-x 9 mjo mjo 4.0K 2015-12-31 18:54 sebastian
  drwxr-xr-x 6 mjo mjo 4.0K 2015-12-31 18:54 symfony

So all they've done is use composer to install Drush locally, and then zipped up the entire directory into the phar file.

We can't ship it like that -- security is the biggest reason (tons of untracked code in vendor), but it's also kind of pointless. If we're sidestepping the package manager for its dependencies, why pretend that Drush itself is managed by portage? It's not really, you'd be on your own for everything except new version alerts.
Comment 2 zasire 2016-01-04 16:54:08 UTC
Thanks allot for your time and efforts! Really sad to see things go down the hill just like this. But its the current way of things and we have to accept it.
Comment 3 Michael Orlitzky gentoo-dev 2016-01-29 23:52:09 UTC
I'll leave this open, but I'm planning on dropping app-admin/drush to maintainer-needed since I can't fix any of the bugs for 8.x. I wrote a wiki page describing the problems with composer-only packages, and wrote down some ideas I have -- but nothing really plausible.

https://wiki.gentoo.org/wiki/Project:PHP/The_Composer_problem

You don't have to just accept it, I personally am going to keep complaining =)
Comment 4 Michael Orlitzky gentoo-dev 2022-02-06 01:05:18 UTC
There's not much point in keeping this open. Someone who understands the composer mess (and knows what he's getting into) would have to step up and maintain this. Not likely to happen.