summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* build: exempt symlinks from trailing-blank-line prohibitionJim Meyering2009-08-041-2/+3
| | | | * cfg.mk (sc_prohibit_trailing_blank_lines): Exempt symlinks.
* build: enable syntax-check: TAB-only indentation in MakefilesJim Meyering2009-08-041-1/+0
| | | | * cfg.mk (disable_temporarily): Remove sc_makefile_TAB_only_indentation.
* build: tweak HACKING so we pass "make syntax-check"Jim Meyering2009-08-041-2/+2
| | | | * HACKING: Convert leading TABs.
* build: remove trailing blanks, enable syntax-checkJim Meyering2009-08-044-4/+4
| | | | | | | * regressions/test-cancellation-download-librarycancels.sh: * src/generator.ml: * cfg.mk (disable_temporarily): Remove sc_trailing_blank. * .x-sc_trailing_blank: New file.
* maint: use COPYING.LIB version 2.1Jim Meyering2009-08-042-158/+125
| | | | | * COPYING.LIB: Update to 2.1. * .x-sc_TAB_in_indentation: Also exempt COPYING.LIB.
* build: don't emit trailing blanks, remove generated fileJim Meyering2009-08-042-7/+8
| | | | | | * ocaml/Makefile.am (.depend): Don't redirect directly to $@. Filter out trailing blanks. * ocaml/.depend: Regenerate.
* build: remove more files added by ./autogen.shJim Meyering2009-08-0410-561/+0
| | | | | | | | | | | | | * po/LINGUAS: Remove file. * po/Makefile.in.in: Likewise. * po/Makevars: Likewise. * po/Rules-quot: Likewise. * po/boldquot.sed: Likewise. * po/en@boldquot.header: Likewise. * po/en@quot.header: Likewise. * po/insert-header.sin: Likewise. * po/quot.sed: Likewise. * po/remove-potcdate.sin: Likewise.
* build: tell aclocal to search gnulib/m4, tooJim Meyering2009-08-041-1/+1
| | | | * Makefile.am (ACLOCAL_AMFLAGS): Append "-I gnulib/m4".
* Document and enforce the new spaces-only indentation policy.Jim Meyering2009-08-033-3/+33
| | | | | | | * cfg.mk (disable_temporarily): Remove sc_TAB_in_indentation, to enable the "make syntax-check" that enforces this. * .x-sc_TAB_in_indentation: New file. Exceptions. * HACKING: Document the policy, with tips on how to conform.
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-0350-3485/+3485
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* Remove files imported via autogen.sh.Jim Meyering2009-08-0335-3539/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/.gitignore: Ignore these files. * m4/codeset.m4: Remove file. * m4/gettext.m4: Likewise. * m4/glibc2.m4: Likewise. * m4/glibc21.m4: Likewise. * m4/iconv.m4: Likewise. * m4/intdiv0.m4: Likewise. * m4/intl.m4: Likewise. * m4/intldir.m4: Likewise. * m4/intlmacosx.m4: Likewise. * m4/intltool.m4: Likewise. * m4/inttypes-pri.m4: Likewise. * m4/inttypes.m4: Likewise. * m4/inttypes_h.m4: Likewise. * m4/isc-posix.m4: Likewise. * m4/lcmessage.m4: Likewise. * m4/lib-ld.m4: Likewise. * m4/lib-link.m4: Likewise. * m4/lib-prefix.m4: Likewise. * m4/lock.m4: Likewise. * m4/longdouble.m4: Likewise. * m4/longlong.m4: Likewise. * m4/nls.m4: Likewise. * m4/po.m4: Likewise. * m4/printf-posix.m4: Likewise. * m4/progtest.m4: Likewise. * m4/signed.m4: Likewise. * m4/size_max.m4: Likewise. * m4/stdint_h.m4: Likewise. * m4/uintmax_t.m4: Likewise. * m4/ulonglong.m4: Likewise. * m4/visibility.m4: Likewise. * m4/wchar_t.m4: Likewise. * m4/wint_t.m4: Likewise. * m4/xsize.m4: Likewise.
* allow use of #if HAVE_CONFIG_H, for example codeJim Meyering2009-08-031-0/+2
| | | | * .x-sc_prohibit_have_config_h: New file, to exempt examples.
* guestfs: fix typo in my recent changeJim Meyering2009-08-031-3/+3
| | | | | * src/guestfs.c (guestfs_perrorf): Rename former err to errnum, to avoid compilation error.
* Guard #inclusion of config.h in examples.Jim Meyering2009-08-032-2/+6
| | | | | * examples/hello.c [HAVE_CONFIG_H]: Include <config.h> conditionally. * examples/to-xml.c: Likewise.
* build: reenable "syntax-check" rule: sc_const_long_optionJim Meyering2009-08-034-4/+3
| | | | | | | * cfg.mk (disable_temporarily): Remove sc_const_long_option. * daemon/guestfsd.c (main): Declare long_options to be "const". * fish/fish.c (main): Likewise. * test-tool/test-tool.c (main): Likewise.
* build: temporarily disable failing "syntax-check" rulesJim Meyering2009-08-031-0/+14
| | | | * cfg.mk (disable_temporarily): Define.
* maint: use a git submodule for gnulibJim Meyering2009-08-0311-839/+263
| | | | | | | | | | | | | | * .gitmodules: New file, to track gnulib. * .gnulib: Submodule directory. * Makefile.am (EXTRA_DIST): Don't list config.rpath or gitlog-to-changelog. * autogen.sh: Adapt to use the new submodule. * cfg.mk: New file. (SUBDIRS): Add gnulib/lib and gnulib/tests. (dist-hook): Reflect new location of getlog-to-changelog. * configure.ac: Set build-aux/ as AUX_DIR. Invoke gl_EARLY and gl_INIT. (AC_CONFIG_FILES): Add gnulib/lib/Makefile and gnulib/tests/Makefile.
* always include <config.h>Jim Meyering2009-08-034-0/+4
| | | | | | * ocaml/guestfs_c.c: Include <config.h>. * examples/to-xml.c: Likewise. * examples/hello.c: Likewise.
* build: add -I option to get config.h.Jim Meyering2009-08-031-2/+5
| | | | | * ocaml/Makefile.am (AM_CPPFLAGS): Define. (guestfs_c.o, guestfs_c_actions.o): Use it.
* guestfs: don't fault upon failed vasprintfJim Meyering2009-08-031-1/+3
| | | | * src/guestfs.c (guestfs_perrorf): Handle failed vasprintf.
* Cleanup whitespace warnings in Lib.pmMatthew Booth2009-08-031-4/+4
|
* Use grub entries to find Linux kernelsMatthew Booth2009-08-032-89/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds grub parsing to Lib.pm. It adds the following structure to $os: {boot} ->{configs} ->[0] ->{title} = "Fedora (2.6.29.6-213.fc11.i686.PAE)" ->{kernel} = \kernel ->{cmdline} = "ro root=/dev/mapper/vg_mbooth-lv_root rhgb" ->{initrd} = \initrd ->{default} = 0 The kernel and initrd entries are just references to their top level entries under kernels and initrd_modules respectively. It also changes the way Linux kernels and initrd are discovered. Instead of searching /lib/modules and /boot for files with matching names, kernels and initrds are scanned as they are discovered in grub.conf. Additionally, the following attributes are added to the kernels top level entry: * path The path to the kernel's vmlinuz file. * package The name of the package which installed the kernel. The xml output of virt-inspector is updated to reflect all of the above changes.
* guestfish: Display RStructList results more pleasantly.Richard W.M. Jones2009-07-311-15/+28
|
* Add interface to Linux 'inotify' API.Richard W.M. Jones2009-07-317-3/+433
|
* lib: Add selinux=0 to default kernel command line.Richard W.M. Jones2009-07-311-1/+2
| | | | | | | | | | | SELinux exists in a very disturbed state if it is enabled at boot time, but no policy is loaded. In particular, it messes up the security.selinux extended attributes on files in a not-very-useful way. We can't enable SELinux because we don't know what policy can or should be loaded. Therefore it's best to disable it completely.
* Update incorrect comment in Lib.pmMatthew Booth2009-07-311-10/+8
| | | | | Related: change the name of the function the comment describes to be more accurate.
* Improve warnings about missing tests.Richard W.M. Jones2009-07-311-5/+26
| | | | | | | Don't warn where a command just has no tests. Instead check other commands' tests so we get a definitive (and much smaller) list of commands that are not tested anywhere.
* New commands: swapon-*, swapoff-*, mkswap-file.Richard W.M. Jones2009-07-315-9/+225
| | | | | | | | | | | | swapon-device swapoff-device swapon-file swapoff-file swapon-label swapoff-label swapon-uuid swapoff-uuid mkswap-file
* New command: 'fallocate' to (pre-)allocate sized files.Richard W.M. Jones2009-07-316-2/+76
|
* New commands: 'ln', 'ln-f', 'ln-s', 'ln-sf' and 'readlink'.Richard W.M. Jones2009-07-316-3/+187
| | | | | These commands can be used to make hard and symbolic links. The readlink command is used to read existing symbolic links.
* Add 'realpath' command.Richard W.M. Jones2009-07-315-2/+57
|
* Ignore failure of 'mv' commands in appliance Makefile.Richard W.M. Jones2009-07-311-2/+2
| | | | | A lot of people report these as 'errors' when they are not. Hide the error messages.
* configure.ac: more quotingJim Meyering2009-07-301-11/+18
| | | | | Also, prohibit an invalid value of $JAVA_HOME, since it must be used unquoted below.
* build: If guestfwd test fails, need to print AC_MSG_RESULT 'no'Richard Jones2009-07-301-0/+1
|
* build: fix test for --nocompress optionJim Meyering2009-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | Richard W.M. Jones wrote: > On Wed, Jul 29, 2009 at 10:50:44PM +0200, Jim Meyering wrote: >> The test for febootstrap-to-initramfs' --nocompress option >> was always failing for me on F11. Here's why: > [...] > > Ouch that's obscure. I've applied this patch and the previous > one you sent too. Thanks! Our messages crossed. Rebasing my fixed patch and adjusting the log: >From 9e7846da50ceeee57187f703835bd3975e789719 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Wed, 29 Jul 2009 16:33:02 -0400 Subject: [PATCH] build: quote the other option test similarly * configure.ac: Quote properly.
* build: fix test for --nocompress optionJim Meyering2009-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test for febootstrap-to-initramfs' --nocompress option was always failing for me on F11. Here's why: $ bash ~/w/co/libguestfs:210-comment-fix $ t=`febootstrap-to-initramfs 2>&1` [Exit 1] $ if ! echo $t|grep -sq -- --nocompress; then echo not found; fi not found Notice: without quotes, the [--nocompress] term expands to "k", because I happen to have a temporary file named "k": $ echo $t Usage: febootstrap-to-initramfs [--files=filelist] k DIR Please read febootstrap-to-initramfs(8) man page for more information. $ echo "$t" Usage: febootstrap-to-initramfs [--files=filelist] [--nocompress] DIR Please read febootstrap-to-initramfs(8) man page for more information. a simpler example gives a clue: $ touch a b c $ echo [--z] a b c $ echo [--a] a $ echo [--b] a b it's interpreting [--nocompress] as a range: "-" through "n", plus the other characters, ocmpres. "k" falls in the --n range. Anyhow, here's the fix: >From 84855642ed41828d01d55123cfab8d8dede759c1 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Wed, 29 Jul 2009 16:33:02 -0400 Subject: [PATCH] build: fix test for --nocompress option * configure.ac: Fix underquoting bug that would cause the test for febootstrap-to-initramfs' --nocompress option always to fail with certain-letter-named files in the top directory.
* fix comments; move declarationsJim Meyering2009-07-301-6/+4
| | | | | | * daemon/devsparts.c (do_list_devices, do_list_partitions): Remove stray words in comments. Move declarations down to definition.
* Whitespace and comment changes.Richard Jones2009-07-291-1/+14
|
* df: Fix alignment of columns.Richard Jones2009-07-291-1/+1
|
* guestfish: Make more strings translatable.Richard Jones2009-07-295-71/+1669
| | | | | However this doesn't yet attempt to translate the POD command documentation. We need a plan to do that.
* tests: Use squashfs for static data where possible.Richard Jones2009-07-292-87/+63
| | | | | | | | | Instead of creating a new InitBasicFS for just about every test, where a test doesn't need to write to the filesystem it is far faster to use prepared data on an InitSquashFS instead. This commit changes as many tests as possible to make this so, making the tests much faster.
* tests: Fix read_file test.Richard Jones2009-07-294-5/+33
| | | | | | | | | The test ignored the fact that this function returns a (char *, size_t) pair, and just treated the char * as a string. This of course would fail if the string didn't happen to be nul-terminated. The tests are updated to add a new TestOutputBuffer type which should be used with functions that return RBufferOut.
* Implement '*grep*' family of commands.Richard Jones2009-07-299-6/+260
|
* Updated Polish translations (Piotr Drąg).Richard Jones2009-07-291-100/+162
|
* Version 1.0.65.1.0.65Richard Jones2009-07-293-7/+7
|
* Updated PO files.Richard Jones2009-07-293-182/+223
|
* build: avoid locale-specific changes in generated, VC'd fileJim Meyering2009-07-292-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When I build with LC_ALL=C in my environment, the all-local rule generates po/POTFILES.in that is sorted differently from the on that is checked in: diff --git a/po/POTFILES.in b/po/POTFILES.in index ca01b3d..154915a 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -63,12 +63,11 @@ fish/tilde.c fish/time.c inspector/virt-inspector.pl java/com_redhat_et_libguestfs_GuestFS.c -ocaml/guestfs_c_actions.c ocaml/guestfs_c.c +ocaml/guestfs_c_actions.c perl/bindtests.pl -perl/Guestfs.c -perl/lib/Sys/Guestfs/Lib.pm perl/lib/Sys/Guestfs.pm +perl/lib/Sys/Guestfs/Lib.pm python/guestfs-py.c ruby/ext/guestfs/_guestfs.c src/guestfs-actions.c If we generate that file so that sort always uses the C locale, then, this type of difference will not arise. Here's the patch to fix the rule as well as to reflect the change in the generated file: >From 609e1d1840da25614a7c9e8954e5356050c9f2ad Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Wed, 29 Jul 2009 08:13:35 -0400 Subject: [PATCH] build: avoid locale-specific changes in generated, VC'd file * Makefile.am (all-local): Use LC_ALL=C to sort in C locale. * po/POTFILES.in: Regenerate.
* On RHEL 5, 'file' command prints 'AMD x86-64' for 'x86-64' arch.Richard W.M. Jones2009-07-291-0/+2
|
* Run cpio with --quiet option so it doesn't print 'xx blocks'Richard Jones2009-07-291-1/+1
|
* Lib.pm: Skip tests if perl-libintl module is not available.Richard Jones2009-07-292-2/+23
|