[aur-general] Doubt conflict array & request check PKGBUILDS

Eli Schwartz eschwartz at archlinux.org
Wed Oct 16 20:50:09 UTC 2019


On 10/16/19 4:22 PM, Iyán Méndez Veiga wrote:
> Hi,
> 
> I recently adopted two packages from AUR: adwaita-qt and adwaita-qt4. Today 
> @morealaz (who is maintaining adwaita-qt-git) asked me to edit some of the 
> arrays in the PKGBUILD (please read comments in the AUR website) and after 
> reading the wiki I did a commit with those little changes.
> 
> I am not sure if they are correct and he argues that I should a conflict array. 
> Can someone have a look at these two (three) PKGBUILDS and tell me if I should 
> change something and why?

Each version of adwaita-qt will install a single file IIRC, that file
being /usr/lib/qt/plugins/styles/adwaita.so

Thus, logically, one cannot install both the Qt4 and Qt5 versions
simultaneously, because the packages will error out with a conflicting
files message.

The solution is simple, and in accordance with long-standing package
policy, adwaita-qt is the "main" package, and all other packages must
provide/conflict against it. For more details, see:
https://wiki.archlinux.org/index.php/PKGBUILD#conflicts

The adwaita-qt5 name is different, since it is what this package used to
be called, and if anyone depends on "adwaita-qt5" which does not exist,
this package must provide that dependency.

(Some people might argue that the package should be called adwaita-qt5
anyway. It would match the naming for other qt5-* packages then.)

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20191016/8f9fd3f9/attachment.sig>


More information about the aur-general mailing list