From nobody Sun Feb 8 05:23:42 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594894755; cv=none; d=zohomail.com; s=zohoarc; b=SdwOvZdJ7Por931ntOFq0AEF8sIsoii1oTbs0skFU9dgEdGUKxQp0F5x35EF6R4SPc2ZSYDueibU/mJ/SYLDRgip6tdCDCE5NtGMRLdCezsd3fH+YS9pGPCdUGebhTmjq4lgtCPk30abNrXZp7Xv6prwSO5FpeA+MExfXipLY5E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894755; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HNMoQupiK2UIP/RcldSxME6iHSQOEtDjaDC0D6JbpLA=; b=h8r+n4gCy20A6E0gzcaJOpVmuRfVxRsOmC41xpD79NgGsfAXySLZD1fpaWeWXEy9d1zbNiLRBWTzJD3xN3qKN6arw7DVBs1b7WDYM12Fnx7/j9JeILtBQp8K8o6vief0HWwmvFVJa/hp6TCS0XhuvayOddYkh93OgRuFLnEkd0c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1594894755401128.34324006430643; Thu, 16 Jul 2020 03:19:15 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-236-WlYbRdJgNAawdCPJVeedcw-1; Thu, 16 Jul 2020 06:08:37 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C053E80BCAC; Thu, 16 Jul 2020 10:08:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A48EC74F64; Thu, 16 Jul 2020 10:08:28 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 71ABE1802226; Thu, 16 Jul 2020 10:08:28 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA3xU0017579 for ; Thu, 16 Jul 2020 06:03:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id 757AA2B6DC; Thu, 16 Jul 2020 10:03:59 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id E38FD2B6DB for ; Thu, 16 Jul 2020 10:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894754; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=HNMoQupiK2UIP/RcldSxME6iHSQOEtDjaDC0D6JbpLA=; b=BNh72M8ae8zgVeHcdGLlX5clefSJqUMumo+/3NP1hRjBWM7w8Bqvr+OSG7v+yIgBthi8wC 4tiPjPUotb21tjGGUgpAe+20yX0krBhP/y3a0n3+hRfIts4qAYAeYA4Kp8qOBLBUS7jcdU xg/zD/iv/c+G5ZERseK+DmIDIRVbXnI= X-MC-Unique: WlYbRdJgNAawdCPJVeedcw-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 150/351] meson: scripts: introduce gen-sym-files.sh script Date: Thu, 16 Jul 2020 11:56:26 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- scripts/gen-sym-files.sh | 15 +++++++++++++++ scripts/meson.build | 1 + src/Makefile.am | 14 -------------- 3 files changed, 16 insertions(+), 14 deletions(-) create mode 100755 scripts/gen-sym-files.sh diff --git a/scripts/gen-sym-files.sh b/scripts/gen-sym-files.sh new file mode 100755 index 00000000000..913a684d064 --- /dev/null +++ b/scripts/gen-sym-files.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +version=3D"$1" +shift +public=3D"$1" +shift +private=3D"$@" + +printf "# WARNING: generated from the following files:\n\n" +cat $public +printf "\n\n# Private symbols\n\n" +printf "$version {\n\n" +printf "global:\n\n" +cat $private +printf "\n\nlocal:\n*;\n\n};" diff --git a/scripts/meson.build b/scripts/meson.build index aa8c872a814..0d2e48c3a36 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -12,6 +12,7 @@ scripts =3D [ 'dtrace2systemtap.py', 'esx_vi_generator.py', 'gen-def-files.sh', + 'gen-sym-files.sh', 'genaclperms.py', 'genpolkit.py', 'gensystemtap.py', diff --git a/src/Makefile.am b/src/Makefile.am index b98169f27e7..b0990e94ec1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -288,20 +288,6 @@ else ! WITH_LIBSSH SYM_FILES +=3D $(srcdir)/libvirt_libssh.syms endif ! WITH_LIBSSH =20 -libvirt.syms: libvirt_public.syms $(USED_SYM_FILES) \ - $(ACCESS_DRIVER_SYM_FILES) \ - $(top_builddir)/config.status - $(AM_V_GEN)rm -f $@-tmp $@ ; \ - printf '# WARNING: generated from the following:\n# $^\n\n' >$@-tmp && \ - cat $(srcdir)/libvirt_public.syms >>$@-tmp && \ - printf '\n\n# Private symbols\n\n' >>$@-tmp && \ - printf 'LIBVIRT_PRIVATE_$(VERSION) {\n\n' >>$@-tmp && \ - printf 'global:\n\n' >>$@-tmp && \ - cat $(USED_SYM_FILES) $(ACCESS_DRIVER_SYM_FILES) >>$@-tmp && \ - printf '\n\nlocal:\n*;\n\n};' >>$@-tmp && \ - chmod a-w $@-tmp && \ - mv $@-tmp libvirt.syms - # Empty source list - it merely links a bunch of convenience libs together libvirt_la_SOURCES =3D libvirt_la_LDFLAGS =3D \ --=20 2.26.2