Package Details: bfg-git r465.aeee9e3-1

Git Clone URL: https://aur.archlinux.org/bfg-git.git (read-only, click to copy)
Package Base: bfg-git
Description: Removes large blobs like git-filter-branch does, but faster.
Upstream URL: https://github.com/rtyley/bfg-repo-cleaner
Licenses: GPL3
Submitter: DarioP
Maintainer: DarioP
Last Packager: DarioP
Votes: 0
Popularity: 0.000000
First Submitted: 2020-03-07 22:55 (UTC)
Last Updated: 2021-09-07 14:58 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

tuxsavvy commented on 2021-09-07 14:45 (UTC) (edited on 2021-09-07 14:48 (UTC) by tuxsavvy)

@iamtalhaasghar It looks like the patch is no longer required; Upstream repo's commits reveals this.

Here is an updated PKGBUILD diff which addresses that:

--- PKGBUILD.orig
+++ PKGBUILD
@@ -2,9 +2,9 @@

 pkgname=bfg-git
 _gitname=bfg-repo-cleaner
-pkgver=r465.aeee9e3
-pkgrel=1
-pkgdesc='Removes large blobs like git-filter-branch does, but faster. Git version, no politics.'
+pkgver=r483.e7cdc46
+pkgrel=2
+pkgdesc='Removes large blobs like git-filter-branch does, but faster. Git version.'
 url='https://github.com/rtyley/bfg-repo-cleaner'
 arch=('any')
 license=('GPL3')
@@ -12,11 +12,9 @@
 makedepends=('sbt')
 conficts=('bfg')
 source=("git+https://github.com/rtyley/bfg-repo-cleaner.git"
-        "bfg.sh"
-        "clean.patch")
+        "bfg.sh")
 sha256sums=('SKIP'
-            'a41ad8ff48364c1118e69f5c1c6c5c070d56ad1d2f9cd09bca3c095385a6b530'
-            '99088f640a8ae89521eb5c5bfbdd96be348b1ccd6ba5072e4727247a04462782')
+            'a41ad8ff48364c1118e69f5c1c6c5c070d56ad1d2f9cd09bca3c095385a6b530')

 pkgver() {
   cd "$_gitname"
@@ -25,7 +23,6 @@

 prepare() {
   cd "$_gitname"
-  patch --forward --strip=2 --input="${srcdir}/clean.patch"
 }

 build() {

Alternatively, here is the full PKGBUILD:

# Maintainer: Dario Pellegrini <pellegrini dot dario at gmail dot com>

pkgname=bfg-git
_gitname=bfg-repo-cleaner
pkgver=r483.e7cdc46
pkgrel=2
pkgdesc='Removes large blobs like git-filter-branch does, but faster. Git version.'
url='https://github.com/rtyley/bfg-repo-cleaner'
arch=('any')
license=('GPL3')
depends=('java-runtime>8' 'bash')
makedepends=('sbt')
conficts=('bfg')
source=("git+https://github.com/rtyley/bfg-repo-cleaner.git"
        "bfg.sh")
sha256sums=('SKIP'
            'a41ad8ff48364c1118e69f5c1c6c5c070d56ad1d2f9cd09bca3c095385a6b530')

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$_gitname"
}

build() {
  cd "$_gitname"
  sbt "bfg/assembly"
}

package() {
  install -DT -m755 "${srcdir}/bfg.sh" "${pkgdir}/usr/bin/bfg"
  install -DT -m644 "$(find . -name 'bfg*.jar')" "${pkgdir}/usr/share/java/bfg/bfg.jar"
}

Going to flag this package out of date as the patch is no longer required.

iamtalhaasghar commented on 2021-05-12 11:29 (UTC) (edited on 2021-05-12 11:30 (UTC) by iamtalhaasghar)

error making: bfg-git. A failure occurred in prepare().

:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  bfg-git-r465.aeee9e3-1

  1 bfg-git                                  (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/1): bfg-git
  1 bfg-git                                  (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: bfg-git
==> Making package: bfg-git r465.aeee9e3-1 (Wed 12 May 2021 04:27:52 PM PKT)
==> Retrieving sources...
  -> Updating bfg-repo-cleaner git repo...
Fetching origin
  -> Found bfg.sh
  -> Found clean.patch
==> Validating source files with sha256sums...
    bfg-repo-cleaner ... Skipped
    bfg.sh ... Passed
    clean.patch ... Passed
==> Making package: bfg-git r465.aeee9e3-1 (Wed 12 May 2021 04:27:54 PM PKT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating bfg-repo-cleaner git repo...
Fetching origin
  -> Found bfg.sh
  -> Found clean.patch
==> Validating source files with sha256sums...
    bfg-repo-cleaner ... Skipped
    bfg.sh ... Passed
    clean.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of bfg-repo-cleaner git repo...
Cloning into 'bfg-repo-cleaner'...
done.
==> Starting prepare()...
patching file bfg/src/main/scala/com/madgag/git/bfg/cli/Main.scala
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file bfg/src/main/scala/com/madgag/git/bfg/cli/Main.scala.rej
==> ERROR: A failure occurred in prepare().
    Aborting...
error making: bfg-git