From nobody Tue Apr 25 15:54:51 2023 X-Original-To: ports-bugs@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 4Q5RQg716Pz47LvV for ; Tue, 25 Apr 2023 15:54:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q5RQg5zfNz3n6G for ; Tue, 25 Apr 2023 15:54:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682438091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G9D4Z0UQKC9NXAk3nEKh+tvUMX7hMErPaKpXdKbu15M=; b=sJfrUrtQBnB2q//63r98xAt3/YNAbTiRJZXjiAVRXUQuhR/VUSqzLTNdcPUqRYILbini+f 5qtY1CsrCmMtNgSaAI0zMPF7dhnj2OgQMaSxHQmUmEGk8locUCxGyqdk1sHpWPjtk/mdg5 qrRYv/GrkdIOvIb8+j+QbpgSEBSCTkXY5X/iYqL09c3AYlTg8ciKM0TjZyrSB6Syl/El1l J2zKJWJda4Fzs+y0A5JPvSkdGBUhFJGxv+1FwOmOOGgADfiI9/ah8vcrVObQKaBvuRZgYs CmWfg/j5kjyQ6QTwxAYFlWTh8tT1BLnXIqNuUUKkAEqaONt1moTNh7a6hmfXCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682438091; a=rsa-sha256; cv=none; b=jRHHsa6ssbCvmS0JA3JkchpYPVBW1NZDwz5l7hRRWfGkZxLsI1DAnkzUAWP4hbsfO+rjlF OgZNV4W3E+NdgC2SIMxuQl9ZQEvaZa17LM1R2Jfn3y7h7fZanonJn3t5Oi6kRN6C+mBwgx LaHy+uNXpdosD/gIKRqa584obGgukItAWKtHdejDlyG16WuJ5CF1DZ7WFbzLyGfTROOIxH +zNTkG8NchFDYnpI/h5GiF+p3dbBkZj6zthKolwxVIEmAY5i8eyzypE28If6AJA4yqYNVx 6QFXwZ01XHAndUFKn1B3FJ/0AjN+xi/VLJsUiK+XQ0/pe/W3btMjAV0/22rIJw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q5RQg51Yrz1D42 for ; Tue, 25 Apr 2023 15:54:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33PFspE0078833 for ; Tue, 25 Apr 2023 15:54:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33PFspUv078832 for ports-bugs@FreeBSD.org; Tue, 25 Apr 2023 15:54:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 270989] print/ghostscript10: adds libgs.so; connects to USES and DEFAULT_VERSIONS facilities; flavorized Date: Tue, 25 Apr 2023 15:54:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: michael.osipov@siemens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270989 --- Comment #18 from Michael Osipov --- Chad for clarification what the library loading is about in C in general and what GS does, this will make it eaiser to understand for you: 1. Static linking: all object code is part of the runtime image (executable) which may result in a huge file (done all at link time) 3. Dynamic linking: executable points to a shared library, executable is sm= all and loader at start time loads the library into memory (may or may not share between other executions), make it replaceable anytime and you don't need to relink your executable 3. loading at runtime: You have a well defined directory full of shared objects, you use dlopen() to load them at runtime and well defined entry points. Exactly what Apache HTTP Server is doing with modules. Same here: ./base/gp_unix.c: if ((handle =3D dlopen(buff, RTLD_NOW)) !=3D 0) { Current setup with GS 10: static linking, after point 1 it is dynamic linki= ng BUT the device drivers are statically integrated into the dynamic library libgs.so, thus not loaded at runtime. GS9 and below do "loading at runtime" which is not deprecated by Artifex that is why Debian doesn't do this anymo= re. I hope this helps! PS: It is a bit confusing ;-) --=20 You are receiving this mail because: You are the assignee for the bug.=