Build new Applications as xzm modules

Arch based Porteus community project

Moderator: M. Eerie

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Build new Applications as xzm modules

Post#1 by raja » 10 Mar 2018, 18:56

This is to answer francois's query ..

Current build of nemisis has made making new applications a breeze.

First, a correction has to be made, as suggested, to /usr/local/bin/pman script..line no. 396.

add,

Code: Select all

touch $WRK/package.out
Reboot, and now you are ready to build your apps.

open terminal,

Code: Select all

setup-pman
pacman-settings.xzm will be made and copied to nemisis "modules" directory.

Code: Select all

pman -S [your app]
if [your app] is "vlc"

pman checks availability in the database, checks for dependencies, downloads them all, builds "vlc.xzm" and copy it to modules directory.

* It works this way, if you don't have 'changes' cheatcode.

I have done 2-3 apps. and they work, seamlessly.

cheers.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Build new Applications as xzm modules

Post#2 by ncmprhnsbl » 10 Mar 2018, 21:08

raja wrote:
10 Mar 2018, 18:56
First, a correction has to be made, as suggested, to /usr/local/bin/pman script..line no. 396.
this has been corrected since 2018-03-01 update
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Build new Applications as xzm modules

Post#3 by francois » 10 Mar 2018, 22:12

Good news! So there is no error messages preventing the building of modules. :)
Prendre son temps, profiter de celui qui passe.

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Build new Applications as xzm modules

Post#4 by raja » 15 Mar 2018, 08:40

^^
You can not conclude so soon!

1) Nemisis, which was functioning well, failed to boot, when I shifted the folder to another partition. got stuck at 'login' screen. Previously, I saved the /home folder in 'root copy' folder. I removed that, and nemisis booted. But, Opera failed to load, complaining /home/guest/.config/opera folder was missing.

Couiln't resolve. Decided to make a new 'opera' (version-51) module.

pman, listed files to download, tried to connect many , mirror sites, but was reporting 404 errors, and failed to download.

****Please note.

Here, pman should have abandoned, the job on hand.

But it proceeded, of course after asking for few permissions to merge and build an "empty" module

Modification of script requested: pman should abandon the job, in case of failure of downloads. It shall verify availability of all needed files (actual sizes , comparing with download request), before proceeding to merge and build xzm modules.

2) 'activate', 'deactivate' commands work with guest/guest passwords. fails with root/toor. ?
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Build new Applications as xzm modules

Post#5 by ncmprhnsbl » 16 Mar 2018, 04:09

raja wrote:
15 Mar 2018, 08:40
Modification of script requested: pman should abandon the job, in case of failure of downloads. It shall verify availability of all needed files (actual sizes , comparing with download request), before proceeding to merge and build xzm modules.
i agree, feel free to submit the scripting for this ;)
raja wrote:
15 Mar 2018, 08:40
2) 'activate', 'deactivate' commands work with guest/guest passwords. fails with root/toor. ?
yep, this is way it is with pkexec.. not exactly sure where this setting is set .. there was much discussion about this some time ago...
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Build new Applications as xzm modules

Post#6 by francois » 16 Mar 2018, 11:00

Trying to build a package, it seems that refreshing keys or updating database will fix the error:

Code: Select all

warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
That is:

Code: Select all

setup-pman
So if:

Code: Select all

pman -S package

Code: Select all

Errors occurred, no packages were upgraded.
Then pman should offer:

Code: Select all

setup-pman
Prendre son temps, profiter de celui qui passe.

Post Reply