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

Bug#317718: marked as done (Exits with FATAL error when an URL can't be found (GNU/kFreeBSD))



Your message dated Mon, 28 Nov 2005 15:47:11 -0800
with message-id <E1EgsiF-0008PN-Kt@spohr.debian.org>
and subject line Bug#317718: fixed in apt 0.6.43
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; 10 Jul 2005 22:57:49 +0000
>From aurel32@debian.org Sun Jul 10 15:57:49 2005
Return-path: <aurel32@debian.org>
Received: from farad.aurel32.net [82.232.2.251] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Drkk9-0003ko-00; Sun, 10 Jul 2005 15:57:49 -0700
Received: from hertz.aurel32.net ([2001:618:400:fc13:250:fcff:fe4c:da07])
	by farad.aurel32.net with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
	(Exim 4.50)
	id 1Drkk7-0003bw-Ne; Mon, 11 Jul 2005 00:57:47 +0200
Received: from aurel32 by hertz.aurel32.net with local (Exim 4.52)
	id 1Drkjm-0002Hy-4i; Mon, 11 Jul 2005 00:57:26 +0200
Content-Type: multipart/mixed; boundary="===============0484347812=="
MIME-Version: 1.0
From: Aurelien Jarno <aurel32@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Exits with FATAL error when an URL can't be found (GNU/kFreeBSD)
X-Mailer: reportbug 3.15
Date: Mon, 11 Jul 2005 00:57:26 +0200
Message-Id: <E1Drkjm-0002Hy-4i@hertz.aurel32.net>
Delivered-To: submit@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=-6.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============0484347812==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: apt
Version: 0.6.38
Severity: normal
Tags: patch

Hi,

On GNU/kFreeBSD, apt fails a with a FATAL error when trying to fetch a
file that doesn't exists on a server. That wasn't really a problem for
apt 0.5.x, but apt 0.6.x try to download Release.gpg file that dont
exist on all server, thus making apt unusable on that port.

The problem is that apt try to remove the non blocking flag from
/dev/null, and the FreeBSD kernel doesn't allow that (well, it doesn't
make really sense to remove that flag on that device).

Please find attached a patch to fix that. It would be nice if it could
be in included the next upload.

Thanks in advance,
Aurelien

-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.3-16
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages apt depends on:
ii  libc0.1                    2.3-1+kbsd.10 GNU C Library: Shared libraries an
ii  libgcc1                    1:4.0.0-12    GCC support library
ii  libstdc++6                 4.0.0-12      The GNU Standard C++ Library v3

apt recommends no packages.

-- no debconf information

--===============0484347812==
Content-Type: text/x-c++; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="apt_0.6.38.kfreebsd.patch"

diff -Nur apt-0.6.38/methods/http.cc apt-0.6.38+kbsd/methods/http.cc
--- apt-0.6.38/methods/http.cc	2005-05-24 23:33:10.000000000 +0200
+++ apt-0.6.38+kbsd/methods/http.cc	2005-07-10 23:56:06.000000000 +0200
@@ -787,7 +787,8 @@
 {
    if (File != 0)
    {
-      SetNonBlock(File->Fd(),false);
+      if (File->Name().compare("/dev/null"))
+         SetNonBlock(File->Fd(),false);
       if (Srv->In.WriteSpace() == false)
 	 return true;
       
@@ -815,7 +816,8 @@
    // Dump the buffer to the file
    if (Srv->State == ServerState::Data)
    {
-      SetNonBlock(File->Fd(),false);
+      if (File->Name().compare("/dev/null"))
+         SetNonBlock(File->Fd(),false);
       while (Srv->In.WriteSpace() == true)
       {
 	 if (Srv->In.Write(File->Fd()) == false)

--===============0484347812==--

---------------------------------------
Received: (at 317718-close) by bugs.debian.org; 28 Nov 2005 23:51:16 +0000
>From katie@ftp-master.debian.org Mon Nov 28 15:51:16 2005
Return-path: <katie@ftp-master.debian.org>
Received: from katie by spohr.debian.org with local (Exim 4.50)
	id 1EgsiF-0008PN-Kt; Mon, 28 Nov 2005 15:47:11 -0800
From: Michael Vogt <mvo@debian.org>
To: 317718-close@bugs.debian.org
X-Katie: $Revision: 1.60 $
Subject: Bug#317718: fixed in apt 0.6.43
Message-Id: <E1EgsiF-0008PN-Kt@spohr.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 28 Nov 2005 15:47:11 -0800
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-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Source: apt
Source-Version: 0.6.43

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

apt-doc_0.6.43_all.deb
  to pool/main/a/apt/apt-doc_0.6.43_all.deb
apt-utils_0.6.43_i386.deb
  to pool/main/a/apt/apt-utils_0.6.43_i386.deb
apt_0.6.43.dsc
  to pool/main/a/apt/apt_0.6.43.dsc
apt_0.6.43.tar.gz
  to pool/main/a/apt/apt_0.6.43.tar.gz
apt_0.6.43_i386.deb
  to pool/main/a/apt/apt_0.6.43_i386.deb
libapt-pkg-dev_0.6.43_i386.deb
  to pool/main/a/apt/libapt-pkg-dev_0.6.43_i386.deb
libapt-pkg-doc_0.6.43_all.deb
  to pool/main/a/apt/libapt-pkg-doc_0.6.43_all.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 317718@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <mvo@debian.org> (supplier of updated apt 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@debian.org)


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

Format: 1.7
Date: Tue, 29 Nov 2005 00:17:07 +0100
Source: apt
Binary: apt-utils libapt-pkg-doc libapt-pkg-dev apt-doc apt
Architecture: source all i386
Version: 0.6.43
Distribution: unstable
Urgency: medium
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Michael Vogt <mvo@debian.org>
Description: 
 apt        - Advanced front-end for dpkg
 apt-doc    - Documentation for APT
 apt-utils  - APT utility programs
 libapt-pkg-dev - Development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - Documentation for APT development
Closes: 57091 66325 146877 317718 338267 338356 339147 339533 340448
Changes: 
 apt (0.6.43) unstable; urgency=medium
 .
   * Merge bubulle@debian.org--2005/apt--main--0 up to patch-132:
     * zh_CN.po: Completed to 510 strings(Closes: #338267)
     * gl.po: Completed to 510 strings (Closes: #338356)
   * added support for "/etc/apt/sources.list.d" directory
     (closes: #66325)
   * make pkgDirStream (a bit) more complete
   * fix bug in pkgCache::VerIterator::end() (thanks to Daniel Burrows)
     (closes: #339533)
   * pkgAcqFile is more flexible now (closes: #57091)
   * support a download rate limit for http (closes: #146877)
   * included lots of the speedup changes from #319377
   * add stdint.h to contrib/md5.h (closes: #340448)
   * ABI change, library name changed (closes: #339147)
   * Fix GNU/kFreeBSD crash on non-existing server file (closes: #317718)
   * switch to libdb4.3 in build-depends
Files: 
 86dcec8dd5c5ab71401755f8c6c90107 785 admin important apt_0.6.43.dsc
 5c1a3c6f879cc4caa7fb2ff94b2cb9a1 1461079 admin important apt_0.6.43.tar.gz
 97b880c6781eee59905b77d9651c8d07 86140 doc optional apt-doc_0.6.43_all.deb
 b6f866a82bc21ee833bd976fe95e3afa 109548 doc optional libapt-pkg-doc_0.6.43_all.deb
 8d7e510a526d3cc18c9a0601ad787e9e 1194408 admin important apt_0.6.43_i386.deb
 ed7c6826bf40acebb325fefe0e6449b8 79738 libdevel optional libapt-pkg-dev_0.6.43_i386.deb
 d2202a74f11ebd30ccd7d0d347f2fdd3 195170 admin important apt-utils_0.6.43_i386.deb

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

iD8DBQFDi5S7liSD4VZixzQRAvqgAJ4g5eEn9hIE8QUlXPuqPvfGP8t9ewCdEvKr
KndSCF+btULzVqN5T13NQ5k=
=7FnP
-----END PGP SIGNATURE-----



Reply to: