Bug 1840 - mail/majordomo/scripts/configure, can't run under perl-5 installed machine
Summary: mail/majordomo/scripts/configure, can't run under perl-5 installed machine
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: jfitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-10-19 04:00 UTC by sanpei
Modified: 2001-11-28 03:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sanpei 1996-10-19 04:00:01 UTC
  Ports collection majordomo [ports/mail/majordomo], [scripts/configure]
program (used at configure phase) is written below:

 * system( "perl -pi -e 's|@@PREFIX@@|$ENV{'PREFIX'}|g' @files" );

  If it is under <above Environment>, above script is run via
Perl version 5.  But this script is only for Perl Version 4,
[/usr/bin/perl].

Fix: I think add `/usr/bin' path before `perl'.



( $null, $null, $mjUID, $mjGID ) = getpwnam( "majordom" );
-system( "perl -pi -e 's|@@PREFIX@@|$ENV{'PREFIX'}|g' @files" );
-system( "perl -pi -e 's|@@HOSTNAME@@|$HOSTNAME|g' @files" );
-system( "perl -pi -e 's|@@UID@@|$mjUID|g' @files" );
-system( "perl -pi -e 's|@@GID@@|$mjGID|g' @files" );
+system( "/usr/bin/perl -pi -e 's|@@PREFIX@@|$ENV{'PREFIX'}|g' @files" );
+system( "/usr/bin/perl -pi -e 's|@@HOSTNAME@@|$HOSTNAME|g' @files" );
+system( "/usr/bin/perl -pi -e 's|@@UID@@|$mjUID|g' @files" );
+system( "/usr/bin/perl -pi -e 's|@@GID@@|$mjGID|g' @files" );--G0ABtpT6xNCMPKoY72n6RaEOuNAuInqgfYNSHjXi1akq5w24
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- configure.org	Fri Oct 18 22:30:37 1996
+++ configure	Fri Oct 18 22:30:54 1996
@@ -9,7 +9,7 @@
 @files = ( "$ENV{'WRKSRC'}/Makefile", "$ENV{'WRKSRC'}/sample.cf", "$ENV{'FILESDIR'}/aliases.majordomo" );
How-To-Repeat: 
cd /usr/ports/mail/majordomo
make configure
Comment 1 Masafumi Max NAKANE freebsd_committer freebsd_triage 1996-10-27 06:05:00 UTC
Responsible Changed
From-To: freebsd-ports->jfitz

James is the port maintainer. 
Comment 2 jfitz freebsd_committer freebsd_triage 1996-10-28 10:37:54 UTC
State Changed
From-To: open->closed

Problems related to majordomo port running with perl5 as opposed to perl4 are limited to the v1.93 port.  The port was upgraded to v1.94 on 1996/10/26, and this behaviour corrected.