LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-14-2018, 03:45 PM   #1
mralk3
Senior Member
 
Registered: May 2015
Location: Utah, USA
Distribution: Slackware 14.2 || Slackware-current && CentOS
Posts: 1,318

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
Slackware 14.2 lxc-slackware template missing libunistring


In the Slackware 14.2 lxc-slackware minimal template (/usr/share/lxc/templates/lxc-slackware) wget is missing the dependency libunistring. So slackpkg will not work and it is a real pain in the butt to install packages within 14.2 lxc containers. I did not see this issue in Slackware-current's lxc package. Here is a small diff:


Code:
--- lxc-slackware.orig	2018-07-14 12:09:32.288309335 -0600
+++ lxc-slackware	2018-07-14 12:23:52.507272464 -0600
@@ -243,6 +243,7 @@
 grep
 gzip
 iputils
+libunistring
 logrotate
 mpfr
 net-tools
Everything else seems to be working as expected with the minimal lxc slackware template.
 
Old 07-15-2018, 11:27 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,473

Rep: Reputation: Disabled
I can confirm this: it seems that the wget version in /patches started using libunistring.
 
2 members found this post helpful.
Old 09-10-2018, 09:33 AM   #3
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,237

Rep: Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924
I ran into this as well. A workaround is to download the libunistring package on the host and copy it into the container's rootfs, and then install it in the container. I didn't see libunistring in the Slackware template for the -current lxc package either. Anyone know if this has been fixed upstream, or should it be reported? Browsing the latest git master, it wasn't immediately apparent where such a change would go, because the templates directory doesn't have much in it.
 
1 members found this post helpful.
Old 09-10-2018, 09:52 AM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,237

Rep: Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924
Okay, I see this in the git log:

Code:
commit aafb5ea2a849056f9866359996605af0290605bd
Author: Christian Brauner <christian.brauner@ubuntu.com>
Date:   Mon Feb 26 21:12:17 2018 +0100

    tree-wide: rm templates in favor of distrobuilder
    
    Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Prior to that commit, libunistring was present in the Slackware template, so I guess it was fixed. However, I don't see any Slackware template in lxc/distrobuilder, and it indeed seems to be a rather immature project. The last 2.x release, which still had the template files, did not have the libunistring fix. Perhaps this warrants a patch in the -current SlackBuild, then.
 
1 members found this post helpful.
Old 09-10-2018, 08:39 PM   #5
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,237

Rep: Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924Reputation: 924
Code:
Mon Sep 10 21:00:00 UTC 2018
patches/packages/lxc-2.0.1-x86_64-5_slack14.2.txz:  Rebuilt.
  Added libunistring to the list of initial packages in the Slackware
  template since it is now required by wget, and without it slackpkg will
  not function properly. Thanks to mralk3.
Thanks Pat!
 
1 members found this post helpful.
Old 09-13-2018, 01:46 AM   #6
mralk3
Senior Member
 
Registered: May 2015
Location: Utah, USA
Distribution: Slackware 14.2 || Slackware-current && CentOS
Posts: 1,318

Original Poster
Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
Sweet! Thanks for fixing this!

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware as an LXC Container upnort Slackware 1 12-10-2017 06:48 PM
[SOLVED] Slackware -current and libunistring tuxrules Slackware 10 07-21-2017 03:17 AM
[SOLVED] LXC + Slackware 14.1 (understanding) Hyakutake Slackware 7 11-05-2014 06:42 AM
slackware lxc / iptables ccie15672 Linux - Virtualization and Cloud 0 02-26-2012 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration