maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak (https://talk.maemo.org/showthread.php?t=92935)

Ancelad 2015-09-21 10:50

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Eminem (Post 1483173)
No luck. :(

Try again :D

Eminem 2015-09-21 11:18

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Ancelad (Post 1483174)
Try again :D

The third time is not the charm. :(

coderus 2015-09-21 13:43

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
shutdown - remove battery - wait - return battery - power!

Eminem 2015-09-21 14:03

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Did it before you posted and still no luck. :(

Ancelad 2015-09-21 14:46

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Eminem (Post 1483206)
Did it before you posted and still no luck. :(

Try:
1) Unapply all patches
2) pkcon install lipstick-jolla-home-qt5
3) Shutdown/turn on

Ancelad 2015-09-21 15:03

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
:D https://openrepos.net/content/ancela...n-analog-clock

coderus 2015-09-21 15:13

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Stupid patch? :D

Ancelad 2015-09-21 15:31

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by coderus (Post 1483212)
Stupid patch? :D

Exactly :D

abyzthomas 2015-09-21 17:12

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by coderus (Post 1483212)
Stupid patch? :D

Stupid? I like it. A fun one. :)

It looks a little small on Nexus 5. I made it a litle bigger (600px). Maybe if you can fix it so it scales according to the screen size would be nice.

Only patch on my N5 since my Conference Call patch sounds bad on N5 after merging calls.

Thanks!

Ancelad 2015-09-21 17:29

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Another stupid one https://openrepos.net/content/ancela...ld-pulley-menu

Eminem 2015-09-21 18:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Ancelad (Post 1483210)
Try:
1) Unapply all patches
2) pkcon install lipstick-jolla-home-qt5
3) Shutdown/turn on

Worked. And now? :D

pichlo 2015-09-21 20:55

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Eminem (Post 1483236)
Worked. And now? :D

4) Apply patches again
5) Profit!

pichlo 2015-09-21 20:56

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Ancelad (Post 1483227)

"Stupid"? That's a strange way to misspell "brilliant"! Thank you!

Eminem 2015-09-21 22:08

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by pichlo (Post 1483254)
4) Apply patches again
5) Profit!

And back to square one. :)

anig 2015-09-22 05:15

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Updated my patches for calendar events on lockscreen and upcoming events in calendar cover.

I'm working on implementing landscape support for the lockscreen patch. The problem is I'll need to move clock to the left. This means that if another lockscreen patch is also made, e.g. meecast, and they do the same then the two will conflict. The only alternative I can think of is to make a separate patch to move the clock and then that becomes a requirement for patches that want to put info onto the lockscreen. Anybody got any better ideas?

romu 2015-09-22 08:15

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@anig: there is already a space conflict with your patch and the @ancelad analog clock patch. So yes, I think we need a "lockscreen layout manager" patch to handle and distribute lockscreen space.

Ancelad 2015-09-22 09:53

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@okourkoulos
what about your problem? Is it solved?

pichlo 2015-09-22 09:59

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
1 Attachment(s)
Quote:

Originally Posted by pichlo (Post 1483255)
Quote:

Originally Posted by Ancelad (Post 1483227)

"Stupid"? That's a strange way to misspell "brilliant"! Thank you!

Brilliant but not 100% perfect :)

Can anything be done with the portrait look? It looks... odd, to put it softly:

Attachment 37728

(Yes, I know, blame Jolla, not you, but since you are fixing it already... :))

Ancelad 2015-09-22 10:02

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by pichlo (Post 1483297)
Brilliant but not 100% perfect :)

Can anything be done with the portrait look? It looks... odd, to put it softly:

Attachment 37728

(Yes, I know, blame Jolla, not you, but since you are fixing it already... :))

I can make it full-width

okourkoulos 2015-09-22 10:10

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Ancelad (Post 1483296)
@okourkoulos
what about your problem? Is it solved?

Yes, no problem. My bad, forgot that I had "Faster Pulley Menu Patch" installed! :D
Sorry!

Ancelad 2015-09-22 10:11

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
@pichlo
that's ok?
http://i.piccy.info/i9/9e642ede8c696..._10_02_500.jpghttp://i.piccy.info/a3/2015-09-22-10...00x281-r/i.gif

@okourkoulos
great!

pichlo 2015-09-22 10:14

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Ancelad (Post 1483302)

Perfect!!!

Ancelad 2015-09-22 10:30

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by pichlo (Post 1483303)
Perfect!!!

Ok, you can grab new version from OpenRepos

Ancelad 2015-09-22 13:09

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I can make some settings for analog clock, for example X-position, Y-position, size. Probably it will solve issue with @anig's patch.

Markkyboy 2015-09-22 14:58

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Hey guys,

I finally managed to produce a patch (.rpm file) but I get an error when installing the file. "Problem with installing -name-of-patch" - How can I troubleshoot to find out where I've gone wrong with my patch? (I'm guessing that something is not right with my 'unified_diff.patch file? - I don't see what else can be wrong; the rpm itself, was generated without any errors), any information gratefully received :)

Regards,

pichlo 2015-09-22 15:18

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Provide a command-line output.
Code:

devel-su pkcon install-local /path/to/your.rpm

Markkyboy 2015-09-22 15:23

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by pichlo (Post 1483340)
Provide a command-line output.
Code:

devel-su pkcon install-local /path/to/your.rpm

Thanks Pichlo - if I understood you correctly;

Installing files
Waiting in queue
Waiting for authentication
Waiting in queue
Starting
Resolving dependencies
Installing packages
Downloading packages
Installing packages
Fatal error: Installation aborted by user

Aborted by user?, I didn't interact at all.

coderus 2015-09-22 15:26

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
scriptlet failed. what rpm?

Markkyboy 2015-09-22 15:35

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
scriptlet failed - means?; I have a problem with my .spec file, yes?

what .rpm? - .rpm file created on device using Schturman's guide for making .rpm; so I can install my patch to patchmanager.

pichlo 2015-09-22 15:36

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Attach the rpm.

Markkyboy 2015-09-22 15:44

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Thanks Pichlo - (I have a feeling my .spec file is the problem; researching now),

https://www.dropbox.com/s/9vmqghxlpt...mv7hl.rpm?dl=0

Regards,

coderus 2015-09-22 15:48

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
if you buliding it yourself show spec file then

Markkyboy 2015-09-22 15:55

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by coderus (Post 1483352)
if you buliding it yourself show spec file then

Taken from Schturman's post, somewhere on this thread and modified a little.



Name: sailfishos-remove-overlay-colour-camera-settings
Version: 0.1
Release: 1
Summary: Removes the ambient colour from the overlay in camera settings.
Group: System/Tools
Vendor: Markkyboy
Distribution: SailfishOS
Packager: Markkyboy
URL: https://www.facebook.com/JollaUK
Requires: jolla-camera >= 0.2.12.2-10.45.1, patchmanager

License: GPL

%description
Jolla-camera - removes ambient colour from camera settings overlay.

%files
/usr/share/patchmanager/patches/sailfishos-remove-overlay-colour-camera-settings/*

%pre
if [ $1 = 1 ]; then
// Do stuff specific for first install
echo "It's first time install"
else
if [ $1 = 2 ]; then
// Do stuff specific to upgrades
echo "It's just upgrade"
/usr/sbin/patchmanager -u sailfishos-remove-overlay-colour-camera-settings
fi
fi

%post
if [ $1 = 1 ]; then
// Do stuff specific for first install
echo "It's first time install"
fc-cache -f
killall jolla-camera
else
if [ $1 = 2 ]; then
// Do stuff specific to upgrades
killall jolla-camera
fi
fi

%postun
if [ $1 = 0 ]; then
// Do stuff specific to uninstalls
rm -rf /usr/share/patchmanager/patches/sailfishos-remove-overlay-colour-camera-settings
killall jolla-camera
else
if [ $1 = 1 ]; then
// Do stuff specific to upgrades
echo "It's just upgrade"
fi
fi

%changelog
* Fri Dec 26 2014 Builder <builder@...> 0.1
- Compatible with last system update (1.1.9.28).

Thanks,

pichlo 2015-09-22 16:32

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Markkyboy (Post 1483353)
Taken from Schturman's post, somewhere on this thread and modified a little.



Name: sailfishos-remove-overlay-colour-camera-settings
Version: 0.1
Release: 1
Summary: Removes the ambient colour from the overlay in camera settings.
Group: System/Tools
Vendor: Markkyboy
Distribution: SailfishOS
Packager: Markkyboy
URL: https://www.facebook.com/JollaUK
Requires: jolla-camera >= 0.2.12.2-10.45.1, patchmanager

License: GPL

%description
Jolla-camera - removes ambient colour from camera settings overlay.

%files
/usr/share/patchmanager/patches/sailfishos-remove-overlay-colour-camera-settings/*

Dunno if I was doing something wrong but to make my RPMs work, I had to do:

%files
%defattr(644,root,root,-)
%{_datadir}/patchmanager/patches/sailfishos-remove-overlay-colour-camera-settings

(Note no /* at the end.)

Quote:

%pre
if [ $1 = 1 ]; then
// Do stuff specific for first install
echo "It's first time install"
else
if [ $1 = 2 ]; then
// Do stuff specific to upgrades
echo "It's just upgrade"
/usr/sbin/patchmanager -u sailfishos-remove-overlay-colour-camera-settings
fi
fi
You can avoid double fi at the end by using

if [...]; then
. blabla
elif [...]; then
. blabla
else
. blabla
fi


Pardon the silly question, but what does the $1 = 1 do?

Markkyboy 2015-09-22 16:42

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I have no idea about the line of code "$1 = 1" - I'm no expert here, I used an existing spec file from Schturman and made a few modifications that I thought were right (again, I don't fully understand what I'm doing).

Also, Schturman helped me with building ambience.rpm packages and if I recall, there was no need for adding lines of code you suggest;
%files
%defattr(644,root,root,-)
%{_datadir}/patchmanager/patches/sailfishos-remove-overlay-colour-camera-settings - and yet, every ambience I make installs and works as it should, based on the spec file given by Schturman. (I really do have a lot to learn, sadly, earning a living gets in the way of free time to learn this stuff!) :)

I have now just used my ambience spec file with changes to suit my patch. The patch is now installed but does not show in the Patchmanager app list. The files are installed to /usr/share/patchmanager/patches/ - but I don't know if my 'unified_diff.patch is written correctly! (Doh!, Noob alert!!) :D

Markkyboy 2015-09-22 20:13

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by coderus (Post 1480540)
Code:

pkcon install rpm-build meego-rpm-config
simple spec file:
Code:

Name:      sailfishos-eventsview-swipe-remove

Summary:    Eventsview notifications remove swipe
Version:    0.0.1
Release:    1
Group:      Qt/Qt
License:    TODO
Requires:  patchmanager
Requires:  lipstick-jolla-home-qt5 = 0.24.41.4-10.75.1.jolla

%description
Eventsview patch adding swipe right to remove notification action.

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/patchmanager/patches/sailfishos-eventsview-swipe-remove
cp -r %{workdir}/patch/* %{buildroot}/usr/share/patchmanager/patches/sailfishos-eventsview-swipe-remove

%pre
if [ -f /usr/sbin/patchmanager ]; then
/usr/sbin/patchmanager -u sailfishos-eventsview-swipe-remove || true
fi

%preun
if [ -f /usr/sbin/patchmanager ]; then
/usr/sbin/patchmanager -u sailfishos-eventsview-swipe-remove || true
fi

%files
%defattr(-,root,root,-)
%{_datadir}/patchmanager/patches/sailfishos-eventsview-swipe-remove

in your folder put patch stuff in patch folder, spec in rpm folder. to build execute following:
Code:

rpmbuild --define "workdir $PWD" -ba rpm/sailfishos-eventsview-swipe-remove.spec
done

I am building on the device, not on SDK. So your instructions make little sense when applied on the device.
Am I right in assuming these instructions are for building on SailfishSDK?

Markkyboy 2015-09-22 20:19

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Quote:

Originally Posted by Schturman (Post 1480585)
Or if you still work with my instruction for creating packages, maybe this one will be more easy for you.
Code:

Name:          sailfishos-combo-show-dayofweek-startsunday
Version:      0.1
Release:      2
Summary:      Calendar combo patch
Group:        System/Tools
Vendor:        Schturman
Distribution:  SailfisfOS
Packager: Schturman <schturman@hotmail.com>
URL:          www.dhrider.co.cc
Requires: jolla-calendar >= 0.4.43-10.32.1, patchmanager

License:      GPL

%description
Calendar Start Week On Sunday and show day.

%files
/usr/share/patchmanager/patches/sailfishos-combo-show-dayofweek-startsunday/*

%pre
if [ $1 = 1 ]; then
    // Do stuff specific for first install
echo "It's first time install"
else
if [ $1 = 2 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
/usr/sbin/patchmanager -u sailfishos-combo-show-dayofweek-startsunday
fi
fi

%preun
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
/usr/sbin/patchmanager -u sailfishos-combo-show-dayofweek-startsunday
else
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
fi
fi

%postun
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
rm -rf /usr/share/patchmanager/patches/sailfishos-combo-show-dayofweek-startsunday
killall jolla-calendar
else
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
fi
fi

%changelog
* Fri Dec 26 2014 Builder <builder@...> 0.1
- Compatible with last system update (1.1.4.29).


Hey Schturman - did you get your Jolla back yet?

I tried creating a patch using your .spec file, with my adjustments of course, but I get a catalogue of errors and the build fails. Sorry, I didn't note the errors.
I need to clean out my system and start again, with new unified_diff.patch file and correct .spec file.

Regards,

hope to see you back on the forums again soon :)

anig 2015-09-22 20:32

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Here's my spec file

https://github.com/anigaj/lockCalPat...-upcoming.spec

I use this to build on device using the command rpmbuild -bb SPECS/specfilename

pichlo 2015-09-22 20:45

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
I also build on the device. I do not even have the SDK. No time nor place to install it.

coderus 2015-09-23 02:42

Re: [WIP] App / Tweak: patchmanager a system-wide patching system + homescreen tweak
 
Markkyboy my spec posted here is for build on device.
Your problem with scripts: it should always success. You should add || true at the end of commands, which can fail (killall camera || true). And you do not need to delete /usr/share/patchmanager/patches/sailfishos-remove-overlay-colour-camera-settings from script. This file is installed inside rpm and will be removed by package itself.


All times are GMT. The time now is 03:52.

vBulletin® Version 3.8.8