Recent

Author Topic: Online Package Manager  (Read 835864 times)

mdbs99

  • Full Member
  • ***
  • Posts: 121
  • Software Engineer. Husband. Trader.
    • website
Re: Online Package Manager
« Reply #1485 on: January 04, 2019, 02:05:11 am »
Hi GetMem,

If I understood well, I could have my own repositories (zip files) made by us (team), getting the sources from original repositories.
The private repository for OPM could be just a folder in our network?

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1486 on: January 04, 2019, 05:34:40 am »
@mdbs99
Quote
If I understood well, I could have my own repositories (zip files) made by us (team), getting the sources from original repositories.
Yes.

Quote
The private repository for OPM could be just a folder in our network?
You have to set up a local http server, then copy all the zip files + the "packagelist.json" in a single directory. Both the zip files and the "packagelist.json" is created automatically by OPM.

mdbs99

  • Full Member
  • ***
  • Posts: 121
  • Software Engineer. Husband. Trader.
    • website
Re: Online Package Manager
« Reply #1487 on: January 04, 2019, 12:16:06 pm »
Ok @GetMem, thanks!

minesadorada

  • Sr. Member
  • ****
  • Posts: 452
  • Retired
Re: Online Package Manager
« Reply #1488 on: January 07, 2019, 11:51:49 am »
Hi @GetMem,
I just tested my (written in 2014) "Example Non-Visual component" in Lazarus 2.x FPC 3.x and it still compiles and installs OK, so can we add it to OPM please?
Zip files and json are in https://svn.code.sf.net/p/lazarus-ccr/svn/components/examplecomponent/latest_stable/updates/
Wiki page: http://wiki.lazarus.freepascal.org/Lazarus_Nongraphical_Visual_Component_Example_Code
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

mdbs99

  • Full Member
  • ***
  • Posts: 121
  • Software Engineer. Husband. Trader.
    • website
Re: Online Package Manager
« Reply #1489 on: January 07, 2019, 12:05:15 pm »
I'm thinking if it is possible to point to directly to, for example, a Github project. When the author release a new version, it exists as a .zip file. The only thing that is missing is the .json on those repositories, if I understood right
So, each project author that would like to show its project on OPM could just put the .json file in their repository. Then we can just point to there and if OPM find that file, it will be included automatically.

What do you think?

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1490 on: January 07, 2019, 01:45:15 pm »
@minesadorada
Quote
I just tested my (written in 2014) "Example Non-Visual component" in Lazarus 2.x FPC 3.x and it still compiles and installs OK, so can we add it to OPM please?
Zip files and json are in https://svn.code.sf.net/p/lazarus-ccr/svn/components/examplecomponent/latest_stable/updates/
Wiki page: http://wiki.lazarus.freepascal.org/Lazarus_Nongraphical_Visual_Component_Example_Cod|
Done. Thanks for the new package.


@mdbs99
Quote
I'm thinking if it is possible to point to directly to, for example, a Github project. When the author release a new version, it exists as a .zip file. The only thing that is missing is the .json on those repositories, if I understood right
So, each project author that would like to show its project on OPM could just put the .json file in their repository. Then we can just point to there and if OPM find that file, it will be included automatically.
This feature is already implemented. The steps are described here: http://wiki.freepascal.org/Online_Package_Manager#Create_JSON_for_updates
For more details please check attached screenshot. 
« Last Edit: January 07, 2019, 01:47:32 pm by GetMem »

jujibo

  • Full Member
  • ***
  • Posts: 114
Re: Online Package Manager
« Reply #1491 on: January 09, 2019, 05:02:15 pm »
Hi @GetMem

Jujiboutils package version in Online Package Manager is 2.1.0 (released in 2014). There is a new version (2.3.0) since 2017. Is possible to update OPM with the new version?  https://sourceforge.net/projects/lazarus-ccr/files/Jujiboutils/

Thanks.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1492 on: January 10, 2019, 06:24:09 am »
Hi jujibo,
Quote
Jujiboutils package version in Online Package Manager is 2.1.0 (released in 2014). There is a new version (2.3.0) since 2017. Is possible to update OPM with the new version?  https://sourceforge.net/projects/lazarus-ccr/files/Jujiboutils/
Thanks for the feedback. I updated the central repository. When you release a new version please let me know, so I can update in OPM.

jujibo

  • Full Member
  • ***
  • Posts: 114
Re: Online Package Manager
« Reply #1493 on: January 10, 2019, 09:51:56 am »
Hi jujibo,
Quote
Jujiboutils package version in Online Package Manager is 2.1.0 (released in 2014). There is a new version (2.3.0) since 2017. Is possible to update OPM with the new version?  https://sourceforge.net/projects/lazarus-ccr/files/Jujiboutils/
Thanks for the feedback. I updated the central repository. When you release a new version please let me know, so I can update in OPM.

I'll do it. Thank you!

af0815

  • Hero Member
  • *****
  • Posts: 1288
Re: Online Package Manager
« Reply #1494 on: January 10, 2019, 09:11:48 pm »
Today building of Lazarus (fpc fixes 32/ Lazarus fixes 2.0 - win32 - with fpcupdeluxe) with OPM stops with the following error
C:\Data\lazdev\fixes32_fixes20\lazarus\components\virtualtreeview\VirtualTrees.pas(772,19) Error: (5042) No matching implementation for interface method "SetData(const tagFORMATETC;var TagSTGMEDIUM;LongBool):LongInt; StdCall;" found
C:\Data\lazdev\fixes32_fixes20\lazarus\components\virtualtreeview\VirtualTrees.pas(4022,1) Fatal: (10026) There were 1 errors compiling module, stopping

Build Lazarus without OPM works. Rebuild of Lazarus with OPM fails too.

Any hint ?
regards
Andreas

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1495 on: January 10, 2019, 09:18:39 pm »
Hi Andreas,

It's most likely related to: https://bugs.freepascal.org/view.php?id=34804, but let's wait for @wp because I don't know any details about the issue.

af0815

  • Hero Member
  • *****
  • Posts: 1288
Re: Online Package Manager
« Reply #1496 on: January 10, 2019, 09:31:40 pm »
Ok, i have found the issue:

marco  07.01.2019 11:18:39
--- Merging r40745 into '.':
U    packages/winunits-base/src/activex.pp
--- Recording mergeinfo for merge of r40745 into '.':
 U   .

# revisions: 40745
-----------
The interfacedefinition in FPC have changed, VTV is impacted by this. You have to change the second const into var (Parameter) and it works for me now.

Edit: It is fixed in laz-trunk but not backported to fixes2.0 yet.

Edit2:
in the bugreport 34804 wp writes
Quote
Will not be backported to Laz 2.0 which comes with fpc 3.0.4 and thus is not affected.

upcoming Laz 2.0 is affected if you use the fpc-fixes 3.2. Actual you cannot use OPM/VTV with fpc-fixes 3.2
« Last Edit: January 11, 2019, 05:42:07 am by af0815 »
regards
Andreas

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1497 on: January 11, 2019, 06:26:42 am »
@af0815
Quote
in the bugreport 34804 wp writes
Quote
Will not be backported to Laz 2.0 which comes with fpc 3.0.4 and thus is not affected.
upcoming Laz 2.0 is affected if you use the fpc-fixes 3.2. Actual you cannot use OPM/VTV with fpc-fixes 3.2
It's already in the merge list for RC4(see r60024): http://wiki.freepascal.org/Lazarus_2.0_fixes_branch#Submitted_by_developer_.2F_committer.2C_tested.2C_waiting_to_be_merged

wp

  • Hero Member
  • *****
  • Posts: 11853
Re: Online Package Manager
« Reply #1498 on: January 11, 2019, 09:19:33 am »
The reason why I did not want it to be merged at first was that the fix affects all widgetsets, and I can test only a few of them. Your argument that you cannot use fpc-fixes 3.2, however, is valid and therefore I put it on the merge list yesterday. But please, anybody: absolutely report when Laz does not build on any widgetset.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1499 on: January 11, 2019, 09:34:57 am »
In my opinion your changes are safe. I don't see why different widgetset would behave differently in this context. More over you did it with ifdef, so Lazarus 2.0 with FPC 3.0.4 is not effected.

 

TinyPortal © 2005-2018