Re: [Oorexx-devel] File missing in build on Fedora?

2019-11-18 Thread P.O. Jonsson

> Am 18.11.2019 um 21:44 schrieb Erich Steinböck :
> 
>   I get two errors that are related to a missing file dateparser.cls
> 
> Hi P.O.,
> I just committed a change to the RPM spec file (untested)
> Can you please check (you need to rerun cmake) if this is fixed?
> Thanks!
> 
FIXED. Thanks! /P.O.

[osboxes@fedora31 ~]$ rexx
bash: rexx: command not found...
[osboxes@fedora31 ~]$ rexx

Syntax is "rexx filename [arguments]"
or"rexx -e program_string [arguments]"
or"rexx -v".
[osboxes@fedora31 ~]$ rexx -v
Open Object Rexx Version 5.0.0 r11943
Build date: Nov 18 2019
Addressing mode: 64
Copyright (c) 1995, 2004 IBM Corporation. All rights reserved.
Copyright (c) 2005-2019 Rexx Language Association. All rights reserved.
This program and the accompanying materials are made available under the terms
of the Common Public License v1.0 which accompanies this distribution or at
http://www.oorexx.org/license.html
[osboxes@fedora31 ~]$ cd workspace
[osboxes@fedora31 workspace]$ rexx rexxtry
REXX-ooRexx_5.0.0(MT)_64-bit 6.05 18 Nov 2019
  rexxtry.rex lets you interactively try REXX statements.
Each string is executed when you hit Enter.
Enter 'call tell' for a description of the features.
  Go on - try a few...Enter 'exit' to end.
say 'Hello'
Hello
  ... rexxtry.rex on LINUX
exit
[osboxes@fedora31 workspace]$ rexx rexxcps
- REXXCPS 2.1 -- Measuring REXX clauses/second -
 REXX version is: REXX-ooRexx_5.0.0(MT)_64-bit 6.05 18 Nov 2019
   System is: LINUX
   Averaging: 100 measures of 100 iterations

Total (full DO): 0.01868830 secs (average of 100 measures of 100 iterations)
Time for one iteration (1000 clauses) was: 0.000186883 seconds

 Performance: 5350942 REXX clauses per second

[osboxes@fedora31 workspace]$ bash testooRexx.sh
Updating '.':
At revision 11943.
Setting env for Linux

/home/osboxes/workspace/oorexx-fedora31-test:/home/osboxes/workspace/oorexx-fedora31-test/framework:/home/osboxes/.local/bin:/home/osboxes/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin

/home/osboxes/workspace/oorexx-fedora31-test/bin/LINUX:

REXX-ooRexx_5.0.0(MT)_64-bit 6.05 18 Nov 2019 r11943
Searching for test containers...
Executing automated test suite
Executing .../ooRexx/SimpleTests.testGroup
Executing .../ooRexx/base/bif/ABBREV.testGroup
Executing .../ooRexx/base/bif/ABS.testGroup
Executing .../ooRexx/base/bif/ADDRESS.testGroup
Executing .../ooRexx/base/bif/ARG.testGroup
Executing .../ooRexx/base/bif/B2X.testGroup
Executing .../ooRexx/base/bif/BEEP.testGroup
Executing .../ooRexx/base/bif/BITAND.testGroup
Executing .../ooRexx/base/bif/BITOR.testGroup
Executing .../ooRexx/base/bif/BITXOR.testGroup
Executing .../ooRexx/base/bif/C2D.testGroup
Executing .../ooRexx/base/bif/C2X.testGroup
Executing .../ooRexx/base/bif/CENTER.testGroup
Executing .../ooRexx/base/bif/CENTRE.testGroup
Executing .../ooRexx/base/bif/CHANGESTR.testGroup
Executing .../ooRexx/base/bif/CHARIN.testGroup
Executing .../ooRexx/base/bif/CHAROUT.testGroup
 Executing .../ooRexx/base/bif/CHARS.testGroup
Executing .../ooRexx/base/bif/COMPARE.testGroup
Executing .../ooRexx/base/bif/CONDITION.testGroup
Executing .../ooRexx/base/bif/COPIES.testGroup
Executing .../ooRexx/base/bif/COUNTSTR.testGroup
Executing .../ooRexx/base/bif/D2C.testGroup
Executing .../ooRexx/base/bif/D2X.testGroup
Executing .../ooRexx/base/bif/DATATYPE.testGroup
Executing .../ooRexx/base/bif/DATE.testGroup
Executing .../ooRexx/base/bif/DELSTR.testGroup
Executing .../ooRexx/base/bif/DELWORD.testGroup
Executing .../ooRexx/base/bif/DIGITS.testGroup
Executing .../ooRexx/base/bif/ERRORTEXT.testGroup
Executing .../ooRexx/base/bif/FILESPEC.testGroup
Executing .../ooRexx/base/bif/FORM.testGroup
Executing .../ooRexx/base/bif/FORMAT.testGroup
Executing .../ooRexx/base/bif/FUZZ.testGroup
Executing .../ooRexx/base/bif/INSERT.testGroup
Executing .../ooRexx/base/bif/LASTPOS.testGroup
Executing .../ooRexx/base/bif/LEFT.testGroup
Executing .../ooRexx/base/bif/LENGTH.testGroup
Executing .../ooRexx/base/bif/LINEIN.testGroup
Executing .../ooRexx/base/bif/LINEOUT.testGroup
Executing .../ooRexx/base/bif/LINES.testGroup
Executing .../ooRexx/base/bif/LOWER.testGroup
Executing .../ooRexx/base/bif/MAX.testGroup
Executing .../ooRexx/base/bif/MIN.testGroup
Executing .../ooRexx/base/bif/OVERLAY.testGroup
Executing .../ooRexx/base/bif/POS.testGroup
Executing .../ooRexx/base/bif/QUALIFY.testGroup
Executing .../ooRexx/base/bif/QUEUED.testGroup
Executing .../ooRexx/base/bif/RANDOM.testGroup
Executing .../ooRexx/base/bif/REVERSE.testGroup
Executing .../ooRexx/base/bif/RIGHT.testGroup
Executing .../ooRexx/base/bif/RXQUEUE.testGroup
Executing .../ooRexx/base/bif/SIGN.testGroup
Executing .../ooRexx/base/bif/SOURCELINE.testGroup
Executing .../ooRexx/base/bif/SPACE.testGroup
Executing .../ooRexx/base/bif/STREAM.testGroup
Executing .../ooRexx/base/bif/STREAM.testGroup
Executing 

Re: [Oorexx-devel] ooRexx on Fedora

2019-11-18 Thread Enrico Sorichetti via Oorexx-devel


> On 18 Nov 2019, at 21:41, Erich Steinböck  wrote:
> 
> Would you want to provide a CMakeLists.txt patch that changes our build to a 
> setup using `include(GNUInstallDirs)` as you once proposed?

Hi Erich,
I will be glad to do it, it will take a bit of time,  some code changes  will 
be needed,
Some directories/paths ( lib certainly ) are hardcoded , and will have to be 
defined according to the GNUInstallDirs logic
By passing the proper -D…… constructs

Enrico


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] File missing in build on Fedora?

2019-11-18 Thread Erich Steinböck
>
>   I get two errors that are related to a missing file dateparser.cls
>

Hi P.O.,
I just committed a change to the RPM spec file (untested)
Can you please check (you need to rerun cmake) if this is fixed?
Thanks!
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] ooRexx on Fedora

2019-11-18 Thread Erich Steinböck
 Hi Enrico,

The proper default install directory for all the unix like systems should
> be /usr/local
> The /usr directory should be updated only and I confirm ONLY by rpms /
> debs  BUILT and CERTIFIED by the system maintainers
>

I agree (though it should still be possible to override the default).
Would you want to provide a CMakeLists.txt patch that changes our build to
a setup using `include(GNUInstallDirs)` as you once proposed?
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] ooRexx on Fedora

2019-11-18 Thread P.O. Jonsson
> Try changing the variable: CPACK_RPM_PACKAGE_LICENSE from "CPL 1.0" to "CPL" 
> in CMakeLists.txt and re-running the cmake command and below.
> 
Ok now it looks better. Should I file a bug report? Should it not state the 
actual License, i.e. CPL?



> BTW You should not have to run "sudo make install" 
> 
Ok this time built on Fedora29 without the make install and copied to Fedora31 
and installed.
> Cheers, Mark
> 
Cheers, P.O.

> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] ooRexx on Fedora

2019-11-18 Thread Enrico Sorichetti via Oorexx-devel
Hi Mark 

> On 18 Nov 2019, at 11:14, Mark Hessling  wrote:
> BTW You should not have to run "sudo make install" 

All depends on the CMAKE_INSTALL_PREFIX

Unfortunately the install prefix choices are completely wrong IMO

The proper default install directory for all the unix like systems should be 
/usr/local 

The /usr directory should be updated only and I confirm ONLY by rpms / debs  
BUILT and CERTIFIED by the system maintainers 

Hi P.O

Just two silly questions ( sorry for asking )

Are You running the test using the rexx in the build path 
Or from the installed Rexx

In the first case did You remember to …  source setTestEnv.sh

The date parser.cls is installed in the bin directory

Cheers

Enrico


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] ooRexx on Fedora

2019-11-18 Thread P.O. Jonsson
Ok I will do that and come back.

For my understanding: should I leave out the sudo make install completely or 
just the sudo? My understanding was that the install step was mandatory, is it 
possible to create a package WITHOUT installing first?

Sorry but still a CMAKE noob.

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se




> Am 18.11.2019 um 11:14 schrieb Mark Hessling :
> 
> Hi P.O,
> 
> Try changing the variable: CPACK_RPM_PACKAGE_LICENSE from "CPL 1.0" to "CPL" 
> in CMakeLists.txt and re-running the cmake command and below.
> 
> BTW You should not have to run "sudo make install" 
> Cheers, Mark
> On 18/11/19 8:03 pm, P.O. Jonsson wrote:
>> I have bin testing ooRexx on Fedora 29, 30 and 31.  With r11942 I can build 
>> & create a rpm package on Fedora29 that can be installed and runs fine on 
>> Fedora30 and 31. The test suite also runs fine, with only two errors.
>> 
>> However, when I look at the installer, it reports the license as 
>> „Proprietary“ which I think is wrong for an Open Source Project :-)
>> 
>> I assume this boils down to something that needs to be changed in 
>> CMakelists.txt.
>> 
>> Here are my build steps:
>> 
>> cd ~/workspace/oorexx-fedora29-build/oorexxSVN
>> svn update
>> pkill rxapi
>> rm -dfr ~/workspace/oorexx-fedora29-build/oorexxbuild/*
>> cd ~/workspace/oorexx-fedora29-build/oorexxbuild
>> cmake -DBUILD_RPM=1 -DOS_DIST=fedora29 -DCMAKE_BUILD_TYPE=RELEASE 
>> ../oorexxSVN
>> make clean
>> make
>> sudo make install
>> cpack ./
>> 
>> After this build on Fedora29 I copied the rpm file generated and installed 
>> it on Fedora30/31 by simply clicking on it. The installed ooRexx performs as 
>> it should (with the two errors, I deal with that in a separate mail).
>> 
>> Here is how it looks, clicking on „Launch“ will start rexxtry and the text 
>> looks ok, only the  License button looks incorrect.
>> 
>> 
>> 
>> 
>> 
>> Hälsningar/Regards/Grüsse,
>> P.O. Jonsson
>> oor...@jonases.se 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> Oorexx-devel mailing list
>> Oorexx-devel@lists.sourceforge.net 
>> 
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel 
>> 
> -- 
> 
> * Mark Hessling, m...@rexx.org  http://www.rexx.org/ 
> 
> * Author of THE, a Free XEDIT/KEDIT editor and, Rexx/SQL, Rexx/CURL, etc.
> * Maintainer of Regina Rexx interpreter
> * Use Rexx? join the Rexx Language Association: http://www.rexxla.org/ 
>  
> 
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] File missing in build on Fedora?

2019-11-18 Thread P.O. Jonsson
revision 11942 on all Fedora 29 30 31

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se



> Am 18.11.2019 um 11:07 schrieb P.O. Jonsson :
> 
> When running the test suite on Fedora for  I get two errors that are related 
> to a missing file dateparser.cls, see below. I do not have this error on 
> macOS so I guess it is restricted to Linux. Can someone please have a look?
> 
> For the rest ooRexx runs fine on Fedora 29 30 and 31 for me.
> 
> ooTest Framework - Automated Test of the ooRexx Interpreter
> 
> Interpreter:REXX-ooRexx_5.0.0(MT)_64-bit 6.05 17 Nov 2019
> OS Name:LINUX
> SysVersion: Linux 5.3.11-300.fc31.x86_64
> 
> Tests ran:  22775
> Assertions: 379524
> Failures:   0
> Errors: 2
> 
> [Framework exception] [20191118 02:42:47.621299]
>   Type: Trap Severity: Fatal
>   File: .../ooRexx/extensions/dateparser/DateFormatter.testGroup
>   Line: 2140
>   Initial call of test container failed
>   Condition: SYNTAX
> Could not find file "dateparser.cls" for ::REQUIRES.
> File: .../ooRexx/extensions/dateparser/DateFormatter.testGroup
> Line: 55
>   55 *-* ::requires 'dateparser.cls'
> 2140 *-* call (file) self~testTypes
> 2088 *-*   container = self~getContainer(fileName)
>   81 *-* containers = finder~seek(testResult)
>   79 *-* retCode = 'worker.rex'(arguments)
> 
> [Framework exception] [20191118 02:42:47.625174]
>   Type: Trap Severity: Fatal
>   File: .../ooRexx/extensions/dateparser/DateParser.testGroup
>   Line: 2140
>   Initial call of test container failed
>   Condition: SYNTAX
> Could not find file "dateparser.cls" for ::REQUIRES.
> File: .../ooRexx/extensions/dateparser/DateParser.testGroup
> Line: 55
>   55 *-* ::requires 'dateparser.cls'
> 2140 *-* call (file) self~testTypes
> 2088 *-*   container = self~getContainer(fileName)
>   81 *-* containers = finder~seek(testResult)
>   79 *-* retCode = 'worker.rex'(arguments)
> 
> Interpreter:REXX-ooRexx_5.0.0(MT)_64-bit 6.05 17 Nov 2019
> OS Name:LINUX
> SysVersion: Linux 5.3.11-300.fc31.x86_64
> 
> Tests ran:  22775
> Assertions: 379524
> Failures:   0
> Errors: 2
> 
> File search:00:00:01.625722
> Suite construction: 00:00:01.532095
> Test execution: 00:03:11.929320
> Total time: 00:03:15.500434
> 
> [osboxes@fedora31 oorexx-fedora31-test]$ 
> 
> 
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se <mailto:oor...@jonases.se>
> 
> 
> 
> 
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] File missing in build on Fedora?

2019-11-18 Thread P.O. Jonsson
When running the test suite on Fedora for  I get two errors that are related to 
a missing file dateparser.cls, see below. I do not have this error on macOS so 
I guess it is restricted to Linux. Can someone please have a look?

For the rest ooRexx runs fine on Fedora 29 30 and 31 for me.

ooTest Framework - Automated Test of the ooRexx Interpreter

Interpreter:REXX-ooRexx_5.0.0(MT)_64-bit 6.05 17 Nov 2019
OS Name:LINUX
SysVersion: Linux 5.3.11-300.fc31.x86_64

Tests ran:  22775
Assertions: 379524
Failures:   0
Errors: 2

[Framework exception] [20191118 02:42:47.621299]
  Type: Trap Severity: Fatal
  File: .../ooRexx/extensions/dateparser/DateFormatter.testGroup
  Line: 2140
  Initial call of test container failed
  Condition: SYNTAX
Could not find file "dateparser.cls" for ::REQUIRES.
File: .../ooRexx/extensions/dateparser/DateFormatter.testGroup
Line: 55
  55 *-* ::requires 'dateparser.cls'
2140 *-* call (file) self~testTypes
2088 *-*   container = self~getContainer(fileName)
  81 *-* containers = finder~seek(testResult)
  79 *-* retCode = 'worker.rex'(arguments)

[Framework exception] [20191118 02:42:47.625174]
  Type: Trap Severity: Fatal
  File: .../ooRexx/extensions/dateparser/DateParser.testGroup
  Line: 2140
  Initial call of test container failed
  Condition: SYNTAX
Could not find file "dateparser.cls" for ::REQUIRES.
File: .../ooRexx/extensions/dateparser/DateParser.testGroup
Line: 55
  55 *-* ::requires 'dateparser.cls'
2140 *-* call (file) self~testTypes
2088 *-*   container = self~getContainer(fileName)
  81 *-* containers = finder~seek(testResult)
  79 *-* retCode = 'worker.rex'(arguments)

Interpreter:REXX-ooRexx_5.0.0(MT)_64-bit 6.05 17 Nov 2019
OS Name:LINUX
SysVersion: Linux 5.3.11-300.fc31.x86_64

Tests ran:  22775
Assertions: 379524
Failures:   0
Errors: 2

File search:00:00:01.625722
Suite construction: 00:00:01.532095
Test execution: 00:03:11.929320
Total time: 00:03:15.500434

[osboxes@fedora31 oorexx-fedora31-test]$ 


Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se




___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel