diff options
author | Nathan Scott <nathans@sgi.com> | 2002-07-05 04:16:49 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2002-07-05 04:16:49 +0000 |
commit | 8147f63b77959c6a269dce108f3f70459061c111 (patch) | |
tree | 7ccb93e06357de9387532c4f6fd6af7148b69e76 | |
parent | 6110fc079a03f78bfdbc0243a858cfbaa9deba67 (diff) | |
download | attr-8147f63b77959c6a269dce108f3f70459061c111.tar.gz |
Build infrastructure updates so that configure options can be used to
specify paths rather than semi-hard-coded path names controlled by the
PREFIX/ROOT_PREFIX environment variables; eg. now allows /lib64 and
/lib32 as alternate library install paths, which some folks need.
-rw-r--r-- | Makefile | 14 | ||||
-rwxr-xr-x | Makepkgs | 7 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | build/rpm/attr.spec.in | 5 | ||||
-rw-r--r-- | configure.in | 54 | ||||
-rw-r--r-- | debian/changelog | 7 | ||||
-rwxr-xr-x | debian/rules | 5 | ||||
-rw-r--r-- | doc/CHANGES | 7 | ||||
-rw-r--r-- | include/builddefs.in | 17 | ||||
-rw-r--r-- | include/buildmacros | 26 | ||||
-rw-r--r-- | libattr/Makefile | 2 | ||||
-rw-r--r-- | libattr/syscalls.c | 13 |
12 files changed, 78 insertions, 81 deletions
@@ -40,7 +40,7 @@ endif CONFIGURE = configure include/builddefs LSRCFILES = configure configure.in Makepkgs install-sh README VERSION -LDIRT = config.log config.status config.cache confdefs.h conftest* \ +LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \ Logs/* built .census install.* install-dev.* install-lib.* *.gz SUBDIRS = include libattr attr getfattr setfattr test man doc debian build @@ -60,7 +60,17 @@ endif $(CONFIGURE): autoconf - ./configure + ./configure \ + --prefix=/ \ + --exec-prefix=/ \ + --sbindir=/bin \ + --bindir=/usr/bin \ + --libdir=/lib \ + --libexecdir=/usr/lib \ + --includedir=/usr/include \ + --mandir=/usr/share/man \ + --datadir=/usr/share \ + $$LOCAL_CONFIGURE_OPTIONS touch .census install: default @@ -30,6 +30,7 @@ done # start with a clean manifest test -f files.rpm && rm -f files.rpm test -f filesdevel.rpm && rm -f filesdevel.rpm +test -f fileslib.rpm && rm -f fileslib.rpm test ! -d $LOGDIR && mkdir $LOGDIR rm -rf $LOGDIR/* > /dev/null 2>&1 @@ -66,11 +67,9 @@ echo echo "== configure, log is $LOGDIR/configure" rm -f .census # force configure to run here if $verbose ; then - autoconf 2>&1 | tee $LOGDIR/configure - ./configure 2>&1 | tee -a $LOGDIR/configure + $MAKE configure 2>&1 | tee $LOGDIR/configure else - autoconf > $LOGDIR/configure 2>&1 - ./configure >> $LOGDIR/configure 2>&1 + $MAKE configure > $LOGDIR/configure 2>&1 fi if [ $? -ne 0 ] ; then echo \"configure\" failed, see log in $LOGDIR/configure @@ -3,5 +3,5 @@ # PKG_MAJOR=2 PKG_MINOR=0 -PKG_REVISION=8 +PKG_REVISION=9 PKG_BUILD=0 diff --git a/build/rpm/attr.spec.in b/build/rpm/attr.spec.in index f93f70e..bc79e97 100644 --- a/build/rpm/attr.spec.in +++ b/build/rpm/attr.spec.in @@ -48,8 +48,6 @@ You should install attr-devel if you want to develop programs which make use of extended attributes. If you install attr-devel, you'll also want to install attr. -# If .census exists, then no setup is necessary, just go and do the build, -# otherwise run setup %prep if [ -f .census ] ; then if [ ! -d ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION} ] ; then @@ -57,8 +55,7 @@ if [ -f .census ] ; then fi else %setup -touch .census -./configure +@make@ configure fi %build diff --git a/configure.in b/configure.in index f9ba85f..643092d 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ AC_SUBST(pkg_name) # defaults (to change paths and/or executables, build parameters, etc): # # DEBUG OPTIMIZER MAKE CC LD TAR ZIP RPM AWK SED ECHO -# MALLOCLIB DISTRIBUTION PACKAGE_BUILDER PREFIX ROOT_PREFIX +# MALLOCLIB DISTRIBUTION PACKAGE_BUILDER # DEBUG=${DEBUG:-'-DDEBUG'} # -DNDEBUG @@ -73,6 +73,11 @@ test -z "$RPM" && AC_PATH_PROG(RPM, rpm, /bin/rpm) rpm=$RPM AC_SUBST(rpm) +dnl check if the msgfmt program is available +test -z "$MSGFMT" && AC_CHECK_PROG(MSGFMT, msgfmt, /usr/bin/msgfmt) +msgfmt=$MSGFMT +AC_SUBST(msgfmt) + dnl .. and what version is rpm rpm_version=0 test -x $RPM && \ @@ -111,63 +116,22 @@ AC_SUBST(libtool) dnl libtool to build libraries static only? AC_ARG_ENABLE(shared, - [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes].], - , + [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],, enable_shared=yes) AC_SUBST(enable_shared) -dnl alternate root and usr prefixes -test -z "$ROOT_PREFIX" && ROOT_PREFIX="" -root_prefix="$ROOT_PREFIX" -test -z "$PREFIX" && PREFIX="/usr" -prefix="$PREFIX" - dnl man pages (source) dnl also check if man page source is gzipped dnl (usually on Debian, but not Redhat pre-7.0) -pkg_man_dir=${prefix}/share/man have_zipped_manpages=false for d in ${prefix}/share/man ${prefix}/man ; do if test -f $d/man1/man.1.gz then - pkg_man_dir=$d have_zipped_manpages=true break fi done -AC_SUBST(pkg_man_dir) AC_SUBST(have_zipped_manpages) -dnl binaries -pkg_bin_dir=${prefix}/bin -AC_SUBST(pkg_bin_dir) - -dnl static libraries -pkg_lib_dir=${prefix}/lib -AC_SUBST(pkg_lib_dir) - -dnl runtime shared system libraries -pkg_slib_dir=${root_prefix}/lib -AC_SUBST(pkg_slib_dir) - -dnl system binaries -pkg_sbin_dir=${root_prefix}/bin -AC_SUBST(pkg_sbin_dir) - -dnl include files -pkg_inc_dir=${prefix}/include/attr -AC_SUBST(pkg_inc_dir) - -dnl doc directory -pkg_doc_dir=${prefix}/share/doc/${pkg_name} -AC_SUBST(pkg_doc_dir) - - -dnl -dnl output files -dnl - -AC_OUTPUT( \ -dnl Build definitions for use in Makefiles - include/builddefs \ -) +dnl build definitions for use in Makefiles +AC_OUTPUT(include/builddefs) diff --git a/debian/changelog b/debian/changelog index 96a9033..ea86254 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +attr (2.0.9-1) unstable; urgency=low + + * New upstream release (mainly build-related changes) + * Added system call numbers for the Alpha architecture + + -- Nathan Scott <nathans@debian.org> Thu, 4 Jul 2002 12:10:38 +1000 + attr (2.0.8-1) unstable; urgency=low * New upstream bugfix release diff --git a/debian/rules b/debian/rules index 9da5773..1078c4e 100755 --- a/debian/rules +++ b/debian/rules @@ -26,8 +26,7 @@ config: .census .census: @echo "== dpkg-buildpackage: configure" 1>&2 $(checkdir) - autoconf - $(options) ./configure + $(options) $(MAKE) configure touch .census clean: @@ -54,11 +53,9 @@ binary-arch: checkroot built $(pkgtmp) $(MAKE) -C build src-manifest @echo "== dpkg-buildpackage: debstd" 1>&2 $(stdenv) debstd -m | grep -v 'Dangling symlink' - find . > /tmp/debstd.out dpkg-gencontrol -isp -p$(package) -P$(dirtmp) -Tdebian/substvars dpkg-gencontrol -isp -p$(develop) -P$(dirdev) dpkg-gencontrol -isp -p$(library) -P$(dirlib) -Tdebian/$(library).substvars - find . > /tmp/gencontrol.out chown -R root.root $(dirtmp) $(dirdev) $(dirlib) chmod -R go=rX $(dirtmp) $(dirdev) $(dirlib) dpkg --build $(dirtmp) .. diff --git a/doc/CHANGES b/doc/CHANGES index ba5198e..8d90637 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,3 +1,10 @@ +attr-2.0.8 (04 July 2002) + - Build infrastructure updates so that configure options can be + used to specify paths rather than semi-hard-coded path names + controlled by the ROOT/ROOT_PREFIX environment variables; eg. + now allows /lib64 and /lib32 + - Add system call numbers for the Alpha architecture + attr-2.0.8 (22 April 2002) - Minor wording change in the attr(5) manual page - Additional test cases for malformed attribute names diff --git a/include/builddefs.in b/include/builddefs.in index 7bc1a59..412798c 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -41,18 +41,21 @@ MALLOCLIB = @malloc_lib@ LIBATTR = $(TOPDIR)/libattr/libattr.la +prefix = @prefix@ +exec_prefix = @exec_prefix@ + PKG_NAME = @pkg_name@ PKG_RELEASE = @pkg_release@ PKG_VERSION = @pkg_version@ PKG_DISTRIBUTION = @pkg_distribution@ PKG_BUILDER = @pkg_builder@ -PKG_BIN_DIR = @pkg_bin_dir@ -PKG_LIB_DIR = @pkg_lib_dir@ -PKG_SBIN_DIR = @pkg_sbin_dir@ -PKG_SLIB_DIR = @pkg_slib_dir@ -PKG_INC_DIR = @pkg_inc_dir@ -PKG_MAN_DIR = @pkg_man_dir@ -PKG_DOC_DIR = @pkg_doc_dir@ +PKG_BIN_DIR = @bindir@ +PKG_SBIN_DIR = @sbindir@ +PKG_LIB_DIR = @libdir@ +PKG_DEVLIB_DIR = @libexecdir@ +PKG_INC_DIR = @includedir@/attr +PKG_MAN_DIR = @mandir@ +PKG_DOC_DIR = @datadir@/doc/@pkg_name@ CC = @cc@ LD = @ld@ diff --git a/include/buildmacros b/include/buildmacros index d360443..33b780c 100644 --- a/include/buildmacros +++ b/include/buildmacros @@ -72,17 +72,17 @@ LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) LTCOMPILE = $(LIBTOOL) --mode=compile $(CCF) -D_REENTRANT -fno-strict-aliasing ifeq ($(ENABLE_SHARED),yes) -LTLDFLAGS += -rpath $(PKG_SLIB_DIR) +LTLDFLAGS += -rpath $(PKG_LIB_DIR) LTLDFLAGS += -version-info $(LTVERSION) endif ifeq ($(ENABLE_SHARED),yes) INSTALL_LTLIB = \ cd $(TOPDIR)/$(LIBNAME)/.libs; \ - ../$(INSTALL) -m 755 -d $(PKG_SLIB_DIR); \ - ../$(INSTALL) -m 644 -T so_dot_version $(LIBNAME).lai $(PKG_SLIB_DIR); \ + ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \ + ../$(INSTALL) -m 644 -T so_dot_version $(LIBNAME).lai $(PKG_LIB_DIR); \ test "$(PKG_DISTRIBUTION)" = debian || \ - ../$(INSTALL) -T so_dot_current $(LIBNAME).lai $(PKG_SLIB_DIR) + ../$(INSTALL) -T so_dot_current $(LIBNAME).lai $(PKG_LIB_DIR) endif # Libtool thinks the static and shared libs should be in the same dir, so @@ -94,22 +94,22 @@ endif ifeq ($(ENABLE_SHARED),yes) INSTALL_LTLIB_DEV = \ cd $(TOPDIR)/$(LIBNAME)/.libs; \ + ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR); \ + ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_DEVLIB_DIR); \ + ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_DEVLIB_DIR)/$(LIBNAME).la ; \ ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \ - ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_LIB_DIR); \ - ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_LIB_DIR)/$(LIBNAME).la ; \ - ../$(INSTALL) -m 755 -d $(PKG_SLIB_DIR); \ - ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_SLIB_DIR); \ - ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).a $(PKG_SLIB_DIR)/$(LIBNAME).a; \ - ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).la $(PKG_SLIB_DIR)/$(LIBNAME).la; \ - ../$(INSTALL) -S $(PKG_SLIB_DIR)/$(LIBNAME).so $(PKG_LIB_DIR)/$(LIBNAME).so + ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_LIB_DIR); \ + ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \ + ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \ + ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so else INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC) endif INSTALL_LTLIB_STATIC = \ cd $(TOPDIR)/$(LIBNAME)/.libs; \ - ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \ - ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_LIB_DIR) + ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR); \ + ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_DEVLIB_DIR) INSTALL_MAN = \ @for d in $(MAN_PAGES); do \ diff --git a/libattr/Makefile b/libattr/Makefile index cd8c618..854db51 100644 --- a/libattr/Makefile +++ b/libattr/Makefile @@ -36,7 +36,7 @@ include $(TOPDIR)/include/builddefs LTLIBRARY = libattr.la LT_CURRENT = 1 -LT_REVISION = 0 +LT_REVISION = 1 LT_AGE = 0 CFILES = libattr.c syscalls.c diff --git a/libattr/syscalls.c b/libattr/syscalls.c index 8708fe7..66361bf 100644 --- a/libattr/syscalls.c +++ b/libattr/syscalls.c @@ -168,6 +168,19 @@ # define __NR_removexattr (__NR_Linux + 233) # define __NR_lremovexattr (__NR_Linux + 234) # define __NR_fremovexattr (__NR_Linux + 235) +#elif defined (__alpha__) +# define __NR_setxattr 382 +# define __NR_lsetxattr 383 +# define __NR_fsetxattr 384 +# define __NR_getxattr 385 +# define __NR_lgetxattr 386 +# define __NR_fgetxattr 387 +# define __NR_listxattr 388 +# define __NR_llistxattr 389 +# define __NR_flistxattr 390 +# define __NR_removexattr 391 +# define __NR_lremovexattr 392 +# define __NR_fremovexattr 393 #else # warning "Extended attribute syscalls undefined for this architecture" # define HAVE_XATTR_SYSCALLS 0 |