package-helpers-cmxsl/helpers/make-libvirt
2017-06-16 17:46:58 -04:00

47 lines
1.5 KiB
Bash

#!/bin/sh
#
# Copyright (C) 2017 Ruben Rodriguez <ruben@trisquel.info>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=2
EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu yakkety-updates main'
. ./config
#https://www.redhat.com/archives/libvir-list/2016-August/msg00749.html
patch -p1 << EOF
diff --git a/tools/virsh-secret.c b/tools/virsh-secret.c
index 8588f4c..537bdd7 100644
--- a/tools/virsh-secret.c
+++ b/tools/virsh-secret.c
@@ -253,7 +253,7 @@ static bool
cmdSecretGetValue(vshControl *ctl, const vshCmd *cmd)
{
virSecretPtr secret;
- char *base64;
+ char *base64 = NULL;
unsigned char *value;
size_t value_size;
bool ret = false;
EOF
sed '/zfsutils/d' -i debian/control
sed 's/with-storage-zfs/without-storage-zfs/' -i debian/rules
changelog "Backported from yakkety, disabled zfs integration"
compile