From nobody Sun Feb 8 23:32:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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=1594894629; cv=none; d=zohomail.com; s=zohoarc; b=Cuh+WYItJo5jB6X0RppGaVz30MpVlyHkTRs0lsOqxXIcSw6nsla2Yy7nQPbaDXIXvqD95lVgiKMPwkQvIYWDfxdeSoAlQ/7swKoBo75yLkYXaDMBJP9dInepMfzcM3nEVT4XxI5tLuvvwsppsbH2lRimahlgs+sUKta666mMM20= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894629; 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=jVxKJ6MYJhFkcNUgcJBATeo5TZMwSR7iAPS6Xz65PsQ=; b=bF+8loisiqH1E+gN3Hre2LEFZAf3FOtJO9alm+p2Et7vel+QU6hXx7sLOV5HA5HW2MEKcj2Un69ekNOOhgyfK1SdlcfZS1Kg1c4k0urU0Q2oVcH/nCkDqfxan3sLZV2TH076m+bdyRjURo9JnQH1kr2WtOqOhmwrNleauACdhkg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1594894629558510.47340438597655; Thu, 16 Jul 2020 03:17:09 -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-385-RtWGdKc1PwG3rWMhaV1pvw-1; Thu, 16 Jul 2020 06:08:33 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6BF60100AA21; Thu, 16 Jul 2020 10:08:26 +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 48CED2B6DC; Thu, 16 Jul 2020 10:08:26 +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 160AA1803501; Thu, 16 Jul 2020 10:08:26 +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 06GA3wWP017567 for ; Thu, 16 Jul 2020 06:03:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8C9552B6DC; Thu, 16 Jul 2020 10:03:58 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 065272B6DB for ; Thu, 16 Jul 2020 10:03:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894628; 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=jVxKJ6MYJhFkcNUgcJBATeo5TZMwSR7iAPS6Xz65PsQ=; b=A/3eiEXqINJlEhRPcTRxcMUWryHizxeGSfux8IwefuoqQIOP3ew/hXF1cYxZEPimSF/tqw /Sbo5Ucxr5CSZNQX8uWON9LFdX4RmvA7eza0V5ojroLQzGZQbRX5Cqg+ATyMypNq4eT6lN 9VfCj6+A+rj8Cga3vaBJ94iGwfkyOX8= X-MC-Unique: RtWGdKc1PwG3rWMhaV1pvw-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 149/351] meson: scripts: introduce gen-def-files.sh script Date: Thu, 16 Jul 2020 11:56:25 +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.84 on 10.5.11.23 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-def-files.sh | 5 +++++ scripts/meson.build | 1 + src/Makefile.am | 8 -------- 3 files changed, 6 insertions(+), 8 deletions(-) create mode 100755 scripts/gen-def-files.sh diff --git a/scripts/gen-def-files.sh b/scripts/gen-def-files.sh new file mode 100755 index 00000000000..1ec7b083802 --- /dev/null +++ b/scripts/gen-def-files.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +printf 'EXPORTS\n' +sed -e '/^$/d; /#/d; /:/d; /}/d; /\*/d; /LIBVIRT_/d' \ + -e 's/[ ]*\(.*\)\;/ \1/g' $1 diff --git a/scripts/meson.build b/scripts/meson.build index 5d3f0af4793..aa8c872a814 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -11,6 +11,7 @@ scripts =3D [ 'check-symsorting.py', 'dtrace2systemtap.py', 'esx_vi_generator.py', + 'gen-def-files.sh', 'genaclperms.py', 'genpolkit.py', 'gensystemtap.py', diff --git a/src/Makefile.am b/src/Makefile.am index 50807ee7491..b98169f27e7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -302,14 +302,6 @@ libvirt.syms: libvirt_public.syms $(USED_SYM_FILES) \ chmod a-w $@-tmp && \ mv $@-tmp libvirt.syms =20 -%.def: %.syms - $(AM_V_GEN)rm -f -- $@-tmp $@ ; \ - printf 'EXPORTS\n' > $@-tmp && \ - sed -e '/^$$/d; /#/d; /:/d; /}/d; /\*/d; /LIBVIRT_/d' \ - -e 's/[ ]*\(.*\)\;/ \1/g' $^ >> $@-tmp && \ - chmod a-w $@-tmp && \ - mv $@-tmp $@ - # Empty source list - it merely links a bunch of convenience libs together libvirt_la_SOURCES =3D libvirt_la_LDFLAGS =3D \ --=20 2.26.2