Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Mar 2016 02:04:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 207825] make makesum creates duplicate distinfo entry (for GH_PROJECT)
Message-ID:  <bug-207825-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207825

            Bug ID: 207825
           Summary: make makesum creates duplicate distinfo entry (for
                    GH_PROJECT)
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: christopherhall.hsw@gmail.com
                CC: freebsd-amd64@FreeBSD.org,
                    freebsd-ports-bugs@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org

If the GH_PROJECT contains a entry that is the same as the PORTNAME
then "make makesum" creates duplicate entries for the main archive.

My Makefile contains the lines:

  PORTNNAME =3D miniature-spoon
  GH_PROJECT =3D miniature-spoon:miniature_spoon

After removing the file fro distfiles and running "make fetch" I see the
following error:

  =3D=3D=3D>   miniature-spoon-1.0 depends on file: /usr/local/sbin/pkg - f=
ound
  =3D> bitmark-inc-miniature-spoon-v1.0_GH0.tar.gz doesn't seem to exist in
/usr/ports/distfiles/.
  =3D> Attempting to fetch
https://codeload.github.com/bitmark-inc/miniature-spoon/tar.gz/v1.0?dummy=
=3D/bitmark-inc-miniature-spoon-v1.0_GH0.tar.gz
  fetch: 6535: No such file or directory
  bitmark-inc-miniature-spoon-v1.0_GH0.tar.gz   100% of 6535  B  102 MBps
00m00s
  =3D> Attempting to fetch
http://distcache.FreeBSD.org/ports-distfiles/bitmark-inc-miniature-spoon-v1=
.0_GH0.tar.gz=20
  fetch: 6535: No such file or directory
  fetch:
http://distcache.FreeBSD.org/ports-distfiles/bitmark-inc-miniature-spoon-v1=
.0_GH0.tar.gz:
Not Found
  =3D> Couldn't fetch it - please try to retrieve this
  =3D> port manually into /usr/ports/distfiles/ and try again.
  *** Error code 1

  Stop.

The file is actually downloaded but this error is produced:

  fetch: 6535: No such file or directory

Took me some hours to realise that the number is not an error code bu the n=
ame
of the file
fetch is trying to download - al lot of searches based on the above error
produced nothing.

Looking at "make fetch-list" I see that there are two fetches for the same =
file
and
that command is called like:

  /usr/bin/fetch -Fpr -S 6535 6535 https://codeload.github.com/

As can be seen the file size gets included twice; I checked by changing the
sizes to be different
values and determined that one size is from each entry in distinfo.

The FIX: "DO NOT add a ${PORTNAME} entry to the GH_PROJECT list"

Hopefully this report will be found next time I try to search for the same
error :)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207825-13>