LoginSignup
6
2

More than 3 years have passed since last update.

WSL上のArchLinuxでyayを使う方法

Last updated at Posted at 2019-09-13

前提

Windows10 1903のWSL上にこのパッケージでArchLinuxを構築した際にyayをインストールする方法です。

症状

hayao@Hayao-PC-Win10:~/yay$ makepkg -si                                                                                  ==> Making package: yay 9.2.1-1 (Sat 14 Sep 2019 08:07:01 AM JST)                                                       ==> Checking runtime dependencies...                                                                                    ==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading yay-9.2.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   117    0   117    0     0    326      0 --:--:-- --:--:-- --:--:--   327
100  345k  100  345k    0     0   440k      0 --:--:-- --:--:-- --:--:-- 10.4M
==> Validating source files with sha1sums...
    yay-9.2.1.tar.gz ... Passed
==> Extracting sources...                                                                                                 -> Extracting yay-9.2.1.tar.gz with bsdtar
==> Starting build()...
go build -v -gcflags=all=-trimpath=/home/hayao/yay/src/yay-9.2.1 -asmflags=all=-trimpath=/home/hayao/yay/src/yay-9.2.1 -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow -ldflags '-s -w -X main.version=9.2.1' -o yay -mod=vendor        ==> Entering fakeroot environment...
fakeroot, while creating message channels: Function not implemented                                                     This may be due to a lack of SYSV IPC support.                                                                          fakeroot: error while starting the `faked' daemon.                                                                      kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] 

対処法

通常の方法ではfakerootの段階で失敗してしまい、正常にビルドできません。
修正版のfakerootを手動でインストールすることで解決します。

sudo pacman -Syu
sudo pacman -S git base base-devel
wget https://github.com/yuk7/arch-prebuilt/releases/download/18082100/fakeroot-tcp-1.23-1-x86_64.pkg.tar.xz
sudo pacman -U fakeroot-tcp-1.23-1-x86_64.pkg.tar.xz
rm fakeroot-tcp-1.23-1-x86_64.pkg.tar.xz
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -r yay
# Gitを削除してもいい場合は
yay -Rsn git
6
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2