Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790671 - gnome-base/gdm-40.0: meson.build:93:2: ERROR: C shared or static library 'libwrap' not found
Summary: gnome-base/gdm-40.0: meson.build:93:2: ERROR: C shared or static library 'lib...
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: https://gitlab.gnome.org/GNOME/gdm/-/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-17 10:20 UTC by Bernd Feige
Modified: 2021-05-19 18:44 UTC (History)
0 users

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


Attachments
Fix meson.build (fix_libwrap_detection.patch,446 bytes, patch)
2021-05-17 10:20 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2021-05-17 10:20:02 UTC
I have current dev-util/meson-0.57.2 installed. The error is that gcc is called with "-llibwrap" in order to test for libwrap; that should be "-lwrap" of course.

The problem is in line 93 of meson.build:
  libwrap_dep = cc.find_library('libwrap')

Changing 'libwrap' to 'wrap' allows gdm to build.

Reproducible: Always
Comment 1 Bernd Feige 2021-05-17 10:20:48 UTC
Created attachment 709368 [details, diff]
Fix meson.build

Patch to fix meson.build.
Comment 2 Matt Turner gentoo-dev 2021-05-19 18:32:29 UTC
Thank you very much. I've opened a merge request upstream to get your fix included.
Comment 3 Larry the Git Cow gentoo-dev 2021-05-19 18:44:07 UTC
The bug has been closed via the following commit(s):

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

commit 030a016070ea1119dd4b91df2c3143c11a4baed3
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-05-19 18:31:55 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-05-19 18:43:56 +0000

    gnome-base/gdm: Fix libwrap detection
    
    Closes: https://bugs.gentoo.org/790671
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../gdm-40.0-meson-Fix-libwrap-detection.patch     | 28 ++++++++++++++++++++++
 gnome-base/gdm/gdm-40.0.ebuild                     |  2 ++
 2 files changed, 30 insertions(+)