Patchmanager 3 Beta

Rating: 
5
Your rating: None Average: 5 (9 votes)

Patchmanager 3 public beta

Make sure to unapply patches before upgrade from Patchmanager 2. Installation will fail if any patch is applied.

If you have installed prepatch, please remove it before patchmanager3 installation.

Changes between version 2 and version 3:

  • Not changing original files. Patches applied to fakeroot located at /tmp/patchmanager
  • OS update friendly. Patchmanager3 automatically detects when user start downloading an update and unapplying all patches
  • Patches can be reordered to be applied in correct order. Just drag to left and drop at required position
  • Collect information about possible conflicting patches. Visit patch info page.
  • Automatic check for updates for online catalog patches. Notificaiton will popup if new version of patch will be released

Patchmanager daemon acts like proxy, filtering open calls and decide if application should open original file or fake one.

Useful environment variables:
NO_PM_PRELOAD=1 disables preload plugin from filtering calls
PM_PRELOAD_DEBUG=1 enables additional stderr output for preload plugin

Keep in mind this is beta version and should contain a lot of bugs. However it was tested for a while.

Please report all bugs to: https://talk.maemo.org/showthread.php?t=92935

You can collect patchmanager logs by running:
devel-su journalctl -al _COMM=jolla-settings + _EXE=/usr/sbin/patchmanager + _EXE=/usr/bin/patchmanager-dialog > patchmanager.log

Sources available here: https://github.com/sailfishos-patches/patchmanager/tree/patchmanager3

 

Big thanks jakibaki for Prepatch. This was very good idea to create such way for applying patches. You can review my plugin here: https://github.com/sailfishos-patches/patchmanager/blob/patchmanager3/sr...

 

Application versions: 
Changelog: 

Update may require to manually unapply all patches and then apply it again for the new features to work.

Changed default behaviour to not patch on boot. Special window will be prompted after booting asking if you want ot apply patches. After you test apply procedure you can enable applying on boot in settings page.
Fixed many problems

Comments

danfin's picture

since upgrading, patchmanager3 beta does not seem to start up anymore. After a restart it hangs at 'analog clock' patch. If I kill it, it shows zero available patches on web catalog, 'load engine' has no effect either. I run Sailfish 2.0.29. After a restart, again it loads patches and hangs at 'analog clock'. Uninstalling 'analog clock' does not help. Any hints? Thank you!

coderus's picture

Please give me a log

Piece_Maker's picture

I'm getting the same issue as this person, log is here: 

http://termbin.com/wrkt

Running an Xperia X with 2.2.0.29 

 

danfin's picture

sorry it did not work. The console command is a bit complicated, probably a typo. After stopping auto activation of patches, opening patchmanager3 beta, and activating them manually, everything runs smooth as before. Thank you very much!

evo3de's picture

File './core/armv7hl/gdbm-1.8.3-1.1.5.armv7hl.rpm' not found on medium 'https://releases.jolla.com/releases/2.2.0.29/jolla/armv7hl/'
Problem on Jolla repositories? How to bypass / fix this problem?

coderus's picture

pkcon refresh

crakby's picture

Ok. thanks!

patchmanager3_beta's picture

after pm3 release debug messages will be reduced

crakby's picture

Hi there,
I have many logs like this. Is this ok?

15.06.18 10:59:22.938 patchmanager[721]: unknown:0 PatchManagerObject::startReadingLocalServer()::__lambda114 Requested: "/etc/buteo/profiles/sync/carddav.Contacts.xml" Not changing

coderus's picture

Sure, this is how pm3 works

mixmax's picture

Hi ! I had a new event of the trouble yesterday, after the last update of PM3, with a web catalog in PM settings patch : no access to PM settings, my device asked me to reboot in order to call or send a message, then after reboot, no patch. I resolved it by deleting /usr/share/patchamanager/patches. I recovered an clean access, without any patch, to PM settings. I had to reinstall my patches, but no to reset my device... I don't know if it can be useful for resolving the bug... Thanks again for your work.

patchmanager3_beta's picture

seems you have outdated pm version

DameCENO's picture

Are you kidding me? your input is the most useful I have seen here in a while, and I thank you for sharing, you just saved more sailors from resetting than you will ever know, I just replied to say thank you, so thank you alot.

isgursoy's picture

Are we that far from solution? Could you mail me with the way I can transfer money? mail@isgursoyyavuz.com. Do you prefer telegram over forum?

coderus's picture
isgursoy's picture

Thank you. Now they are all unapplied and i cant enable any of them. Should I proceed to 3 and reinstall patches?

isgursoy's picture

Okay thank you for great work now I did but many patches are failed to be applied, even compatible ones, including launcher combo and voice call combined as they are working before. Interesting is launcher combo is actually running, but its switch is false and patchmanager thinks it is not alive, also can not apply. Weird.

mixmax's picture

I have noted that the same patches could be applied or not depending on the order you try to apply them.

isgursoy's picture

Voice call combined is also running but patchmanager does not know anything about it.

isgursoy's picture

I would donate if somebody can took me out of that inconsistent state. Any devs around?

coderus's picture

Please try forum or telegram group, it's very inconvenient to chat here

isgursoy's picture

Is there any way to restore functionality without reflashing?

coderus's picture

devel-su rm /var/lib/patchmanager/ausmt/packages
devel-su rm -rf /var/lib/patchmanager/ausmt/patches

and then reboot

isgursoy's picture

I messed repos, tried to upgrade to 3 while 2 is there and patches are applied then i cant unapply patches from the Settings app. I see a 2.x update and option to switch 3 but both options are complaining about unapplied patches. And i can not unapply patches as i told. How to fix?

isgursoy's picture

OS is 2.2 on xperia

Rafaelvlmendes's picture

Sorry. I search the error. Patch filecase case erro in PM3. Only uninstalled patch Filicase and all fix. Sorry and thank for ur attention

Rafaelvlmendes's picture

PM3 after installed and reboted device PM3 unapply app patchs abd when open PM3 only looping and no show patchs installeds

patchmanager3_beta's picture

give me a log file

inta's picture

@olf yeah, I know where it is, but it should not be necessary if versions match. By the way, that issue is fixed by the last update. Great work coderus :)

inta's picture

I think I had to enable developer tools before I was able to install pm3.

Though it does not work as expected. I'm not able to install patches, the version is printed red and says not compatible (although 2.2.0.29 is installed).

Pages