Re: [fpc-devel] Fppkg

2019-02-11 Thread Joost van der Sluis

Op 05-02-19 om 21:55 schreef Ben Grasset:
On Mon, Feb 4, 2019 at 9:53 AM Martok > wrote:


the first-ever fppkg.exe invocation on a machine


Do people actually use fppkg for anything? More specifically what is the 
point of integrating it with Lazarus, which already has the OPM?


Good question.

And I have two answers for you:

First: Fppkg has been integrated with Lazarus for over 10 years. It is 
part of FPC from since the nineties. It has never been used really, 
though. It had potential at the start, but it was too hard to get it 
working properly all the time. It was difficult to get it to compile 
Lazarus properly, due to all the strange exceptions in it's 
build-system. Mattias decided not to wait but to build Lazbuild. Making 
fppkg obsolete in some part. The same happened with OPM. Fppkg never 
gained popularity, and nowadays all Lazarus packages are distributed 
through OPM. So it's questionable what the reason of existing of Fppkg 
is at this moment.


Second: Lazbuild and OPM do only a part of what Fppkg/Fpmake are capable 
of. Remember that the FPC-universe does not only consists of Lazarus. 
For Fppkg/Fpmake, Lazarus is just one of the projects. And it is 
possible to compile (bootstrap) Lazarus using Fppkg, so it replaces 
'Make'. Lazbuild can not do this. (In principle it is possible to 
install Lazarus using 'fppkg install lazarus')
I often see discussions about a certain unit, if it should be part of 
Freepascal or Lazarus. Adding it to Fppkg is the solution. We can also 
use Fppkg to solve problems with bugs in Freepascal's packages between 
two fpc releases.
And about the online packages-part of Fppkg, in contradiction to OPM 
Fppkg has different repositories for different version of FPC. And it 
actually checks for packages if they compile before they can be 
submitted. Also when a package changes, all packages that depend on the 
changed package are recompiled (on several targets) to check if the 
compilation breaks. If this is the case, an update will be refused. 
(Well an administrator can override this, but let's keep it simple)
On moving compiler targets (fpc-trunk) the packages are checked for 
regularly.


So I still think it's worthwhile to work on Fppkg. And I'm really 
pleased with all the bug-reports regarding the invalid 
Fppkg-configurations. I hope that solving these issues now will lead to 
more correct fppkg-installations. That way it will be really possible to 
distribute updates of FPC-packages between FPC-releases.


Ok, I've tried to give a short answer, but it is still a lot of text. 
But I hope this will explain a bit of my motivation to work on the system.


Regards,

Joost.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg

2019-02-05 Thread Martok

> Do people actually use fppkg for anything?
Well, *I* dont't know anyone, and the recent stuffs certainly isn't any form of
incentive.

But apparently, fppkg is required to discover fpmake packages that fpc already
knows about, because... reasons?


(Disclaimer: I detest any form of package manager, so my opinions very much
*should* be void.)

-- 
Regards,
Martok


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg

2019-02-05 Thread John Doe
On Tue, Feb 5, 2019 at 3:55 PM Ben Grasset  wrote:

> Do people actually use fppkg for anything?
>

I've also been a bit confused about the recent Lazarus FPPKG work. As far
as I can tell all FPPKG itself actually does is connect to a repository
that contains roughly five outdated packages? Is there functionality I'm
missing?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg

2019-02-05 Thread Ben Grasset
On Mon, Feb 4, 2019 at 9:53 AM Martok  wrote:

> the first-ever fppkg.exe invocation on a machine
>

Do people actually use fppkg for anything? More specifically what is the
point of integrating it with Lazarus, which already has the OPM?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg

2019-02-04 Thread Martok
Am 04.02.2019 um 10:43 schrieb Alfred:
> Would it be possible to add (feature request) a local fppkg.cfg (like fpc.cgf)
> that contains these defaults paths, so they can be modified and used by
> the fppkg executable ? To distinguish between different installs.

May I add that ideally the Lazarus packager-fppkg interface would use the
fppkg.cfg local to $(CompPath). With a proper setup, one could make sure fpc.cfg
and fppkg-config do match - currently they will only agree for the compiler of
the first-ever fppkg.exe invocation on a machine (the one that creates
%LocalAppdata%\Freepascal\fppkg\config), hence break any time the compiler path
changes.

-- 
Regards,
Martok


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] Fppkg

2019-02-04 Thread Alfred

Hello,

When running (on Windows) "fppkg.exe listsettings", the output shows 
some global defaults for packages.


As maintainer of fpcupdeluxe, I am in favour of isolating different 
installs of FPC (and Lazarus).
Would it be possible to add (feature request) a local fppkg.cfg (like 
fpc.cgf) that contains these defaults paths, so they can be modified and 
used by the fppkg executable ? To distinguish between different 
installs.


Thanks.___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg web-client

2018-05-01 Thread Joost van der Sluis

Hi all,

I've the web-client for managing fppkg-packages in a web client running. 
I've added some packages and will add some more in the future.


It is possible to add your own packages if you want to, if you want to 
try, please contact me. I'll explain how to do so.


If you want to use the fppkg-repository, edit your fppkg.cfg file, and 
set remotemirrors to http://fpc.cnoc.nl/repo/testing/mirrors.xml.


Regards,

Joost.

Op 06-12-17 om 00:06 schreef Joost van der Sluis:

Hi all,

As some of you might know, I'm working for quite some time for something 
like a package-manager for fpc.


I'm working on a system on which you can build, test and upload 
packages. And which can be used to create the repository.


I'm using all kind of stuff which is new to me, which means that it 
progresses slowly, but it's a lot of fun.


The system is using some kind of micro-services-design, with an Angular 
client, Identityserver (Open ID Connect) for authentication, nginx to 
bind things together, docker to keep things apart and FPC to build some 
services.


What I have online now is only a system to test fppkg-packages. You can 
find it at http://fpc.cnoc.nl. Log in with 'Alice' and 'Password'. At 
the moment you can only test-built packages with it.


If you want to do more, check out the project at: 
https://svn.freepascal.org/svn/fpcprojects/fppkgreposerver/trunk


More information can be found here: 
https://svn.freepascal.org/cgi-bin/viewvc.cgi/fppkgreposerver/trunk/readme.md?view=markup=fpcprojects 



Regards,

Joost.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] Fppkg web-client

2017-12-05 Thread Joost van der Sluis

Hi all,

As some of you might know, I'm working for quite some time for something 
like a package-manager for fpc.


I'm working on a system on which you can build, test and upload 
packages. And which can be used to create the repository.


I'm using all kind of stuff which is new to me, which means that it 
progresses slowly, but it's a lot of fun.


The system is using some kind of micro-services-design, with an Angular 
client, Identityserver (Open ID Connect) for authentication, nginx to 
bind things together, docker to keep things apart and FPC to build some 
services.


What I have online now is only a system to test fppkg-packages. You can 
find it at http://fpc.cnoc.nl. Log in with 'Alice' and 'Password'. At 
the moment you can only test-built packages with it.


If you want to do more, check out the project at: 
https://svn.freepascal.org/svn/fpcprojects/fppkgreposerver/trunk


More information can be found here: 
https://svn.freepascal.org/cgi-bin/viewvc.cgi/fppkgreposerver/trunk/readme.md?view=markup=fpcprojects


Regards,

Joost.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg questions

2011-05-24 Thread Joost van der Sluis
On Sun, 2011-05-22 at 18:22 +0200, Darius Blaszyk wrote:
 On May 22, 2011, at 6:04 PM, Michael Van Canneyt wrote:
  
  While working on the lazarus GUI I could not find evidence that fppkg is 
  capable of supporting multiple repositories. As far as I can tell the 
  mirrors.xml is always downloaded from the freepascal server and only holds 
  some alternatives to get the packages from.
  I think it would be a nice feature if users could setup their own 
  repositories and only have to distribute a repository manifest file (or 
  URL) that will be merged with the local mirrors.xml, subsequently the 
  packages are automatically updated into packages.xml.
  Is this idea eligible for support before I start working on this?
  
  Having this was the idea from day one. Strange that you could not find this 
  ?
 Can you point out to me how this is supposed to work then?

This part is just missing. But can be added very easily, it is designed
is such a way that it can be implemented easily.

  I modified the mirrors.xml file manually but it got overwritten by the 
 version from the freepascal repository. How are you supposed to add 
 additional mirrors? Also the packages, how do you distinguish which package 
 comes from which mirror? I believe you when you say this was planned, but was 
 it implemented?

Actually, this part was modeled after yum, which is somewhat more
flexible and easier to setup.

What should be done is that you can specify which repository you do
support. There has to be a file which defines the repositories, it could
be something like this:

[FreePascal]
name=Free Pascal default Repository $fpcversion
mirrorlist=http://www.freepascal.org/repository/$fpcversion/mirrors.xml
#enabled=1

[Lazarus]
name=Free Pascal Lazarus Repository $fpcversion
mirrorlist=http://www.lazarus.freepascal.org/repository/$fpcversion/mirrors.xml
#enabled=1

Now fppkg has to download the mirrors.xml, with the mirrors for each
repository. And from there nothing changes.

It would be nice if more then one repository can be searched, using the
enabled switch, but that is for later.

Joost.
-- 
My Lazarus blog: http://www.lazarussupport.com/lazarus/weblog

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Fppkg questions

2011-05-22 Thread Darius Blaszyk
While working on the lazarus GUI I could not find evidence that fppkg is 
capable of supporting multiple repositories. As far as I can tell the 
mirrors.xml is always downloaded from the freepascal server and only holds some 
alternatives to get the packages from.
I think it would be a nice feature if users could setup their own repositories 
and only have to distribute a repository manifest file (or URL) that will be 
merged with the local mirrors.xml, subsequently the packages are automatically 
updated into packages.xml.
Is this idea eligible for support before I start working on this?

Additionally I have done some tests with SVNClasses from Vincent to add support 
to use sources directly from SVN as packages. So instead of zipping the sources 
and putting them on a FTP server somewhere you actually use a SVN path (eg tags 
for stable releases) for a package. This requires some additional properties to 
TFPMirrors (Protocol  to distinguish between downloading a zip or exporting 
SVN) and TFPPackage (Mirror  to be able to create the link between the package 
and the mirror).
I could create a simple patch for this feature so we can discuss implementation 
details later, but I wanted to discuss this high level first.

Regards, Darius___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg questions

2011-05-22 Thread Michael Van Canneyt



On Sun, 22 May 2011, Darius Blaszyk wrote:


While working on the lazarus GUI I could not find evidence that fppkg is 
capable of supporting multiple repositories. As far as I can tell the 
mirrors.xml is always downloaded from the freepascal server and only holds some 
alternatives to get the packages from.
I think it would be a nice feature if users could setup their own repositories 
and only have to distribute a repository manifest file (or URL) that will be 
merged with the local mirrors.xml, subsequently the packages are automatically 
updated into packages.xml.
Is this idea eligible for support before I start working on this?


Having this was the idea from day one. Strange that you could not find this ?

Additionally I have done some tests with SVNClasses from Vincent to add support to use sources directly from SVN as packages. 
So instead of zipping the sources and putting them on a FTP server somewhere you actually use a SVN path (eg tags for stable releases) 
for a package. This requires some additional properties to TFPMirrors (Protocol  to distinguish between downloading a zip or exporting SVN) 
and TFPPackage (Mirror  to be able to create the link between the package and the mirror).

I could create a simple patch for this feature so we can discuss implementation 
details later, but I wanted to discuss this high level first.


If the SVNClasses can be put in FPC, then this is not a problem and even a good 
idea.
If the support for SVN requires the use of Lazarus, then it cannot be put in 
fppkg.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg questions

2011-05-22 Thread Darius Blaszyk

On May 22, 2011, at 6:04 PM, Michael Van Canneyt wrote:

 
 
 On Sun, 22 May 2011, Darius Blaszyk wrote:
 
 While working on the lazarus GUI I could not find evidence that fppkg is 
 capable of supporting multiple repositories. As far as I can tell the 
 mirrors.xml is always downloaded from the freepascal server and only holds 
 some alternatives to get the packages from.
 I think it would be a nice feature if users could setup their own 
 repositories and only have to distribute a repository manifest file (or URL) 
 that will be merged with the local mirrors.xml, subsequently the packages 
 are automatically updated into packages.xml.
 Is this idea eligible for support before I start working on this?
 
 Having this was the idea from day one. Strange that you could not find this ?
Can you point out to me how this is supposed to work then? I modified the 
mirrors.xml file manually but it got overwritten by the version from the 
freepascal repository. How are you supposed to add additional mirrors? Also the 
packages, how do you distinguish which package comes from which mirror? I 
believe you when you say this was planned, but was it implemented?

 
 Additionally I have done some tests with SVNClasses from Vincent to add 
 support to use sources directly from SVN as packages. So instead of zipping 
 the sources and putting them on a FTP server somewhere you actually use a 
 SVN path (eg tags for stable releases) for a package. This requires some 
 additional properties to TFPMirrors (Protocol  to distinguish between 
 downloading a zip or exporting SVN) and TFPPackage (Mirror  to be able to 
 create the link between the package and the mirror).
 I could create a simple patch for this feature so we can discuss 
 implementation details later, but I wanted to discuss this high level first.
 
 If the SVNClasses can be put in FPC, then this is not a problem and even a 
 good idea.
 If the support for SVN requires the use of Lazarus, then it cannot be put in 
 fppkg.
 
 Michael.
 ___
 fpc-devel maillist  -  fpc-devel@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-devel

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg questions

2011-05-22 Thread Michael Van Canneyt



On Sun, 22 May 2011, Darius Blaszyk wrote:



On May 22, 2011, at 6:04 PM, Michael Van Canneyt wrote:




On Sun, 22 May 2011, Darius Blaszyk wrote:


While working on the lazarus GUI I could not find evidence that fppkg is 
capable of supporting multiple repositories. As far as I can tell the 
mirrors.xml is always downloaded from the freepascal server and only holds some 
alternatives to get the packages from.
I think it would be a nice feature if users could setup their own repositories 
and only have to distribute a repository manifest file (or URL) that will be 
merged with the local mirrors.xml, subsequently the packages are automatically 
updated into packages.xml.
Is this idea eligible for support before I start working on this?


Having this was the idea from day one. Strange that you could not find this ?

Can you point out to me how this is supposed to work then? I modified the
mirrors.xml file manually but it got overwritten by the version from the
freepascal repository.  How are you supposed to add additional mirrors? 
Also the packages, how do you distinguish which package comes from which

mirror?  I believe you when you say this was planned, but was it
implemented?


The idea at the time was to have a different fppkg configuration for each repository, 
not to have everything in 1 configuration.


I assume that you want something like apt-get, where there is a file with 
known repositories, and that fppkg scans all repositories.

I suppose that may be easier. If you have ideas how this can be done, I'm open 
for suggestions.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Fppkg questions

2011-05-22 Thread dhkblaszyk

The idea at the time was to have a different fppkg configuration for
each repository, not to have everything in 1 configuration.

I assume that you want something like apt-get, where there is a file
with known repositories, and that fppkg scans all repositories.
I suppose that may be easier. If you have ideas how this can be done,
I'm open for suggestions.


I'm exactly thinking along the lines of apt-get. Let me think about 
this and I will come back on it later.


I have now comitted the GUI for fppkg in ./lazarus/components/fppkg 
btw.


Regards, Darius
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg question

2011-05-14 Thread Joost van der Sluis
On Fri, 2011-05-13 at 13:18 +0200, Michael Van Canneyt wrote:
 
 On Fri, 13 May 2011, Darius Blaszyk wrote:
 
 
  On May 13, 2011, at 1:01 PM, Michael Van Canneyt wrote:
 
 
 
  On Fri, 13 May 2011, Darius Blaszyk wrote:
 
  All this info is supposed to be output in XML format from fpmake
  --manifest. fppkg picks it up and stores it in the repository.
 
  If you want to extend it to include a category and keywords, be my 
  guest.
 
  Thanks, that was the class indeed I was looking for to extend.
 
  I created a patch here: http://bugs.freepascal.org/view.php?id=19348
 
  Please review and commit if approved.
 
  Please rework the patch. I don't want the Error-ErrorFmt, Log-logFmt 
  changes.
  The overloaded versions exist on purpose.
  What is the alternative then? Any suggestion?
 
 Never mind. I fixed it myself. Rev 17440.

I don't like the 'laz_list' exception in pkghandler.pp. I don't want any
third-party-dependent code in fppkg. And binding on a specific name
isn't fine either. fppkg should be for general use, if you need
something special, use an add-in.
In this case it is probably also possible to come up with another
solution. (why is it for, anyway?)

Joost 

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg question

2011-05-14 Thread Darius Blaszyk

On May 14, 2011, at 12:26 PM, Joost van der Sluis wrote:

 On Fri, 2011-05-13 at 13:18 +0200, Michael Van Canneyt wrote:
 
 On Fri, 13 May 2011, Darius Blaszyk wrote:
 
 
 On May 13, 2011, at 1:01 PM, Michael Van Canneyt wrote:
 
 
 
 On Fri, 13 May 2011, Darius Blaszyk wrote:
 
 All this info is supposed to be output in XML format from fpmake
 --manifest. fppkg picks it up and stores it in the repository.
 
 If you want to extend it to include a category and keywords, be my 
 guest.
 
 Thanks, that was the class indeed I was looking for to extend.
 
 I created a patch here: http://bugs.freepascal.org/view.php?id=19348
 
 Please review and commit if approved.
 
 Please rework the patch. I don't want the Error-ErrorFmt, Log-logFmt 
 changes.
 The overloaded versions exist on purpose.
 What is the alternative then? Any suggestion?
 
 Never mind. I fixed it myself. Rev 17440.
 
 I don't like the 'laz_list' exception in pkghandler.pp. I don't want any
 third-party-dependent code in fppkg. And binding on a specific name
 isn't fine either. fppkg should be for general use, if you need
 something special, use an add-in.
 In this case it is probably also possible to come up with another
 solution. (why is it for, anyway?)

As far as I found, the list action get's cached in the ExecuteActions and if 
found the action is not executed, but rather the action is ignored. While 
perfectly suitable for fppkg which is only run once though and then exits, the 
GUI version stays active and can run the same actions multiple times.  This 
makes me think that I should probably create a Laz_ExecuteAction procedure and 
keep the original procedure in tact. I will create a patch for it.

Regards, Darius

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg question

2011-05-13 Thread Darius Blaszyk

On May 10, 2011, at 9:07 AM, dhkblas...@zeelandnet.nl 
dhkblas...@zeelandnet.nl wrote:

 On Tue, 10 May 2011 08:30:28 +0200 (CEST), Michael Van Canneyt 
 mich...@freepascal.org wrote:
 On Tue, 10 May 2011, Darius Blaszyk wrote:
 
 Hi,
 
 I've created a trivial front end for fppkg (see lazarus mailing list) but 
 working on this I realized that they are not grouped in any way. Currently 
 with approx. 70 packages this is not a real problem, but if the system will 
 get used more widely it will be impossible to deduct the purpose (and 
 possibly other info) from the package just by it's name.
 
 Therefore I would like to request a new command named info that retrieves 
 the info for a package from packages.xml. I would also like to add some 
 more info in this file for a package:
 
 - the topic that organizes the packages (FPC core / DB / buttons / charts / 
 dialogs / etc)
 - keywords to make it possible to search freely
 - support contact (official / community)
 
 See the following movie on youtube on a plugin system that has some of 
 these features: 
 http://www.youtube.com/watch?v=d9yyJmh3dyUfeature=player_embedded
 
 Are / were there any plans ever in this direction? Am I free to create a 
 couple of patches?
 
 It exists.
 
 If you look at fprepos.pp :
 
  TFPPackage = Class(TStreamCollectionItem)
Property Name : String Read FName Write SetName;
Property Author : String Read FAuthor Write FAuthor;
Property Version : TFPVersion Read FVersion Write SetVersion;
Property License : String Read FLicense Write FLicense;
Property Description : String Read FDescription Write FDescription;
Property HomepageURL : String Read FHomepageURL Write FHomepageURL;
Property DownloadURL : String Read FDownloadURL Write FDownloadURL;
Property FileName : String Read GetFileName Write FFileName;
Property Email : String Read FEmail Write FEmail;
  end
 
 The same information can be stored in the fpmake.pp file.
 
 All this info is supposed to be output in XML format from fpmake
 --manifest. fppkg picks it up and stores it in the repository.
 
 If you want to extend it to include a category and keywords, be my guest.
 
 Thanks, that was the class indeed I was looking for to extend.

I created a patch here: http://bugs.freepascal.org/view.php?id=19348

Please review and commit if approved.

Regards, Darius

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg question

2011-05-13 Thread Michael Van Canneyt



On Fri, 13 May 2011, Darius Blaszyk wrote:


All this info is supposed to be output in XML format from fpmake
--manifest. fppkg picks it up and stores it in the repository.

If you want to extend it to include a category and keywords, be my guest.


Thanks, that was the class indeed I was looking for to extend.


I created a patch here: http://bugs.freepascal.org/view.php?id=19348

Please review and commit if approved.


Please rework the patch. I don't want the Error-ErrorFmt, Log-logFmt changes.
The overloaded versions exist on purpose.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg question

2011-05-13 Thread Darius Blaszyk

On May 13, 2011, at 1:01 PM, Michael Van Canneyt wrote:

 
 
 On Fri, 13 May 2011, Darius Blaszyk wrote:
 
 All this info is supposed to be output in XML format from fpmake
 --manifest. fppkg picks it up and stores it in the repository.
 
 If you want to extend it to include a category and keywords, be my guest.
 
 Thanks, that was the class indeed I was looking for to extend.
 
 I created a patch here: http://bugs.freepascal.org/view.php?id=19348
 
 Please review and commit if approved.
 
 Please rework the patch. I don't want the Error-ErrorFmt, Log-logFmt 
 changes.
 The overloaded versions exist on purpose.
What is the alternative then? Any suggestion?

Darius___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg question

2011-05-13 Thread Michael Van Canneyt



On Fri, 13 May 2011, Darius Blaszyk wrote:



On May 13, 2011, at 1:01 PM, Michael Van Canneyt wrote:




On Fri, 13 May 2011, Darius Blaszyk wrote:


All this info is supposed to be output in XML format from fpmake
--manifest. fppkg picks it up and stores it in the repository.

If you want to extend it to include a category and keywords, be my guest.


Thanks, that was the class indeed I was looking for to extend.


I created a patch here: http://bugs.freepascal.org/view.php?id=19348

Please review and commit if approved.


Please rework the patch. I don't want the Error-ErrorFmt, Log-logFmt changes.
The overloaded versions exist on purpose.

What is the alternative then? Any suggestion?


Never mind. I fixed it myself. Rev 17440.

You'll have to adapt the Lazarus callback, though. 
I added 'Const' to the parameter and changed the callback names to LogHandler/ErrorHandler.


Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg question

2011-05-10 Thread Michael Van Canneyt



On Tue, 10 May 2011, Darius Blaszyk wrote:


Hi,

I've created a trivial front end for fppkg (see lazarus mailing list) but 
working on this I realized that they are not grouped in any way. Currently with 
approx. 70 packages this is not a real problem, but if the system will get used 
more widely it will be impossible to deduct the purpose (and possibly other 
info) from the package just by it's name.

Therefore I would like to request a new command named info that retrieves the 
info for a package from packages.xml. I would also like to add some more info in this 
file for a package:

- the topic that organizes the packages (FPC core / DB / buttons / charts / 
dialogs / etc)
- keywords to make it possible to search freely
- support contact (official / community)

See the following movie on youtube on a plugin system that has some of these 
features: http://www.youtube.com/watch?v=d9yyJmh3dyUfeature=player_embedded

Are / were there any plans ever in this direction? Am I free to create a couple 
of patches?


It exists.

If you look at fprepos.pp :

  TFPPackage = Class(TStreamCollectionItem)
Property Name : String Read FName Write SetName;
Property Author : String Read FAuthor Write FAuthor;
Property Version : TFPVersion Read FVersion Write SetVersion;
Property License : String Read FLicense Write FLicense;
Property Description : String Read FDescription Write FDescription;
Property HomepageURL : String Read FHomepageURL Write FHomepageURL;
Property DownloadURL : String Read FDownloadURL Write FDownloadURL;
Property FileName : String Read GetFileName Write FFileName;
Property Email : String Read FEmail Write FEmail;
  end

The same information can be stored in the fpmake.pp file.

All this info is supposed to be output in XML format from fpmake --manifest. 
fppkg picks it up and stores it in the repository.

If you want to extend it to include a category and keywords, be my guest.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg question

2011-05-10 Thread dhkblaszyk
On Tue, 10 May 2011 08:30:28 +0200 (CEST), Michael Van Canneyt 
mich...@freepascal.org wrote:

On Tue, 10 May 2011, Darius Blaszyk wrote:


Hi,

I've created a trivial front end for fppkg (see lazarus mailing 
list) but working on this I realized that they are not grouped in any 
way. Currently with approx. 70 packages this is not a real problem, 
but if the system will get used more widely it will be impossible to 
deduct the purpose (and possibly other info) from the package just by 
it's name.


Therefore I would like to request a new command named info that 
retrieves the info for a package from packages.xml. I would also like 
to add some more info in this file for a package:


- the topic that organizes the packages (FPC core / DB / buttons / 
charts / dialogs / etc)

- keywords to make it possible to search freely
- support contact (official / community)

See the following movie on youtube on a plugin system that has some 
of these features: 
http://www.youtube.com/watch?v=d9yyJmh3dyUfeature=player_embedded


Are / were there any plans ever in this direction? Am I free to 
create a couple of patches?


It exists.

If you look at fprepos.pp :

  TFPPackage = Class(TStreamCollectionItem)
Property Name : String Read FName Write SetName;
Property Author : String Read FAuthor Write FAuthor;
Property Version : TFPVersion Read FVersion Write SetVersion;
Property License : String Read FLicense Write FLicense;
Property Description : String Read FDescription Write 
FDescription;
Property HomepageURL : String Read FHomepageURL Write 
FHomepageURL;
Property DownloadURL : String Read FDownloadURL Write 
FDownloadURL;

Property FileName : String Read GetFileName Write FFileName;
Property Email : String Read FEmail Write FEmail;
  end

The same information can be stored in the fpmake.pp file.

All this info is supposed to be output in XML format from fpmake
--manifest. fppkg picks it up and stores it in the repository.

If you want to extend it to include a category and keywords, be my 
guest.


Thanks, that was the class indeed I was looking for to extend.

Darius

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] fppkg question

2011-05-09 Thread Darius Blaszyk
Hi,

I've created a trivial front end for fppkg (see lazarus mailing list) but 
working on this I realized that they are not grouped in any way. Currently with 
approx. 70 packages this is not a real problem, but if the system will get used 
more widely it will be impossible to deduct the purpose (and possibly other 
info) from the package just by it's name. 

Therefore I would like to request a new command named info that retrieves the 
info for a package from packages.xml. I would also like to add some more info 
in this file for a package:

- the topic that organizes the packages (FPC core / DB / buttons / charts / 
dialogs / etc) 
- keywords to make it possible to search freely
- support contact (official / community)

See the following movie on youtube on a plugin system that has some of these 
features: http://www.youtube.com/watch?v=d9yyJmh3dyUfeature=player_embedded

Are / were there any plans ever in this direction? Am I free to create a couple 
of patches?

Regards, Darius___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg testing

2009-08-13 Thread Michael Van Canneyt



On Wed, 12 Aug 2009, Marco van de Voort wrote:


In our previous episode, Michael Van Canneyt said:

for fpGUI and DUnit2 and maybe even tiOPF.

I'll look in the latest documentation in SVN if there is some more details
regarding fpkpg and maybe it answers some of my questions.


No documentation yet, I didn't get around to that. But it's planned before the
2.4 release.


Is that still on schedule? Nothing much happened with fpmake for quite a
while?


Documentation ? No problem there.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg testing

2009-08-13 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said:
 
  No documentation yet, I didn't get around to that. But it's planned before 
  the
  2.4 release.
 
  Is that still on schedule? Nothing much happened with fpmake for quite a
  while?
 
 Documentation ? No problem there.

More feature-completeness.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] fppkg testing

2009-08-12 Thread Graeme Geldenhuys

Hi,

Currently there is only one package available when I do the following


$ fppkg list
Name InstalledAvailable
lnet -0.6.3-0


How do we install other packages?

Where do they go?

In what format are they? Zip? tar.gz?

I did a fppkg download lnet. Where did it download that package too?


My idea is to test this package thingy a bit more and maybe create 
packages for fpGUI and DUnit2 and maybe even tiOPF.


I'll look in the latest documentation in SVN if there is some more 
details regarding fpkpg and maybe it answers some of my questions.




Regards,
  - Graeme -

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg testing

2009-08-12 Thread Michael Van Canneyt



On Wed, 12 Aug 2009, Graeme Geldenhuys wrote:


Hi,

Currently there is only one package available when I do the following


$ fppkg list
Name InstalledAvailable
lnet -0.6.3-0


How do we install other packages?


Currently, not yet. It is a test.
Later on: with a registration procedure on the website.



Where do they go?


That will depend on the website :-)



In what format are they? Zip? tar.gz?


zip.



I did a fppkg download lnet. Where did it download that package too?


~/.fppkg/




My idea is to test this package thingy a bit more and maybe create packages 
for fpGUI and DUnit2 and maybe even tiOPF.


I'll look in the latest documentation in SVN if there is some more details 
regarding fpkpg and maybe it answers some of my questions.


No documentation yet, I didn't get around to that. But it's planned before the
2.4 release.

Michael.





Regards,
 - Graeme -

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fppkg testing

2009-08-12 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said:
  for fpGUI and DUnit2 and maybe even tiOPF.
 
  I'll look in the latest documentation in SVN if there is some more details 
  regarding fpkpg and maybe it answers some of my questions.
 
 No documentation yet, I didn't get around to that. But it's planned before the
 2.4 release.

Is that still on schedule? Nothing much happened with fpmake for quite a
while?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel