[MacPorts] #778: BUG: fortune-4.6.2-RELEASE

MacPorts noreply at macports.org
Thu Mar 24 06:28:52 PDT 2016


#778: BUG: fortune-4.6.2-RELEASE
------------------------+--------------------------------
  Reporter:  charlie@…  |      Owner:  macports-tickets@…
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  1.0
Resolution:  fixed      |   Keywords:
      Port:  fortune    |
------------------------+--------------------------------
Changes (by ryandesign@…):

 * port:   => fortune


Old description:

> fortune will try and use bzip2 on the fortune datfiles like so..
>
> --->  Fetching fortune
> --->  Verifying checksum for fortune
> Warning: No checksum recorded for fortune-4.6.2-RELEASE.tar.bz2
> Warning: No checksum recorded for fortune-starwars.tgz
> --->  Extracting fortune
> Error: Target com.apple.extract returned: shell command "cd
> "/Users/yeled/Documents/DEV/
> darwinports/dports/games/fortune/work" && bzip2 -dc
> /opt/local/var/db/dports/distfiles/
> fortune-starwars.tgz | tar -xf -" returned error 1
> Command output: bzip2: /opt/local/var/db/dports/distfiles/fortune-
> starwars.tgz is not a bzip2
> file.
> tar: End of archive volume 1 reached
> tar: Sorry, unable to determine archive format.
>

> and here is a patch to fix this,
>
> --- Portfile.old        Thu Aug 14 22:26:19 2003
> +++ Portfile    Thu Aug 14 22:25:31 2003
> @@ -45,6 +45,10 @@
>                 limerick.dat murphy murphy.dat murphy-o murphy-o.dat \
>                 startrek startrek.dat zippy zippy.dat"
>
> +# we already have post-extract to untar the datfiles, so just extract
> the
> +# program itself.
> +extract.only ${portname}-${version}.tar.bz2
> +
>  # ugly hack to extract variant datfiles properly - default these
> variables to
>  # zero, then set them in each variant, and then check them all in post-
> extract
>  set plusstarwars 0

New description:

 fortune will try and use bzip2 on the fortune datfiles like so..

 {{{
 --->  Fetching fortune
 --->  Verifying checksum for fortune
 Warning: No checksum recorded for fortune-4.6.2-RELEASE.tar.bz2
 Warning: No checksum recorded for fortune-starwars.tgz
 --->  Extracting fortune
 Error: Target com.apple.extract returned: shell command "cd
 "/Users/yeled/Documents/DEV/darwinports/dports/games/fortune/work" &&
 bzip2 -dc /opt/local/var/db/dports/distfiles/fortune-starwars.tgz | tar
 -xf -" returned error 1
 Command output: bzip2: /opt/local/var/db/dports/distfiles/fortune-
 starwars.tgz is not a bzip2 file.
 tar: End of archive volume 1 reached
 tar: Sorry, unable to determine archive format.
 }}}

 and here is a patch to fix this,

 {{{
 --- Portfile.old        Thu Aug 14 22:26:19 2003
 +++ Portfile    Thu Aug 14 22:25:31 2003
 @@ -45,6 +45,10 @@
                 limerick.dat murphy murphy.dat murphy-o murphy-o.dat \
                 startrek startrek.dat zippy zippy.dat"

 +# we already have post-extract to untar the datfiles, so just extract the
 +# program itself.
 +extract.only ${portname}-${version}.tar.bz2
 +
  # ugly hack to extract variant datfiles properly - default these
 variables to
  # zero, then set them in each variant, and then check them all in post-
 extract
  set plusstarwars 0
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/778#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list