Trouble installing RT2

Hi, Hope someone can help me with what I am sure is a simple problem to
solve…just not for this newbie to FreeBSD.

I get the following error when attempting to install:

patching for rt2-2.0.14
applying FreeBSD patches for rt2-2.0.14
patch: **** can’t cd to /usr/ports/www/rt2/work/rt-2-0-14: No such file
or
directory

Patch patch-Makefile failed to apply cleanly.
***Error code 1

I gather it is looking for this directory and makefile, but I am lost as
to why this is not included in the ports. Additionally, I have just
updated my ports tree and still no dice.

Any help would be greatly appreciated.

Regards,

Will Williams
NOC Manager,
Star 21 Networks
"Searching for a cheaper trouble ticketing system"

=====
Will Williams
mobile: +49(0) 178-806-7966

Will Williams
mobile: +49(0) 178-806-7966

patch: **** can’t cd to /usr/ports/www/rt2/work/rt-2-0-14: No
such file or directory

I gather it is looking for this directory and makefile,
but I am lost as to why this is not included in the ports.
Additionally, I have just updated my ports tree and still no
dice.

I think the port tries to download 2.0.15 when it expects 2.0.14.
Try renaming rt.tar.gz to rt-2-0-14.tar.gz.

-Vince

[cc: port maintainer]

Vince Hoang wrote:

I think the port tries to download 2.0.15 when it expects 2.0.14.

Correct.

Try renaming rt.tar.gz to rt-2-0-14.tar.gz.

No, that won’t help. The solution is to get the port to download
a known version instead of the rt.tar.gz moving target.

The port also uses “/usr/local/bin/perl” but doesn’t depend
on the perl5 port. The system supplied perl is okay for use
with RT, so I see no need for this.

Try the attached patch. “make” succeeds for me now. I haven’t
tried a “make install” as I have a perfectly good RT installation
on this box that I’d rather not trash. :slight_smile:
Phil Homewood, Systems Janitor, www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

rt2-port-patch (1.73 KB)

Vince Hoang wrote:

Try renaming rt.tar.gz to rt-2-0-14.tar.gz.

No, that won’t help. The solution is to get the port to
download a known version instead of the rt.tar.gz moving
target.

Sorry, I was not clear enough earlier. Renaming rt.tar.gz in
both Makefile and distinfo prepares the port for 2.0.14. I do
agree, downloading specific version for the port would be an
improvement.

For better or for worse, I keep /usr/local/bin/perl symlinked to
/usr/bin/perl and did not notice the other gotcha.

-Vince

Thanks for the info from Vince and Phil, how do I apply this patch? I
tried copying to rt2 directory and then running it with sh…sure I am
doing something wrong as it did not work. You’re really helping a newbie
out here.

Regards,

Will— Phil Homewood pdh@snapgear.com wrote:

[cc: port maintainer]

Vince Hoang wrote:

I think the port tries to download 2.0.15 when it expects 2.0.14.

Correct.

Try renaming rt.tar.gz to rt-2-0-14.tar.gz.

No, that won’t help. The solution is to get the port to download
a known version instead of the rt.tar.gz moving target.

The port also uses “/usr/local/bin/perl” but doesn’t depend
on the perl5 port. The system supplied perl is okay for use
with RT, so I see no need for this.

Try the attached patch. “make” succeeds for me now. I haven’t
tried a “make install” as I have a perfectly good RT installation
on this box that I’d rather not trash. :slight_smile:

Phil Homewood, Systems Janitor, www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

? www/rt2/work
Index: www/rt2/Makefile
===================================================================
RCS file: /cvs/FreeBSD/ports/www/rt2/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
— www/rt2/Makefile 22 Dec 2002 04:50:13 -0000 1.1
+++ www/rt2/Makefile 14 Jan 2003 23:32:17 -0000
@@ -6,11 +6,11 @@

PORTNAME= rt2
-PORTVERSION= 2.0.14
+PORTVERSION= 2.0.15
CATEGORIES= www
MASTER_SITES= http://www.fsck.com/pub/rt/release/
-WRKSRC= ${WRKDIR}/rt-2-0-14
-DISTFILES= rt.tar.gz
+WRKSRC= ${WRKDIR}/rt-2-0-15
+DISTFILES= rt-2-0-15.tar.gz

MAINTAINER= plasmaball@pchome.com.tw

Index: www/rt2/distinfo

RCS file: /cvs/FreeBSD/ports/www/rt2/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
— www/rt2/distinfo 22 Dec 2002 04:50:13 -0000 1.1
+++ www/rt2/distinfo 14 Jan 2003 23:32:17 -0000
@@ -1 +1 @@
-MD5 (rt.tar.gz) = 59179c054c0e05336f9b92fe3b031270
+MD5 (rt-2-0-15.tar.gz) = 7e6762d5091ea5919504eaa754f4612e
Index: www/rt2/files/patch-Makefile

RCS file: /cvs/FreeBSD/ports/www/rt2/files/patch-Makefile,v
retrieving revision 1.1
diff -u -r1.1 patch-Makefile
— www/rt2/files/patch-Makefile 22 Dec 2002 04:50:13 -0000 1.1
+++ www/rt2/files/patch-Makefile 14 Jan 2003 23:32:17 -0000
@@ -1,14 +1,5 @@
— Makefile Sat Jul 20 10:42:39 2002
+++ Makefile Thu Aug 15 22:17:55 2002
-@@ -2,7 +2,7 @@

  • RT is Copyright 1996-2002 Jesse Vincent jesse@bestpractical.com

  • It is distributed under the terms of the GNU General Public License,

version 2

–PERL = /usr/bin/perl
-+PERL = /usr/local/bin/perl

  • RT_VERSION_MAJOR = 2
  • RT_VERSION_MINOR = 0
    @@ -15,7 +15,7 @@
    BRANCH = HEAD

Will Williams
mobile: +49(0) 178-806-7966

W. J. Williams wrote:

Thanks for the info from Vince and Phil, how do I apply this patch? I
tried copying to rt2 directory and then running it with sh…sure I am
doing something wrong as it did not work. You’re really helping a newbie
out here.

cd /usr/ports/www/rt2
patch < /path/to/rt2-port-patch
make install

Phil Homewood, Systems Janitor, www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

No, that won’t help. The solution is to get the port to download
a known version instead of the rt.tar.gz moving target.

The port also uses “/usr/local/bin/perl” but doesn’t depend
on the perl5 port. The system supplied perl is okay for use
with RT, so I see no need for this.

Try the attached patch. “make” succeeds for me now. I haven’t
tried a “make install” as I have a perfectly good RT installation
on this box that I’d rather not trash. :slight_smile:

Plasmabal is made aware of this problem; your patch has been
applied to our depot (http://p4.elixus.org/snap/rt-ports.tar.gz
which also contains rt3 and mod_perl2 ports); we’ll get keichii
to commit it soon.

Thanks,
/Autrijus/

I think the port tries to download 2.0.15 when it expects 2.0.14.
Correct.

This port was made when I was new to RT2. Refering to rt.tar.gz is
my stupid mistake.

Try the attached patch. “make” succeeds for me now. I haven’t
tried a “make install” as I have a perfectly good RT installation
on this box that I’d rather not trash. :slight_smile:

sent-pr. Thanks, Phil. :slight_smile:

plasma

�]���e�A���B��3�D33
http://edm-prg.epaper.com.tw/click.php?ad_code=1200
PC home Online �����a�x�G�|���Ĥ@�A�x�W�̤j���J�f����

I am almost there. I copied the patch to rt2 directory. and ran the
commands below as you indicated. I get the error

“Hmm… I can’t seem to find a patch in there anywhere”

I then tried renaming the patch "patch-* as suggested in the FreeBSD
Porter’s Handbook…still no dice. Then created a separate directory
containing nothing but the various named versions of the patch; this didn’t
work either. Am I forgetting something?

Regards,

Will

At 04:15 PM 1/15/03 +1000, Phil Homewood wrote:

Hi, Hope someone can help me with what I am sure is a simple problem to
solve…just not for this newbie to FreeBSD.

I get the following error when attempting to install:

patching for rt2-2.0.14
applying FreeBSD patches for rt2-2.0.14
patch: **** can’t cd to /usr/ports/www/rt2/work/rt-2-0-14: No such file or
directory

Patch patch-Makefile failed to apply cleanly.
***Error code 1

I gather it is looking for this directory and makefile, but I am lost as
to why this is not included in the ports. Additionally, I have just
updated my ports tree and still no dice.

Any help would be greatly appreciated.

Regards,

Will Williams
NOC Manager,
Star 21 Networks
"Searching for a cheaper trouble ticketing system"

Will Williams
mobile: +49(0) 178-806-7966