Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Chavoux Luyt
+1

On 17 September 2012 07:39, Reinier Olislagers
reinierolislag...@gmail.comwrote:

 MML's post on stable islands has made me think.

 Below some ideas for discussion:
 If we want to know whether a certain combination of
 OS+FPC+Lazarus+packages is stable, we:
 1. should ask the user
 2. don't trust him completely though and we should get measurements

 Short-term action
 =
 I suggest we can create a Lazarus GUI that
 - asks the user how stable he thinks Lazarus is
 - collects test measurement data (see below)
 The GUI can then display the results, save them for the user's own use
 (import in database etc), and upload to a central web page

 The GUI could run these tests:
 - compiler test suite. Custom test code; results available as XML, IIRC.
 - FPC database tests (e.g. for bufdataset, memds, sdfdataset, perhaps
 test Firebird embedded, sqlite, as well as any specified in the user's
 database.ini). These are fpcunit tests; can spit out e.g. XML
 - any other fpc tests written with fpcunit
 - Lazarus non-GUI tests (can't remember what data format these have)

 Medium-term action
 ==
 - Have FPC report not only version but also SVN revision (much like
 lazarus does in help/about) so that data can be used to pinpoint exactly
 what version is used if checked out from SVN (e.g. trunk)
 - Write small cross platform database application to collect, read in
 test results into database; useful for user's own use
 - Similar but for a central web site. Web page with results could be
 done much like the compiler test suite page
 - Extend FPC fpcunit tests for packages (both in coverage and number of
 packages tested)
 - Extend Lazarus non-GUI tests (e.g. fill stringgrid, save as csv, load
 from csv, compare grid contents). Perhaps even a policy/behaviour
 change: no new units accepted without relevant tests (of course where
 feasible)
 - Extend packages so that there is a self-test possibility: the GUI
 mentioned above) and/or IDE shoul run unit tests in the packages and get
 the resutls. Example: Lazreport creates sample report, outputs to file,
 and compares file contents with expected contents

 Extending the test suites etc. would aid in regression testing as long
 as attention is paid to the trend in test faults.

 What do you think?

 Thanks,
 Reinier

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Vincent Snijders
2012/9/17 Reinier Olislagers reinierolislag...@gmail.com:
 MML's post on stable islands has made me think.
 - Have FPC report not only version but also SVN revision (much like
 lazarus does in help/about) so that data can be used to pinpoint exactly
 what version is used if checked out from SVN (e.g. trunk)

This is already available in the compiler, if you use fpc -iW.

You might not see it in the current installers, because they are built
from svn exported directories, to increase stability in building.

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Process ID

2012-09-17 Thread Michael Schnell

On 09/14/2012 09:26 PM, Marco van de Voort wrote:
Yeah. Everybody doing his own parsing of system textfiles is *such* a 
good principle to build durable applications on *g* --

Haha,


Of course it is good that script file programmers can use standard text 
parsing methods to access system information. But Of course dedicated 
binary Kernel api calls for all this do exist for more sophisticated 
purposes.


Now any programmer can decide what to use when.

- Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Ludo Brands
 This is already available in the compiler, if you use fpc -iW.
 
 You might not see it in the current installers, because they 
 are built from svn exported directories, to increase 
 stability in building.
 

What is the use of displaying the svn revision if it doesn't work when
building fpc from svn?

Ludo


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Vincent Snijders
2012/9/17 Ludo Brands ludo.bra...@free.fr:
 This is already available in the compiler, if you use fpc -iW.

 You might not see it in the current installers, because they
 are built from svn exported directories, to increase
 stability in building.


 What is the use of displaying the svn revision if it doesn't work when
 building fpc from svn?

None, that is why it is not shown now.

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Mattias Gaertner
On Mon, 17 Sep 2012 09:32:46 +0200
Vincent Snijders vincent.snijd...@gmail.com wrote:

 2012/9/17 Reinier Olislagers reinierolislag...@gmail.com:
  MML's post on stable islands has made me think.
  - Have FPC report not only version but also SVN revision (much like
  lazarus does in help/about) so that data can be used to pinpoint exactly
  what version is used if checked out from SVN (e.g. trunk)
 
 This is already available in the compiler, if you use fpc -iW.

With -iW I only get the fpc version, not the svn revision.

 
 You might not see it in the current installers, because they are built
 from svn exported directories, to increase stability in building.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Vincent Snijders
2012/9/17 Mattias Gaertner nc-gaert...@netcologne.de:
 With -iW I only get the fpc version, not the svn revision.

vincent@fpclin32:~/src/fpc/trunk$ compiler/ppc386 -iW
2.7.1-r1:22243

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Mattias Gaertner
On Mon, 17 Sep 2012 10:55:27 +0200
Vincent Snijders vincent.snijd...@gmail.com wrote:

 2012/9/17 Mattias Gaertner nc-gaert...@netcologne.de:
  With -iW I only get the fpc version, not the svn revision.
 
 vincent@fpclin32:~/src/fpc/trunk$ compiler/ppc386 -iW
 2.7.1-r1:22243

$ ./compiler/ppcx64 -iW
2.7.1

Maybe it must be compiled with some special flag?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Mark Morgan Lloyd

Vincent Snijders wrote:

2012/9/17 Reinier Olislagers reinierolislag...@gmail.com:

MML's post on stable islands has made me think.
- Have FPC report not only version but also SVN revision (much like
lazarus does in help/about) so that data can be used to pinpoint exactly
what version is used if checked out from SVN (e.g. trunk)


This is already available in the compiler, if you use fpc -iW.

You might not see it in the current installers, because they are built
from svn exported directories, to increase stability in building.


Does that include untagged snapshots?

Are there cases where one or more files associated with a tagged version 
aren't in fact locked down? For example, if a file being worked on 
hasn't yet been committed to svn?


It is possible to look at either the files associated with a tagged 
version or the repository and to determine unambiguously what revision 
it was created at?


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Graeme Geldenhuys

On 17/09/12 09:48, Mattias Gaertner wrote:


With -iW I only get the fpc version, not the svn revision.



Same here, but I thought maybe it is because I use the git mirror, 
instead of SubVersion directly.



Regards,
  - Graeme -


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Graeme Geldenhuys

On 17/09/12 09:55, Vincent Snijders wrote:


vincent@fpclin32:~/src/fpc/trunk$ compiler/ppc386 -iW
2.7.1-r1:22243



What does the 'r1' part mean?  Surely not Revision 1?


  Graeme.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild on IBM Power6 (OpenSuse Linux)

2012-09-17 Thread Mark Morgan Lloyd

Leonardo M. Ramé wrote:

As I must deploy a Lazarus CGI on this machine, an IBM 560 with a
PowerPC processor using OpenSuse Linux, and I'm getting some Access
Violations on places where the x86-64 works ok, I'm offering access to
this machine to the Lazarus developers.

Then machine has Gnome 2.x (from 2006) installed, but I didn't tested,
since I don't need it, I just have to log in using SSH, compile my app
and run it.

I've installed FPC 2.7.1 from sources and Lazarus also from sources. 


If anyone is interested in helping me with this, I can give a user/pass.


Reality check for the record please: is this 64- or 32-bit? Also 
assuming FPC and Lazarus both trunk, what revision numbers?


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

On 17/09/12 09:55, Vincent Snijders wrote:


vincent@fpclin32:~/src/fpc/trunk$ compiler/ppc386 -iW
2.7.1-r1:22243



What does the 'r1' part mean?  Surely not Revision 1?


I believe the colon indicates a range.

Actually, I'm failing to see the revision even with versions that I'm 
pretty sure I've built from svn:


0 2markMLl@pye-dev-01:~$ ppcsparc-2.7.1 -iW
2.7.1

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Graeme Geldenhuys

On 17/09/12 10:46, Mark Morgan Lloyd wrote:

vincent@fpclin32:~/src/fpc/trunk$ compiler/ppc386 -iW
2.7.1-r1:22243


I believe the colon indicates a range.


Yes, I understand the colon syntax used by SubVersion, but why a range 
of 1–22243? This make no sense to me. So that's why I'm wonder what the 
'r1' could really mean.



Regards,
  - Graeme -


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Version info

2012-09-17 Thread Antonio Fortuny

Hi all.

When building a program or a library with Lazarus I can embed in the 
resulting program (or library) version information (project properties, 
version tab).
In a Windows environment I can retrieve this information using the 
properties option on the explorer right click.


Do you know someting similar I can use in Linux to display the version 
information either for a normal program or a library (.so) ?


Thanks,

Antonio.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Vincent Snijders
2012/9/17 Mattias Gaertner nc-gaert...@netcologne.de:
 On Mon, 17 Sep 2012 10:55:27 +0200
 Vincent Snijders vincent.snijd...@gmail.com wrote:

 2012/9/17 Mattias Gaertner nc-gaert...@netcologne.de:
  With -iW I only get the fpc version, not the svn revision.

 vincent@fpclin32:~/src/fpc/trunk$ compiler/ppc386 -iW
 2.7.1-r1:22243

 $ ./compiler/ppcx64 -iW
 2.7.1

 Maybe it must be compiled with some special flag?


If the file compiler/revision.inc exists, it is updated during
compilation with the output of svnversion -c and included in the
compiler executable.

So before doing make all, do touch revision.inc

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild on IBM Power6 (OpenSuse Linux)

2012-09-17 Thread Leonardo M . Ramé
On 2012-09-17 09:18:22 +, Mark Morgan Lloyd wrote:
 Leonardo M. Ramé wrote:
 As I must deploy a Lazarus CGI on this machine, an IBM 560 with a
 PowerPC processor using OpenSuse Linux, and I'm getting some Access
 Violations on places where the x86-64 works ok, I'm offering access to
 this machine to the Lazarus developers.
 
 Then machine has Gnome 2.x (from 2006) installed, but I didn't tested,
 since I don't need it, I just have to log in using SSH, compile my app
 and run it.
 
 I've installed FPC 2.7.1 from sources and Lazarus also from
 sources.
 
 If anyone is interested in helping me with this, I can give a user/pass.
 
 Reality check for the record please: is this 64- or 32-bit? Also
 assuming FPC and Lazarus both trunk, what revision numbers?
 

Here's the info:

uname -a: Linux linux-uftu 2.6.16.60-0.21-ppc64 #1 SMP Tue May 6 12:41:02 UTC 
2008
ppc64 ppc64 ppc64 GNU/Linux

FPC rev. 22377
Lazarus rev. 38627


-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild on IBM Power6 (OpenSuse Linux)

2012-09-17 Thread Chavoux Luyt
Hi Leonardo

On 17 September 2012 13:53, Leonardo M. Ramé l.r...@griensu.com wrote:

 On 2012-09-17 09:18:22 +, Mark Morgan Lloyd wrote:
  Leonardo M. Ramé wrote:

  I've installed FPC 2.7.1 from sources and Lazarus also from
  sources.
  

Just one question: Are you sure Lazarus works with FPC2.7.1? I got the idea
that it only works with FPC2.6? I might be wrong and it might not be a
problem when installing from source, though. Just an idea to check.

Cheers
Chavoux
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Ludo Brands
 If the file compiler/revision.inc exists, it is updated 
 during compilation with the output of svnversion -c and 
 included in the compiler executable.
 
 So before doing make all, do touch revision.inc
 
On windows:

make clean all

Results in 

version.pas(99,3) Error: Illegal expression
version.pas(103) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[5]: *** [ppc386.exe] Error 1

revision.inc is empty. 

Ludo


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Vincent Snijders
2012/9/17 Ludo Brands ludo.bra...@free.fr:
 Results in

What is result of svnversion -c on your computer?


 version.pas(99,3) Error: Illegal expression
 version.pas(103) Fatal: There were 1 errors compiling module, stopping
 Fatal: Compilation aborted
 make[5]: *** [ppc386.exe] Error 1

 revision.inc is empty.

Ask on fpc-pascal or submit a fpc bug report.

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild on IBM Power6 (OpenSuse Linux)

2012-09-17 Thread Leonardo M . Ramé
On 2012-09-17 14:02:30 +0200, Chavoux Luyt wrote:
Hi Leonardo
 
On 17 September 2012 13:53, Leonardo M. Ramé [1]l.r...@griensu.com
wrote:
 
  On 2012-09-17 09:18:22 +, Mark Morgan Lloyd wrote:
   Leonardo M. Ramé wrote:
     
   I've installed FPC 2.7.1 from sources and Lazarus also from
   sources.
   
 
Just one question: Are you sure Lazarus works with FPC2.7.1? I got the
idea that it only works with FPC2.6? I might be wrong and it might not be
a problem when installing from source, though. Just an idea to check.
Cheers
Chavoux
 

Chavoux, yes, at least it works in my Ubuntu Linux x64, even cross
compiling to Win32.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Version info

2012-09-17 Thread Alexsander Rosa
Version Info Unit:
http://www.lazarus.freepascal.org/index.php/topic,12435.msg63887.html#msg63887


2012/9/17 Antonio Fortuny a.fort...@sitasoftware.lu

 Hi all.

 When building a program or a library with Lazarus I can embed in the
 resulting program (or library) version information (project properties,
 version tab).
 In a Windows environment I can retrieve this information using the
 properties option on the explorer right click.

 Do you know someting similar I can use in Linux to display the version
 information either for a normal program or a library (.so) ?

 Thanks,

 Antonio.


 --
 __**_
 Lazarus mailing list
 Lazarus@lists.lazarus.**freepascal.orgLazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarushttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




-- 
Atenciosamente,
Alexsander da Rosa
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TAChart and legend items

2012-09-17 Thread ik
Hello,

How can I make sure that the Legend of TAChart breaks each item to
it's own line ?
At the moment it seems like it just try to align everything into one line

Thanks,

Ido

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Version info

2012-09-17 Thread Antonio Fortuny



Le 17/09/2012 15:18, Alexsander Rosa a écrit :

Version Info Unit:
http://www.lazarus.freepascal.org/index.php/topic,12435.msg63887.html#msg63887
I've already my own routines to get the program (or library) version 
numbers from Windows.

The sources commented on that forum look like Windows too.
My concern is about Linux.




2012/9/17 Antonio Fortuny a.fort...@sitasoftware.lu
mailto:a.fort...@sitasoftware.lu

Hi all.

When building a program or a library with Lazarus I can embed in the
resulting program (or library) version information (project
properties, version tab).
In a Windows environment I can retrieve this information using the
properties option on the explorer right click.

Do you know someting similar I can use in Linux to display the
version information either for a normal program or a library (.so) ?

Thanks,

Antonio.


--
_
Lazarus mailing list
Lazarus@lists.lazarus.__freepascal.org
mailto:Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.__freepascal.org/mailman/__listinfo/lazarus
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
Atenciosamente,
Alexsander da Rosa




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TAChart and legend items

2012-09-17 Thread ik
On Mon, Sep 17, 2012 at 4:55 PM, ik ido...@gmail.com wrote:
 Hello,

 How can I make sure that the Legend of TAChart breaks each item to
 it's own line ?

Answering myself : the problem was that I added columncount of two

 At the moment it seems like it just try to align everything into one line

 Thanks,

 Ido

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Version info

2012-09-17 Thread Graeme Geldenhuys

On 17/09/12 15:57, Alexsander Rosa wrote:

software, I usually add a --version command line option.
When called with --version the program outputs the version and terminate.


Same here. Under Linux, that is all you can do (as far as I know). No 
desktop environment (like KDE, Gnome, XFCE etc) has a Version 
Information tab in the file properties.


As for libraries, Linux (and most *nix systems) have a well established 
naming convention where the version number is part of the filename. I 
find this actually better than Windows - thus you can have multiple 
versions installed at the same time.


eg:
   libfbclient-2.0.so
   libfbclient-2.5.2.so


Regards,
  - Graeme -


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Version info

2012-09-17 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

On 17/09/12 15:57, Alexsander Rosa wrote:

software, I usually add a --version command line option.
When called with --version the program outputs the version and 
terminate.


Same here. Under Linux, that is all you can do (as far as I know). No 
desktop environment (like KDE, Gnome, XFCE etc) has a Version 
Information tab in the file properties.


As for libraries, Linux (and most *nix systems) have a well established 
naming convention where the version number is part of the filename. I 
find this actually better than Windows - thus you can have multiple 
versions installed at the same time.


eg:
   libfbclient-2.0.so
   libfbclient-2.5.2.so


I sympathise with the OP though: the Lazarus IDE has facilities to 
insert version information, so how can you get at that even if it means 
running the program (without necessarily displaying a form etc.) to 
extract it?


And for that matter, how can one merge svn information into it? :-)

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Version info

2012-09-17 Thread Graeme Geldenhuys

On 17/09/12 17:06, Mark Morgan Lloyd wrote:


I sympathise with the OP though: the Lazarus IDE has facilities to
insert version information, so how can you get at that even if it means


Yeah, those options are pretty pointless on any platform - except Windows.



And for that matter, how can one merge svn information into it? :-)


All my apps, linux  windows, gui  console, supports a --version 
parameter. When I want to include repository information like SHA1 (git) 
or Revision (svn), then I use include files that set a value for a 
version constant. I do the same for the FPC version.


For example, here are some constants for one of my apps...

NOTE the formatting for FPC version and application compiled date. They 
are like macros.



  cMajorVersion = 3;
  cMinorVersion = 0;
  cBuildVersion: string = {$I revision.inc} // '006-rc1';
  cCompileDateTime: string  = {$I %date%} + ' ' + {$I %time%};
  cFPCVersion: string  = {$I %fpcversion%};
  // Name + cMajorVersion + cMinorVersion + Build + cBuildVersion
  cAppNameFormatStr = '%s v%d.%2.2d (%s %s)';
  // Name + cMajorVersion + cMinorVersion + Centre
  cAppNameCentreFormatStr   = '%s v%d.%2.2d - [%s]';
  cAppNameCGI   = '%s v%d.%2.2d';


I also have a VERSION-GEN script that gets executed before I do a Build 
All. It generates output as shown below, which I normally pipe into a 
*.inc file, and get set as a constant in my application.


 '3.0.12.9.gbcfb.dirty';

This gives me lots of information:
   3  - major version
   0  - minor version
  12  - build number
   9  - commits since the last released version (v3.0.12)
   gbcfb - the SHA1 value of the last commit in my git repository
   (if you don't know git, this is live a revision number)
   dirty - this tells me the build was made, but I had local changes
   that wasn't committed in the repository yet.

The next released version will be v3.0.13 - we don't really use the 
minor version number in our company software. The formatting string 
above shows how we display version information to the end-user.


Regards,
  - Graeme -


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Version info

2012-09-17 Thread Michael Van Canneyt



On Mon, 17 Sep 2012, Antonio Fortuny wrote:




Le 17/09/2012 16:12, Alexsander Rosa a écrit :

It works on Linux.
Indeed. My problem is to obtain the same information for any other file and 
not only for my own one. Again for this I already have some other functions.


what if, the version prgram is vpgm and I do:
vpgm /folder/progs/anotherprogram
for which I do not have a handle and is even not loaded.

As the function to get the resources works with the handle, this will not 
work anyway. same for a library which cannot be launched on its own.


? The fileinfo unit distributed with FPC can do it for any file that has 
resources compiled in.
It's currently only deployed on windows, but I have a modified version that 
works on any platform.

All it needs is the filename. Note that on non-windows, the file you open 
must have FPC-style (i.e. windows style) version info compiled-in.


Michael.




Antonio.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TAChart transparency implementation questions

2012-09-17 Thread Alexander Klenin
This is a re-post of
http://forum.lazarus.freepascal.org/index.php/topic,18051.0.html
where I report on newly added transparency support in TAChart
and ask some questions.

I suspect that most of people who could answer do not read the forum,
so questions are copied below. Apologies to those who already read it.

1) Transparency support for the canvas drawer is quite a hack: see source.
  
https://github.com/graemeg/lazarus/blob/f320da3d4b5b72de7df7055ec1004def71db3693/components/tachart/tadrawercanvas.pas#L293
  Is there a better way? (I think not, but maybe I missed something).
Is it portable enough?
2) Is there a way to support transparency at the TFPCustomCanvas
level? (Again, I think not)
3) Are there any plans for transparency support in FPVectorial?
4) Does anyone have any idea about possibility to support transparency
on printer canvas?


-- 
Alexander S. Klenin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazbuild on IBM Power6 (OpenSuse Linux)

2012-09-17 Thread Mattias Gaertner
On Mon, 17 Sep 2012 14:02:30 +0200
Chavoux Luyt chav...@gmail.com wrote:

 Hi Leonardo
 
 On 17 September 2012 13:53, Leonardo M. Ramé l.r...@griensu.com wrote:
 
  On 2012-09-17 09:18:22 +, Mark Morgan Lloyd wrote:
   Leonardo M. Ramé wrote:
 
   I've installed FPC 2.7.1 from sources and Lazarus also from
   sources.
   
 
 Just one question: Are you sure Lazarus works with FPC2.7.1? I got the idea
 that it only works with FPC2.6? I might be wrong and it might not be a
 problem when installing from source, though. Just an idea to check.

There were some fpc 2.7.1 revisions that didn't work with Lazarus, but
usually and currently it does.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Stable islands: testing stability

2012-09-17 Thread Ludo Brands
 What is result of svnversion -c on your computer?
 

1:22412M

 
  version.pas(99,3) Error: Illegal expression
  version.pas(103) Fatal: There were 1 errors compiling 
 module, stopping
  Fatal: Compilation aborted
  make[5]: *** [ppc386.exe] Error 1
 
  revision.inc is empty.
 
 Ask on fpc-pascal or submit a fpc bug report.
 

Will do,

Ludo


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus