Page 3 of 3

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 17 Dec 2016, 00:51
by ncmprhnsbl
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...

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 17 Dec 2016, 02:19
by brokenman
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.

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 17 Dec 2016, 02:30
by Jack
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?

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 17 Dec 2016, 03:41
by francois
@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

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 17 Dec 2016, 11:39
by francois
@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:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 18 Dec 2016, 11:02
by Blaze
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

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 18 Dec 2016, 14:17
by ncmprhnsbl
Thanks Blaze! that should save some clicking .. :Yahoo!:

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 18 Dec 2016, 20:24
by Blaze
ncmprhnsbl, I've updated my post (see above)

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 18 Dec 2016, 23:08
by francois
@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.

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 19 Dec 2016, 02:41
by ncmprhnsbl
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....

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 19 Dec 2016, 08:02
by Jack
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

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 19 Dec 2016, 13:13
by ncmprhnsbl
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?

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 19 Dec 2016, 14:46
by Jack
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).

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 22 Dec 2016, 07:55
by francois
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

Re: Stripping nemesis to bare minimum and rebuilding with pm

Posted: 26 Mar 2017, 00:53
by francois
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
#?