Re: [PATCH libvirt-python v3 00/40] Split python binding into separate repo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FYI in order to test this from a compilation pov I wrote a script which
downloaded every older libvirt release and did a client only build and
then built the python module against it.

I'm attaching the script I used for this

I built on Fedora 19 successfully back to 0.9.11 with this, though I
had to patch libvirt itself in many cases to even build. Would appreciate
someone testing this build on other platforms too. eg RHEL and/or Ubuntu
in particular. You might have to tweak/skip some of the patches on
other platforms, depending on glibc/kernel versions

To run this, save all 4 attached files to a temporary directory. Run
the python build and copy the resulting dist/libvirt-python-1.2.0.tar.gz
file into the same temporary directory. Then just run build-many.sh

When its done check the build/*libvirt-python*.log files to see if any
compile warnings/failures occurred.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

Attachment: build-many.sh
Description: Bourne shell script

diff -rup libvirt-0.10.0.old/src/util/virnetdevbridge.c libvirt-0.10.0.new/src/util/virnetdevbridge.c
--- libvirt-0.10.0.old/src/util/virnetdevbridge.c	2012-08-27 03:12:21.000000000 +0100
+++ libvirt-0.10.0.new/src/util/virnetdevbridge.c	2013-11-22 12:00:41.952473495 +0000
@@ -36,6 +36,7 @@
 #ifdef __linux__
 # include <linux/sockios.h>
 # include <linux/param.h>     /* HZ                 */
+# include <netinet/ip6.h>
 # include <linux/if_bridge.h> /* SYSFS_BRIDGE_ATTR  */
 
 # define JIFFIES_TO_MS(j) (((j)*1000)/HZ)
Only in libvirt-0.10.0.new/src/util: virnetdevbridge.c~
diff -rup libvirt-1.1.3.orig/src/util/virnetdevbridge.c libvirt-1.1.3.new/src/util/virnetdevbridge.c
--- libvirt-1.1.3.orig/src/util/virnetdevbridge.c	2013-11-22 12:54:21.612394787 +0000
+++ libvirt-1.1.3.new/src/util/virnetdevbridge.c	2013-11-22 12:53:47.813405554 +0000
@@ -36,6 +36,8 @@
 #include <net/if.h>
 #include <netinet/in.h>
 
+#define NETINET_LINUX_WORKAROUND 1
+
 #ifdef __linux__
 # include <linux/sockios.h>
 # include <linux/param.h>     /* HZ                 */
diff -rup libvirt-0.9.6.old/gnulib/lib/stdio.in.h libvirt-0.9.6.new/gnulib/lib/stdio.in.h
--- libvirt-0.9.6.old/gnulib/lib/stdio.in.h	2011-06-14 02:46:29.000000000 +0100
+++ libvirt-0.9.6.new/gnulib/lib/stdio.in.h	2013-11-22 11:26:23.469691081 +0000
@@ -697,7 +697,6 @@ _GL_CXXALIASWARN (gets);
 /* It is very rare that the developer ever has full control of stdin,
    so any use of gets warrants an unconditional warning.  Assume it is
    always declared, since it is required by C89.  */
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 #endif
 
 
Only in libvirt-0.9.6.new/gnulib/lib: stdio.in.h~
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]