Opened 7 years ago

Closed 6 years ago

#53669 closed defect (fixed)

ghostscript @9.19: Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/

Reported by: herrmanthegerman (Dan Kå) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: herrmanthegerman (Dan Kå), dstrubbe (David Strubbe)
Port: ghostscript

Description

This is not an error but just about a (MacPorts?) patch that was ineffective.

During an installation, ghostscript @9.19_0+x11 was installed. The installation log contained the following warning.

--->  Fetching archive for ghostscript
--->  Attempting to fetch ghostscript-9.19_0+x11.darwin_14.x86_64.tbz2 from https://packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.19_0+x11.darwin_14.x86_64.tbz2 from http://osl.no.packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.19_0+x11.darwin_14.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/ghostscript/ghostscript
--->  Fetching distfiles for ghostscript
--->  Attempting to fetch ghostscript-9.19.tar.gz from https://distfiles.macports.org/ghostscript
--->  Attempting to fetch ghostscript-fonts-other-6.0.tar.gz from https://distfiles.macports.org/ghostscript
--->  Attempting to fetch ghostscript-fonts-std-8.11.tar.gz from https://distfiles.macports.org/ghostscript
--->  Attempting to fetch 0bdcfbe5e394d4519e5969918c34d4eebf76a386.zip from https://distfiles.macports.org/ghostscript
--->  Verifying checksums for ghostscript
--->  Extracting ghostscript
--->  Applying patches to ghostscript
Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.19/freetype_local/src/tools/afblue.pl
--->  Configuring ghostscript
--->  Building ghostscript

These are my conclusions:

It's about patching the shebang of the file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.19/freetype_local/src/tools/afblue.pl

Obviously, the sed expression intends to change the path to the PERL interpreter in the file afblue.pl, however, said file contains an unexpected space so the regular expressions does not match, as can be seen here:

$ head /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.19/freetype_local/src/tools/afblue.pl
#! /usr/bin/perl -w
# -*- Perl -*-
#
# afblue.pl
#
# Process a blue zone character data file.
#
# Copyright 2013, 2014 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#

Mind the space between "#!" and "/usr/bin/perl".

Change History (6)

comment:1 Changed 7 years ago by herrmanthegerman (Dan Kå)

Cc: herrmanthegerman added

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: herrmanthegerman removed
Port: ghostscript added
Summary: Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/ghostscript @9.19: Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/

comment:3 Changed 7 years ago by herrmanthegerman (Dan Kå)

Cc: herrmanthegerman added

comment:4 Changed 7 years ago by ptiLuc (Sebastian Becker)

Still the same with 9.21:

--->  Applying patches to ghostscript
Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.21/freetype_local/src/tools/afblue.pl

Error: Port ghostscript is still broken after rebuilding it more than 3 times.

Can somebody fix that please!

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 in reply to:  4 Changed 7 years ago by neverpanic (Clemens Lang)

Replying to ptiLuc:

Still the same with 9.21:

Error: Port ghostscript is still broken after rebuilding it more than 3 times.

Can somebody fix that please!

That particular problem is #54019.

Version 0, edited 7 years ago by neverpanic (Clemens Lang) (next)

comment:6 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dstrubbe added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.