From owner-freebsd-emulation@freebsd.org Fri Jun 19 18:59:39 2020 Return-Path: Delivered-To: freebsd-emulation@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 100303368BF for ; Fri, 19 Jun 2020 18:59:39 +0000 (UTC) (envelope-from mi+t@aldan.algebra.com) Received: from symbion.zaytman.com (symbion.zaytman.com [64.112.176.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "symbion", Issuer "Narawntapu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49pSlt28fqz3RNj; Fri, 19 Jun 2020 18:59:37 +0000 (UTC) (envelope-from mi+t@aldan.algebra.com) Received: from narawntapu.narawntapu (pool-100-1-228-105.nwrknj.fios.verizon.net [100.1.228.105]) by symbion.zaytman.com (8.15.2/8.15.2) with ESMTPS id 05JIxaFQ012246 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jun 2020 14:59:36 -0400 (EDT) (envelope-from mi+t@aldan.algebra.com) X-Authentication-Warning: symbion.zaytman.com: Host pool-100-1-228-105.nwrknj.fios.verizon.net [100.1.228.105] claimed to be narawntapu.narawntapu Received: from aldan.narawntapu (aldan [192.168.3.13]) by narawntapu.narawntapu (8.15.2/8.15.2) with ESMTP id 05JIxZCM085429; Fri, 19 Jun 2020 14:59:35 -0400 (EDT) (envelope-from mi+t@aldan.algebra.com) X-Authentication-Warning: narawntapu.narawntapu: Host aldan [192.168.3.13] claimed to be aldan.narawntapu Subject: Re: How to properly install a Linux desktop app? To: =?UTF-8?Q?T=c4=b3l_Coosemans?= Cc: freebsd-emulation@FreeBSD.org, clement@FreeBSD.org References: <20200619105227.6d294efd@FreeBSD.org> From: "Mikhail T." Message-ID: Date: Fri, 19 Jun 2020 14:59:35 -0400 MIME-Version: 1.0 In-Reply-To: <20200619105227.6d294efd@FreeBSD.org> Content-Language: en-US X-DCC-MGTINTERNET-Metrics: narawntapu 1170; bulk rep Body=3 Fuz1=3 Fuz2=3 rep=69% X-Rspamd-Queue-Id: 49pSlt28fqz3RNj X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mi@aldan.algebra.com has no SPF policy when checking 64.112.176.10) smtp.mailfrom=mi@aldan.algebra.com X-Spamd-Result: default: False [2.28 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.39)[-0.389]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[algebra.com]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.12)[-0.121]; NEURAL_SPAM_LONG(0.89)[0.891]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:394548, ipnet:64.112.176.0/24, country:US]; TAGGED_FROM(0.00)[t]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[100.1.228.105:received] X-Mailman-Approved-At: Sat, 20 Jun 2020 07:20:48 +0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.33 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: Fri, 19 Jun 2020 18:59:39 -0000 On 19.06.20 04:52, Tijl Coosemans wrote: > You should not use USE_LINUX_RPM. It's meant for infrastructure ports. Yes, this is the current stance, but it seems like an unnecessary limitation... :( Software distributed by vendors in RPM-format should be easier for ports to install. Please, consider changing this. > You can look at astro/google-earth as an example. It also installs an > rpm with an /opt directory. Basically the /opt directory goes to > ${STAGEDIR}${LINUXBASE} and everything else goes to ${STAGEDIR}${PREFIX} Thanks, this is an informative example. Because of the limitation on the USE_LINUX_RPM, google-earth port has its own do-install :-( And it installs things into ${LINUXBASE}, which /should be/ just as wrong as installing into ${LOCALBASE} instead of ${PREFIX}. Clearly flz@ (or you?) have struggled with the same dilemma I'm now facing :-) And zoom will have to do the same for the time being... > You should not need an ld conf file or ldconfig or LD_LIBRARY_PATH. I don't know, how one of the above -- ld.conf or LD_LIBRARY_PATH -- can be avoided. Indeed, Google's own /opt/google/earth/free/googleearth sets the LD_LIBRARY_PATH before invoking googleearth-bin. The port's own little wrapper (${PREFIX}/bin/googleearth) is calling Google's (bigger) wrapper, which is then finally calling the actual binary :( I guess, I'll use the approach google-earth is taking for now, and file a PR to change the setting of DESKTOPDIR to be derived from LOCALBASE -- or for the actual native PREFIX to remain somehow accessible (as NATIVEPREFIX, perhaps?) even when USE_LINUX_PREFIX is defined. Thank you for your help! Yours, -mi