Recent

Author Topic: Online Package Manager  (Read 834900 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14172
  • Probably until I exterminate Putin.
Re: Online Package Manager
« Reply #930 on: August 14, 2017, 02:50:41 pm »
Patch. This one needs outside testing. Removed MMX altogether. Not useful. (provided compiler options knowledge, try -O4 -CfSSE2 or on ARM -CfVFPv3)....-s examine code)  No assembler code left. Pure pascal.
« Last Edit: August 14, 2017, 03:41:37 pm by Thaddy »
Specialize a type, not a var.

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Online Package Manager
« Reply #931 on: August 14, 2017, 05:32:14 pm »
How should I test the last revision? I am getting an error when trying to install:

Quote
/home/rafael/svn/onlinepackagemanager/opkman_mainfrm.pas
opkman_mainfrm.pas(847,42) Error: identifier idents no member "UninstallPackage"
Be mindful and excellent with each other.
https://github.com/cpicanco/

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Online Package Manager
« Reply #932 on: August 14, 2017, 05:41:11 pm »
OPM updates it self?
Be mindful and excellent with each other.
https://github.com/cpicanco/

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Online Package Manager
« Reply #933 on: August 14, 2017, 05:47:40 pm »
OPM updates it self?

I thought that was planned, but apparently not. RC4 now shows OPM as a package (don't believe RC3 did), but it also shows it as being up-to-date, which can't be right since the RC4 OPM files are 3 months old.

Maybe we just have to be patient.


balazsszekely

  • Guest
Re: Online Package Manager
« Reply #934 on: August 14, 2017, 07:02:46 pm »
Quote
OPM updates it self?

You can already find OPM in the available package list(the latest one), however you cannot update yet because many things has also changed lately in Lazarus trunk. For example in order to uninstall a package, OPM has to communicate with the built in package manager through packageintf interface(hence the uninstall error). This is why I said in one of my previous post that updating OPM from itself is a double-edged sword. I plan to fix all the remaining issues until 1.8 is out, including this one. If you wish to test the trunk version, please install a separate Lazarus instance with fpcdeluxe, it won't interfere with the current installation. Thanks.

@Juha
Can you please add the commit( related to package uninstall) to the 1.8 fixes branch? Currently I'm not in front of my dev. computer. Thank you.

Thaddy

  • Hero Member
  • *****
  • Posts: 14172
  • Probably until I exterminate Putin.
Re: Online Package Manager
« Reply #935 on: August 14, 2017, 09:15:23 pm »
OPM updates it self?
No. check out Lazarus svn and do a "build lazarus" from the menu. By now I also tested OSX (maybe a struggle -Phil? -but nothing to do with the patch) . Patch works for most (all I tested) platforms now, not just Intel. Note this is Lazarus trunk! Backports are up to managers to allow. Plz report back if it doesn't. Then its my fault 8)
But it is not related to uninstall issues...

Note the first patch attached (and applied) is safe... the second attachment needs testing by y'all, although I am pretty confident it enables more platforms than just arm.
« Last Edit: August 14, 2017, 09:38:28 pm by Thaddy »
Specialize a type, not a var.

lainz

  • Hero Member
  • *****
  • Posts: 4450
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #936 on: August 18, 2017, 04:29:05 pm »
Hi, there's now BGRAControls v4.3.2, it has the update feature in the json, but it will be nice if updated in the server of OPM.
https://github.com/bgrabitmap/bgracontrols/releases

mtournay

  • Jr. Member
  • **
  • Posts: 63
Re: Online Package Manager
« Reply #937 on: August 18, 2017, 10:53:28 pm »
Hi

I have a problem updating BGRAControls through OPM.

yesterday I made code modification in some unit of the package for testing, then ask Lainz to incorporate them. He did that fast (thank again !) and publish a new release.
today, OPM said ther's a new version of bgra, so I check the package, click update button, download goes on, install next, rebuild laz, restart... and ... no changes, I still have my yesterday files.

Am I doing something wrong ?

My config : Laz 1.6.4, OPM 1.0 (says 'up to date' itself)

regards

edit : I didn't notice, but I have the same issue with kcontrol 1.7.0 (can't update to 1.7.1)
« Last Edit: August 18, 2017, 11:08:22 pm by mtournay »
laz 2.06 32b - fpc 3.04 32b - win10 64b

lainz

  • Hero Member
  • *****
  • Posts: 4450
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #938 on: August 18, 2017, 11:16:40 pm »
Hi

I have a problem updating BGRAControls through OPM.

yesterday I made code modification in some unit of the package for testing, then ask Lainz to incorporate them. He did that fast (thank again !) and publish a new release.
today, OPM said ther's a new version of bgra, so I check the package, click update button, download goes on, install next, rebuild laz, restart... and ... no changes, I still have my yesterday files.

Am I doing something wrong ?

My config : Laz 1.6.4, OPM 1.0 (says 'up to date' itself)

regards

edit : I didn't notice, but I have the same issue with kcontrol 1.7.0 (can't update to 1.7.1)

Try Lazarus 1.8 release candidate. That OPM works better.

mtournay

  • Jr. Member
  • **
  • Posts: 63
Re: Online Package Manager
« Reply #939 on: August 19, 2017, 10:00:15 pm »
I'll do that next monday
laz 2.06 32b - fpc 3.04 32b - win10 64b

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Online Package Manager
« Reply #940 on: August 19, 2017, 10:02:47 pm »
mtournay Also make sure to execute lazarus using the "startlazarus" command  :D
Be mindful and excellent with each other.
https://github.com/cpicanco/

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #941 on: August 20, 2017, 10:02:10 pm »
@mtournay

Quote
I didn't notice, but I have the same issue with kcontrol 1.7.0 (can't update to 1.7.1)
The author of Kcontrol has forget to update the actual lpk files. Take a look at the update JSON(Version = 1.7.1.0): https://bitbucket.org/tkweb/kcontrols/raw/ed0be8a985eb4030158356155668ac135e8b782b/laz_opm_update.json . After update the lpk file is still 1.7.0.0, but if you compare the files you can see there is a few differences(screenshot 1).   

BGRAControls should be the same. Just do a file by file comparison.

lainz

  • Hero Member
  • *****
  • Posts: 4450
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #942 on: August 20, 2017, 10:06:28 pm »
@mtournay

Quote
I didn't notice, but I have the same issue with kcontrol 1.7.0 (can't update to 1.7.1)
The author of Kcontrol has forget to update the actual lpk files. Take a look at the update JSON(Version = 1.7.1.0): https://bitbucket.org/tkweb/kcontrols/raw/ed0be8a985eb4030158356155668ac135e8b782b/laz_opm_update.json . After update the lpk file is still 1.7.0.0, but if you compare the files you can see there is a few differences(screenshot 1).   

BGRAControls should be the same. Just do a file by file comparison.

I can say I updated the lpk for BGRAControls, is the only thing I did in that commit, and also increasing the internal version of the updates json.
https://github.com/bgrabitmap/bgracontrols/commit/cccaab260092727ad64b889806a1eede3226817e

I already suggested him to update to the release candidate, where everything OPM related works better.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #943 on: August 20, 2017, 10:16:09 pm »
@cpicanco

To test the "dark theme" bug please do the following:
1. Make a backup first
2. Download Lazarus.zip(attachment)
3. Copy file "packageintf.pas" to $(LazarusDir)/components/ideintf/ (replace the original)
4. Copy file "pkgmanager.pas" to $(LazarusDir)/packager/ (replace the original)
5. Rebuild Lazarus
6. Update OPM through OPM(ignore the version, it will be the same). Just click the install button.
7. Rebuild Lazarus again
8. Go to options, check "Use default theme manager"

Now everything should  go back to normal. OPM color scheme should match the theme manager color scheme.
« Last Edit: August 20, 2017, 10:30:32 pm by GetMem »

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #944 on: August 20, 2017, 10:18:47 pm »
@lainz
Quote
I can say I updated the lpk for BGRAControls, is the only thing I did in that commit, and also increasing the internal version of the updates json.
https://github.com/bgrabitmap/bgracontrols/commit/cccaab260092727ad64b889806a1eede3226817e

I already suggested him to update to the release candidate, where everything OPM related works better.
Updating to release candidate is a good idea. A lot of fixes since 1.6, however the KControl issue still remains, I have no control on the update.json files.

 

TinyPortal © 2005-2018