Stripping nemesis to bare minimum and rebuilding with pman

Arch based Porteus community project
User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 887
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#31 by ncmprhnsbl » 17 Dec 2016, 00:51

have managed to get an updated 001-core, 002-gui, 002-xtra and (my own) 003-util ..as well as deadbeef and palemoon, and pacman-config
using the method i described above... ish..
what i said about linux-api-headers was wrong(i assumed the 4.7 number related to the kernel but this isnt the case)
(its mostly headers that get moved to the devmodule anyways) so update that too...
some stats:
001-core new=100 mb old=78 mb
002-gui new= 42 mb old= 34 mb
003-xtra new= 40 mb old= 33 mb
some notes:
some of this increase is due new packages/binaries/libs being larger and some due to me missing something to be stripped..
stripping was done (somewhat laboriously) by comparing original extracted module with new one..
(and to a lesser extent running a diff... but this can be misleading, because some differences are due to new package versions/extra deps pulled)
and before i was done, some more(eudev,fuse2) updates arrived (all for core) :O
and be sure to check out the .pacnew files (didnt seem to anything to worry about)
AUR packages like cower need to be rebuilt aginst the new libs with makepkg (which probly needs the dev module updated too)

Code: Select all

ls /path/to/extracted/var/lib/pacman/local | tr '\n' ' ' > /path/to/packagelist.txt
gets list on one line(havent figured the trick to remove version numbers)

Code: Select all

pacman -Udd -needed -r /path/to/extracted/module /var/cache/pacman/pkg/*.pkg.tar.xz
the -needed avoids reinstalling packages that arent updated(couldnt be bothered removing them from the download list)
Blaze wrote:I think updating of Nemesis is not simple thing...
you're not wrong :D
that said, that its possible after nearly a year says something...
and besides,if brokenman decides to go this way(manjaro), his build scripts should handle all(most of) the leg work, without all this faffing about..
i might start a new thread better documenting what i did...
Last edited by ncmprhnsbl on 17 Dec 2016, 19:49, edited 1 time in total.
Reason: edited the package list command
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
brokenman
Site Admin
Site Admin
Posts: 5512
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#32 by brokenman » 17 Dec 2016, 02:19

The only way the update can work is using an internal update method. This means unpacking the base modules somewhere and using the arch tools to remove/add the updated packages in the folder, then repack the module. Anything else will lead to trouble after time.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Jack
Contributor
Contributor
Posts: 1085
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#33 by Jack » 17 Dec 2016, 02:30

brokenman wrote:The only way the update can work is using an internal update method. This means unpacking the base modules somewhere and using the arch tools to remove/add the updated packages in the folder, then repack the module. Anything else will lead to trouble after time.
What Arch tools to remove/add do I need?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
francois
Contributor
Contributor
Posts: 5000
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#34 by francois » 17 Dec 2016, 03:41

@ncmprhnsbl
I might start a new thread better documenting what i did
This would be quite appreciated. :D In peculiar kernel and core. As manjaro is easily built from there with pman and arch wikis.

I have tried 000-kernel trading for 4.8.0 of porteus 3.2 with brokenman's suggestions. Added not only vmlinuz, but also initrd.xz and had to change porteus.sgn. I ended up with no keyboard function. So something is wrong or maybe I am wrong. Everything works fine.
root ~ # uname -a Linux porteus 4.8.11- ... root ~ #

I will have to redo the thing. But I doubt that I made some error.

Edited, as saturday 2016-1217 :D
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 5000
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#35 by francois » 17 Dec 2016, 11:39

@jack:
I think brokenman meant
https://wiki.archlinux.org/index.php/Li ... /Utilities

@ncmprhnsbl:
Got the kernel module straight. A very trivial human error of mine. :oops:

Brokenman is a god. :twisted:
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1432
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#36 by Blaze » 18 Dec 2016, 11:02

ncmprhnsbl wrote:

Code: Select all

ls /path/to/extracted/var/lib/pacman/local | tr '\n' ' ' > /path/to/packagelist.txt
gets list on one line(havent figured the trick to remove version numbers)
I have a non-universal suggestion:
Lack - removes all numbers.
It breaks down the title of some modules. For example (001-core):

Code: Select all

bzip2
fuse2
glib2
iproute2
js17
krb5
libssh2
libtasn1
libx11
libxml2
lz4
ntfs-3g
p11-kit
pkcs11-helper
zd1211-firmware
Need a human eye!
For checking this just need to use command:

Code: Select all

ls /path/to/extracted/var/lib/pacman/local

Code: Select all

# Get a list of packages in 001-core (on a single line, addition pacman -S to the beginning of the line and remove the version numbers of packages)
ls /path/to/extracted/var/lib/pacman/local | tr '\n' ' ' > /path/to/packagelist.txt
sed -i 's/^/pacman -S /' /path/to/packagelist.txt
sed -i 's/[0-9]*//g' /path/to/packagelist.txt
sed -i 's|-..-/||g' /path/to/packagelist.txt
sed -i 's|--/||g' /path/to/packagelist.txt
sed -i 's|-.-/||g' /path/to/packagelist.txt
sed -i 's|-:._-/||g' /path/to/packagelist.txt
sed -i 's|-...-/||g' /path/to/packagelist.txt
sed -i 's|-..++gfab-/||g' /path/to/packagelist.txt
sed -i 's|-..beta.-/||g' /path/to/packagelist.txt
sed -i 's|-.fbb-/||g' /path/to/packagelist.txt
sed -i 's|-..++gef-/||g' /path/to/packagelist.txt
sed -i 's|-:...-/||g' /path/to/packagelist.txt
sed -i 's|-..git-/||g' /path/to/packagelist.txt
sed -i 's|-...p-/||g' /path/to/packagelist.txt
sed -i 's|-...j-/||g' /path/to/packagelist.txt
sed -i 's|-...p-/||g' /path/to/packagelist.txt
Linux porteus 4.13.3-porteus #1 SMP PREEMPT Sat Sep 23 18:22:13 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 887
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#37 by ncmprhnsbl » 18 Dec 2016, 14:17

Thanks Blaze! that should save some clicking .. :Yahoo!:
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Blaze
DEV Team
DEV Team
Posts: 1432
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#38 by Blaze » 18 Dec 2016, 20:24

ncmprhnsbl, I've updated my post (see above)
Linux porteus 4.13.3-porteus #1 SMP PREEMPT Sat Sep 23 18:22:13 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
francois
Contributor
Contributor
Posts: 5000
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#39 by francois » 18 Dec 2016, 23:08

@ncmprhnsbl:
Using your modules I get in command line:
After:

Code: Select all

setup-pman
pman -S xfce4 

Code: Select all

pman -S xfce4 > output.txt
[1m[31m A fatal error occurred. [m  # parenthesis and crap are not on the original output message, but jus in this text file.
/usr/local/bin/pman
 LINE:381
[1m No modules config file found. [m
Do you get that also?

Thanks.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 887
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#40 by ncmprhnsbl » 19 Dec 2016, 02:41

francois wrote:Do you get that also?
nope.

Code: Select all

root /home/guest # pman -S xfce4
:: There are 17 members in group xfce4:
:: Repository extra
   1) exo  2) garcon  3) gtk-xfce-engine  4) thunar  5) thunar-volman
   6) tumbler  7) xfce4-appfinder  8) xfce4-mixer  9) xfce4-panel
   10) xfce4-power-manager  11) xfce4-session  12) xfce4-settings
   13) xfce4-terminal  14) xfconf  15) xfdesktop  16) xfwm4  17) xfwm4-themes

Enter a selection (default=all): 
resolving dependencies...
looking for conflicting packages...

Packages (40) adwaita-icon-theme-3.22.0-1  cantarell-fonts-1:0.0.25-2
              cdparanoia-10.2-5  dconf-0.26.0-2  gnome-icon-theme-3.12.0-4
              gnome-icon-theme-symbolic-3.12.0-4
              gnome-themes-standard-3.22.2-1  gstreamer0.10-0.10.36-4
              gstreamer0.10-base-0.10.36-3
              gstreamer0.10-base-plugins-0.10.36-3  gtk3-3.22.5-1
              iso-codes-3.70-1  json-glib-1.2.2+4+gd725fb5-1  libnotify-0.7.7-1
              libvisual-0.4.0-6  libxfce4ui-4.12.1-2  libxfce4util-4.12.1-1
              libxklavier-5.4-1  pcre2-10.22-2  perl-uri-1.71-1
              polkit-gnome-0.105-3  vte3-0.46.1-1  wayland-protocols-1.7-1
              exo-0.10.7-2  garcon-0.4.0-1  gtk-xfce-engine-2.10.1-1
              thunar-1.6.10-3.1  thunar-volman-0.8.1-2  tumbler-0.1.31-1
              xfce4-appfinder-4.12.0-4  xfce4-mixer-4.11.0-3
              xfce4-panel-4.12.1-1  xfce4-power-manager-1.6.0.41.g9daecb5-1
              xfce4-session-4.12.1-4.1  xfce4-settings-4.12.1-1
              xfce4-terminal-0.8.1-1  xfconf-4.12.1-1  xfdesktop-4.12.3-3
              xfwm4-4.12.3-2  xfwm4-themes-4.10.0-2

Total Download Size:    46.71 MiB
Total Installed Size:  183.02 MiB

:: Proceed with installation? [Y/n] n
line 381 of pman (usr/local/bin/pman) it cant find /etc/porteus.d/modules
as far as i understand /etc/porteus.d/ gets created during boot, as per /<bootdevice>/config/
i'm using the same /config settings i had previously....
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1085
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#41 by Jack » 19 Dec 2016, 08:02

ncmprhnsbl wrote:
francois wrote:Do you get that also?
nope.

Code: Select all

root /home/guest # pman -S xfce4
:: There are 17 members in group xfce4:
:: Repository extra
   1) exo  2) garcon  3) gtk-xfce-engine  4) thunar  5) thunar-volman
   6) tumbler  7) xfce4-appfinder  8) xfce4-mixer  9) xfce4-panel
   10) xfce4-power-manager  11) xfce4-session  12) xfce4-settings
   13) xfce4-terminal  14) xfconf  15) xfdesktop  16) xfwm4  17) xfwm4-themes

Enter a selection (default=all): 
resolving dependencies...
looking for conflicting packages...

Packages (40) adwaita-icon-theme-3.22.0-1  cantarell-fonts-1:0.0.25-2
              cdparanoia-10.2-5  dconf-0.26.0-2  gnome-icon-theme-3.12.0-4
              gnome-icon-theme-symbolic-3.12.0-4
              gnome-themes-standard-3.22.2-1  gstreamer0.10-0.10.36-4
              gstreamer0.10-base-0.10.36-3
              gstreamer0.10-base-plugins-0.10.36-3  gtk3-3.22.5-1
              iso-codes-3.70-1  json-glib-1.2.2+4+gd725fb5-1  libnotify-0.7.7-1
              libvisual-0.4.0-6  libxfce4ui-4.12.1-2  libxfce4util-4.12.1-1
              libxklavier-5.4-1  pcre2-10.22-2  perl-uri-1.71-1
              polkit-gnome-0.105-3  vte3-0.46.1-1  wayland-protocols-1.7-1
              exo-0.10.7-2  garcon-0.4.0-1  gtk-xfce-engine-2.10.1-1
              thunar-1.6.10-3.1  thunar-volman-0.8.1-2  tumbler-0.1.31-1
              xfce4-appfinder-4.12.0-4  xfce4-mixer-4.11.0-3
              xfce4-panel-4.12.1-1  xfce4-power-manager-1.6.0.41.g9daecb5-1
              xfce4-session-4.12.1-4.1  xfce4-settings-4.12.1-1
              xfce4-terminal-0.8.1-1  xfconf-4.12.1-1  xfdesktop-4.12.3-3
              xfwm4-4.12.3-2  xfwm4-themes-4.10.0-2

Total Download Size:    46.71 MiB
Total Installed Size:  183.02 MiB

:: Proceed with installation? [Y/n] n
At the tail end of the install it show this and why did you pick n and not Y?

Code: Select all

:: Proceed with installation? [Y/n] n
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 887
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#42 by ncmprhnsbl » 19 Dec 2016, 13:13

Jack wrote:At the tail end of the install it show this and why did you pick n and not Y?
cause i didnt want it :)
i'm sorry, it wasnt clear to me where the error was... are you getting the same as francois?
but, to be sure, i just repeated it and went through with the whole process with no errors.

Code: Select all

42M	/tmp/002-xfce4

 Operation completed successfully. 
The following modules were copied to your modules folder:
/mnt/sdb1/porteus/modules

002-xfce4

Packages were removed from /var/cache/pacman/pkg.
should have named it 003-xfce.xzm .. easy enough to rename tho...
do you guys have /etc/porteus.d directory?
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1085
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#43 by Jack » 19 Dec 2016, 14:46

ncmprhnsbl wrote:
Jack wrote:At the tail end of the install it show this and why did you pick n and not Y?
cause i didnt want it :)
i'm sorry, it wasnt clear to me where the error was... are you getting the same as francois?
but, to be sure, i just repeated it and went through with the whole process with no errors.

Code: Select all

42M	/tmp/002-xfce4

 Operation completed successfully. 
The following modules were copied to your modules folder:
/mnt/sdb1/porteus/modules

002-xfce4

Packages were removed from /var/cache/pacman/pkg.
should have named it 003-xfce.xzm .. easy enough to rename tho...
do you guys have /etc/porteus.d directory?
I understand now. And I should have name 003-mate.xzm to.
do you guys have /etc/porteus.d directory?
I will have check on this right now I'm using Porteus (Slackware).
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
francois
Contributor
Contributor
Posts: 5000
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#44 by francois » 22 Dec 2016, 07:55

I think that we need a way to name each of these upgrade versions. Maybe we should use the date or year and month of the upgrade.

On the manjaro forum, I have alerted istinjazz on the thread he made about nemesis revival. I thought they might be interested in what we are doing presently.
https://forum.manjaro.org/t/porteus-nem ... on/3659/29
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 5000
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Stripping nemesis to bare minimum and rebuilding with pm

Post#45 by francois » 26 Mar 2017, 00:53

Looking at that thread about howsome, I just went back to this thread. Twin and dvtm text mode window managers are available under porteus thru:

Code: Select all

root@porteus:~# usm -g dvtm

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) dvtm-0.15-x86_64-1_slonly.txz
#? ^C
root@porteus:~# usm -g twin

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) twin-0.6.1-x86_64-1_slonly.txz
2) twine-1.8.1-x86_64-1_slonly.txz
#? 
Voltaire: Le mieux est l'ennemi du bien.

Post Reply