Package Details: downgrade 11.3.0-1

Git Clone URL: https://aur.archlinux.org/downgrade.git (read-only, click to copy)
Package Base: downgrade
Description: Bash script for downgrading one or more packages to a version in your cache or the A.L.A.
Upstream URL: https://github.com/archlinux-downgrade/downgrade
Licenses: GPL
Submitter: brisbin33
Maintainer: brisbin33 (atreyasha)
Last Packager: atreyasha
Votes: 760
Popularity: 12.08
First Submitted: 2009-11-12 01:48 (UTC)
Last Updated: 2023-03-31 04:49 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

1 2 3 4 5 6 .. 13 Next › Last »

Mettacrawer commented on 2023-12-04 07:54 (UTC)

Oh but partial upgrades break your system. HAHAHA

sclebo05 commented on 2023-11-15 11:43 (UTC)

this script saved my bacon when the newest nvidia drivers broke my world. Kudos!

eclairevoyant commented on 2023-11-04 00:32 (UTC)

Add it yourself, lol?

Ashark commented on 2023-11-04 00:24 (UTC)

Please add "--quiet" to the make command.

rwd2 commented on 2023-10-25 07:49 (UTC)

I found the cause. I was building on a partition that was mounted with noexec. When mounted with exec option the build went without issues and the executable was included in the package. Maybe it would be an idea to add a check to the build script for that.

brisbin33 commented on 2023-10-17 12:58 (UTC)

rwd2, note that unfortunately this seems to be system specific as I cannot reproduce:

% cat >PKGBUILD <<'EOM'
\`heredoc> # shellcheck disable=SC2034
# shellcheck disable=SC2154
# Author: Patrick Brisbin <pbrisbin@gmail.com>
pkgname=downgrade
pkgver=11.3.0
pkgrel=1
pkgdesc="Bash script for downgrading one or more packages to a version in your cache or the A.L.A."
arch=('any')
url="https://github.com/archlinux-downgrade/$pkgname"
license=('GPL')
backup=(etc/xdg/downgrade/downgrade.conf)
source=("downgrade-v$pkgver.tar.gz::https://github.com/archlinux-downgrade/$pkgname/archive/v$pkgver.tar.gz")
depends=('pacman-contrib' 'fzf') # pacsort
optdepends=('sudo: for installation via sudo')

package() {
  cd "$pkgname-$pkgver" || exit 1

  make DESTDIR="$pkgdir" PREFIX=/usr install
}
md5sums=('ca0c6958ef85116f96bb65e07cb26aff')
EOM
% makepkg -rsi
==> Making package: downgrade 11.3.0-1 (Tue 17 Oct 2023 08:57:15 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading downgrade-v11.3.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 54199    0 54199    0     0   175k      0 --:--:-- --:--:-- --:--:--  175k
==> Validating source files with md5sums...
    downgrade-v11.3.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting downgrade-v11.3.0.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
install -Dm644 conf/downgrade.conf "/tmp/pkg/downgrade/etc/xdg/downgrade/downgrade.conf"
install -Dm644 doc/downgrade.8 "/tmp/pkg/downgrade/usr/share/man/man8/downgrade.8"
install -Dm644 doc/pacignore.8 "/tmp/pkg/downgrade/usr/share/man/man8/pacignore.8"
for script_ in pacignore downgrade; do \
  install -Dm755 "bin/$script_" "/tmp/pkg/downgrade/usr/bin/$script_"; \
  install -Dm644 "completion/$script_/bash" "/tmp/pkg/downgrade/usr/share/bash-completion/completions/$script_"; \
  install -Dm644 "completion/$script_/zsh" "/tmp/pkg/downgrade/usr/share/zsh/site-functions/_${script_}"; \
  install -Dm644 "completion/$script_/fish" "/tmp/pkg/downgrade/usr/share/fish/vendor_completions.d/${script_}.fish"; \
done
for po_file_ in locale/**/*.po; do \
  locale_="$(basename "$po_file_" .po)"; \
  script_="$(basename "$(dirname "$po_file_")")"; \
  mkdir -p "/tmp/pkg/downgrade/usr/share/locale/$locale_/LC_MESSAGES/"; \
  msgfmt "$po_file_" -o "/tmp/pkg/downgrade/usr/share/locale/$locale_/LC_MESSAGES/${script_}.mo"; \
done
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "downgrade"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: downgrade 11.3.0-1 (Tue 17 Oct 2023 08:57:19 AM EDT)
==> Installing package downgrade with pacman -U...
loading packages...
warning: downgrade-11.3.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) downgrade-11.3.0-1

Total Installed Size:  0.07 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                           [##############################################################] 100%
(1/1) checking package integrity                                                                         [##############################################################] 100%
(1/1) loading package files                                                                              [##############################################################] 100%
(1/1) checking for file conflicts                                                                        [##############################################################] 100%
(1/1) checking available disk space                                                                      [##############################################################] 100%
:: Processing package changes...
(1/1) reinstalling downgrade                                                                             [##############################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
makepkg -rsi  3.78s user 2.71s system 74% cpu 8.754 total
% p -Ql downgrade | grep bin
downgrade /usr/bin/
downgrade /usr/bin/downgrade
downgrade /usr/bin/pacignore

brisbin33 commented on 2023-10-17 12:39 (UTC)

Thanks rwd2, it seems like the packaging issue here:

for script_ in ; do \

It's expecting a variable here to contain the executable names to install, but it's empty so it does nothing. I've opened an issue: https://github.com/archlinux-downgrade/downgrade/issues/220

rwd2 commented on 2023-10-17 12:29 (UTC)

Today I installed 11.3.0-1, but pacman -l shows the package is missing the executable. See build log and output of pacman -l here:

https://pastebin.com/DETBtY9r

brisbin33 commented on 2022-03-02 13:41 (UTC)

Yup, I've reported the Issue here. Please follow if you would like to know when it's fixed.

Archanfel80HUN commented on 2022-03-02 12:47 (UTC)

The x86-64-v3 level enables AVX, AVX2, BMI2, MOVBE, XSAVE, and other instructions found on Intel and AMD processors of the past several years. Its basically packages builds optimized for newer processors, instead of the generic one which is for compatibility. Using v3 builds could provide 5-10% percformance gain especially in kernels and dkms modules.