`pamac build` and `pamac build --no-clone` still clones, and builds the wrong version of split packages
Pamac --version
❯ pamac --version
Pamac 10.3.0-5 - libpamac 11.2.0-7
Copyright © 2019-2022 Guillaume Benoit
This program is free software, you can redistribute it under the terms of the GNU GPL.
Variant in use
CLI
Distribution
Manjaro
Desktop environment
XFCE
What's not working
Building intellij-idea-ultimate-edition
from old local PKGBUILD instead clones the latest version.
How to reproduce?
- (optional) Cleaning all files
pamac clean -k 0 && pamac clean -b
- Download an old version (2021.3.1-1) of intellij-idea-ultimate-edition.
curl https://aur.archlinux.org/cgit/aur.git/snapshot/aur-f13a985da91faca8e50efb871854f5d70dab367b.tar.gz | tar -xz
- Go inside the directory
cd aur-f13a985da91faca8e50efb871854f5d70dab367b
- Build the old version:
pamac build
or be explicit about not cloning:pamac build --no-clone
- pamac will clone and install the latest version anyway.
❯ pamac build --no-clone
Preparing...
Checking intellij-idea-ultimate-edition-jre dependencies...
Warning: downgrading package intellij-idea-ultimate-edition-jre (2021.3.2-1 => 2021.3.1-1)
Warning: downgrading package intellij-idea-ultimate-edition (2021.3.2-1 => 2021.3.1-1)
Resolving dependencies...
Checking inter-conflicts...
To build (2):
intellij-idea-ultimate-edition-jre 2021.3.1-1 (2021.3.2-1) AUR
intellij-idea-ultimate-edition 2021.3.1-1 (2021.3.2-1) AUR
Edit build files : [e]
Apply transaction ? [e/y/N] y
Cloning intellij-idea-ultimate-edition build files...
Generating intellij-idea-ultimate-edition information...
Building intellij-idea-ultimate-edition...
==> Making package: intellij-idea-ultimate-edition 2021.3.2-1 (tis 15 feb 2022 11:13:56)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading ideaIU-2021.3.2.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 100 138 0 0 590 0 --:--:-- --:--:-- --:--:-- 592
100 921M 100 921M 0 0 29.7M 0 0:00:30 0:00:30 --:--:-- 32.0M
-> Found jetbrains-idea.desktop
==> Validating source files with sha256sums...
ideaIU-2021.3.2.tar.gz ... Passed
jetbrains-idea.desktop ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting ideaIU-2021.3.2.tar.gz with bsdtar
==> Starting prepare()...
==> Entering fakeroot environment...
==> Starting package_intellij-idea-ultimate-edition()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> WARNING: backup entry file not in package : opt/intellij-idea-ultimate-edition/bin/idea.vmoptions
==> Creating package "intellij-idea-ultimate-edition"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Starting package_intellij-idea-ultimate-edition-jre()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "intellij-idea-ultimate-edition-jre"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: intellij-idea-ultimate-edition 2021.3.2-1 (tis 15 feb 2022 11:16:28)
==> Cleaning up...
Checking keyring... [2/2]
Checking integrity... [2/2]
Loading packages files... [2/2]
Checking file conflicts... [2/2]
Checking available disk space... [2/2]
Reinstalling intellij-idea-ultimate-edition (2021.3.2-1)... [1/2]
Reinstalling intellij-idea-ultimate-edition-jre (2021.3.2-1)... [2/2]
Running post-transaction hooks...
Arming ConditionNeedsUpdate... [1/2]
Updating the desktop file MIME type cache... [2/2]
Transaction successfully finished.
More information (optional)
Running makepkg
instead of pamac build
builds the old versions of the package as expected.
❯ makepkg
==> Making package: intellij-idea-ultimate-edition 2021.3.1-1 (tis 15 feb 2022 11:26:18)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading ideaIU-2021.3.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 100 138 0 0 552 0 --:--:-- --:--:-- --:--:-- 552
100 921M 100 921M 0 0 30.4M 0 0:00:30 0:00:30 --:--:-- 28.4M
-> Found jetbrains-idea.desktop
==> Validating source files with sha256sums...
ideaIU-2021.3.1.tar.gz ... Passed
jetbrains-idea.desktop ... Passed
==> Extracting sources...
-> Extracting ideaIU-2021.3.1.tar.gz with bsdtar
==> Starting prepare()...
==> Entering fakeroot environment...
==> Starting package_intellij-idea-ultimate-edition()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> WARNING: backup entry file not in package : opt/intellij-idea-ultimate-edition/bin/idea.vmoptions
==> Creating package "intellij-idea-ultimate-edition"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Starting package_intellij-idea-ultimate-edition-jre()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "intellij-idea-ultimate-edition-jre"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: intellij-idea-ultimate-edition 2021.3.1-1 (tis 15 feb 2022 11:28:48)