LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02:45 PM   #1
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
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, 10:27 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,104

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
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, 08:33 AM   #3
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
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, 08:52 AM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
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, 07:39 PM   #5
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
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, 12:46 AM   #6
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

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

 
  


Reply



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 05:48 PM
[SOLVED] Slackware -current and libunistring tuxrules Slackware 10 07-21-2017 02:17 AM
[SOLVED] LXC + Slackware 14.1 (understanding) Hyakutake Slackware 7 11-05-2014 05:42 AM
slackware lxc / iptables ccie15672 Linux - Virtualization and Cloud 0 02-26-2012 06:58 PM

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

All times are GMT -5. The time now is 05:53 PM.

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
Open Source Consulting | Domain Registration