[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#284449: [patch/hppa] fix utimes() for hppa



tag 284449 +patch
thanks

This patch fixes the utimes() problem on hppa -- the cvs patch applied
to debian's glibc has a bug in it. tested against 2.3.2.ds1-19

thanks,
randolph


#! /bin/sh -e

# DP: Description: Don't define __ASSUME_UTIMES for hppa
# DP: Author: Randolph Chung <tausq@debian.org>
# DP: Upstream status: Pending
# DP: Date: Thu, 09 Dec 2004 12:01:12 -0800

if [ $# -ne 2 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -d "$2" -f --no-backup-if-mismatch -p1 < $0;;
    -unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p1 < $0;;
    *)
	echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
	exit 1
esac
exit 0

2004-12-09  Randolph Chung  <tausq@debian.org>

	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Don't
	define for hppa, which doesn't support this syscall.

--- glibc-2.3.2/sysdeps/unix/sysv/linux/kernel-features.h.orig	2004-12-09 11:59:32.138873056 -0800
+++ glibc-2.3.2/sysdeps/unix/sysv/linux/kernel-features.h	2004-12-09 11:59:49.386251056 -0800
@@ -351,7 +351,7 @@
 
 /* The utimes syscall has been available for some architectures
    forever.  For x86 it was introduced after 2.5.75.  */
-#if defined __alpha__ || defined __ia64__ || defined __hppa__ \
+#if defined __alpha__ || defined __ia64__ \
     || defined __sparc__ \
     || (__LINUX_KERNEL_VERSION > 132427 && defined __i386__)
 # define __ASSUME_UTIMES	1



Reply to: