From nobody Mon Jun 13 19:18:45 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DA074851E84 for ; Mon, 13 Jun 2022 19:18:49 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LMLvs03WMz3mSH for ; Mon, 13 Jun 2022 19:18:49 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x830.google.com with SMTP id j8so4573819qtn.13 for ; Mon, 13 Jun 2022 12:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QrkOgcoNNDTbzdfy3WawJZ0Uegy0qkSEKLQeOlyPzAg=; b=pzZP+DDY/CJDQTMZVLoiOal571xpqDd6WC8ssMr6MQJ1JS+iLjqiE0+F8LYlhDqTnt Az0jyhtXFnwjHmWvGM1L1E/IJjmUqcxb/bBg9vZGrSlzmIxrAWs3yER0Whxij+j4UBzb InDGqBpff5cgWxzeEMSfrdVsvB3wn5VT+yTOgoSYyr4wDKbc9p6qS1HXvhinFP9n7beN 67DvQghWosZ1VC1tP+55FmaPbsi74HqqLcnn7NxdFFnr3rhbf50G0+ojd8jHzX6q9LQE jzaEXZFugU2oTe7rdu0EwJ6Z2g6DTJOPn59zk3me5Id8lzsOH075OeU5fEC9F16PbLPd s//Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=QrkOgcoNNDTbzdfy3WawJZ0Uegy0qkSEKLQeOlyPzAg=; b=er1Wat3o1920SprfXk2O+Bkm0JvqsAGQNhVwFrXXTWFW/njpmKZmkMhl2eryUf/deu RNVE648Ez8VDtz0UROUs436uKusogJ7iZ/UWDvvMO/9dXg4PAIMBMoARmukxrp/6x8re xXup9cl/DlpoaW6rP4DtSRwWU7397fTwMVyNZUnygyolPExF4mJhTz3ao3I3JcplfK2v Cgk5Zdb89/j9ud9ijazqGA/h8jIcnJUZH4y7DaT4LYJMGJPLjAM/Us/TleQXhUQwchgN E4z6cMy+wjlQ6kcBU9KwGxNNIDCV3us7iV27c24CmK/pEnxGAPJ8sIz+FcBFUGTvW/UE qlIQ== X-Gm-Message-State: AOAM5304+7etlNkBWmRv7Zowa8hNYStdveGhxdlCz04cTwkLxToPq0Rw WcINVpoNcnSiB3qR7Kb/jASNuTRVt/c= X-Google-Smtp-Source: ABdhPJxyiMX5R2ghc7Eb8VV3WweOjfjOzVoOy0A9E8qAbmM4BJMw6SiUgGfvqeylNq2g4Gp5yBA15g== X-Received: by 2002:a05:622a:508:b0:2f9:1cc0:2d50 with SMTP id l8-20020a05622a050800b002f91cc02d50mr1204144qtx.66.1655147928526; Mon, 13 Jun 2022 12:18:48 -0700 (PDT) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id a23-20020ac81097000000b00304fa21762csm5468117qtj.53.2022.06.13.12.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 12:18:47 -0700 (PDT) Date: Mon, 13 Jun 2022 15:18:45 -0400 From: Mark Johnston To: Jake Freeland Cc: freebsd-hackers@freebsd.org Subject: Re: Absent Linux Libraries Message-ID: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LMLvs03WMz3mSH X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=pzZP+DDY; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::830 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.67 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.971]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::830:from]; MLMMJ_DEST(0.00)[freebsd-hackers]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Jun 13, 2022 at 12:51:48PM -0500, Jake Freeland wrote: > Hi there, > > I'm in the process of porting Intel's DRM driver testing suite, > igt-gpu-tools, > to FreeBSD and I'm not finding some Linux-specific runtime libraries in the > ports tree. > > The two that I'm having difficulty with are > * libkmod > * libprocps > > I've tried querying the pkg database using the pkg-provides pkg plugin: > `pkg provides libkmod` returns nothing > `pkg provides libprocps` returns nothing > I have tried different naming variations and none yield results. > > I don't want to rely on the Linux compatibility layer for these libraries. > Am I out of luck or am I missing something in plain sight? As far as I know, those libraries are Linux-specific. A long time ago I did a very rough port of that test suite while trying to track down some bugs in i915kms, and I remember being able to simply stub out references to those two libraries. That might be harder to do today, or not. It might be possible to port those libraries to FreeBSD and make use of linprocfs since they both use (Linux's) /proc extensively. But I'm not sure how much work this would be. I don't think the Linux compatibility layer would help here unless you're planning on running everything under the Linux compatibility layer.