So, this patch doesn't get the port to pass tests, but it does add the
new required dependency on textproc/p5-Pod-Parser and should be a start
in figuring out a way to get the tests to run in an automated fashion.
Would be best to remove /etc and such from @INC, but would probably need
a patch for that, although maybe doing it in `RT_Config.pm` would work.


In any case, I'm guessing there's some other missing module or
something, but I don't run RT anymore.

'RT::Record::Role|RT::Record::Role::Lifecycle|RT::Record::Role::Links|RT::Record::Role::Rights|RT::Record::Role::Roles'
requires the method 'id' to be implemented by 'RT::Queue' at /usr/loca
l/libdata/perl5/site_perl/Role/Basic.pm line 232.                               
                                                                                
                              

Comments, OK?  Maybe just the p5-Pod-Parser addition?



Index: Makefile
===================================================================
RCS file: /cvs/ports/www/rt/Makefile,v
retrieving revision 1.49
diff -u -p -r1.49 Makefile
--- Makefile    25 Feb 2021 11:09:17 -0000      1.49
+++ Makefile    11 Mar 2021 02:43:54 -0000
@@ -3,6 +3,7 @@
 COMMENT=               industrial-grade ticketing system
 
 DISTNAME=              rt-5.0.1
+REVISION=              0
 CATEGORIES=            www
 
 MAINTAINER=            Robert Nagy <rob...@openbsd.org>
@@ -75,6 +76,7 @@ RUN_DEPENDS=          converters/p5-Convert-ASN1
                        textproc/p5-Encode-Detect \
                        textproc/p5-Encode-HanExtra \
                        textproc/p5-List-UtilsBy \
+                       textproc/p5-Pod-Parser \
                        textproc/p5-Regexp-Common \
                        textproc/p5-String-ShellQuote \
                        textproc/p5-Text-Quoted \
@@ -145,9 +147,18 @@ RUN_DEPENDS+=              databases/p5-DBD-mysql
 # needs an initialized database and /etc/rt/RT_Config.pm to be present
 TEST_IS_INTERACTIVE=   Yes
 TEST_TARGET=           test
-TEST_DEPENDS=          devel/p5-Log-Dispatch-Perl
+TEST_DEPENDS=          ${RUN_DEPENDS} \
+                       devel/p5-List-MoreUtils \
+                       devel/p5-Log-Dispatch-Perl \
+                       devel/p5-Symbol-Global-Name \
+                       devel/p5-Test-NoWarnings \
+                       sysutils/p5-File-Which
 # fill these in with appropriate values
-TEST_ENV=              RT_DBA_USER=rt_user RT_DBA_PASSWORD=1234
+TEST_ENV=              RT_DBA_USER=rt_user RT_DBA_PASSWORD=1234 
PERL5LIB=${WRKDIR}/etc/rt
+
+pre-test:
+       ${INSTALL_DATA_DIR} ${WRKDIR}/etc/rt
+       echo 1 > ${WRKDIR}/etc/rt/RT_Config.pm
 
 pre-configure:
        ${SUBST_CMD} ${WRKSRC}/sbin/rt-test-dependencies.in

Reply via email to