Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing with AUR fails #98

Closed
firstdorsal opened this issue Apr 19, 2023 · 8 comments
Closed

Installing with AUR fails #98

firstdorsal opened this issue Apr 19, 2023 · 8 comments

Comments

@firstdorsal
Copy link

Updated Git hooks.
Git LFS initialized.
fetch: 179 objects found, done.                                                                                                                                                                           
fetch: Fetching all references...
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.                                                          
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/saturneric/GpgFrontend.git/info/lfs'
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: gpgfrontend-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
gpgfrontend - exit status 4
@saturneric
Copy link
Owner

saturneric commented Apr 19, 2023

Git LFS of this repo is off now. The AUR maintainer of GpgFrontend may need to update the installation progress. It may be a surprise that I am not the maintainer. ;)

@firstdorsal
Copy link
Author

I contacted them through the AUR.
Thank you for creating this project!

@benjamb
Copy link

benjamb commented Apr 19, 2023

Looks like this has been fixed in the AUR. Any chance of a release that includes this change though? Would be a little nicer to have a clean build without having to cherry-pick the un-lfs commit.

@Konsonanz
Copy link

AUR pkgbuild is now updated for removed lfs by cherry-picking e60faa7 for current v2.1.0 release and should be building again.

@Ichimikichiki
Copy link

Ichimikichiki commented Jun 8, 2023

This didn't fix it.

Downloading resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (155 B)
Error downloading object: resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (370d5e7): 
Smudge error: Error downloading resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop 
(370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac): error transferring 
"370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac": [0] remote missing object 
370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac

Removed git-lfs since your PKGBUILD has it removed.
Found cache in weird location. Deleted.

Cloning into 'gpgfrontend'...
done.
git-lfs filter-process: line 1: git-lfs: command not found
fatal: the remote end hung up unexpectedly
==> ERROR: Failure while creating working copy of gpgfrontend git repo
    Aborting...
 -> error making: gpgfrontend-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
gpgfrontend - exit status 1

Re-added git-lfs....
Removed cache from weird location.

Cloning into 'gpgfrontend'...
done.
Downloading resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (155 B)
Error downloading object: resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (370d5e7): 
Smudge error: Error downloading resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop 
(370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac): error transferring 
"370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac": [0] remote missing object 
370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac
 
Errors logged to '/home/null/.cache/xdg_cache/yay/gpgfrontend/src/gpgfrontend/.git/lfs/logs/20230608T122611.350095058.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop: smudge filter lfs failed
==> ERROR: Failure while creating working copy of gpgfrontend git repo
    Aborting...
 -> error making: gpgfrontend-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
gpgfrontend - exit status 1

@Konsonanz
Copy link

Konsonanz commented Jun 8, 2023

@Ichimikichiki If you judge this as a AUR package issue, then please move the discussion to the AUR package page.

Regardless, for AUR gpgfrontend-2.1.0-2 I just tried the build in a clean chroot and the package was created successfully. Your logs read as if you are still trying to build version 2.1.0-1 without the now required cherry-pick commit. Please check if your sources are up to date and if you still run into problems, I'd be happy to help you in the AUR page discussion section.

@Ichimikichiki
Copy link

Ichimikichiki commented Jun 8, 2023

Is that right

λ null gpgfrontend → λ git master →  makepkg -siCL
==> Making package: gpgfrontend 2.1.0-2 (Thu 08 Jun 2023 08:24:46 PM AEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning gpgfrontend git repo...
Cloning into bare repository '/home/null/.cache/yay/gpgfrontend/gpgfrontend'...
remote: Enumerating objects: 12184, done.
remote: Counting objects: 100% (2946/2946), done.
remote: Compressing objects: 100% (809/809), done.
remote: Total 12184 (delta 2077), reused 2869 (delta 2047), pack-reused 9238
Receiving objects: 100% (12184/12184), 73.79 MiB | 11.97 MiB/s, done.
Resolving deltas: 100% (8544/8544), done.
  -> Cloning json git repo...
Cloning into bare repository '/home/null/.cache/yay/gpgfrontend/json'...
remote: Enumerating objects: 72526, done.
remote: Counting objects: 100% (72526/72526), done.
remote: Compressing objects: 100% (14893/14893), done.
remote: Total 72526 (delta 52933), reused 71155 (delta 51962), pack-reused 0
Receiving objects: 100% (72526/72526), 202.19 MiB | 5.69 MiB/s, done.
Resolving deltas: 100% (52933/52933), done.
  -> Cloning Qt-AES git repo...
Cloning into bare repository '/home/null/.cache/yay/gpgfrontend/Qt-AES'...
remote: Enumerating objects: 570, done.
remote: Counting objects: 100% (570/570), done.
remote: Compressing objects: 100% (236/236), done.
remote: Total 570 (delta 335), reused 561 (delta 330), pack-reused 0
Receiving objects: 100% (570/570), 2.93 MiB | 1.39 MiB/s, done.
Resolving deltas: 100% (335/335), done.
  -> Cloning spdlog git repo...
Cloning into bare repository '/home/null/.cache/yay/gpgfrontend/spdlog'...
remote: Enumerating objects: 30796, done.
remote: Counting objects: 100% (30796/30796), done.
remote: Compressing objects: 100% (7986/7986), done.
remote: Total 30796 (delta 20465), reused 29652 (delta 19727), pack-reused 0
Receiving objects: 100% (30796/30796), 87.74 MiB | 5.31 MiB/s, done.
Resolving deltas: 100% (20465/20465), done.
==> Validating source files with sha256sums...
    gpgfrontend ... Skipped
    json ... Skipped
    Qt-AES ... Skipped
    spdlog ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of gpgfrontend git repo...
Cloning into 'gpgfrontend'...
done.
Downloading resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (155 B)
Error downloading object: resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (370d5e7): Smudge error: Error downloading resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac): error transferring "370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac": [0] remote missing object 370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac

Errors logged to '/home/null/.cache/yay/gpgfrontend/src/gpgfrontend/.git/lfs/logs/20230608T202603.820288861.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop: smudge filter lfs failed
==> ERROR: Failure while creating working copy of gpgfrontend git repo
    Aborting...

That was an empty folder with just PKGBUILD in it. After running yay -Scc.

Perhaps you forgot something
Screenshot_2023-06-08_20-34-48

git-lfs/3.3.0 (GitHub; linux amd64; go 1.19.4)
git version 2.41.0

$ git-lfs filter-process
Error downloading object: resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (370d5e7): Smudge error: Error downloading resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac): error transferring "370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac": [0] remote missing object 370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac

error transferring "370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac": [0] remote missing object 370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac
github.com/git-lfs/git-lfs/v3/errors.New
	github.com/git-lfs/git-lfs/v3/errors/errors.go:62
github.com/git-lfs/git-lfs/v3/tq.(*customAdapter).DoTransfer
	github.com/git-lfs/git-lfs/v3/tq/custom.go:311
github.com/git-lfs/git-lfs/v3/tq.(*adapterBase).worker
	github.com/git-lfs/git-lfs/v3/tq/adapterbase.go:183
runtime.goexit
	runtime/asm_amd64.s:1594
Error downloading resource/lfs/app-image/gpgfrontend/usr/share/applications/gpgfrontend.desktop (370d5e78f3c3035e770b1641163fbf945e0a293155a6fecee0808d70ccba59ac)
github.com/git-lfs/git-lfs/v3/errors.newWrappedError
	github.com/git-lfs/git-lfs/v3/errors/types.go:229
github.com/git-lfs/git-lfs/v3/errors.Wrapf
	github.com/git-lfs/git-lfs/v3/errors/errors.go:85
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).downloadFile
	github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:128
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge
	github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:79
github.com/git-lfs/git-lfs/v3/commands.smudge
	github.com/git-lfs/git-lfs/v3/commands/command_smudge.go:128
github.com/git-lfs/git-lfs/v3/commands.filterCommand
	github.com/git-lfs/git-lfs/v3/commands/command_filter_process.go:131
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/cobra@v0.0.3/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/cobra@v0.0.3/command.go:852
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/cobra@v0.0.3/command.go:800
github.com/git-lfs/git-lfs/v3/commands.Run
	github.com/git-lfs/git-lfs/v3/commands/run.go:108
main.main
	github.com/git-lfs/git-lfs/v3/git-lfs.go:34
runtime.main
	runtime/proc.go:250
runtime.goexit
	runtime/asm_amd64.s:1594
Smudge error
github.com/git-lfs/git-lfs/v3/errors.newWrappedError
	github.com/git-lfs/git-lfs/v3/errors/types.go:229
github.com/git-lfs/git-lfs/v3/errors.NewSmudgeError
	github.com/git-lfs/git-lfs/v3/errors/types.go:315
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge
	github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:96
github.com/git-lfs/git-lfs/v3/commands.smudge
	github.com/git-lfs/git-lfs/v3/commands/command_smudge.go:128
github.com/git-lfs/git-lfs/v3/commands.filterCommand
	github.com/git-lfs/git-lfs/v3/commands/command_filter_process.go:131
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/cobra@v0.0.3/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/cobra@v0.0.3/command.go:852
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/cobra@v0.0.3/command.go:800
github.com/git-lfs/git-lfs/v3/commands.Run
	github.com/git-lfs/git-lfs/v3/commands/run.go:108
main.main
	github.com/git-lfs/git-lfs/v3/git-lfs.go:34
runtime.main
	runtime/proc.go:250
runtime.goexit
	runtime/asm_amd64.s:1594

Current time in UTC:
2023-06-08 10:26:03

Environment:
LocalWorkingDir=/home/null/.cache/yay/gpgfrontend/src/gpgfrontend
LocalGitDir=/home/null/.cache/yay/gpgfrontend/src/gpgfrontend/.git
LocalGitStorageDir=/home/null/.cache/yay/gpgfrontend/src/gpgfrontend/.git
LocalMediaDir=/home/null/.cache/yay/gpgfrontend/src/gpgfrontend/.git/lfs/objects
LocalReferenceDirs=
TempDir=/home/null/.cache/yay/gpgfrontend/src/gpgfrontend/.git/lfs/tmp
ConcurrentTransfers=8
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=/home/null/.cache/yay/gpgfrontend/src/gpgfrontend/.git/lfs
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic,lfs-standalone-file,ssh
UploadTransfers=basic,lfs-standalone-file,ssh
GIT_EXEC_PATH=/usr/lib/git-core
GIT_PREFIX=

Look closer.
actions/runner-images#6002

The Ubuntu 18.04 Actions runner image will begin deprecation on 2022/08/08 
and will be fully unsupported by 2023/04/03

@Konsonanz
Copy link

Ah I see, error: external filter 'git-lfs filter-process' failed is indicating that during cloning the lfs-step is forced (which does not work with the checked out commit), because the lfs filters are still globally set in the ~/.gitconfig file. I could reproduce the build fail with those settings.

Unfortunately, that is ultimately a build environment problem:
You can either execute git lfs uninstall, makepkg -siC and git lfs install, to build without forced lfs and restore global .gitconfig afterwards.
But since this is cumbersome, I recommend building with a clean chroot where git lfs is never installed or configured in the first place by using the extra-x86_64-build command (it's buildpkg for manjaro), at least until a new release gets made where these workarounds are not needed anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants