Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: jls on February 25, 2015, 08:14:06 AM

Title: update-alternatives mising /var/lib/dpkg/alternatives
Post by: jls on February 25, 2015, 08:14:06 AM
Hi
I've tried to install vim-gtk and the postinst script uses update-alternatives to create the gvim executable, but update-alternatives needs the directory /var/lib/dpkg/alternatives, so I created it and the gvim file is created.
I placed
mkdir /var/lib/dpkg/alternatives
in /opt/bootlocal.sh
Title: Re: update-alternatives mising /var/lib/dpkg/alternatives
Post by: jls on February 28, 2015, 04:24:26 AM
Hi Jason & the others
actually  it doesn't work, I've also tried to put var/lib/dpkg/alternatives in filetool.lst, but nothing, the gvim bimary is not created, but if I put
Code: [Select]
/usr/local/tce.installed/vim-gtkin bootlocal it works.

PS. update-aletnatives already exists since it's in  my base sce which is installed before vim-gtk.sce
Title: Re: update-alternatives mising /var/lib/dpkg/alternatives
Post by: jls on February 28, 2015, 04:42:49 AM
Hi again
Now I understand, both bootlocal.sh & mydata are processed after  tce-setup so I propose to include /var/lib/dpkg/alternatives in the initrd.

Good weekend to you all
Title: Re: update-alternatives mising /var/lib/dpkg/alternatives
Post by: Jason W on March 01, 2015, 06:08:45 PM
Thanks, I will look into it.
Title: Re: update-alternatives mising /var/lib/dpkg/alternatives
Post by: Jason W on March 01, 2015, 06:36:29 PM
Good find, simply creating the /var/lib/dpkg/alternatives directory lets the update-alternatives work.  This will help make a lot of packages get set up right.  I will add the dir and upload to release candidates now.