From nobody Thu May 2 19:23:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1505932841799266.70821654236465; Wed, 20 Sep 2017 11:40:41 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06A2B883AE; Wed, 20 Sep 2017 18:40:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ADE4E51895; Wed, 20 Sep 2017 18:40:39 +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 CE5F93FC71; Wed, 20 Sep 2017 18:40:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v8KHtCm0030898 for ; Wed, 20 Sep 2017 13:55:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 38E5B60604; Wed, 20 Sep 2017 17:55:12 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.40.205.100]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 897666063A for ; Wed, 20 Sep 2017 17:55:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 06A2B883AE Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Date: Wed, 20 Sep 2017 19:54:46 +0200 Message-Id: <20170920175450.9388-2-abologna@redhat.com> In-Reply-To: <20170920175450.9388-1-abologna@redhat.com> References: <20170920175450.9388-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH libvirt-glib 1/5] maint: Drop autobuild.sh 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 20 Sep 2017 18:40:40 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The Test-AutoBuild project, that this script is supposed to be used with, hasn't seen any activity in ~6 years; libvirt's own CI, which also performs periodic builds of libvirt-glib, is running on Jenkins with a completely independent setup that doesn't use the script at all. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrange --- autobuild.sh | 91 --------------------------------------------------------= ---- 1 file changed, 91 deletions(-) delete mode 100755 autobuild.sh diff --git a/autobuild.sh b/autobuild.sh deleted file mode 100755 index 9935de1..0000000 --- a/autobuild.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/sh - -set -e -set -v - -test -n "$1" && RESULTS=3D$1 || RESULTS=3Dresults.log -: ${AUTOBUILD_INSTALL_ROOT=3D$HOME/builder} - -# Make things clean. -test -f Makefile && make -k distclean || : - -rm -rf build -mkdir build -cd build - -../autogen.sh --prefix=3D$AUTOBUILD_INSTALL_ROOT \ - --enable-gtk-doc - -make -make install - -# set -o pipefail is a bashism; this use of exec is the POSIX alternative -exec 3>&1 -st=3D$( - exec 4>&1 >&3 - { make check syntax-check 2>&1 3>&- 4>&-; echo $? >&4; } | tee "$RESULTS" -) -exec 3>&- -test "$st" =3D 0 - -rm -f *.tar.gz -make dist - -if [ -n "$AUTOBUILD_COUNTER" ]; then - EXTRA_RELEASE=3D".auto$AUTOBUILD_COUNTER" -else - NOW=3D`date +"%s"` - EXTRA_RELEASE=3D".$USER$NOW" -fi - -if [ -f /usr/bin/rpmbuild ]; then - rpmbuild --nodeps \ - --define "extra_release $EXTRA_RELEASE" \ - --define "_sourcedir `pwd`" \ - -ba --clean libvirt-glib.spec -fi - -# Test mingw32 cross-compile -if test -x /usr/bin/i686-w64-mingw32-gcc ; then - make distclean - - PKG_CONFIG_PATH=3D"$AUTOBUILD_INSTALL_ROOT/i686-w64-mingw32/sys-root/min= gw/lib/pkgconfig" \ - CC=3D"i686-w64-mingw32-gcc" \ - ../configure \ - --build=3D$(uname -m)-pc-linux \ - --host=3Di686-w64-mingw32 \ - --prefix=3D"$AUTOBUILD_INSTALL_ROOT/i686-w64-mingw32/sys-root/mingw" \ - --enable-werror \ - --enable-introspection=3Dno - - make - make install - -fi - -# Test mingw64 cross-compile -if test -x /usr/bin/x86_64-w64-mingw32-gcc ; then - make distclean - - PKG_CONFIG_PATH=3D"$AUTOBUILD_INSTALL_ROOT/x86_64-w64-mingw32/sys-root/m= ingw/lib/pkgconfig" \ - CC=3D"x86_64-w64-mingw32-gcc" \ - ../configure \ - --build=3D$(uname -m)-pc-linux \ - --host=3Dx86_64-w64-mingw32 \ - --prefix=3D"$AUTOBUILD_INSTALL_ROOT/i686-w64-mingw32/sys-root/mingw" \ - --enable-werror \ - --enable-introspection=3Dno - - make - make install - -fi - -if test -x /usr/bin/i686-w64-mingw32-gcc && test -x /usr/bin/x86_64-w64-mi= ngw32-gcc ; then - if test -f /usr/bin/rpmbuild ; then - rpmbuild --nodeps \ - --define "extra_release $EXTRA_RELEASE" \ - --define "_sourcedir `pwd`" \ - -ba --clean mingw-libvirt-glib.spec - fi -fi --=20 2.13.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu May 2 19:23:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1505930857725615.3510097490287; Wed, 20 Sep 2017 11:07:37 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6CCA9C00DBBD; Wed, 20 Sep 2017 18:07:36 +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 4A883600CA; Wed, 20 Sep 2017 18:07:36 +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 087381855945; Wed, 20 Sep 2017 18:07:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v8KHtDOF030904 for ; Wed, 20 Sep 2017 13:55:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 450FD60635; Wed, 20 Sep 2017 17:55:13 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.40.205.100]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9CA7360604 for ; Wed, 20 Sep 2017 17:55:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6CCA9C00DBBD Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Date: Wed, 20 Sep 2017 19:54:47 +0200 Message-Id: <20170920175450.9388-3-abologna@redhat.com> In-Reply-To: <20170920175450.9388-1-abologna@redhat.com> References: <20170920175450.9388-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH libvirt-glib 2/5] configure: Bump required libvirt version to 1.2.5 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 20 Sep 2017 18:07:37 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" That's the version that introduced VIR_DOMAIN_TIME_SYNC, which we use in the library. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrange --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7981d23..43b0ffb 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,7 @@ AC_CANONICAL_HOST =20 AM_SILENT_RULES([yes]) =20 -LIBVIRT_REQUIRED=3D1.1.1 +LIBVIRT_REQUIRED=3D1.2.5 AC_SUBST([LIBVIRT_REQUIRED]) dnl used in the .spec file GLIB2_REQUIRED=3D2.36.0 AC_SUBST([GLIB2_REQUIRED]) dnl used in the .spec file --=20 2.13.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu May 2 19:23:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1505932867038776.3432264695949; Wed, 20 Sep 2017 11:41:07 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C7894C0587FE; Wed, 20 Sep 2017 18:41:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A1EE960241; Wed, 20 Sep 2017 18:41:05 +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 4C9223FACD; Wed, 20 Sep 2017 18:41:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v8KHtEhZ030914 for ; Wed, 20 Sep 2017 13:55:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4F52960604; Wed, 20 Sep 2017 17:55:14 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.40.205.100]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A75D960632 for ; Wed, 20 Sep 2017 17:55:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C7894C0587FE Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Date: Wed, 20 Sep 2017 19:54:48 +0200 Message-Id: <20170920175450.9388-4-abologna@redhat.com> In-Reply-To: <20170920175450.9388-1-abologna@redhat.com> References: <20170920175450.9388-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH libvirt-glib 3/5] configure: Look for Perl interpreter path 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 20 Sep 2017 18:41:06 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The $(PERL) variable is used in several places, but configure is not actually looking for the Perl interpreter path, so it will always end up being empty. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrange --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 43b0ffb..05b9628 100644 --- a/configure.ac +++ b/configure.ac @@ -71,6 +71,8 @@ AC_SUBST([LIBVIRT_GLIB_VERSION_NUMBER]) AC_PROG_CC AM_PROG_CC_C_O =20 +AC_PATH_PROG([PERL], [perl]) + LT_INIT([shared disable-static win32-dll]) =20 dnl AC_CONFIG_LIBOBJ_DIR([src]) --=20 2.13.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu May 2 19:23:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1505931288439248.36681769356426; Wed, 20 Sep 2017 11:14:48 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6DFDE4E4D0; Wed, 20 Sep 2017 18:14:47 +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 D77D65D6A6; Wed, 20 Sep 2017 18:14:46 +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 69F081855942; Wed, 20 Sep 2017 18:14:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v8KHtF7H030922 for ; Wed, 20 Sep 2017 13:55:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id 59B9E6063C; Wed, 20 Sep 2017 17:55:15 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.40.205.100]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B2C1660604 for ; Wed, 20 Sep 2017 17:55:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6DFDE4E4D0 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Date: Wed, 20 Sep 2017 19:54:49 +0200 Message-Id: <20170920175450.9388-5-abologna@redhat.com> In-Reply-To: <20170920175450.9388-1-abologna@redhat.com> References: <20170920175450.9388-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH libvirt-glib 4/5] tests: Don't rely on non-portable paths 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 20 Sep 2017 18:14:47 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The test-events program sets up a watch on /bin/true; however, that path is not portable: FreeBSD uses /usr/bin/true for example. Remove the portability issue by using /dev/null instead. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrange --- tests/test-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-events.c b/tests/test-events.c index 0c0e929..6845243 100644 --- a/tests/test-events.c +++ b/tests/test-events.c @@ -98,7 +98,7 @@ static gboolean test_watch(gpointer user_data G_GNUC_UNUS= ED) static void test_remove_disabled_watch(void) { main_loop =3D g_main_loop_new(NULL, FALSE); - watch_fd =3D open("/bin/true", O_RDONLY); + watch_fd =3D open("/dev/null", O_RDONLY); g_idle_add(test_watch, NULL); g_main_loop_run(main_loop); g_main_loop_unref(main_loop); --=20 2.13.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu May 2 19:23:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1505931310752886.705314408653; Wed, 20 Sep 2017 11:15:10 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7DF4F51165; Wed, 20 Sep 2017 18:15:09 +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 538B55D6A6; Wed, 20 Sep 2017 18:15:09 +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 09F741855946; Wed, 20 Sep 2017 18:15:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v8KHtGF5030929 for ; Wed, 20 Sep 2017 13:55:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5A18E60632; Wed, 20 Sep 2017 17:55:16 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.40.205.100]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BD1C760604 for ; Wed, 20 Sep 2017 17:55:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7DF4F51165 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Date: Wed, 20 Sep 2017 19:54:50 +0200 Message-Id: <20170920175450.9388-6-abologna@redhat.com> In-Reply-To: <20170920175450.9388-1-abologna@redhat.com> References: <20170920175450.9388-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH libvirt-glib 5/5] scripts: Fix sha-bang lines 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 20 Sep 2017 18:15:09 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This is particularly useful on operating systems that don't ship Perl or Python as part of the base system (eg. FreeBSD) while still working just as well as it did before on Linux. While at it, make it explicit that our scripts are only going to work with Python 2, add a couple of missing sha-bang lines and tweak a couple more that just didn't look very nice. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrange --- build-aux/check-symfile.pl | 2 +- build-aux/check-symsorting.pl | 2 +- examples/config-demo.py | 2 +- examples/conn-test.js | 2 +- examples/conn-test.py | 2 +- examples/event-test.py | 1 + tap-driver.sh | 2 +- tap-test | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/build-aux/check-symfile.pl b/build-aux/check-symfile.pl index d59a213..4f88300 100755 --- a/build-aux/check-symfile.pl +++ b/build-aux/check-symfile.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl =20 # Copyright (C) 2012-2013 Red Hat, Inc. # diff --git a/build-aux/check-symsorting.pl b/build-aux/check-symsorting.pl index 31b6059..942097a 100755 --- a/build-aux/check-symsorting.pl +++ b/build-aux/check-symsorting.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl =20 # Copyright (C) 2012-2013 Red Hat, Inc. # diff --git a/examples/config-demo.py b/examples/config-demo.py index e92aa43..ab3bc77 100644 --- a/examples/config-demo.py +++ b/examples/config-demo.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 =20 from gi.repository import LibvirtGConfig; =20 diff --git a/examples/conn-test.js b/examples/conn-test.js index 7f9784b..17affba 100755 --- a/examples/conn-test.js +++ b/examples/conn-test.js @@ -1,4 +1,4 @@ -#!/usr/bin/gjs +#!/usr/bin/env gjs =20 const lv =3D imports.gi.LibvirtGObject; const gio =3D imports.gi.Gio; diff --git a/examples/conn-test.py b/examples/conn-test.py index deeaa26..e3b1b99 100644 --- a/examples/conn-test.py +++ b/examples/conn-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 =20 from gi.repository import LibvirtGObject; from gi.repository import Gio; diff --git a/examples/event-test.py b/examples/event-test.py index 6ccc8f4..2b25e0a 100644 --- a/examples/event-test.py +++ b/examples/event-test.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python2 =20 from gi.repository import Gtk import libvirt diff --git a/tap-driver.sh b/tap-driver.sh index 6fef8f4..dc40648 100755 --- a/tap-driver.sh +++ b/tap-driver.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh # Copyright (C) 2011-2013 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify diff --git a/tap-test b/tap-test index 481e333..4d5892c 100755 --- a/tap-test +++ b/tap-test @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh =20 # run a GTest in tap mode. The test binary is passed as $1 =20 --=20 2.13.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list