Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#58223 - [lxc] Dependency arch-install-scripts listed as needed for template that no longer exists

Attached to Project: Community Packages
Opened by Benjamin Denhartog (bddenhartog) - Friday, 13 April 2018, 23:40 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 03 May 2018, 11:11 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The `arch-install-scripts` dependency is described as providing an Arch Linux template for LXC. This is not the case as can clearly be seen by `pacman -Ql arch-install-scripts`.

```
$ pacman -Ql arch-install-scripts
arch-install-scripts /usr/
arch-install-scripts /usr/bin/
arch-install-scripts /usr/bin/arch-chroot
arch-install-scripts /usr/bin/genfstab
arch-install-scripts /usr/bin/pacstrap
arch-install-scripts /usr/share/
arch-install-scripts /usr/share/zsh/
arch-install-scripts /usr/share/zsh/site-functions/
arch-install-scripts /usr/share/zsh/site-functions/_archinstallscripts
```

From the [wiki][0]:

> With the release of lxc-3.0.0-1, upstream has deprecated locally stored templates.
> ...
> Note: Users wanting the legacy templates can find them in lxc-templates(AUR) or alternatively, users can build their own templates with distrobuilder(AUR).

I'm just starting to experiment with LXC. It took a while to chase down how to best get a local template, which I need in order to run tests against an Arch Linux installation with Ansible+Molecule while not connected to a network.

[0]: https://wiki.archlinux.org/index.php/Linux_Containers#Container_creation
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 03 May 2018, 11:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  arch-install-scripts removed from optdeps
Comment by Benjamin Denhartog (bddenhartog) - Friday, 13 April 2018, 23:44 GMT
I looked through the git history for `arch-install-scripts` and can't verify that it _ever_ provided an lxc-based Arch Linux template. I'm assuming that this dependency can/should be removed, as it is unclear what purpose it serves (or ever served) for `lxc`.
Comment by Doug Newgard (Scimmia) - Saturday, 14 April 2018, 01:48 GMT
Nothing says that arch-install-scripts provides the template, only that it's needed to use the template.
Comment by Benjamin Denhartog (bddenhartog) - Saturday, 14 April 2018, 02:29 GMT
Perhaps I'm misinterpreting the language, then:

```
$ pacman -Si lxc
Optional Deps : arch-install-scripts: for archlinux template [installed]
```
Comment by Daniel M. Capella (polyzen) - Saturday, 14 April 2018, 15:44 GMT
That's the language normally used for optdep descriptions.
Comment by Benjamin Denhartog (bddenhartog) - Saturday, 14 April 2018, 15:54 GMT
Consider `firefox`:

```
$ pacman -Si firefox
Optional Deps : networkmanager: Location detection via available WiFi networks
libnotify: Notification integration
pulseaudio: Audio support
speech-dispatcher: Text-to-Speech
```

It is clear what each of the deps will provide. In the lxc package, for the optional dep `arch-install-scripts`, "for archlinux template" reads -- at least to me -- like installing the `arch-install-scripts` package will provide an lxc-based archlinux template.

Am I alone in interpreting the meaning of "install X for Y" this way? I definitely wouldn't want to push this ticket if that is the case. The language just seems odd and misleading to me.
Comment by Eli Schwartz (eschwartz) - Sunday, 15 April 2018, 17:12 GMT
It reads to me as though lxc provides a template, which needs the install scripts to run. Does lxc not provide that template? If so, why does it discuss it anyway?
Comment by Benjamin Denhartog (bddenhartog) - Sunday, 15 April 2018, 19:50 GMT
> Does lxc not provide that template?

Neither the `lxc` package itself or the `arch-install-scripts` dependency provide the template, which is why I'm opening this issue to discuss changing the description for the dependency.
Comment by Daniel M. Capella (polyzen) - Sunday, 15 April 2018, 22:53 GMT
Reverse optdep ^^
Comment by Doug Newgard (Scimmia) - Monday, 16 April 2018, 15:23 GMT
If the template is no longer in lxc, the dep should just be removed.

Loading...