Package Details: samba-support 1-7

Git Clone URL: https://aur.archlinux.org/samba-support.git (read-only, click to copy)
Package Base: samba-support
Description: Metapkg and configuration for Samba support
Upstream URL: https://wiki.archlinux.org/index.php/samba
Keywords: config samba
Licenses: GPL
Submitter: labaman
Maintainer: labaman
Last Packager: labaman
Votes: 4
Popularity: 0.195824
First Submitted: 2022-07-26 20:32 (UTC)
Last Updated: 2022-11-02 18:43 (UTC)

Dependencies (5)

Required by (1)

Sources (1)

Latest Comments

spsf64 commented on 2024-02-13 21:25 (UTC)

Hi labaman, can you edit /etc/nsswitch.conf during the installation according to the wiki at: https://wiki.archlinux.org/title/Avahi#Hostname_resolution

"hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns"

This way we get the hostname resolution to work properly! TIA

labaman commented on 2023-11-20 15:27 (UTC)

@xiota I still don't see an explicit indication that dependencies should be specified in the package() section. Besides, a "metapackage" does not imply that anything should be run. In the examples given, such as posix, this technique is used to describe several packages within a single pkgbuild. But in any case, the full list of packages included in the posix metapackage is still listed in a separate depends section. So I prefer to wait for changes in official packages or documentation. Thank you for your concern.

xiota commented on 2023-11-18 19:30 (UTC) (edited on 2023-11-18 19:31 (UTC) by xiota)

:labaman: The packages needed for the build are listed in makedepends, not in depends.

From PKGBUILD:

4.1 depends

An array of packages that must be installed for the software to build and run. Dependencies defined inside the package() function are only required to run the software.


:labaman: I have not seen a single metapackage, including those from the official ARCH repositories, where the depends array was inside the package() function.

$ pacman -Sqs metapackage
kde-development-environment-meta
posix
posix-c-development
posix-software-development
posix-user-portability
posix-xsi
texlive-meta

From this list, five include depends inside the package() function. One requires its depends to build. One is incorrectly constructed, and I have opened a bug report.

labaman commented on 2023-11-18 18:04 (UTC) (edited on 2023-11-18 18:05 (UTC) by labaman)

@xiota The packages needed for the build are listed in makedepends, not in depends. Personally, I have not seen a single metapackage, including those from the official ARCH repositories, where the depends array was inside the package() function. Here is an example of such a package https://gitlab.archlinux.org/archlinux/packaging/packages/base/-/blob/main/PKGBUILD?ref_type=heads

So as long as what you suggest is not in the actual pkbuild documentation, nor in the actual ARCH metapackages, I will not apply such advice.

xiota commented on 2023-11-18 08:48 (UTC)

The depends should be moved inside the package() function because they aren't needed to make the package.