From owner-freebsd-emulation@freebsd.org Sun Jun 10 22:24:33 2018 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9F6D10113C9 for ; Sun, 10 Jun 2018 22:24:33 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4D35F7BB07 for ; Sun, 10 Jun 2018 22:24:33 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0FE0710113C8; Sun, 10 Jun 2018 22:24:33 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C511410113C7 for ; Sun, 10 Jun 2018 22:24:32 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ua0-x22c.google.com (mail-ua0-x22c.google.com [IPv6:2607:f8b0:400c:c08::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B38B7BB06 for ; Sun, 10 Jun 2018 22:24:32 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ua0-x22c.google.com with SMTP id 59-v6so12329283uas.5 for ; Sun, 10 Jun 2018 15:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=YWkjWLUMPeTsGzwokuKFpwLGJUoAhcMGmZKRVUdE5uY=; b=BPcdPAevOy/t1FZO7j0izynlBOR9j5/jjWwPtpq4AbGRgtD+lC7zIwlRrGKytwyhES NPDGU4WNvCrd7uejqg6BhWt5BSNgvJ2vrut5gflAXtXMzeZf+zBhnnNWHNZwTLly1Vr7 ReV784upCFFojLYmDeRHiQVa4rwgWoryugNs9gGxI1ldNCc5OUAWeMBMcVYhjigZsC5G lydfgE3di7FB4XxfMjo5ioA1dlghSCA/cSJtions2KUiNC6QQ445OD4wWN6YGbKkZjLI gyXsJ8oOOXHfbBleW0Dz+TGg0AUM3TlW2qxiOGnUkhPHM3DisM9BMRSUuFY+EOVx71y3 cG/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=YWkjWLUMPeTsGzwokuKFpwLGJUoAhcMGmZKRVUdE5uY=; b=hEcUcwjKJAENAuGfwPxfDuHp/fXIo8qI+FaKmUZTk7QIeCLiwucxBTjQAsOWJHOwoU FiHlIomIEU2/s6U5LSMEVPDRIF+zw3nEzmpPPaUUF3M5Oqfr9QAnQBWm7OKjR2ncWkZ8 7V+6hW2PcM9CVfrOqUrd9JaHBLTMiPE6QOd++aLB2KGecyIdsvx28pfz0+ad80V2bcNs xHspamZSq+Jcn8KzcmtSGqgMeVsL7lQy7Ge/1bg2ShA5qUKv+dMyUayUQNuHN14Roqno kdAjHrQIsaXxHflI3KHe6chTCkj+tuXKt5Bgj9u/7ndge6YrtgQ/7OpoGIR/Ny2Iw5bT xbXg== X-Gm-Message-State: APt69E0vlzmhzeZEM7XILJ7n+cH3usC4k/2L/JinZxGf5HRNNLdxEpTD l9GVWjSE7HnLnTk2ZclMpcS8cPnLQvl8cWUhreQ= X-Google-Smtp-Source: ADUXVKI9paG9/bAiGM4hIleEoAEsi8a6IxN+XdZrTQyP+gPe6DCVhyMjb4lMayXOmQabBnUVI4LTeOKlmxWvYBfZets= X-Received: by 2002:ab0:5232:: with SMTP id i47-v6mr9801099uaa.117.1528669471737; Sun, 10 Jun 2018 15:24:31 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 2002:a67:8f05:0:0:0:0:0 with HTTP; Sun, 10 Jun 2018 15:24:31 -0700 (PDT) In-Reply-To: References: <77ad12b3-d378-cc70-2819-ccf32dc65bb1@gmail.com> From: Kevin Oberman Date: Sun, 10 Jun 2018 15:24:31 -0700 X-Google-Sender-Auth: ZtWcwGXWCap-Ti4xwwYaxkRSyh4 Message-ID: Subject: Re: Something messed up in linux emulation To: Theron Cc: "freebsd-emulation@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2018 22:24:34 -0000 On Sun, Jun 10, 2018 at 1:31 PM, Theron wrote: > > I think you miss my point. I know how to install linux-c7-libpng. My > concern is why this whole set of ports was not already installed. > > Sorry to have been unclear. I meant to suggest that linux-c7-libpng was > already "installed" i.e. registered as such, but that its files were > missing due to some other problem. > > I kept adding one port after another, but I have no idea where that ends. > The ports system should install all dependencies automatically. Since only > a single linux emulation port is a dependency, I guessed that linux-c7-gtk2 > is the culprit, bu reinstalling it generated that odd message: > Installing linux-c7-gtk2-2.24.31... > /compat/linux/usr/bin/gtk-query-immodules-2.0-32: error while loading > shared libraries: libpng15.so.15: cannot open shared object file: No such > file or directory > > Looking at linux-c7-gtk2, I see "USE_LINUX= atk gdkpixbuf2 pango > xorglibs". I have already re-installed atk and pango, but the others are > not installed. Since pkg shows that these are not installed, I would have > expected that building linux-c7-gtk2 to have installed them. > /usr/ports/Mk/Uses/linux.mk states "# USE_LINUX List of Linux > packages to depend on." So I am baffled as to why these ports are not being > installed. (I have tried both portmaster(8) and a simple make(1).) Clearly > something is broken here and it looks a lot like the ports system, mabey > linux.mk. > > Deleting /compat/linux/usr/lib/libpng15.so.15* (but leaving > linux-c7-libpng "installed", although damaged) and then installing > linux-c7-gtk2 seems to reproduce the behavior you are seeing. If I remove > linux-c7-libpng completely, by 'pkg remove' or 'make deinstall', then a > 'make install' for linux-c7-gtk2 installs the libpng as expected. > > On your system, is the Linux libpng port not installed at all, or is there > some possibility the installation is damaged? > > The linux gtk2 has a USE_LINUX for gdkpixbuf2, which in turn has a > USE_LINUX for png. While ideally installing a port would check for all > needed files, this doesn't seem to work, at least for the Linux ports. > Thanks for lookingat this, but my concern is that installing nspluginwrapper failed to trigger the installation of these dependencies. The system does NOT think any of these ports are installed. I ran "pkg info" on all of them and none showed up as installed. None was installed when I re-installed linux-c7-gtk2. That includes atk, pango, gdkpixbf2 or png (the linux-c7 versions). linux-c7-gtk2 sis install with only the message about the lack of libpng-15.so.15 that I mentioned. I suspect that these ports have been missing since I moved to 11.0-BETA, deleted all ports and reinstalled. At that time nspluginwraper installed without failing, but it looks like the USES_LINUX dependencies were not re-installed, so any problem probably goes back that far, though it is possible that they were deleted more recently. To be clear, I have been using BSD for over 40 years, originally when doing some work for UC Davis and FreeBSD for over 20 years. I am quite conversant (though not expert) in make and Makefiles. I have been using ports for over 20 years and pkg since back when bapt@ was still doing beta testing. my concern is that these ports were clearly NOT installed and that I could install nspluginwrapper and, later, linux-c7-gtk2 without the ports system noticing the missing dependencies. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683