[Pkg-db-devel] Bug#156330: marked as done (SuperH mutex support)

Debian Bug Tracking System owner@bugs.debian.org
Thu, 03 Feb 2005 04:03:13 -0800


Your message dated Thu, 3 Feb 2005 13:01:12 +0100
with message-id <20050203120112.GO22702@mails.so.argh.org>
and subject line Package db4.0 has been removed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Aug 2002 19:37:39 +0000
>From t@keshi.org Sun Aug 11 14:37:39 2002
Return-path: <t@keshi.org>
Received: from kokuban.keshi.org [202.224.203.225] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17dyWx-0000uM-00; Sun, 11 Aug 2002 14:37:39 -0500
Received: from glamdring.ta.keshi.org (glamdring.ta.keshi.org [10.101.0.245])
	by kokuban.keshi.org (Postfix) with ESMTP id B2DE38481
	for <submit@bugs.debian.org>; Mon, 12 Aug 2002 04:37:36 +0900 (JST)
Date: Mon, 12 Aug 2002 04:37:36 +0900
Message-ID: <87wuqxchkv.wl@keshi.org>
From: YAEGASHI Takeshi <t@keshi.org>
To: Debian BTS <submit@bugs.debian.org>
Subject: SuperH mutex support
User-Agent: Wanderlust/2.8.1 (Something) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3
 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
Organization: keshi.org
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: submit@bugs.debian.org

Package: db4.0
Version: 4.0.14-1
Severity: wishlist
Tags: patch

Hi,

I'm one of the Debian/sh porters (see http://debian.dodes.org/sh).

Here's SuperH mutex assembly patch for db4.0 (tested with 4.0.14-1).
Please include this into the package.

diff -urN db-4.0.14/dist/aclocal/mutex.ac db-4.0.14.new/dist/aclocal/mutex.ac
--- db-4.0.14/dist/aclocal/mutex.ac	2002-08-12 00:04:16.000000000 +0900
+++ db-4.0.14.new/dist/aclocal/mutex.ac	2002-08-11 23:55:15.000000000 +0900
@@ -292,6 +292,18 @@
 }], [db_cv_mutex="s390/gcc-assembly"])
 fi
 
+# sh/gcc: Linux
+if test "$db_cv_mutex" = no; then
+AC_TRY_RUN([main(){
+#if defined(__sh__)
+#if defined(__GNUC__)
+	exit(0);
+#endif
+#endif
+	exit(1);
+}], [db_cv_mutex="sh/gcc-assembly"])
+fi
+
 # Sparc/gcc: SunOS, Solaris
 if test "$db_cv_mutex" = no; then
 AC_TRY_RUN([main(){
@@ -407,6 +419,10 @@
 			AC_DEFINE(HAVE_MUTEX_S390_GCC_ASSEMBLY)
 			AH_TEMPLATE(HAVE_MUTEX_S390_GCC_ASSEMBLY, [
 			    Define to use s390 assembler mutexes.]);;
+sh/gcc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
+			AC_DEFINE(HAVE_MUTEX_SH_GCC_ASSEMBLY)
+			AH_TEMPLATE(HAVE_MUTEX_SH_GCC_ASSEMBLY, [
+			    Define to use sh assembler mutexes.]);;
 SCO/x86/cc-assembly)	ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
 			AC_DEFINE(HAVE_MUTEX_SCO_X86_CC_ASSEMBLY)
 			AH_TEMPLATE(HAVE_MUTEX_SCO_X86_CC_ASSEMBLY, [
diff -urN db-4.0.14/include/mutex.h db-4.0.14.new/include/mutex.h
--- db-4.0.14/include/mutex.h	2002-08-12 00:04:16.000000000 +0900
+++ db-4.0.14.new/include/mutex.h	2002-08-12 00:01:03.000000000 +0900
@@ -564,6 +564,32 @@
 #endif
 
 /*********************************************************************
+ * SuperH/gcc assembly.
+ *********************************************************************/
+#ifdef HAVE_MUTEX_SH_GCC_ASSEMBLY
+typedef unsigned char tsl_t;
+
+#ifdef LOAD_ACTUAL_MUTEX_CODE
+/*
+ * For gcc/sh, 0 is clear, 1 is set.
+ */
+#define	MUTEX_SET(tsl) ({						\
+	register tsl_t *__l = (tsl);					\
+	int __r;							\
+	asm volatile("tas.b	%1\n\t"					\
+		     "movt	%0"					\
+	    : "=r" (__r), "=m" (*__l)					\
+	    : "1" (*__l)						\
+	    : "t");							\
+	(__r & 1) == 0;							\
+})
+
+#define	MUTEX_UNSET(tsl)  (*(tsl) = 0)
+#define	MUTEX_INIT(tsl)	  MUTEX_UNSET(tsl)
+#endif
+#endif
+
+/*********************************************************************
  * Sparc/gcc assembly.
  *********************************************************************/
 #ifdef HAVE_MUTEX_SPARC_GCC_ASSEMBLY

Regards,
--
YAEGASHI Takeshi <t@keshi.org> <takeshi@yaegashi.jp> <yaegashi@dodes.org>

---------------------------------------
Received: (at 156330-done) by bugs.debian.org; 3 Feb 2005 12:01:24 +0000
>From aba@not.so.argh.org Thu Feb 03 04:01:24 2005
Return-path: <aba@not.so.argh.org>
Received: from mail-out.m-online.net [212.18.0.9] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cwffk-0004Yw-00; Thu, 03 Feb 2005 04:01:20 -0800
Received: from mail.m-online.net (svr20.m-online.net [192.168.3.148])
	by mail-out.m-online.net (Postfix) with ESMTP id 56B49584B;
	Thu,  3 Feb 2005 13:01:19 +0100 (CET)
Received: from sol.so.argh.org (ppp-82-135-65-187.mnet-online.de [82.135.65.187])
	by mail.m-online.net (Postfix) with ESMTP id F3AD748661;
	Thu,  3 Feb 2005 13:01:18 +0100 (CET)
Received: from aba by sol.so.argh.org with local (Exim 4.22 #1 (Debian) [+prerelease])
	id 1Cwffd-0001ui-0b; Thu, 03 Feb 2005 13:01:13 +0100
Date: Thu, 3 Feb 2005 13:01:12 +0100
From: Andreas Barth <aba@not.so.argh.org>
To: 209778-done@bugs.debian.org, 276828-done@bugs.debian.org,
	174284-done@bugs.debian.org, 179548-done@bugs.debian.org,
	196944-done@bugs.debian.org, 277656-done@bugs.debian.org,
	153067-done@bugs.debian.org, 157114-done@bugs.debian.org,
	156330-done@bugs.debian.org, 155661-done@bugs.debian.org,
	159100-done@bugs.debian.org, 160129-done@bugs.debian.org,
	166620-done@bugs.debian.org, 186430-done@bugs.debian.org,
	208211-done@bugs.debian.org, 223140-done@bugs.debian.org,
	240638-done@bugs.debian.org, 157076-done@bugs.debian.org,
	162458-done@bugs.debian.org
Subject: Package db4.0 has been removed
Message-ID: <20050203120112.GO22702@mails.so.argh.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Editor: Vim http://www.vim.org/
User-Agent: Mutt/1.5.6i
Delivered-To: 156330-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 3

Hi,

the source package db4.0 has been removed from Debian now. Therefore, I
close all related bugs.


Cheers,
Andi
-- 
   http://home.arcor.de/andreas-barth/
   PGP 1024/89FB5CE5  DC F1 85 6D A6 45 9C 0F  3B BE F1 D0 C5 D1 D9 0C