summaryrefslogtreecommitdiff
path: root/tbdiff/tbdiff-xattrs.c
Commit message (Collapse)AuthorAgeFilesLines
* Use ENODATA instead of ENOATTRBen Brewer2014-06-021-1/+1
| | | | | | The man page for lsetxattr says that ENOATTR is a synonym of ENODATA, since ENOATTR is not always available in sys/xattr.h we'll use ENODATA instead.
* Use sys/xattr from libc if attr/xattr is unavailableBen Brewer2014-06-021-1/+8
| | | | | | | | | | | | On my system tbdiff failed to build because attr/xattr doesn't exist, also the attr package was not easy to find. On searching I discovered that the functionality we use in attr.h is provided by modern versions of libc, as shown here: https://bugzilla.kernel.org/show_bug.cgi?id=70141 This patch falls back to using libc sys/xattr.h when attr/xattr.h is unavailable.
* Switch to a shared tbdiff library and make this an autotools project.Jannis Pohlmann2012-03-221-0/+227
This commit converts tbdiff to being an autotools-based project. This means that we now support the usual autoreconf -i && ./configure && make && make install process, plus we provide 'make check' for the tbdiff test suite. The tbdiff library is now build as a shared library and is also installed into the system for others to use. The library is libtool-versioned and ships a pkg-config file (tbdiff-1.pc). The headers were adjusted so that only tbdiff/tbdiff.h may be included directly; all others are considered internal. The tbdiff-create and tbdiff-deploy tools were changed to include this header file. The tbdiff library is still GPL, not LGPL. We might want to change this in the future. Thanks to switching to autotools we now have a way to make releases by means of 'make dist' and 'make distcheck'. Unfortunately, the latter currently fails, probably due to something being missing in tbdiff/Makefile.am.