Recent

Author Topic: Online Package Manager  (Read 839962 times)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Online Package Manager
« Reply #600 on: December 23, 2016, 12:08:40 am »
I noticed this forum already before but did not try the package manager yet.
From the screenshot I can see there is KControls 1.7. This is last "stable", but very old already.
(I still don't have everything ready what I planned for KControls 1.8 )
You can release a bug fix dot-release, say 1.7.5.

Quote
Is there any option to add a link to the repository for the included package (to give the option to download newer version) or maybe to its forum as well?
You should create a repository package of your new KControls 1.7.5 release and send it to GetMem.
See:
http://wiki.freepascal.org/Online_Package_Manager#Create_repository_package

It is important that package maintainers provide them. Otherwise this will not work well in years to come.
Please everybody advertise this to package authors.
« Last Edit: December 23, 2016, 12:10:35 am by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #601 on: December 23, 2016, 09:39:21 am »
@lainz
I added the packages. Thanks! I also fixe BGRABitmap in the central repository by adding LCLPlatformDef to the uses clauses for BGRAText unit. Apparently some things where moved around lately. Since BGRABitmap is used a lot, I thought I fix it.

Quote
These maybe will not be updated a lot so for now I will not mantain an external json.
That's ok. The update feature is a possibility not mandatory.


PS: I also updated KControls to the latest version.

tk

  • Sr. Member
  • ****
  • Posts: 361
Re: Online Package Manager
« Reply #602 on: December 23, 2016, 10:38:46 am »
@tk Hi there. Thanks for your good work. Is KControls 1.8 ready for production use?

Not yet. I still need some time to implement planned features.

@GetMem, @Juha, @minesadorada:
Thank you all, I'll try the OPM and see what I can do.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Online Package Manager
« Reply #603 on: December 23, 2016, 11:25:19 am »
@tk Hi there. Thanks for your good work. Is KControls 1.8 ready for production use?

Not yet. I still need some time to implement planned features.

OK. Noted!
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #604 on: December 23, 2016, 04:04:55 pm »
Thanks GetMem, almost 50 packages available as single click installation.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Online Package Manager
« Reply #605 on: December 23, 2016, 06:46:23 pm »
I also fixe BGRABitmap in the central repository by adding LCLPlatformDef to the uses clauses for BGRAText unit. Apparently some things where moved around lately. Since BGRABitmap is used a lot, I thought I fix it.
Yes.
 http://wiki.freepascal.org/Lazarus_1.8.0_release_notes#TLCLPlatform_definition_was_moved
Did you offer the fix to the master BGRABitmap sources, too?
I admire your enthusiasm but you are essentially forking the original package's code now. In some other situation it can create a mess and the changes in your fork are overwritten.
The online repository should be used for delivering, not forking, existing packages.

Quote
PS: I also updated KControls to the latest version.
I still see version 1.7. I understood it is the latest version so far.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Online Package Manager
« Reply #606 on: December 23, 2016, 06:58:09 pm »
The OPM client creates a 100% CPU load for one processor core. It looks like OnIdle load because it does not slow anything down, but it will kill laptop batteries quickly.
I did not study the code (yet) for possible reasons.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #607 on: December 23, 2016, 07:00:06 pm »
I can fix the bgrabitmap pack but I need some help, adding that unit (LCLPlatformDef) to uses clause makes the package don't compile in Lazarus 1.6.

Any ideas? It will work in Lazarus 1.8, so I need something in the uses clause that adds the unit only in 1.8 or 1.7 trunk, never in 1.6.x

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #608 on: December 23, 2016, 07:43:20 pm »
@Juha
Quote
The OPM client creates a 100% CPU load for one processor core. It looks like OnIdle load because it does not slow anything down, but it will kill laptop batteries quickly.
Fixed in r. 53769. Please test.

@lainz
Quote
Any ideas? It will work in Lazarus 1.8, so I need something in the uses clause that adds the unit only in 1.8 or 1.7 trunk, never in 1.6.x
Code: Pascal  [Select][+][-]
  1. {$IF LCL_FULLVERSION >= 1070000} LCLPlatformDef; {$ENDIF}
I also must add to the one in central repository.

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #609 on: December 23, 2016, 07:52:42 pm »
Code: Pascal  [Select][+][-]
  1. {$IF LCL_FULLVERSION >= 1070000} LCLPlatformDef; {$ENDIF}

Hi GetMem, I tried with your code but it gives me an error, with FPC 3.0
Code: Pascal  [Select][+][-]
  1. bgratext.pas(35,7) Error: Incompatible types: got "AnsiString" expected "Int64"
« Last Edit: December 23, 2016, 07:54:44 pm by lainz »

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #610 on: December 23, 2016, 08:02:53 pm »
@lainz
I mean like this(BGRAtext.pas):
Code: Pascal  [Select][+][-]
  1. //...
  2. uses
  3.   Classes, Types, SysUtils, BGRAGraphics, BGRABitmapTypes, InterfaceBase, BGRAPen,
  4.   {$IF LCL_FULLVERSION >= 1070000} LCLPlatformDef,{$ENDIF} BGRAGrayscaleMask;  
  5. //...
  6.  

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #611 on: December 23, 2016, 08:09:41 pm »
I know. I did that, but again the compiler gives me the same error.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Online Package Manager
« Reply #612 on: December 23, 2016, 09:36:46 pm »
Code: Pascal  [Select][+][-]
  1. {$IF LCL_FULLVERSION >= 1070000} LCLPlatformDef; {$ENDIF}
Hi GetMem, I tried with your code but it gives me an error, with FPC 3.0
Code: Pascal  [Select][+][-]
  1. bgratext.pas(35,7) Error: Incompatible types: got "AnsiString" expected "Int64"
I am getting the same error when the IF condition is in the interface section. It works when it is in the implementation section.
It must be a bug in FPC 3.0. Does anybody know about it?
« Last Edit: December 23, 2016, 09:55:53 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #613 on: December 23, 2016, 09:41:47 pm »
Add LCLVersion to the first uses, then it works in the second one:
Code: Pascal  [Select][+][-]
  1. uses GraphType, Math, BGRABlend, BGRAUTF8, {$IF LCL_FULLVERSION > 1060000} LCLPlatformDef{$ENDIF};
and you must use ">" instead of ">= " since ">=" won't work in FPC 3.1.1. I have no idea why.

http://forum.lazarus.freepascal.org/index.php/topic,34297.msg229826.html#msg229826
« Last Edit: December 23, 2016, 09:43:33 pm by GetMem »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Online Package Manager
« Reply #614 on: December 23, 2016, 09:55:08 pm »
Add LCLVersion to the first uses, then it works in the second one:
Code: Pascal  [Select][+][-]
  1. uses GraphType, Math, BGRABlend, BGRAUTF8, {$IF LCL_FULLVERSION > 1060000} LCLPlatformDef{$ENDIF};
Yes, then it works in the implementation uses section.
I tried to have both LCLVersion and the IF condition in interface uses section. Doesn't work!

Quote
and you must use ">" instead of ">= " since ">=" won't work in FPC 3.1.1. I have no idea why.
It must be a bug. Somebody should report it.

Quote
Fixed in r. 53769. Please test.
Works well now. Thanks.
« Last Edit: December 23, 2016, 10:07:42 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018