Skip to content
Snippets Groups Projects
Commit 50fd96a7 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.

parent a83f18c9
No related branches found
No related tags found
No related merge requests found
Pipeline #1045 failed with stage
in 23 seconds
# docker run -ti -v (pwd)/recolic-aur:/home/builder/.cache/pikaur/pkg recolic/pikaur bash -c 'chown builder -R /home/builder/.cache/pikaur/pkg && sudo -u builder pikaur -Sw --noconfirm $pkgs'
# You can reuse the container (commit it as new image) after running first build. There may be tons of dependencies to be downloaded.
FROM archlinux:base-devel
COPY install-pikaur.sh /
RUN bash /install-pikaur.sh
RUN pacman -S --noconfirm go
RUN useradd -m builder && echo 'builder ALL=(ALL) NOPASSWD: ALL' | EDITOR='tee -a' visudo
# To prevent docker from creating a root-only dir
RUN sudo -u builder mkdir -p /home/builder/.cache/pikaur/build && \
sed -i 's/check_pgpsigs() {/check_pgpsigs() { return 0/g' /usr/share/makepkg/integrity/verify_signature.sh && \
sed -i 's/SigLevel.*$/SigLevel = Never/' /etc/pacman.conf
# makepkg auto-key-retrieve is not working. This is my only solution.
# pacman will complain about expired GPG keys if the image is not updated. Disable the SigLevel verify to avoid these error.
#!/bin/bash
# pacman -Sy --noconfirm git pyalpm python-commonmark python-pip python-build python-installer python-setuptools python-markdown-it-py python-hatchling &&
pacman -Sy --noconfirm git pacutils perl-json-xs &&
git clone https://aur.archlinux.org/aurutils.git &&
chmod 777 -R aurutils &&
cd aurutils &&
sudo -u nobody makepkg &&
pacman -U --noconfirm *.pkg.*
exit $?
#mkdir -p /repo
#cd /repo ; repo-add recolic-aur.db.tar.gz
#AUR_ASROOT=1 aur sync -d recolic-aur --root=/repo teamviewer
#
#chmod 777 -R /root
#AUR_ASROOT=1 aur build -d recolic-aur --root=/repo teamviewer
# docker run -ti -v (pwd)/recolic-aur:/home/builder/.cache/pikaur/pkg recolic/pikaur bash -c 'chown builder -R /home/builder/.cache/pikaur/pkg && sudo -u builder pikaur -Sw --noconfirm $pkgs'
# You can reuse the container (commit it as new image) after running first build. There may be tons of dependencies to be downloaded.
FROM archlinux:base-devel
COPY install-pikaur.sh /
RUN bash /install-pikaur.sh
RUN pacman -S --noconfirm go
RUN useradd -m builder && echo 'builder ALL=(ALL) NOPASSWD: ALL' | EDITOR='tee -a' visudo
# To prevent docker from creating a root-only dir
RUN sudo -u builder mkdir -p /home/builder/.cache/pikaur/build && \
sed -i 's/check_pgpsigs() {/check_pgpsigs() { return 0/g' /usr/share/makepkg/integrity/verify_signature.sh && \
sed -i 's/SigLevel.*$/SigLevel = Never/' /etc/pacman.conf
# makepkg auto-key-retrieve is not working. This is my only solution.
# pacman will complain about expired GPG keys if the image is not updated. Disable the SigLevel verify to avoid these error.
#!/bin/bash
pacman -Sy --noconfirm git wget sudo &&
wget https://recolic.net/tmp/yay -O /yay &&
chmod +x /yay
# yay with noinstall patch
#&&
# mkdir /home/nobody &&
# chown nobody:nobody /home/nobody/ &&
#
#git clone https://aur.archlinux.org/yay.git &&
#chmod 777 -R yay &&
#cd yay &&
#sudo -u nobody makepkg &&
#pacman -U --noconfirm *.pkg.*
#exit $?
# usage
#
diff --git a/pkg/sync/build/installer.go b/pkg/sync/build/installer.go
index a01815d..764162d 100644
--- a/pkg/sync/build/installer.go
+++ b/pkg/sync/build/installer.go
@@ -276,14 +276,17 @@ func (installer *Installer) installAURPackages(ctx context.Context,
}
}
- if err := installPkgArchive(ctx, installer.exeCmd, installer.targetMode,
- installer.vcsStore, cmdArgs, pkgArchives, noConfirm); err != nil {
- return fmt.Errorf("%s - %w", fmt.Sprintf(gotext.Get("error installing:")+" %v", pkgArchives), err)
- }
+ // TODO: package has been built. DO NOT install.
+ println("DEBUG: built pkg: ", installer.exeCmd)
- if err := setInstallReason(ctx, installer.exeCmd, installer.targetMode, cmdArgs, deps, exps); err != nil {
- return fmt.Errorf("%s - %w", fmt.Sprintf(gotext.Get("error installing:")+" %v", pkgArchives), err)
- }
+ // if err := installPkgArchive(ctx, installer.exeCmd, installer.targetMode,
+ // installer.vcsStore, cmdArgs, pkgArchives, noConfirm); err != nil {
+ // return fmt.Errorf("%s - %w", fmt.Sprintf(gotext.Get("error installing:")+" %v", pkgArchives), err)
+ // }
+
+ // if err := setInstallReason(ctx, installer.exeCmd, installer.targetMode, cmdArgs, deps, exps); err != nil {
+ // return fmt.Errorf("%s - %w", fmt.Sprintf(gotext.Get("error installing:")+" %v", pkgArchives), err)
+ // }
return nil
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment