Dear Massimo,

the rpm buildscript just makes a basic test with a file included in the
demo folder of Rivet. Maybe, this demo folder does not exist any more.

So lets look:

Log:
[   81s] -----------------------------------------------------------
[   81s] APACHE MODULE TEST
[   81s]
[   81s] modules to load:     mime rivet
[   81s] configs to include:  mod_rivet.conf
[   81s] Will load mime_module /usr/lib64/apache2/mod_mime.so
[   81s] Will load rivet_module
/home/abuild/rpmbuild/BUILDROOT/apache2-mod_rivet-3.0.1-1.1.x86_64/usr/lib64/apache2/mod_rivet.so
[   81s] Will include
/home/abuild/rpmbuild/BUILDROOT/apache2-mod_rivet-3.0.1-1.1.x86_64/etc/apache2/conf.d/mod_rivet.conf
[   83s] Starting Apache ... FAILED,
/tmp/apache2-mod_rivet-test/error_log: >&2
[   83s] [Thu Feb 15 22:29:42.562197 2018] [rivet:error] [pid 6765]
(20014)Internal error (specific information not available): mod_rivet:
could not read rivet default handler
[   83s] See /tmp/apache2-mod_rivet-test for details

So that is the code:

# exit code from the %check phase (0 means success)
exit_code=0
# package is not installed during %check phase, need to redirect to
%{buildroot}%{rivetdir}
export TCLLIBPATH="%{buildroot}%{rivetdir}"
# create test DocumentRoot for apache instance;
# %{apache_test_module_dir} is not created until now too
mkdir -p %{apache_test_module_dir}/test-document-root
# copy example doc to test DocumentRoot
cp doc/examples/table.rvt %{apache_test_module_dir}/test-document-root
# start test apache instance with mod_mime and (just built) mod_rivet
loaded, include
# native mod_rivet.conf and with DocumentRoot at
%{apache_test_module_dir}/test-document-root
%apache_test_module_start_apache -m mime:rivet -r
%{apache_test_module_dir}/test-document-root -i mod_rivet.conf

Does anybody see any issue?

Danilo Chang has copied the spec file, removed the test and has put it
on his account:
https://build.opensuse.org/package/show/home:danilochang/apache2-mod_rivet
The result is a successful build.

Maybe, that is a way to go...

Thank you,
Harald

Am 10.02.2018 um 09:51 schrieb Massimo Manghi:
> Thank you Harald
> 
> the error is raised by a failed attempt to read a file, actually a Tcl
> script, which is not 'sourced', it's read and stored in memory
> 
> The problem could arise from a structural flawed design of the test
> suite as I have developed it from its original functionalities:
> basically you need to install rivet in order to be able to test it. I
> can't make out exactly what the SuSE build service does, but I suspect
> the environment is not perfectly set up when the test runs.
> 
> A better test suite could be a goal for this year
> 
>  -- Massimo
> 
> 
> On 02/09/2018 08:49 PM, Harald Oehlmann wrote:
>> Hi Massimo,
>>
>> thank you !
>>
>> I have tried to put it on open build service.
>>
>> It builds well but a test fails (on SuSE Tumbleweed):
>>
>> [   53s] Will load mime_module /usr/lib64/apache2/mod_mime.so
>> [   53s] Will load rivet_module
>> /home/abuild/rpmbuild/BUILDROOT/apache2-mod_rivet-3.0.1-1.1.x86_64/usr/lib64/apache2/mod_rivet.so
>>
>> [   53s] Will include
>> /home/abuild/rpmbuild/BUILDROOT/apache2-mod_rivet-3.0.1-1.1.x86_64/etc/apache2/conf.d/mod_rivet.conf
>>
>> [   55s] Starting Apache ... FAILED,
>> /tmp/apache2-mod_rivet-test/error_log: >&2
>> [   55s] [Fri Feb 09 19:39:39.340521 2018] [rivet:error] [pid 6704]
>> (20014)Internal error (specific information not available): mod_rivet:
>> could not read rivet default handler
>> [   55s] See /tmp/apache2-mod_rivet-test for details
>> [   55s] FAILED, /tmp/apache2-mod_rivet-test/error_log:
>> [   55s] [Fri Feb 09 19:39:39.340521 2018] [rivet:error] [pid 6704]
>> (20014)Internal error (specific information not available): mod_rivet:
>> could not read rivet default handler
>>
>> Maybee, many things changed since 2.x...
>>
>> So, the install command is:
>>
>> if [ -x %{_sbindir}/a2enmod ]
>> then
>>          if ! a2enmod -q rivet; then
>>                  a2enmod rivet
>>          fi
>> fi
>>
>> Rivet conf file:
>>
>> # Let the module handle .rvt and .tcl files.
>> AddType application/x-httpd-rivet  rvt
>> AddType application/x-rivet-tcl    tcl
>>
>> # The default charset can be specified in the configuration
>> AddType "application/x-httpd-rivet; charset=utf-8" rvt
>>
>> # Add index.rvt to the list of files that will be served
>> DirectoryIndex index.rvt
>>
>> The full log is attached.
>>
>> Thanks for any help to the occacional worker...
>>
>> Enjoy,
>> Harald
>>
>> Am 09.02.2018 um 19:18 schrieb Massimo Manghi:
>>> I just released rivet 3.0.1 and should be available soon from the ASF
>>> distribution. This bugfix release basically includes
>>>
>>>   * the namespace determination in librivet has been revised to
>>>     avoid to check for the module globals and therefore avoiding
>>>     the inclusion of mod_rivet.h
>>>
>>>   * a few details in the worker bridge have been fixed
>>>
>>>   * the lazy bridge has been extensively commented
>>>
>>>   * documentation has been expanded and corrected in various sections
>>>
>>>   -- Massimo
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
>>> For additional commands, e-mail: rivet-dev-h...@tcl.apache.org


-- 
ELMICRON Dr. Harald Oehlmann GmbH
Koesener Str. 85
06618 NAUMBURG - Germany
Phone: +49 (0)3445 78112-0
Fax: +49 (0)3445 78112-19
www.Elmicron.de
German legal references:
Geschaeftsfuehrer: Dr. Harald Oehlmann, Jens Oehlmann
UST Nr. / VAT ID No.: DE206105272
HRB 212803 Stendal

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to