oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

Dependencies are not de-duped #50

Open justin8 opened 8 years ago

justin8 commented 8 years ago

Installing aufs and aufs-util (which depends on aufs) results in two aufs entries:

apacman -S aufs aufs-util 

Aur Targets    (3): aufs aufs aufs-util
oshazard commented 8 years ago

This is totally bizarre behavior...

apacman-3.0 -S aufs

:: There are 3 packages that provide linux-aufs_friendly: 1) linux-aufs_friendly 2) linux-aufs_friendly-docs 3) linux-aufs_friendly-headers

Enter a selection (default=1): 1 patch: **\ Can't open patch file add-aufs-patches.diff : No such file or directory

apacman-3.0 -S --preview aufs

Edit aufs PKGBUILD with $editor? [Y/n] y :: There are 3 packages that provide linux-aufs_friendly: 1) linux-aufs_friendly 2) linux-aufs_friendly-docs 3) linux-aufs_friendly-headers

Enter a selection (default=1): 1 Edit linux-aufs_friendly PKGBUILD with $editor? [Y/n] y patch: **\ Can't open patch file add-aufs-patches.diff : No such file or directory

justin8 commented 8 years ago

The issue was when installing a a package (aufs) at the same time as something that depends on that same package (aufs-utils) when neither are installed.

I believe there is a seperate bug for linux-aufs_friendly kernel not installing (found it. #49). They do some weird hacky stuff with the pkgbuild, it pulls in the latest source from core's pkgbuild then sed's in a few lines and sources it before reaching the build function. It's quite.. ingenious...