Re: Slackware lxc template in Slackware 14.2

Didier Spaier via slackware <[email protected]> Sat, 29 Apr 2017 23:03:46 +0200
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
Hello,

Le 08/04/2017 à 01:01, Eleksir via slackware a écrit :
> On Fri, April 7, 2017 22:22, Didier Spaier via slackware wrote:
>> Le 08/04/2017 Ã  00:00, Eleksir via slackware a écrit :
>>
>>> Hello folks.
>>>
>>>
>>> For sometime i'm setting up some pretty well amount of LXC containers
>>> and stock slackware containers are unable to use slackpkg and namely
>>> wget:
>>>
>>>
>>> Downloading
>>> http://ftp.slackware.com/pub/slackware/slackware-current/GPG-KEY...
>>> wget: error while loading shared libraries: libunistring.so.0: cannot
>>> open shared object file: No such file or directory Updating the package
>>> lists... Downloading...
>>> Downloading
>>> http://ftp.slackware.com/pub/slackware/slackware-current/ChangeLog.txt..
>>> .
>>> wget: error while loading shared libraries: libunistring.so.0: cannot
>>> open shared object file: No such file or directory grep:
>>> /tmp/slackpkg.2ztlEa/ChangeLog.txt: No such file or directory
>>>
>>>
>>> Error downloading from
>>> http://ftp.slackware.com/pub/slackware/slackware-current/.
>>> Please, check your mirror and try again.
>>>
>>>
>>>
>>>
>>> Well, it's getting me nuts. 2 things: Slackware-Current instead of
>>> stable (it is on stable host OS!) by default and unusable wget!
>>>
>>>
>>> Actually, i can download libunistring-0.9.3-i486-1.txz from mirror and
>>> put it to container using host os, then lxc-attach to container and
>>> installpkg this package but i think that it should work out of the box,
>>> am i wrong?
>>
>>
>> Works here. Also I have modified the template to allow running
>> unprivileged containers, see the attached patch (instructions for use on
>> top of it) and this post:
>>
>> http://www.linuxquestions.org/questions/slackware-14/%5Brequest-for-comme
>> nts%5D-do-we-still-need-cgmanager-4175599676/#post5681501
>>
>> Cheers,
>> Didier
>> _______________________________________________
>> slackware mailing list [email protected]
>> https://mailman.lug.org.uk/mailman/listinfo/slackware
> 
> same thing:
> wget: error while loading shared libraries: libunistring.so.0: cannot open
> shared object file: No such file or directory
> 
> P.S.
> test scenario is not changed: slackware-14.2 host (x86) and default
> slackware guest (x86), now installed guest becomes slackware-14.2,
> but issue with libunistring persists - template _never_ installs
> _libunistring_
> in freshly installed guest:
> 
> root@s:/# ls /var/log/packages/|grep uni
> root@s:/#
> 
> but on host:
> root@atlas:/home/lxc/orc/rootfs/etc/init.d# ls /var/log/packages/|grep uni
> libunibreak-1.1-i486-1_SBo
> libunique-1.1.6-i486-4_SBo
> libunistring-0.9.3-i486-1
> rxvt-unicode-9.22-i486-2_SBo
> tibmachuni-font-ttf-1.901b-noarch-1
> 
> Ta-da! here it is!
> 
> So, we need to go deeper.
>
Well, I am puzzled.

I have included libunistring in the template and wget works inside a
container.

But if I remove libunistring it still works.

As a far as I know libunistring is not a dependency of wget so that's not
surprising.

Do I miss something?

Also, there has to be a default for tne release.

I didn't change it (current) but I added a comment about the option
in the output of "lxc-create -n mycontainer -t slackware -- help"

I will post an updated patch in the aforementioned thread.

Oh and in my opinion it's better to post issues about lxc either in
the Slackware forum of linuxquestions.org or write directly to the
package maintainer (Matteo Bernadini aka ponce). I'm not sure that
all Slackware package maintainers read the posts on this list.

Have a good day,

Didier

_______________________________________________
slackware mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/slackware