[pacman-dev] [PATCH 0/2][WIP][RFC] hooks

Allan McRae allan at archlinux.org
Fri Apr 11 05:50:52 EDT 2014


On 11/04/14 17:36, Connor Behan wrote:
> On 10/04/14 04:59 PM, Andrew Gregory wrote:
>> Because this is a rather minimal implementation, my primary concern at this
>> point is making sure that no essential features are missing and that I don't
>> commit us to anything that would make implementing the remaining features more
>> difficult later.
> I have long looked forward to hooks, but the use cases I have in mind
> might be unreasonable. Could the framework be written to expose certain
> details about the package (file list, dependencies, etc) to the Exec =
> script? Hooks for packages that are already installed, can determine
> this with pacman -Q. But it might be nice to have a hook that changes
> the indentation of any newly installed *.py say.

If you read the email and the linked wiki design page, that is a future
consideration.

> A crazier idea is "changing dependencies" during installation instead of
> using -d. One complaint about Arch is e.g. python2-matplotlib
> "depending" on python2-pyqt4 when really it can be configured to use gtk
> instead. If there was something like When = PostExtract, a script could
> edit the .PKGINFO file and switch qt to gtk. However, it would probably
> be stupid to make pacman extract all the .PKGINFO files before resolving
> dependencies.

We already provide a tool to "achieve" that...   makepkg! :P



More information about the pacman-dev mailing list