[Bug 207825] make makesum creates duplicate distinfo entry (for GH_PROJECT)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 9 02:04:47 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207825

            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 at FreeBSD.org
          Reporter: christopherhall.hsw at gmail.com
                CC: freebsd-amd64 at FreeBSD.org,
                    freebsd-ports-bugs at FreeBSD.org
                CC: freebsd-amd64 at 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 = miniature-spoon
  GH_PROJECT = miniature-spoon:miniature_spoon

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

  ===>   miniature-spoon-1.0 depends on file: /usr/local/sbin/pkg - found
  => bitmark-inc-miniature-spoon-v1.0_GH0.tar.gz doesn't seem to exist in
/usr/ports/distfiles/.
  => Attempting to fetch
https://codeload.github.com/bitmark-inc/miniature-spoon/tar.gz/v1.0?dummy=/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
  => Attempting to fetch
http://distcache.FreeBSD.org/ports-distfiles/bitmark-inc-miniature-spoon-v1.0_GH0.tar.gz 
  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
  => Couldn't fetch it - please try to retrieve this
  => 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 name
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 :)

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


More information about the freebsd-amd64 mailing list