Recent

Author Topic: Online Package Manager  (Read 836255 times)

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: Online Package Manager
« Reply #1605 on: April 28, 2019, 06:37:07 pm »
Quote
Hmm, maybe the problem is the FPC version?
I added the package to OPM, with the mention that FPC Trunk needed(see attached image).
Wouldn't it be required additionally that the FPC version is checked when the installation is started; and when the version does not fit the installation should be aborted with a clear error message about the version mismatch instead of some FPC message occuring later during compilation.

BTW, I wonder why so many users and component authors are so eager for the latest FPC version.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #1606 on: April 28, 2019, 06:41:00 pm »
Because it has fixes we need to work in our applications?

Switched to 2.0 fixes stable FPC when a bugfix to OpenSSL was needed. Switched back to trunk.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1607 on: April 28, 2019, 08:47:45 pm »
@wp
Quote
Wouldn't it be required additionally that the FPC version is checked when the installation is started; and when the version does not fit the installation should be aborted with a clear error message about the version mismatch instead of some FPC message occuring later during compilation.
That's a good idea. I was thinking about drawing with red the packages which cannot be installed. More over, when a user wish to install a non-compatible package a clear warning should appear, this way preventing a boring download and unpack. I will try to implement the feature soon. Still OPM depends on the developers accurate description.

Quote
BTW, I wonder why so many users and component authors are so eager for the latest FPC version.
I cannot comment on this one. Most likely it's a trend to always update everything to the latest version, or perhaps for some users there is a good reason to update. Personally I prefer Lazarus trunk combined FPC 3.0.4.

@Lainz
Quote
Switched to 2.0 fixes stable FPC when a bugfix to OpenSSL was needed. Switched back to trunk.
OK. This is a good reason.   :)
« Last Edit: April 28, 2019, 08:49:58 pm by GetMem »

mdbs99

  • Full Member
  • ***
  • Posts: 121
  • Software Engineer. Husband. Trader.
    • website
Re: Online Package Manager
« Reply #1608 on: April 29, 2019, 02:12:13 pm »
Wouldn't it be required additionally that the FPC version is checked when the installation is started; and when the version does not fit the installation should be aborted with a clear error message about the version mismatch instead of some FPC message occuring later during compilation.

BTW, I wonder why so many users and component authors are so eager for the latest FPC version.

About mORMot there is a reason that you can see here.

kevin.black

  • Full Member
  • ***
  • Posts: 121
Re: Online Package Manager
« Reply #1609 on: May 01, 2019, 12:51:08 am »
@wp, @getmem,

@wp
Quote
Wouldn't it be required additionally that the FPC version is checked when the installation is started; and when the version does not fit the installation should be aborted with a clear error message about the version mismatch instead of some FPC message occuring later during compilation.
That's a good idea. I was thinking about drawing with red the packages which cannot be installed. More over, when a user wish to install a non-compatible package a clear warning should appear, this way preventing a boring download and unpack. I will try to implement the feature soon. Still OPM depends on the developers accurate description.

That would be an excellent idea, I'm constantly frustrated trying to install packages that either fail to install or partially install. There should also be some way to report the installation failure (if not already flagged).

My only concern is that this (seems to me) to be a lot of work. Maybe not, just looks like the fabled 'someone' is going to get stuck monitoring package compatibility.

Kevin

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1610 on: May 01, 2019, 09:01:50 am »
@kevin.black
Quote
That would be an excellent idea, I'm constantly frustrated trying to install packages that either fail to install or partially install.
In my opinion your biggest problem is the lack of support for cocoa. Package maintainers rarely check beyond win32/win64/gt2. This is understandable, since there are a lot of widgetset/architecture out there, some of them exotic and rare, like arm. The bottom line is, no matter how many countermeasure I(we) take, OPM will always depend on the accuracy of the description given by package maintainers, which is incomplete in many cases. More over ~40% of the packages are abandoned or purely supported. 
 
Quote
My only concern is that this (seems to me) to be a lot of work.
Yes. That would be a constant work for at least 5 people.

mdbs99

  • Full Member
  • ***
  • Posts: 121
  • Software Engineer. Husband. Trader.
    • website
Re: Online Package Manager
« Reply #1611 on: May 01, 2019, 01:18:56 pm »
The bottom line is, no matter how many countermeasure I(we) take, OPM will always depend on the accuracy of the description given by package maintainers, which is incomplete in many cases.
So, this is better do not receive a package, if it is incomplete.
That will save a lot of work to check, test, etc.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1612 on: May 01, 2019, 03:47:50 pm »
@mdbs99
Quote
So, this is better do not receive a package, if it is incomplete.
True, but even a perfect package can be broken by a new FPC or Lazarus release, so a constant check is still needed. I will do my best to update packages as much as possible.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Online Package Manager
« Reply #1613 on: May 02, 2019, 02:27:43 am »
The bottom line is, no matter how many countermeasure I(we) take, OPM will always depend on the accuracy of the description given by package maintainers, which is incomplete in many cases.
So, this is better do not receive a package, if it is incomplete.
So what would be a complete package? One that has been tested on all architectures, all OSes, previous, current, next and trunk versions of both FPC and LAZ, including all combinations? No, I do not think that package authors are willing to do that. Instead, I would rather like to see OPM collecting anonymous statistics about package installations from all users (failed/succeeded packages installations for each arch/os/fpc/laz combo), and then showing my combo stats to me to see. Then I can decide if I want to proceed with package installation or not. After package is updated, statistics are either reset, or even better kept for current and previous package version.

Heh, dreaming is free, right?  :) ;) :)
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: Online Package Manager
« Reply #1614 on: May 05, 2019, 11:25:26 am »
GetMem, could you have a look at this: https://forum.lazarus.freepascal.org/index.php/topic,45177.msg320180.html#msg320180 - Edson is trying to add his syntaxhighlighter.

tr_escape

  • Sr. Member
  • ****
  • Posts: 432
  • sector name toys | respect to spectre
    • Github:
Re: Online Package Manager
« Reply #1615 on: May 08, 2019, 12:47:55 pm »
Hello,

I am using the "dataportlasarus.lpk" but version of github and "http://packages.lazarus-ide.org/" is not same and the difference is about linux compiling:

https://github.com/serbod/dataport/commit/87fdbae42563d02be59fb98e331a5ac24ff4ae1f

Could you please update lazarus's package?

Best regards

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1616 on: May 08, 2019, 01:12:44 pm »
Hi tr_escape,

Quote
I am using the "dataportlasarus.lpk" but version of github and "http://packages.lazarus-ide.org/" is not same and the difference is about linux compiling:

https://github.com/serbod/dataport/commit/87fdbae42563d02be59fb98e331a5ac24ff4ae1f

Could you please update lazarus's package?
Done. Please test if everything is OK. Thanks.

regards,
GetMem

tr_escape

  • Sr. Member
  • ****
  • Posts: 432
  • sector name toys | respect to spectre
    • Github:
Re: Online Package Manager
« Reply #1617 on: May 08, 2019, 02:25:40 pm »
Hi tr_escape,

Quote
I am using the "dataportlasarus.lpk" but version of github and "http://packages.lazarus-ide.org/" is not same and the difference is about linux compiling:

https://github.com/serbod/dataport/commit/87fdbae42563d02be59fb98e331a5ac24ff4ae1f

Could you please update lazarus's package?
Done. Please test if everything is OK. Thanks.



regards,
GetMem



Hello Getmem,

No it is not working correctly because of there are a lot of diffences both edition.
If possible could you please rollback to 1.0.2 ?

I can change my local changes for linux sorry about that.

I will report to serbod user


If you need 1.0.2 this commit will be rollback

Commits on May 25, 2017

    * Delphi7 fixes
    @serbod
    serbod committed on 25 May 2017


https://github.com/serbod/dataport/tree/0c782bdae94af21f11443f9c5dc35c095c0448bc
« Last Edit: May 08, 2019, 02:48:21 pm by tr_escape »

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1618 on: May 08, 2019, 06:52:22 pm »
@tr_escape

OK. I rolled back to 1.0.2.

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: Online Package Manager
« Reply #1619 on: May 12, 2019, 06:31:25 pm »
I refurbished the old TParadoxDataset package on CCR and made it ready for OPM:

* Download of package zip: https://sourceforge.net/projects/lazarus-ccr/files/Paradox%20DataSet/tparadoxdataset-v0.2.zip/download
* Update-JSON download: https://sourceforge.net/projects/lazarus-ccr/files/Paradox%20DataSet/OPM/update_TParadoxDataset.json/download

Find the main json in the attachment.

I am aware that there is already a TParadox component in the Lazarus distribution, but as I noticed recently it requires externals dlls for which pre-compiled versions cannot be found for Windows 64bit.

The new package is pure Pascal and does not require external libraries. It does support BLOBs, bookmarks, filtering and text conversion to UTF8. However, it is a read-only dataset. Therefore, its usage is primarily in converting old PARADOX files to newer database formats.

A modification of the standard Lazarus database "mushroom" demo was added as a sample project.

The wiki (http://wiki.freepascal.org/TParadoxDataSet) was extended for documentation.

GetMem, I would appreciate if you could add the component to OPM.

« Last Edit: May 12, 2019, 06:48:37 pm by wp »

 

TinyPortal © 2005-2018