Your message dated Sat, 05 Nov 2011 18:47:19 +0000
with message-id <[email protected]>
and subject line Bug#647668: fixed in ntfs-3g 1:2011.4.12AR.7-4
has caused the Debian Bug report #647668,
regarding FTBFS on kfreebsd-amd64
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 [email protected]
immediately.)


-- 
647668: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647668
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ntfs-3g
Version: 2011.4.12AR.7-3
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd

Hi,

ntfs-3g fails to build on kfreebsd-amd64 with:

  "can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only"

  
(https://buildd.debian.org/status/fetch.php?pkg=ntfs-3g&arch=kfreebsd-amd64&ver=1%3A2011.4.12AR.7-3&stamp=1320013140)

Please find attached patch to correct this and other buildability problems.

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'configure'
--- configure	2011-11-04 21:29:22 +0000
+++ configure	2011-11-04 21:30:48 +0000
@@ -12659,7 +12659,7 @@ else
 fi
 
 	;;
-darwin*|netbsd*|solaris*)
+darwin*|netbsd*|solaris*|kfreebsd*-gnu)
 	with_fuse="external"
 	;;
 freebsd*)

=== modified file 'configure.ac'
--- configure.ac	2011-11-04 21:29:22 +0000
+++ configure.ac	2011-11-04 21:30:08 +0000
@@ -220,7 +220,7 @@ linux*)
 		[with_fuse="internal"]
 	)
 	;;
-darwin*|netbsd*|solaris*)
+darwin*|netbsd*|solaris*|kfreebsd*-gnu)
 	with_fuse="external"
 	;;
 freebsd*)

=== modified file 'debian/control'
--- debian/control	2011-11-04 21:29:22 +0000
+++ debian/control	2011-11-04 21:42:14 +0000
@@ -11,7 +11,7 @@ Homepage: http://www.tuxera.com/communit
 Package: ntfs-3g
 Section: otherosfs
 Architecture: linux-any kfreebsd-any
-Pre-Depends: fuse
+Pre-Depends: fuse [linux-any] | fuse4bsd [kfreebsd-any]
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Conflicts: libntfs-3g75, ntfsprogs
 Replaces: libntfs-3g75, ntfsprogs

=== modified file 'debian/rules'
--- debian/rules	2011-11-04 21:29:22 +0000
+++ debian/rules	2011-11-04 21:40:35 +0000
@@ -2,6 +2,14 @@
 
 SHELL := sh -e
 
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
+CONFIGURE_FLAGS := --exec-prefix=/ --enable-crypto --enable-extras --enable-xattr-mappings --disable-ldconfig --with-fuse=external
+
+ifeq ($(DEB_HOST_ARCH_OS), linux)
+CONFIGURE_FLAGS += --enable-posix-acls
+endif
+
 upstream:
 	lynx -dump http://b.andre.pagesperso-orange.fr/changelog.html > debian/local/changelog
 
@@ -9,7 +17,7 @@ upstream:
 	dh ${@} --with autotools_dev
 
 override_dh_auto_configure:
-	dh_auto_configure -- --exec-prefix=/ --enable-crypto --enable-extras --enable-posix-acls --enable-xattr-mappings --disable-ldconfig --with-fuse=external
+	dh_auto_configure -- $(CONFIGURE_FLAGS)
 
 override_dh_auto_install:
 	dh_auto_install

=== modified file 'libfuse-lite/fuse.c'
--- libfuse-lite/fuse.c	2011-11-04 21:29:22 +0000
+++ libfuse-lite/fuse.c	2011-11-04 21:30:35 +0000
@@ -2649,7 +2649,7 @@ struct fuse *fuse_new(struct fuse_chan *
     if (!f->conf.ac_attr_timeout_set)
         f->conf.ac_attr_timeout = f->conf.attr_timeout;
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
     /*
      * In FreeBSD, we always use these settings as inode numbers are needed to
      * make getcwd(3) work.

=== modified file 'libntfs-3g/dir.c'
--- libntfs-3g/dir.c	2011-11-04 21:29:22 +0000
+++ libntfs-3g/dir.c	2011-11-04 21:35:31 +0000
@@ -2310,7 +2310,7 @@ int ntfs_get_ntfs_dos_name(ntfs_inode *n
 		}
 	} else {
 		if (doslen == 0)
-			errno = ENODATA;
+			errno = ENOENT;
 		outsize = -errno;
 	}
 	return (outsize);
@@ -2555,7 +2555,7 @@ int ntfs_set_ntfs_dos_name(ntfs_inode *n
 			} else {
 				if (flags & XATTR_REPLACE) {
 					res = -1;
-					errno = ENODATA;
+					errno = ENOENT;
 				} else {
 					res = set_dos_name(ni, dir_ni,
 						shortname, shortlen,

=== modified file 'libntfs-3g/efs.c'
--- libntfs-3g/efs.c	2011-11-04 21:29:22 +0000
+++ libntfs-3g/efs.c	2011-11-04 21:35:31 +0000
@@ -112,7 +112,7 @@ int ntfs_get_efs_info(ntfs_inode *ni, ch
 				attr_size = 0;
 			}
 		} else {
-			errno = ENODATA;
+			errno = ENOENT;
 			ntfs_log_trace("Inode %lld is not encrypted\n",
 				(long long)ni->mft_no); 
 		}
@@ -257,7 +257,7 @@ int ntfs_set_efs_info(ntfs_inode *ni, co
 					logged_utility_stream_name,4,
 					(u8*)NULL,(s64)size);
 			} else {
-				errno = ENODATA;
+				errno = ENOENT;
 				res = -1;
 			}
 		} else {

=== modified file 'libntfs-3g/object_id.c'
--- libntfs-3g/object_id.c	2011-11-04 21:29:22 +0000
+++ libntfs-3g/object_id.c	2011-11-04 21:35:31 +0000
@@ -304,7 +304,7 @@ static int remove_object_id_index(ntfs_a
 			}
 		} else {
 			ret = -1;
-			errno = ENODATA;
+			errno = ENOENT;
 		}
 	}
 	return (ret);
@@ -406,7 +406,7 @@ static int add_object_id(ntfs_inode *ni,
 			} else
 				errno = EOPNOTSUPP;
 		} else
-			errno = ENODATA;
+			errno = ENOENT;
 	} else {
 		if (flags & XATTR_CREATE)
 			errno = EEXIST;
@@ -503,7 +503,7 @@ int ntfs_get_ntfs_object_id(ntfs_inode *
 			}
 			free(objectid_attr);
 		} else
-			errno = ENODATA;
+			errno = ENOENT;
 	}
 	return (full_size ? (int)full_size : -errno);
 }
@@ -625,7 +625,7 @@ int ntfs_remove_ntfs_object_id(ntfs_inod
 			if (errno == ENOENT)
 				errno = olderrno;
 		} else {
-			errno = ENODATA;
+			errno = ENOENT;
 			res = -1;
 		}
 		NInoSetDirty(ni);

=== modified file 'libntfs-3g/reparse.c'
--- libntfs-3g/reparse.c	2011-11-04 21:29:22 +0000
+++ libntfs-3g/reparse.c	2011-11-04 21:35:31 +0000
@@ -897,7 +897,7 @@ static int remove_reparse_index(ntfs_att
 				ret = -1;
 		} else {
 			ret = -1;
-			errno = ENODATA;
+			errno = ENOENT;
 		}
 	}
 	return (ret);
@@ -1073,7 +1073,7 @@ int ntfs_get_ntfs_reparse_data(ntfs_inod
 				free(reparse_attr);
 			}
 		} else
-			errno = ENODATA;
+			errno = ENOENT;
 	}
 	return (attr_size ? (int)attr_size : -errno);
 }
@@ -1122,7 +1122,7 @@ int ntfs_set_ntfs_reparse_data(ntfs_inod
 						res = -1;
 					}
 				} else {
-					errno = ENODATA;
+					errno = ENOENT;
 					res = -1;
 				}
 			} else {
@@ -1213,7 +1213,7 @@ int ntfs_remove_ntfs_reparse_data(ntfs_i
 			if (errno == ENOENT)
 				errno = olderrno;
 		} else {
-			errno = ENODATA;
+			errno = ENOENT;
 			res = -1;
 		}
 		NInoSetDirty(ni);

=== modified file 'libntfs-3g/security.c'
--- libntfs-3g/security.c	2011-11-04 21:29:22 +0000
+++ libntfs-3g/security.c	2011-11-04 21:35:31 +0000
@@ -2938,7 +2938,7 @@ int ntfs_set_posix_acl(struct SECURITY_C
 						exist = oldpxdesc->acccnt > 3;
 					if ((exist && (flags & XATTR_CREATE))
 					  || (!exist && (flags & XATTR_REPLACE))) {
-						errno = (exist ? EEXIST : ENODATA);
+						errno = (exist ? EEXIST : ENOENT);
 					} else {
 						newpxdesc = ntfs_replace_acl(oldpxdesc,
 							(const struct POSIX_ACL*)value,count,deflt);
@@ -4865,7 +4865,7 @@ INDEX_ENTRY *ntfs_read_sii(struct SECURI
 			} else
 				ret = ntfs_index_next(entry,xsii);
 			if (!ret)
-				errno = ENODATA;
+				errno = ENOENT;
 		} else
 			errno = EOPNOTSUPP;
 	} else
@@ -4902,7 +4902,7 @@ INDEX_ENTRY *ntfs_read_sdh(struct SECURI
 			} else
 				ret = ntfs_index_next(entry,xsdh);
 			if (!ret)
-				errno = ENODATA;
+				errno = ENOENT;
 		} else errno = ENOTSUP;
 	} else
 		errno = EINVAL;
@@ -4929,7 +4929,7 @@ int ntfs_get_usid(struct SECURITY_API *s
 			size = ntfs_sid_size(usid);
 			memcpy(buf,usid,size);
 		} else
-			errno = ENODATA;
+			errno = ENOENT;
 	} else
 		errno = EINVAL;
 	return (size);
@@ -4955,7 +4955,7 @@ int ntfs_get_gsid(struct SECURITY_API *s
 			size = ntfs_sid_size(gsid);
 			memcpy(buf,gsid,size);
 		} else
-			errno = ENODATA;
+			errno = ENOENT;
 	} else
 		errno = EINVAL;
 	return (size);
@@ -4979,7 +4979,7 @@ int ntfs_get_user(struct SECURITY_API *s
 			uid = ntfs_find_user(scapi->security.mapping[MAPUSERS], usid);
 			if (!uid) {
 				uid = -1;
-				errno = ENODATA;
+				errno = ENOENT;
 			}
 		}
 	} else
@@ -5005,7 +5005,7 @@ int ntfs_get_group(struct SECURITY_API *
 			gid = ntfs_find_group(scapi->security.mapping[MAPGROUPS], gsid);
 			if (!gid) {
 				gid = -1;
-				errno = ENODATA;
+				errno = ENOENT;
 			}
 		}
 	} else

=== modified file 'src/lowntfs-3g.c'
--- src/lowntfs-3g.c	2011-11-04 21:29:22 +0000
+++ src/lowntfs-3g.c	2011-11-04 21:35:32 +0000
@@ -3079,7 +3079,7 @@ static void ntfs_fuse_getxattr(fuse_req_
 	}
 	na = ntfs_attr_open(ni, AT_DATA, lename, lename_len);
 	if (!na) {
-		res = -ENODATA;
+		res = -ENOENT;
 		goto exit;
 	}
 	rsize = na->data_size;
@@ -3270,7 +3270,7 @@ static void ntfs_fuse_setxattr(fuse_req_
 	}
 	if (!na) {
 		if (flags == XATTR_REPLACE) {
-			res = -ENODATA;
+			res = -ENOENT;
 			goto exit;
 		}
 		if (ntfs_attr_add(ni, AT_DATA, lename, lename_len, NULL, 0)) {
@@ -3485,7 +3485,7 @@ static void ntfs_fuse_removexattr(fuse_r
 	}
 	if (ntfs_attr_remove(ni, AT_DATA, lename, lename_len)) {
 		if (errno == ENOENT)
-			errno = ENODATA;
+			errno = ENOENT;
 		res = -errno;
 	}
 	if (!(ni->flags & FILE_ATTR_ARCHIVE)) {

=== modified file 'src/ntfs-3g.c'
--- src/ntfs-3g.c	2011-11-04 21:29:22 +0000
+++ src/ntfs-3g.c	2011-11-04 21:35:32 +0000
@@ -2810,7 +2810,7 @@ static int ntfs_fuse_getxattr(const char
 	}
 	na = ntfs_attr_open(ni, AT_DATA, lename, lename_len);
 	if (!na) {
-		res = -ENODATA;
+		res = -ENOENT;
 		goto exit;
 	}
 	rsize = na->data_size;
@@ -2980,7 +2980,7 @@ static int ntfs_fuse_setxattr(const char
 	}
 	if (!na) {
 		if (flags == XATTR_REPLACE) {
-			res = -ENODATA;
+			res = -ENOENT;
 			goto exit;
 		}
 		if (ntfs_attr_add(ni, AT_DATA, lename, lename_len, NULL, 0)) {
@@ -3187,7 +3187,7 @@ static int ntfs_fuse_removexattr(const c
 	}
 	if (ntfs_attr_remove(ni, AT_DATA, lename, lename_len)) {
 		if (errno == ENOENT)
-			errno = ENODATA;
+			errno = ENOENT;
 		res = -errno;
 	}
 	if (!(ni->flags & FILE_ATTR_ARCHIVE)) {


--- End Message ---
--- Begin Message ---
Source: ntfs-3g
Source-Version: 1:2011.4.12AR.7-4

We believe that the bug you reported is fixed in the latest version of
ntfs-3g, which is due to be installed in the Debian FTP archive:

ntfs-3g-dbg_2011.4.12AR.7-4_i386.deb
  to main/n/ntfs-3g/ntfs-3g-dbg_2011.4.12AR.7-4_i386.deb
ntfs-3g-dev_2011.4.12AR.7-4_i386.deb
  to main/n/ntfs-3g/ntfs-3g-dev_2011.4.12AR.7-4_i386.deb
ntfs-3g_2011.4.12AR.7-4.debian.tar.gz
  to main/n/ntfs-3g/ntfs-3g_2011.4.12AR.7-4.debian.tar.gz
ntfs-3g_2011.4.12AR.7-4.dsc
  to main/n/ntfs-3g/ntfs-3g_2011.4.12AR.7-4.dsc
ntfs-3g_2011.4.12AR.7-4_i386.deb
  to main/n/ntfs-3g/ntfs-3g_2011.4.12AR.7-4_i386.deb



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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <[email protected]> (supplier of updated 
ntfs-3g 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 05 Nov 2011 19:19:58 +0100
Source: ntfs-3g
Binary: ntfs-3g ntfs-3g-dbg ntfs-3g-dev
Architecture: source i386
Version: 1:2011.4.12AR.7-4
Distribution: unstable
Urgency: low
Maintainer: Daniel Baumann <[email protected]>
Changed-By: Daniel Baumann <[email protected]>
Description: 
 ntfs-3g    - read/write NTFS driver for FUSE
 ntfs-3g-dbg - read/write NTFS driver for FUSE (debug)
 ntfs-3g-dev - read/write NTFS driver for FUSE (development)
Closes: 647668
Changes: 
 ntfs-3g (1:2011.4.12AR.7-4) unstable; urgency=low
 .
   * Adding slightly modified patch from to Robert Millan
     <[email protected]> for kfreebsd support (Closes: #647668).
Checksums-Sha1: 
 1a0056d95676b22465708123cb37d171dd1d2654 1367 ntfs-3g_2011.4.12AR.7-4.dsc
 201cafe361aee8a3a7a40b00bfef99d5c42360c9 27309 
ntfs-3g_2011.4.12AR.7-4.debian.tar.gz
 672ef7d26f1bc0e74c9d882b79e62be9804a2c3f 611346 
ntfs-3g_2011.4.12AR.7-4_i386.deb
 e4ee195586678d5ea51c785c6a3db9a92f5babb3 1041638 
ntfs-3g-dbg_2011.4.12AR.7-4_i386.deb
 7bfe5d0852566fec81d11a335e35799ede6bdd5b 253646 
ntfs-3g-dev_2011.4.12AR.7-4_i386.deb
Checksums-Sha256: 
 7aee3bbfdbe55b767c51779469692b0b37ce3a6f9c9c665f434647a86373fe03 1367 
ntfs-3g_2011.4.12AR.7-4.dsc
 78deaf17a132a22f20b572c02751d4ee0b879d9a7e442a352009e71c06aa6ed9 27309 
ntfs-3g_2011.4.12AR.7-4.debian.tar.gz
 8305320902ce72f73478aad1916e8ad3fd18ae077a974ccf0b98946319e12f75 611346 
ntfs-3g_2011.4.12AR.7-4_i386.deb
 90f42eb94912ed4a000b2e21b8dda7bfe1dbc126530f9317b8bb3a8ace36fc98 1041638 
ntfs-3g-dbg_2011.4.12AR.7-4_i386.deb
 7dc8efd2e1b7d6abcb4764b5c28f843f3011637a5f28a5d268b7d80524c98b89 253646 
ntfs-3g-dev_2011.4.12AR.7-4_i386.deb
Files: 
 cb19beb4a9a1443c3e2fec19377425d2 1367 otherosfs optional 
ntfs-3g_2011.4.12AR.7-4.dsc
 4fc43586d222c60a5d1f331105fce469 27309 otherosfs optional 
ntfs-3g_2011.4.12AR.7-4.debian.tar.gz
 9f738ee5fde00b060b2d566a9fd43729 611346 otherosfs optional 
ntfs-3g_2011.4.12AR.7-4_i386.deb
 68ce3975e533c08f97100eea2bdab24b 1041638 debug extra 
ntfs-3g-dbg_2011.4.12AR.7-4_i386.deb
 44e4a88108a932d7882f6624ee85a048 253646 libdevel optional 
ntfs-3g-dev_2011.4.12AR.7-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk61g+wACgkQ+C5cwEsrK57e0QCfTwCWkDCY5oZdRXXgGiDcMBZf
eWsAnjzcNQmO5tt1zsQTen37ZZ+aKpp1
=a4yI
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to