Page 1 of 1

[Solved] Replace packages from 05-devel.xzm

Posted: 02 Apr 2014, 14:12
by RamonTavarez
Hi:

I want to replace some libs from 05-devel.

I've read about extracting from the module at http://forum.porteus.org/viewtopic.php? ... ule#p20985, but what about replacing, not just removing?.

The fact is that, from 05-devel.xzm , I want to replace some libs/pckgs for newer versions:
  • binutils-2.23.52.0.1
    bison-2.7
    cmake-2.8.12
    gcc-4.8.2
    gcc-g++-4.8.2
    glibc-2.17
    gtext-tools-0.18.2.1
    m4-1.4.17
and include others:
  • gcc-fortran-4.8.2
    gcc-java-4.8.2
    gcc-objc-4.8.2
    gdb-7.6.1
    glibc-profile-2.17
Can You give me information about these task?

Thanks in advance for your help.

Re: Replace packages from 05-devel.xzm

Posted: 02 Apr 2014, 17:53
by brokenman
By replace you could mean, remove old version and add new version.

Code: Select all

mkdir /tmp/005
xzm2dir 005-devel.xzm /tmp/005
ROOT=/tmp/005 removepkg binutils
installpkg --terse -root /tmp/005 binutils-0.1.2.3-i486-1.txz
Follow the above steps and remove and install slackware packages then recreate your new module a the end. If you're going to be removing glibc then good luck!

Re: Replace packages from 05-devel.xzm

Posted: 02 Apr 2014, 18:37
by fanthom
@RamonTavarez

you are replacing core packages so be aware that we are not going to resolve issues caused by this setup.

Re: Replace packages from 05-devel.xzm

Posted: 02 Apr 2014, 19:21
by RamonTavarez
@ fanthom & @brokenman:

Thanks for your advice and instructions. :good:

Question about replacing (updating): Can I cause serious conflicts replacing some pckgs by newers (updating )?

Questions about including: I have noticed that the debugger isn't included into 05-devel.xzm, I want to include GDB-7.xx to complete my development platform with "official" debugger. Do I really need to avoid this insertion?, why gdb isn't included?

Regards!

Re: Replace packages from 05-devel.xzm

Posted: 03 Apr 2014, 12:47
by brokenman
Replacing the core linux libraries (glibc) will certainly cause problems. With other less core centric packages you may not have problems.

If you are using Porteus-v3.0 simply update USM: usm -u all and then run: usm -g gdb

There are no dependencies required. It probably wasn't included in the dev package as it is non essential and adds an extra 2Mb.

Re: Replace packages from 05-devel.xzm

Posted: 03 Apr 2014, 13:24
by RamonTavarez
@brokenman:

Thanks.

I'll take care about glibc! :wink:

A last question: after intallpckg (for each lib) I need to reassemble 05-devel.xzm, as far as I remember I just use the command dir2xzm. Is there need of any other step before dir2xzm?

Regards.

Re: Replace packages from 05-devel.xzm

Posted: 04 Apr 2014, 00:53
by brokenman
No other step required. Just unpack, remove/install, repack using dir2xzm. Good luck.

Re: [SOLVED] Replace packages from 05-devel.xzm

Posted: 04 Apr 2014, 12:02
by RamonTavarez
@brokenman:

Thanks again for your instructions! :Bravo:

I did as you recommended and everything is ok :good: (until now).

Best regards.