dCore Import Debian Packages to Mountable SCE extensions > dCore x86 Imported Extensions

update-alternatives mising /var/lib/dpkg/alternatives

(1/1)

jls:
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

jls:
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: ---/usr/local/tce.installed/vim-gtk
--- End code ---
in bootlocal it works.

PS. update-aletnatives already exists since it's in  my base sce which is installed before vim-gtk.sce

jls:
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

Jason W:
Thanks, I will look into it.

Jason W:
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.

Navigation

[0] Message Index

Go to full version