aboutsummaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* Switch back to 1.42.9 now that there is a fixJP Abgrall2014-03-198-8/+499
| | | | | | Revert "Revert changes that moved from 1.41.14 to 1.42.9" This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.
* Revert changes that moved from 1.41.14 to 1.42.9JP Abgrall2014-03-068-499/+8
| | | | | | | | | | | | | | | | Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H" commit e80e74c41d85ff93f3d212ba6512340f48054a93. Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master" This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Revert "Prepare for upstream 1.42.9" This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Bug: 13340735 Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8 Signed-off-by: JP Abgrall <jpa@google.com>
* gen-tarball: ignore all of the build* directoriesTheodore Ts'o2013-12-282-4/+2
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Clean up sparse warningsTheodore Ts'o2013-12-161-1/+1
| | | | | | | Mostly by adding static and removing excess extern qualifiers. Also convert a few remaining non-ANSI function declarations to ANSI. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* mke2fs: remove quota docs if not configured inEric Sandeen2013-10-141-0/+2
| | | | | | | | If quota isn't turned on with --enable-quota, then comment quota documentation out of the mke2fs manpage. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* e2fsprogs: add (optional) sparse checking to the buildDarrick J. Wong2013-10-111-0/+1
| | | | | | | | | | Run sparse against source files when building e2fsprogs with 'make C=1'. If instead C=2, it configures basic ext2 types for bitwise checking with sparse, which can help find the (many many) spots where conversion errors are (possibly) happening. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* util: respect HAVE_MALLOC_HMike Frysinger2012-08-191-0/+2
| | | | | | | | Most places respect this define, but this one doesn't. Reported-by: Dmitri Bogomolov <4glitch@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Teach build system to install relative symlinks if requestedTheodore Ts'o2012-05-123-1/+479
| | | | | | | | | Add a configure option, --enable-relative-symlinks, which will use relative symlinks for the ELF shared library files. Addresses-Sourceforge-Bug: #3520767 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* util: add build.profiled to list of files/directories to ignoreTheodore Ts'o2012-02-172-0/+2
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Shorten compile commands run by the build systemTheodore Ts'o2011-09-181-0/+1
| | | | | | | | | | | | | | | The DEFS line in MCONFIG had gotten so long that it exceeded 4k, and this was starting to cause some tools heartburn. It also made "make V=1" almost useless, since trying to following the individual commands run by make was lost in the noise of all of the defines. So fix this by putting the configure-generated defines in lib/config.h and the directory pathnames to lib/dirpaths.h. In addition, clean up some vestigal defines in configure.in and in the Makefiles to further shorten the cc command lines. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* subst: Fix free of uninit pointersEric Sandeen2011-09-161-4/+1
| | | | | | | | | | | | | | | | in add_subst(), if the malloc of ent->name fails, we goto fail; which will free ent->name (which is null, so OK) but also free ent->value (which is uninitialized). There is no case where we must free ent->value on an error (it is allocated last, and if it fails it of course doesn't need to be freed) so just remove it. Also "retval" is only assigned once to the constant ENOMEM, so we can just return that explicitly in the failure case. Signed-off-by: Eric Saneeen <sandeen@redhat.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Add support for configure --enable-verbose-makecmdsTheodore Ts'o2009-07-021-9/+9
| | | | | | | | | | | | | | | | | Some people don't want to see the concise "kernel-style" make output. This configure option allows build engines that want to see the full set of commands executed by the makefile to get what they want. Most people will find this more distracting than useful, unless they need to debug the Makefiles. (It is not necessary to rerun configure to enable this verbose make output temprarily; if a developer wants to do a quick debug of a directory's makefile, he or she can simply edit the definition of the $(E) and $(Q) variables in the Makefile; instructions can be found in the MCONFIG file which is included in at the beginning of every Makefile.) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* remove useless if-before-free testsJim Meyering2009-03-081-4/+2
| | | | | | | | | | | | | | | | | | | In case you're wondering about whether this change is safe from a portability standpoint, fear not. This has been beaten to death in other forums. Here are a few threads: http://thread.gmane.org/gmane.comp.version-control.git/74187 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/12712 http://thread.gmane.org/gmane.emacs.devel/98144 http://thread.gmane.org/gmane.comp.lib.glibc.alpha/13092 There has been debate about whether it's a good idea from a performance standpoint, too, but imho you'll have a hard time finding an instance where this sort of change induces a measurable performance penalty. If you do, please let me know. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Unbreak build if directory renamed from e2fsprogs.Matthias Andree2008-09-071-1/+1
| | | | | | | | | gen-tarball currently assumes that the top-level directory is called e2fsprogs, which breaks building the tarball if it's named differently. Since we have already computed the basename, let's use it. Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Print size of resulting .tar.gz file.Matthias Andree2008-09-071-1/+3
| | | | | Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* Remove trailing whitespace for the entire source treeTheodore Ts'o2008-08-272-17/+17
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Add build.static to util/subset.exclude as well.Theodore Ts'o2008-07-071-0/+1
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* debian: Create debian release tarball to obey new WIP naming conventionTheodore Ts'o2008-07-071-2/+11
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Treat build.static as an ingored file in the source directoryTheodore Ts'o2008-07-071-0/+1
| | | | | | | Don't include it in distribution tarballs, and add it to the .gitignore file. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* gen-tarball: Ignore the Meta directory when creating the release tarballsTheodore Ts'o2007-12-052-0/+2
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Remove Changelog files since they're not used after the git migrationTheodore Ts'o2007-07-081-272/+0
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Add .git directory to set of files to be ignored when building tarballsTheodore Ts'o2007-06-302-0/+2
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Update Release Notes, Changelogs, version.h, etc. for 1.40 releaseTheodore Ts'o2007-06-241-0/+4
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Remove RFC-4122 from e2fsprogs distributionTheodore Ts'o2007-06-242-18/+1
| | | | | | | | | | | | | Documentation about UUID's is available in enough places, and it's awkward to deal with debian-legal's insanities. So I'm caving in the "more-lunatic-than-RMS" wing of Debian by removing RFC-4122 so we don't have do the dfsg tarball. Also remove the rule that only tried to install RFC-4122 on Ubuntu, since Ubuntu seems to want to fetch e2fsprogs exclusively from Debian. Addresses Debian Bug: #407107 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* [COVERITY] Fix (error case) file handle leak in util/subst programBrian Behlendorf2007-03-212-1/+8
| | | | | | | | | Need to close old_f before returning since it had been successfully opened before. Coverity ID: 19: Resource Leak Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
* Update draft-leach-uuids-guids-01.txt with rfc4122.txtTheodore Ts'o2006-11-121-1/+1
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Fixes for building RPM's via "make rpm"Andreas Dilger2006-11-122-72/+6
| | | | | | | | | Fixed version number generation so that the same common algorithm is used for Debian and RPM version numbering schemes. This allows the RPM spec file to do the right thing for WIP releases. Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Avoid infinite substitution loop in subst caused by autoconf pre-v2.60Theodore Ts'o2006-11-122-0/+13
| | | | | | | Autoconf versions before 2.60 don't have datarootdir defined, and so this resulted in a @datarootdir@ --> @datarootdir@ infinite expansion. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Add datarootdir definition for compatibility with autoconf 2.60Theodore Ts'o2006-10-222-0/+6
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Update Debian packaging for 1.39+1.40-WIP-2006.10.02+dfsg-1Theodore Ts'o2006-10-042-0/+33
| | | | | | | | | | | Remove I-D because of DFSG license Nazi's. Make e2fsck and uuid-dev have its own /usr/share/doc directories, and make the e2fsck-static package not depend on the e2fsprogs package. Addresses Debian Bug: #383521 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Create the generated files read-only to remind developers not to edit them.Andreas Dilger2006-08-052-0/+9
| | | | | Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Fix cross-compilation problems when CFLAGS contain target-specific optionsTheodore Ts'o2005-11-092-3/+11
| | | | | | | | | | | | Use BUILD_CCFLAGS and BUILD_LDFLAGS instead of CCFLAGS and LDFLAGS in the build system when building files in the util directory which are needed during the build process. This avoids potential problems when cross-compiling some of the options are not recognized as valid by the host compiler. (Addresses Sourceforge Bug #1261547) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Change gen_tarball to ignore Mercurial/quilt files (and remove BK ignores).Theodore Ts'o2005-07-193-2/+13
| | | | | | | | | Since e2fsprogs is now being managed by Mercurial instead of BK, remove BitKeeper and add ".hg", ".hgignore", ".pc", and "patches" to the list of files/directories not included in the tar file. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Update for e2fsprogs 1.38 release.Theodore Ts'o2005-06-301-0/+4
|
* Update for the e2fsprogs 1.37 release.Theodore Ts'o2005-03-211-0/+4
|
* gen_tarball.in: Don't remove the .gmo files from the generated tarball; Theodore Ts'o2005-03-022-1/+7
| | | | | they are now treated as source files instead of generated files.
* Update for release of e2fsprogs 1.36.Theodore Ts'o2005-02-051-0/+4
|
* Add new utility program, copy_sparse.c, which is very usefulTheodore Ts'o2005-01-213-1/+239
| | | | | for dealing with large sparse files (such as e2image files).
* When generating tarballs for Debian builds, remove the hyphen in versionTheodore Ts'o2005-01-072-0/+9
| | | | | | numbers such as "1.36-rc1", since Debian can't deal with version numbers with '-' characters in them.
* Use Linux-kernel-style makefile output to make it easier to Theodore Ts'o2004-11-302-4/+12
| | | | | see errors/warnings.
* Remove .cvsignore files; they were out of date, and causes lintianTheodore Ts'o2004-05-051-3/+0
| | | | | to flame about their presence in the source tarball.
* Add missing #include <time.h>, fixing a compiler warning.Matthias Andree2004-04-121-0/+1
|
* Refine the build process to avoid re-running subst all the time on Theodore Ts'o2004-04-032-2/+25
| | | | | | | some generated files, by having subst update the modtime on these files even when the generated file hasn't changed. We do this with generated files that do not have any downstream dependencies.
* Update version number for e2fsprogs 1.35 release.Theodore Ts'o2004-02-281-0/+4
|
* Do not package autom4te.cache directory into tarball.Matthias Andree2004-02-232-1/+6
|
* Fix gcc -Wall nitpicksTheodore Ts'o2003-12-073-2/+14
|
* Update for 1.34 release.Theodore Ts'o2003-07-261-0/+4
|
* Update for 1.33 release.Theodore Ts'o2003-04-211-0/+4
| | | | | | | | | Fix typo's in README.subset Change debian control file so it doesn't bomb out if the EVMS FSIM is not there, since it is not built on the Hurd. Resolves Debian bug #189687.
* Remove gen-tarball when doing "make clean"Theodore Ts'o2003-03-301-1/+1
|
* Move tarball generation functions to util/gen-tarballTheodore Ts'o2003-03-235-2/+147
|