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

Bug#838198: marked as done (9base: FTBFS on hurd-i386: fatal error:can't create y.tab.h, <nil>:1)



Your message dated Fri, 05 Apr 2024 10:04:06 +0000
with message-id <E1rsgQY-00ENDA-IQ@fasolo.debian.org>
and subject line Bug#838198: fixed in 9base 1:6-14
has caused the Debian Bug report #838198,
regarding 9base: FTBFS on hurd-i386: fatal error:can't create y.tab.h, <nil>:1
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
838198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838198
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: 9base
Severity: important
Version: 1:6-7
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd
X-Debbugs-CC: debian-hurd@lists.debian.org

The package fails to build on hurd-i386 because of incorrect values
supplied to fopen() and missing (__GNU__)-defines.

Failing build log:
https://buildd.debian.org/status/package.php?p=9base&suite=sid

The supplied patch fixes this.

TODO: Write a Hurd-specific disksize()-function in lib9/_p9dir.c

Cheers,
Ola Ekström
diff -rupN 9base-6-original/lib9/date.c 9base-6-new/lib9/date.c
--- 9base-6-original/lib9/date.c	2010-06-04 10:46:05.000000000 +0000
+++ 9base-6-new/lib9/date.c	2016-09-17 06:11:07.000000000 +0000
@@ -8,7 +8,7 @@
 #define _HAVETMZONE 1
 #define _HAVETMTZOFF 1
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GNU__)
 #	undef _HAVETMZONE
 #	undef _HAVETMTZOFF
 
diff -rupN 9base-6-original/lib9/dirfwstat.c 9base-6-new/lib9/dirfwstat.c
--- 9base-6-original/lib9/dirfwstat.c	2010-06-04 10:46:05.000000000 +0000
+++ 9base-6-new/lib9/dirfwstat.c	2016-09-17 06:11:54.000000000 +0000
@@ -4,7 +4,7 @@
 #include <sys/time.h>
 #include <sys/stat.h>
 
-#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__linux__)
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__linux__) || defined(__GNU__)
 /* do nothing -- futimes exists and is fine */
 
 #elif defined(__SunOS5_9__)
diff -rupN 9base-6-original/lib9/dirread.c 9base-6-new/lib9/dirread.c
--- 9base-6-original/lib9/dirread.c	2010-06-04 10:46:05.000000000 +0000
+++ 9base-6-new/lib9/dirread.c	2016-09-17 06:07:55.000000000 +0000
@@ -6,7 +6,7 @@
 
 extern int _p9dir(struct stat*, struct stat*, char*, Dir*, char**, char*);
 
-#if defined(__linux__) || defined(__FreeBSD_kernel__)
+#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {
diff -rupN 9base-6-original/lib9/libc.h 9base-6-new/lib9/libc.h
--- 9base-6-original/lib9/libc.h	2010-06-04 10:46:05.000000000 +0000
+++ 9base-6-new/lib9/libc.h	2016-09-17 21:04:11.000000000 +0000
@@ -594,10 +594,17 @@ extern	void		freenetconninfo(NetConnInfo
 #define	MCACHE	0x0010	/* cache some data */
 #define	MMASK	0x0017	/* all bits on */
 
-#define	OREAD	0	/* open for read */
-#define	OWRITE	1	/* write */
-#define	ORDWR	2	/* read and write */
-#define	OEXEC	3	/* execute, == read but check execute permission */
+#if defined(__GNU__)
+ #define	OREAD	O_RDONLY	/* open for read */
+ #define	OWRITE	O_WRONLY	/* write */
+ #define	ORDWR	O_RDWR		/* read and write */
+ #define	OEXEC	O_EXEC		/* execute, == read but check execute permission */
+#else
+ #define	OREAD	0	/* open for read */
+ #define	OWRITE	1	/* write */
+ #define	ORDWR	2	/* read and write */
+ #define	OEXEC	3	/* execute, == read but check execute permission */
+#endif
 #define	OTRUNC	16	/* or'ed in (except for exec), truncate file first */
 #define	OCEXEC	32	/* or'ed in, close on exec */
 #define	ORCLOSE	64	/* or'ed in, remove on close */
diff -rupN 9base-6-original/lib9/u.h 9base-6-new/lib9/u.h
--- 9base-6-original/lib9/u.h	2010-06-04 10:46:05.000000000 +0000
+++ 9base-6-new/lib9/u.h	2016-09-17 06:09:40.000000000 +0000
@@ -58,7 +58,7 @@ extern "C" {
 
 typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GNU__)
 #	include <sys/types.h>
 #	if defined(__Linux26__)
 #		include <pthread.h>

--- End Message ---
--- Begin Message ---
Source: 9base
Source-Version: 1:6-14
Done: Andreas Beckmann <anbe@debian.org>

We believe that the bug you reported is fixed in the latest version of
9base, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 838198@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (supplier of updated 9base package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 05 Apr 2024 11:49:54 +0200
Source: 9base
Architecture: source
Version: 1:6-14
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 838198 1066252
Changes:
 9base (1:6-14) unstable; urgency=medium
 .
   * QA upload.
   * Fix building with -Werror=implicit-function-declaration.
     (Closes: #1066252)
   * Fix fopen() mode values for hurd, thanks to Ola Ekström. (Closes: #838198)
   * Update Lintian overrides.
Checksums-Sha1:
 14c13d38a1b71d3889d8169803ef6c1f1cd64a55 1827 9base_6-14.dsc
 5032b1dbc8f8e6af9f8a2df754c3c3c3d98b4881 18620 9base_6-14.debian.tar.xz
 0344f660adc064ff46966d56a02030835b01eb0a 5617 9base_6-14_source.buildinfo
Checksums-Sha256:
 6e5504a2b6e88580ddd41e3342b3104f9f33647ace1441f1f0ea7959c1ede450 1827 9base_6-14.dsc
 b7ffcd8ab0314b710532780c16474604d957c2182f704488ab5339e82b334ebf 18620 9base_6-14.debian.tar.xz
 64d90c9aeec75168e680092d039a669bc8a9092cd43b8de5fbc69e71e28adc46 5617 9base_6-14_source.buildinfo
Files:
 cf05a01a9ca8de2a7540dfa580de7dc1 1827 utils optional 9base_6-14.dsc
 d8a81b187a7a39c7e82a16773ce5d73e 18620 utils optional 9base_6-14.debian.tar.xz
 e668f19276b440250438528f25fb69a3 5617 utils optional 9base_6-14_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmYPyi8QHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCKVLD/9/wcSxgFLCtR27R4m2xKKePdDsCqTOguNE
uSRK9vaaA9BiKItdzUVlfeQKb4Wi2tJJ+/VN4kq5MVOBmISOJE6TrNjG/KZDkiQ/
BDWyFqaobD0aD6yrpTAnEs3DfOwz5AuhGPS2WADH1bNyXAk0TpBLw69sRUkfTy4v
9TvF7LLJ04lglExX8Gb7gERMP/+u/wudzJA1NVmBOGtgv60YMzeWEjVzaBjOBhN5
tFzL7tOtfac5Y2q6HQjRjOLtYPPvALXSEukNykptsIXQG98B52+Hkrpdr8uXifPz
VInTwrcuUSo5Fmvnd8x5KODgtNrnLDk1/n4abmuad+zLP3yycNmHlF4YOWsQeIdK
4OBHofUM4FSwCIQcy39ZZhu5GrRVIG5brdAgCnoYgyUOx2tqz6I23NlBQD4uUax4
rWaEeUZOYZgAFn0B+mORzjuyoj/wO4HPnvgdJLX0/fUxiwrKk0TAFMOHn5Lfzv3w
uooX6f4mxSD2paQpFM06WHhzrD/XI/TMkuSZyXTCyEbdOzhhcmmXW42ln1aCMOlX
uCVQuLexbFlSqL8wFx9pKltS0+2F9q1qlBFIPT3RDPPnQdwkrqa5ykWfUOYCR+S7
bdRQEd6X10XO9E+tHC8ZJouD3qJZhj8D7u3B1CEmCBMXrJXyYKx0DCskhOdo/+O4
dbkYzhOaww==
=8pPX
-----END PGP SIGNATURE-----

Attachment: pgpKtqW9mLV_F.pgp
Description: PGP signature


--- End Message ---

Reply to: