From owner-freebsd-ports-bugs@freebsd.org Fri Apr 28 00:17:13 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18F8BD4D2CB for ; Fri, 28 Apr 2017 00:17:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 088EEE53 for ; Fri, 28 Apr 2017 00:17:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v3S0HCrG064627 for ; Fri, 28 Apr 2017 00:17:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 218922] Download of ports source not being identified as coming from FreeBSD OS. Date: Fri, 28 Apr 2017 00:17:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: qjail1@a1poweruser.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2017 00:17:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218922 Bug ID: 218922 Summary: Download of ports source not being identified as coming from FreeBSD OS. Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: qjail1@a1poweruser.com CC: freebsd-ports-bugs@FreeBSD.org, portmgr@FreeBSD.org It has come to my attention that the downloading of a ports source by our p= orts framework is not identifying FreeBSD as the requesting operating system whi= ch results in the download request being marked as "unknown" by the source-hos= ting site. Here is an example of what I am talking about. https://sourceforge.net/projects/qjail/files/qjail-5.1.tar.bz2/stats/os?dat= es=3D2017-01-01%20to%202017-04-20 In discussion with sourceforge tech support, they said:=20 =E2=80=9CWe unfortunately would not be able to determine the OS utilized if= the download request lacks the browser user agent information. My port has its source hosted on sourceforge.net. That site has a function = that shows the count of times the port source file has been downloaded along with the country and the type of operating system of the computer requesting the download. 99.9% of the time the operating system is shown as "unknown". I c= an only assume those are downloads originating from FreeBSD systems using the = port "make install" method. I believe whatever utility employed by the port syst= em framework to download the port source is not populating the HTTP_USER_AGENT= or the HTTP_REFERER environment variable, which is the root cause of this prob= lem.=20 I did this command on my host /usr/bin/grep -r HTTP_REFERER /usr/ports/Tools /usr/bin/grep -r HTTP_REFERER /usr/ports/Mk /usr/bin/grep -r HTTP_ USER_AGENT /usr/ports/Tools /usr/bin/grep -r HTTP_ USER_AGENT /usr/ports/Mk Got no hits, but /usr/bin/grep -r fetch /usr/ports/Tools /usr/bin/grep -r fetch /usr/ports/Mk Got a lot of hits. I would say the ports system does not use HTTP_REFERER or HTTP_USER_AGENT a= nd the fetch utility is being employed to perform the physical download. Here is my problem; I tried to read and follow the logic in some of those scripts, but the coding style is foreign to me and I do not posses the technical ability to manipulate the port system scripts to make changes.=20 I think here is an untapped opportunity to let the world port source-hosting servers take notice that FreeBSD is a widely used operating system. In its = own way it builds FreeBSD awareness and it=E2=80=99s not a big deal or time-con= suming task to accomplish. Selecting the more correct download utility and populating the correct environment variable with the value of =E2=80=9CFreeBSD=E2=80=9D would corr= ect this problem. A far better solution would be to inquire the host system for the version of = the host system OS and use that information, IE: FreeBSD 11.0-RELASE, which wou= ld result in more meaningfully information being captured at the source-hosting sites.=20 I hope the ports powers-to-be can appreciate the benefits of this change. --=20 You are receiving this mail because: You are on the CC list for the bug.=