From nobody Mon Jun 13 23:25:15 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 BEA55851D6B for ; Mon, 13 Jun 2022 23:25:27 +0000 (UTC) (envelope-from jake@technologyfriends.net) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (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 4LMSNR0NvLz4rxb for ; Mon, 13 Jun 2022 23:25:27 +0000 (UTC) (envelope-from jake@technologyfriends.net) Received: by mail-qt1-x834.google.com with SMTP id w13so4160110qts.6 for ; Mon, 13 Jun 2022 16:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=technologyfriends.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WsPbg3QZDIXKOHr2cs4Sq5qwu4WI4+8ZZJgw68o+IPE=; b=d/qTr0ZXu35OqDZwF3ZAKlhZpC+O3uQTlRa+99i8k9hT886qpQ6wYdQtXlzagPyQn4 J0KAiqRJj5s9hl8GYGXSVq1eUscl+kscZr+on8ED6XHNaXUhHqS+Ye4dwuJhtvff9Bct JDWrIS6LQXx17Bw08Oi4zRoAuagr0TXmfg3FlobKphd4jPRKhRN30Th54X1XWq49lTQM frzpuI6A30iO0SLluANiKBF83kvtQxik7vVfoPwVTwQO0O9LseGZ4YEE5MGXhuvhgiqt BXzurEUDJfvDMFBw2Ny3Ozj6pRVZt8vA4ju1j2UXzBZZh7MuCv4t70Pxj9+i8aF2VMM1 DgKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WsPbg3QZDIXKOHr2cs4Sq5qwu4WI4+8ZZJgw68o+IPE=; b=ml+cOegRVBFcKzb3JTmyOerUgv/5JYdG6NVVVHk0lxLixdKy4cBedybPUwxi7+kmgz dJtweNLCitm6VxiJfCB47ex7CRWPz71D/q6zVCJVhzISPRQRKvcqkXCewCygVKZOagBX 5HvFGnRDRyuiS7WNE8LWnitBTGW1Kxt9+G0BwYW5n2wIm4OxNUm4SrEWQD+LeF0hxjHq HqC0dWPhkX6x65TtWmqgdTX56RJ+Mfmf6OnT/d+jZy8GQzHEqRYU/xOpZ2r+NKIIRxnS rhdI680kB8UJOZUtzDPIA3+kQU6CU10xBV/r7FLqpjEvO57QCz4l7+dl2e0qOnAVlsR6 lL9A== X-Gm-Message-State: AOAM531JWukLc5+QKP632oqIqEFtCAwbuCeSkvv3rz5bZpSYmvDUZdek Vk3hOqZTu8s+6O3tEfQTrGIWkhWQiaUhXivNXzsNHndk98Y= X-Google-Smtp-Source: ABdhPJwcwiW2cdwJ4P5CDZeoDd3Dkz2JNnatH6dHkF9wwpfDvVSPYnhByiPSJRpNDYRGbhZP6GwbL9ywGc5t0BSyk+M= X-Received: by 2002:a05:622a:1990:b0:305:76b:8f8 with SMTP id u16-20020a05622a199000b00305076b08f8mr1933367qtc.619.1655162726443; Mon, 13 Jun 2022 16:25:26 -0700 (PDT) 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 References: In-Reply-To: From: Jake Freeland Date: Mon, 13 Jun 2022 18:25:15 -0500 Message-ID: Subject: Re: Absent Linux Libraries To: Mark Johnston Cc: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000005b009405e15c9a9d" X-Rspamd-Queue-Id: 4LMSNR0NvLz4rxb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=technologyfriends.net header.s=google header.b="d/qTr0ZX"; dmarc=none; spf=none (mx1.freebsd.org: domain of jake@technologyfriends.net has no SPF policy when checking 2607:f8b0:4864:20::834) smtp.mailfrom=jake@technologyfriends.net X-Spamd-Result: default: False [-3.09 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[jake]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[technologyfriends.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[technologyfriends.net:~]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::834:from]; NEURAL_HAM_SHORT(-0.99)[-0.987]; R_DKIM_PERMFAIL(0.00)[technologyfriends.net:s=google]; MLMMJ_DEST(0.00)[freebsd-hackers]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --0000000000005b009405e15c9a9d Content-Type: text/plain; charset="UTF-8" Hi Mark, It looks like igt-gpu-tools has changed quite a bit since your modifications were made. I found the remnants of your work on Github before starting my port. I am going to try to work around those libraries for now, but I'll probably end up porting procps and using linprocfs as you suggested. I appreciate the pointers and am thankful to have your old port for direction. Jake Freeland On Mon, Jun 13, 2022 at 2:18 PM Mark Johnston wrote: > 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. > --0000000000005b009405e15c9a9d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Mark,

It looks like igt-gpu-tools ha= s changed quite a bit since your modifications were made.
I found= the remnants of your work on Github before starting=C2=A0my port. I am goi= ng to try
to work around=C2=A0those libraries for now, but I'= ll probably end up porting procps and using
linprocfs as you sugg= ested.

I appreciate the pointers and am thankful t= o have your old port for direction.

Jake Freeland<= /div>

On Mon, Jun 13, 2022 at 2:18 PM Mark Johnston <markj@freebsd.org> wrote:
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 librari= es 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 pl= ugin:
> `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 li= braries.
> Am I out of luck or am I missing something in plain sight?

As far as I know, those libraries are Linux-specific.=C2=A0 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.=C2=A0 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.=C2=A0 But I&= #39;m not
sure how much work this would be.=C2=A0 I don't think the Linux compati= bility
layer would help here unless you're planning on running everything unde= r
the Linux compatibility layer.
--0000000000005b009405e15c9a9d--