From 002dc21cba1469cc5b1ce5ef4a7984a733b44a1f Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sat, 15 May 2010 08:43:02 +0100 Subject: [PATCH] Generate BUGS file from Red Hat Bugzilla database. Add a script which generates the 'BUGS' file from Red Hat Bugzilla. This is run whenever we do 'make dist' and deliberately stored in git. --- BUGS | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- Makefile.am | 6 ++- update-bugs | 95 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 233 insertions(+), 11 deletions(-) create mode 100755 update-bugs diff --git a/BUGS b/BUGS index ced605f..a09c298 100644 --- a/BUGS +++ b/BUGS @@ -1,16 +1,141 @@ -Please note: This file used to contain a list of bugs. Bugs in -libguestfs are now tracked in Red Hat's Bugzilla. +NOTE: This file is automatically generated from build-aux/update-bugs. +Last updated: 2010-05-15 08:42:34 -To get a list of bugs against libguestfs use this link: - -https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools - -To report a new bug against libguestfs use this link: +This contains a local list of the bugs that are open against +libguestfs. Bugs are tracked in the Red Hat Bugzilla database +at https://bugzilla.redhat.com/ and to report a new bug you +should follow this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools -When reporting a bug, please check: +When reporting a new bug, please check: - - That the bug hasn't been reported already. + - That the bug has not been reported already. - That you are testing a recent version. - Describe the bug accurately, and give a way to reproduce it. + - Include the version of libguestfs, distro version and any other + relevant information. + - Attach the complete output of "libguestfs-test-tool". + +-------------------------------------------------- +Bugs in NEW or ASSIGNED state are open and waiting for someone to fix. + +563450 NEW https://bugzilla.redhat.com/show_bug.cgi?id=563450 + list-devices returns devices of different types out of order + +581045 NEW https://bugzilla.redhat.com/show_bug.cgi?id=581045 + 'download' command corrupts very large files (at 4 GB boundary?) + +582993 NEW https://bugzilla.redhat.com/show_bug.cgi?id=582993 + guestfish eats words when tab completing case (in)sensitive paths + +584228 NEW https://bugzilla.redhat.com/show_bug.cgi?id=584228 + tgz-in/tar-in command hang when run with a vfat img + +585221 NEW https://bugzilla.redhat.com/show_bug.cgi?id=585221 + resize2fs should support shrinking filesystems + +585222 NEW https://bugzilla.redhat.com/show_bug.cgi?id=585222 + pvresize should support shrinking PVs + +585223 NEW https://bugzilla.redhat.com/show_bug.cgi?id=585223 + ntfsresize should support shrinking filesystems + +501889 NEW https://bugzilla.redhat.com/show_bug.cgi?id=501889 + write-file does not support strings containing ASCII NUL + +547488 NEW https://bugzilla.redhat.com/show_bug.cgi?id=547488 + guestfish cannot tab complete filenames that contain spaces + +501884 NEW https://bugzilla.redhat.com/show_bug.cgi?id=501884 + virt-inspector still configured, even if there are missing deps + +501886 NEW https://bugzilla.redhat.com/show_bug.cgi?id=501886 + exec: chroot not found + +501893 NEW https://bugzilla.redhat.com/show_bug.cgi?id=501893 + String parameters should be checked for != NULL + +501894 NEW https://bugzilla.redhat.com/show_bug.cgi?id=501894 + Some String parameters should be OptString + +507278 NEW https://bugzilla.redhat.com/show_bug.cgi?id=507278 + libguestfs fails to build on Fedora sparc64 + +547479 NEW https://bugzilla.redhat.com/show_bug.cgi?id=547479 + NTFS partitions sometimes fail to mount if mounted read/write + +554829 NEW https://bugzilla.redhat.com/show_bug.cgi?id=554829 + SELinux handling could be done better. + +555803 NEW https://bugzilla.redhat.com/show_bug.cgi?id=555803 + virt-tar error: tgz_out error in chunked encoding + +572337 NEW https://bugzilla.redhat.com/show_bug.cgi?id=572337 + libguestfs should support gptsync + +578103 NEW https://bugzilla.redhat.com/show_bug.cgi?id=578103 + [RFE] Tool to Compare Windows Registry Entries + +583921 NEW https://bugzilla.redhat.com/show_bug.cgi?id=583921 + virt-inspector dies without user-friendly message + +592052 NEW https://bugzilla.redhat.com/show_bug.cgi?id=592052 + Need to backport upstream patch to allow optional parts of the libguestfs appliance into RHEL + +501882 ASSIGNED https://bugzilla.redhat.com/show_bug.cgi?id=501882 + /tmp/libguestfs temporary directory is not cleaned up + +583974 ASSIGNED https://bugzilla.redhat.com/show_bug.cgi?id=583974 + mount hangs there when you lack proper permission to guest image + +502074 ASSIGNED https://bugzilla.redhat.com/show_bug.cgi?id=502074 + running commands segfault randomly, with 32 bit host and guest, when host is a Xen or VMWare guest + +539746 ASSIGNED https://bugzilla.redhat.com/show_bug.cgi?id=539746 + launch fails when run inside a Xen guest, when no non-PV kernels are installed + +582484 ASSIGNED https://bugzilla.redhat.com/show_bug.cgi?id=582484 + some guestfish sub commands can not handle special files properly + +503134 ASSIGNED https://bugzilla.redhat.com/show_bug.cgi?id=503134 + guestfish's list splitting does not recognize internal quoting + +541618 ASSIGNED https://bugzilla.redhat.com/show_bug.cgi?id=541618 + guestfish not able to mount freebsd ufs2 partitions automatically + +-------------------------------------------------- +Bugs in MODIFIED, POST or ON_QA state are fixed. +You can help by testing the fixes. + +507810 MODIFIED https://bugzilla.redhat.com/show_bug.cgi?id=507810 + guestfish -i / virt-inspector cannot handle spaces in filenames + +559963 MODIFIED https://bugzilla.redhat.com/show_bug.cgi?id=559963 + libguestfs Perl programs do set locale, but still localization doesn't work + +576879 MODIFIED https://bugzilla.redhat.com/show_bug.cgi?id=576879 + libguestfs protocol loses synchronization if you 'upload' before mounting disks + +591142 MODIFIED https://bugzilla.redhat.com/show_bug.cgi?id=591142 + virt-inspector should give an error for unrecognized disk images + +591155 MODIFIED https://bugzilla.redhat.com/show_bug.cgi?id=591155 + virt-tar prints "tar_in: tar subcommand failed on directory" if a disk image is not writable + +591250 MODIFIED https://bugzilla.redhat.com/show_bug.cgi?id=591250 + virt-tar prints "tar_in: tar subcommand failed on directory" if the archive is compressed or not in the right format + +588651 MODIFIED https://bugzilla.redhat.com/show_bug.cgi?id=588651 + guestfish 'strings-e' cmd does not give proper error message or hint + +521674 MODIFIED https://bugzilla.redhat.com/show_bug.cgi?id=521674 + Perl modules are unversioned, but should carry version numbers + +579664 ON_QA https://bugzilla.redhat.com/show_bug.cgi?id=579664 + guestfish doesn't report error when there is not enough space for image allocation + +582144 ON_QA https://bugzilla.redhat.com/show_bug.cgi?id=582144 + $g->aug_set doesn't allow a NULL value + +End of BUGS file. diff --git a/Makefile.am b/Makefile.am index 8472285..0143a69 100644 --- a/Makefile.am +++ b/Makefile.am @@ -158,11 +158,13 @@ website: $(HTMLFILES) $(TEXTFILES) -e "s/SUBST_DATE/$$date/" \ < index.html.in > index.html -# Generate the ChangeLog automatically from the gitlog. - +# When doing 'make dist' update a few files automatically. dist-hook: $(top_srcdir)/build-aux/gitlog-to-changelog > ChangeLog cp ChangeLog $(distdir)/ChangeLog + $(top_srcdir)/update-bugs > BUGS-t + mv BUGS-t BUGS + cp BUGS $(distdir)/BUGS # Update the list of translatable files in po/POTFILES.in. all-local: diff --git a/update-bugs b/update-bugs new file mode 100755 index 0000000..73c1e1d --- /dev/null +++ b/update-bugs @@ -0,0 +1,95 @@ +#!/bin/bash - +# update-bugs +# Copyright (C) 2009-2010 Red Hat Inc. +# +# 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., 675 Mass Ave, Cambridge, MA 02139, USA. + +# In 'make dist' this is used to update the top level 'BUGS' file with +# the current bug list from Red Hat Bugzilla (bugzilla.redhat.com). + +# First of all fetch the bugs from the database. This might fail, +# eg. if there is no net access or no 'bugzilla' program, but if that +# happens just exit and leave the BUGS file alone. + +bugzilla query -c libguestfs --outputformat='%{bug_id} %{bug_status} %{short_desc}' > .bugs.tmp || exit 0 + +# Any errors from now on are fatal. +set -e + +# Print prologue. +echo 'NOTE: This file is automatically generated from build-aux/update-bugs.' +echo -n 'Last updated: ' ; date +'%Y-%m-%d %H:%M:%S' +echo ' +This contains a local list of the bugs that are open against +libguestfs. Bugs are tracked in the Red Hat Bugzilla database +at https://bugzilla.redhat.com/ and to report a new bug you +should follow this link: + +https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools + +When reporting a new bug, please check: + + - That the bug has not been reported already. + - That you are testing a recent version. + - Describe the bug accurately, and give a way to reproduce it. + - Include the version of libguestfs, distro version and any other + relevant information. + - Attach the complete output of "libguestfs-test-tool". +' + +lastclass=X +while read bugno status summary; do + # Ignore CLOSED bugs in this list. + if [ "$status" = "CLOSED" ]; then continue; fi + + # Treat ASSIGNED the same as NEW. + # Treat MODIFIED, POST and ON_QA as the same. + case "$status" in + ASSIGNED) bugclass=NEW ;; + POST|ON_QA) bugclass=MODIFIED ;; + *) bugclass=$status ;; + esac + + # 'bugzilla' command returns the bugs sorted by status, NEW, ASSIGNED, + # MODIFIED, ..., CLOSED. Therefore start a new section when the + # status field changes. + if [ "$bugclass" != "$lastclass" ]; then + echo '--------------------------------------------------' + case "$bugclass" in + NEW) + echo 'Bugs in NEW or ASSIGNED state are open and waiting for someone to fix.' ;; + NEEDINFO) + echo 'Bugs in NEEDINFO state require additional information.' ;; + MODIFIED) + echo 'Bugs in MODIFIED, POST or ON_QA state are fixed.' + echo 'You can help by testing the fixes.' + ;; + *) + echo "These bugs are in the $status state." ;; + esac + echo + fi + lastclass=$bugclass + + # Display the bug. + echo "$bugno $status https://bugzilla.redhat.com/show_bug.cgi?id=$bugno" + echo " $summary" + echo +done < .bugs.tmp + +echo "End of BUGS file." + +# Clean up temporary file. +rm .bugs.tmp -- 1.8.3.1