From nobody@FreeBSD.org  Sat Apr  9 00:09:36 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7074B106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Apr 2011 00:09:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 616A08FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Apr 2011 00:09:36 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p3909a3w009151
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 9 Apr 2011 00:09:36 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p3909a8R009150;
	Sat, 9 Apr 2011 00:09:36 GMT
	(envelope-from nobody)
Message-Id: <201104090009.p3909a8R009150@red.freebsd.org>
Date: Sat, 9 Apr 2011 00:09:36 GMT
From: Jesse <jessefrgsmith@yahoo.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: apt port tries to pull from incorrect URL
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156286
>Category:       ports
>Synopsis:       sysutils/apt port tries to pull from incorrect URL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    snb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 09 00:10:10 UTC 2011
>Closed-Date:    Sun Mar 23 19:35:54 UTC 2014
>Last-Modified:  Sun Mar 23 19:35:54 UTC 2014
>Originator:     Jesse
>Release:        8.1-release
>Organization:
RM
>Environment:
freebsd-6648 8.1-RELEASE
>Description:
After installing the sysutils/apt port, running the command

apt-get update

results in errors because apt-get is trying to pull from the invalid "binary-freebsd-i386" architecture. For example, apt-get will attempt to download from

http://ftp.debian.org/dists/squeeze/main/binary-freebsd-i386/Packages.gz

The above is an invalid URL and should instead read

http://ftp.debian.org/debian/dists/squeeze/main/binary-kfreebsd-i386/Packages.gz

Note the leading "k" in "binary-kfreebsd-i386".

>How-To-Repeat:
1. Install the sysutils/apt port (pkg_add -r apt)
2. Create the required directories
mkdir -p /var/db/apt/state/lists/partial
mkdir -p /var/db/apt/cache/archives/partial
mkdir -p /var/db/dpkg
touch /var/db/dpkg/status

3. Run the apt-get update command
/usr/local/bin/apt-get update


>Fix:
The apt program should be patched to draw from Debian's "binary-kfreebsd-i386" repositories. Or, if possible, patched to import the system's arch from a configuration file.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->snb 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Apr 9 00:26:29 UTC 2011 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156286 

From: Nick Barkas <nick.barkas@gmail.com>
To: bug-followup@FreeBSD.org, jessefrgsmith@yahoo.ca
Cc:  
Subject: Re: ports/156286: sysutils/apt port tries to pull from incorrect URL
Date: Sun, 10 Apr 2011 12:06:35 +0200

 Debian's kfreebsd-i386/kfreebsd-amd64 repositories don't contain
 binaries designed to work on a regular FreeBSD system, so I would
 advise against trying to install packages from those repositories.
 Debian's packages are made for systems that use glibc, not FreeBSD's C
 library, and Debian's modified FreeBSD kernel. The sysutils/apt port
 is meant for people who want to install packages (built for FreeBSD)
 from their own apt repositories.
 
 Would it be helpful if the sample sources.list file distributed with
 this port made that more clear instead of containing Debian URLs?

From: Jesse Smith <jessefrgsmith@yahoo.ca>
To: Nick Barkas <nick.barkas@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/156286: sysutils/apt port tries to pull from incorrect
 URL
Date: Sun, 10 Apr 2011 09:55:21 -0300

 Yes, I think that makes sense. A note saying the APT port is designed
 for FreeBSD systems and isn't supposed to be compatible with Debian's
 repositories would be a good idea.
 
 Thanks,
 Jesse
 
 
 
 -----Original Message-----
 From: Nick Barkas <nick.barkas@gmail.com>
 To: bug-followup@FreeBSD.org, jessefrgsmith@yahoo.ca
 Subject: Re: ports/156286: sysutils/apt port tries to pull from
 incorrect URL
 Date: Sun, 10 Apr 2011 12:06:35 +0200
 
 Debian's kfreebsd-i386/kfreebsd-amd64 repositories don't contain
 binaries designed to work on a regular FreeBSD system, so I would
 advise against trying to install packages from those repositories.
 Debian's packages are made for systems that use glibc, not FreeBSD's C
 library, and Debian's modified FreeBSD kernel. The sysutils/apt port
 is meant for people who want to install packages (built for FreeBSD)
 from their own apt repositories.
 
 Would it be helpful if the sample sources.list file distributed with
 this port made that more clear instead of containing Debian URLs?
 
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Mar 23 19:35:14 UTC 2014 
State-Changed-Why:  
To submitter: I'm sorry that this PR got ignored for so long. 
The port seems to fetch ok now.  Please let us know if this 
still a problem for you. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156286 
>Unformatted:
