From nobody Mon Mar 27 18:26:02 2023 X-Original-To: dev-commits-ports-main@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 4Plh8W0DNpz41t5C; Mon, 27 Mar 2023 18:26:03 +0000 (UTC) (envelope-from git@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 4Plh8V6GNZz4Z9K; Mon, 27 Mar 2023 18:26:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679941562; 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; bh=9mJGfGrZqoL8VtLquSDvKk86qB+knprKwUER4tIueos=; b=VEtX8eOBwPkKD/CThGGcs5JKwyD5o/T6ogI+t5V2Jsg9ExAowYCa44kGzTquPAWc72Q042 Zj1rY1UjWw6ntj87sa9iE2UU0TnupxV18/Gt+DOIpilXy/dRAcU9PvBUpFror9zfIZwPqJ lP6EZFsiROa/LonmHvPA8fduUBN1dPYUempIjlYssKyeapm2Ud8OZcZ5/5c8HguFretVy8 UJsEtRpYi3m7aU7pfPmyla9JgV8nLJ+5DuxyVIiCJkIp/t8tjqU9Kq3eZNYTP3maEXLtE5 bO2StyOB55hhQiSu4Ccp5TixDWEUMRISbs/QBsRvr5tllw1eqrzQ1qzRlJDQSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679941562; 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; bh=9mJGfGrZqoL8VtLquSDvKk86qB+knprKwUER4tIueos=; b=oVSlbK+122SsqiwWAaY2kcOIZzR7enfbd3XuqDz1MZNWT1b3f42flCXMPAQVrVrfeYZTmX zvgBMhKq7FOQ9F68RigN09H1lDM9altdVgKr3Dzn7KxWBtK8+7omlfuIm82IFwDCNi29o5 wrTjyQt43oO4PUi1+3+NQXAqvm6GGwS6JSAAEve+I3MqBxNICF6qvNU3IP0ryxaBCYUNd1 9KmpqUwcvdI68T8NjnYsl205vx6UK8e33ZA3o3SD5QFWlBYLTTmEYO0en5MliruTEGnkNT 0wCQ2SIe9R0bRvLCJ1LizncK3IPXJWhwk86QXCDAO+D3XytutvwgTLfu8SnHdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679941562; a=rsa-sha256; cv=none; b=ndzsQvkek4Qe9VU4g7VafguSsQx/RhRlKe/CrGFTuzzQnEnQsnPlF7bQS+cjDYm+zhCQTS j5bngLUWNzyzpQCR7KDXlsZR2PQ3nTaPF2s8p8+WISVmlRuw6BGVX01l2ort2kgH8z1jLE nRFaO5MY+QecOYCI69WuW0h25pfRrzjN8b//VMJtIMqFJB3tpfyyiW9zDMmBKFl9v/LzYD T0M5BaGPzG6n7EqBe5jrq/PHXETJxaWY1lHnzfFsXbHf8ddcXZKT7jvHaA3Iji2BjMTTq9 h+9vLNRcHkHd3/nj7WQgljbR8kzOnnoc8dUrygonF94A/HK0Wc09FWuyGVkS7w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Plh8V5MsRzXnJ; Mon, 27 Mar 2023 18:26:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32RIQ22T051211; Mon, 27 Mar 2023 18:26:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32RIQ2HK051210; Mon, 27 Mar 2023 18:26:02 GMT (envelope-from git) Date: Mon, 27 Mar 2023 18:26:02 GMT Message-Id: <202303271826.32RIQ2HK051210@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 9275f87e84ae - main - lang/mujs: Add SONAME to the shared library List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9275f87e84ae04f7dac34d926dde23ce9d76d8a2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=9275f87e84ae04f7dac34d926dde23ce9d76d8a2 commit 9275f87e84ae04f7dac34d926dde23ce9d76d8a2 Author: Yuri Victorovich AuthorDate: 2023-03-27 15:02:03 +0000 Commit: Yuri Victorovich CommitDate: 2023-03-27 18:25:49 +0000 lang/mujs: Add SONAME to the shared library PR: 269960 Reported by: fuz@ --- lang/mujs/Makefile | 3 +++ lang/mujs/files/patch-Makefile | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/lang/mujs/Makefile b/lang/mujs/Makefile index df024e4ab89b..14c8973a093d 100644 --- a/lang/mujs/Makefile +++ b/lang/mujs/Makefile @@ -1,5 +1,6 @@ PORTNAME= mujs DISTVERSION= 1.3.3 +PORTREVISION= 1 CATEGORIES= lang devel MAINTAINER= yuri@FreeBSD.org @@ -18,6 +19,8 @@ USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= ccxvii +LDFLAGS= -Wl,-soname=libmujs.so + ALL_TARGET= build/release/mujs \ build/release/libmujs.so \ build/release/libmujs.a diff --git a/lang/mujs/files/patch-Makefile b/lang/mujs/files/patch-Makefile index 4a93632fa784..91d877f0829a 100644 --- a/lang/mujs/files/patch-Makefile +++ b/lang/mujs/files/patch-Makefile @@ -14,3 +14,21 @@ Patch contains 2 changes: OPTIM = -O3 +@@ -79,7 +80,7 @@ build/sanitize/mujs: main.c one.c $(SRCS) $(HDRS) + + build/debug/libmujs.$(SO): one.c $(SRCS) $(HDRS) + @mkdir -p $(@D) +- $(CC) $(CFLAGS) -g -fPIC -shared -o $@ one.c -lm ++ $(CC) $(CFLAGS) -g -fPIC -shared $(LDFLAGS) -o $@ one.c -lm + build/debug/libmujs.o: one.c $(SRCS) $(HDRS) + @mkdir -p $(@D) + $(CC) $(CFLAGS) -g -c -o $@ one.c +@@ -92,7 +93,7 @@ build/debug/mujs-pp: pp.c build/debug/libmujs.o + + build/release/libmujs.$(SO): one.c $(SRCS) $(HDRS) + @mkdir -p $(@D) +- $(CC) $(CFLAGS) $(OPTIM) -fPIC -shared -o $@ one.c -lm ++ $(CC) $(CFLAGS) $(OPTIM) -fPIC -shared $(LDFLAGS) -o $@ one.c -lm + build/release/libmujs.o: one.c $(SRCS) $(HDRS) + @mkdir -p $(@D) + $(CC) $(CFLAGS) $(OPTIM) -c -o $@ one.c