Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657000 - dev-libs/libinput ebuild cleanups
Summary: dev-libs/libinput ebuild cleanups
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-05-31 20:00 UTC by Alon Bar-Lev (RETIRED)
Modified: 2018-06-07 00:36 UTC (History)
2 users (show)

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


Attachments
libinput-cleanups.patch (0001-dev-libs-libinput-cleanups.patch,1.45 KB, patch)
2018-05-31 20:00 UTC, Alon Bar-Lev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2018-05-31 20:00:25 UTC
Created attachment 534332 [details, diff]
libinput-cleanups.patch

Subject: [PATCH] dev-libs/libinput: cleanups

1. package installs hwdb files, must refresh udev using udevadm hwdb --update.
2. use ltprune eclass

---

I can push if you ACK
Comment 1 Matt Turner gentoo-dev 2018-05-31 20:53:28 UTC
Thanks.

From #gentoo-dev, it seems that find ... is the suggested way to remove .la files. The ltprune eclass says

# Discouraged. Whenever possible, please use much simpler:
# @CODE
# find "${D}" -name '*.la' -delete || die
# @CODE

Also, the find was removing static archives as well. Not sure if there were actually any to remove though.

I've been confused about virtual/udev vs virtual/libudev, but I think you're right to depend on virtual/udev. Since libinput links directly to libudev do we still need to keep that dependency (and actually add a slot operator, like I did in commit 7ad9a1b9c986031828510c1c86b40666b3ad5adc)?

The change to update the hwdb seems good.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2018-05-31 21:03:20 UTC
(In reply to Matt Turner from comment #1)
> Thanks.
> 
> From #gentoo-dev, it seems that find ... is the suggested way to remove .la
> files. The ltprune eclass says

OK, ignore this.
I like this eclass, doing exactly what I need.

> I've been confused about virtual/udev vs virtual/libudev, but I think you're
> right to depend on virtual/udev. Since libinput links directly to libudev do
> we still need to keep that dependency (and actually add a slot operator,
> like I did in commit 7ad9a1b9c986031828510c1c86b40666b3ad5adc)?

It is required to make sure that udevadm is available.
 
> The change to update the hwdb seems good.

Great.

Please cherry-pick whatever is acceptable.

Thanks!
Comment 3 Larry the Git Cow gentoo-dev 2018-06-07 00:36:48 UTC
The bug has been closed via the following commit(s):

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

commit 5a30e002942b56d509b58b13ba4066256b6f3f09
Author:     Alon Bar-Lev <alonbl@gentoo.org>
AuthorDate: 2018-05-31 19:53:52 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2018-06-07 00:36:25 +0000

    dev-libs/libinput: Refresh udev after installing
    
    libinput installs hwdb files, so we must refresh udev with
    
            udevadm hwdb --update
    
    Closes: https://bugs.gentoo.org/657000

 dev-libs/libinput/libinput-1.11.0.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)