You are not logged in.
I uploaded the diff to a pastebin for you.
$ curl -o PKGBUILD.diff http://ix.io/4x0L $ git apply -v PKGBUILD.diff
$ git apply -v PKGBUILD.diff
Checking patch PKGBUILD...
error: PKGBUILD: No such file or directory
Offline
The error should be self explanatory. The commands need to executed in the same directory as the PKGBUILD.
Offline
The error should be self explanatory. The commands need to executed in the same directory as the PKGBUILD.
Well, I got the same output when running in powerline-shell-git branch unless you mean somewhere else.
Offline
loqs wrote:The error should be self explanatory. The commands need to executed in the same directory as the PKGBUILD.
Well, I got the same output when running in powerline-shell-git branch unless you mean somewhere else.
Offline
Fabienne wrote:loqs wrote:The error should be self explanatory. The commands need to executed in the same directory as the PKGBUILD.
Well, I got the same output when running in powerline-shell-git branch unless you mean somewhere else.
$ git apply -v PKGBUILD.diff
error: No valid patches in input (allow with "--allow-empty")
Offline
$ file PKGBUILD.diff
PKGBUILD.diff: unified diff output, ASCII text
$ md5sum PKGBUILD.diff
194274204513ed4cd7c09c9968881f55 PKGBUILD.diff
$ rm PKGBUILD.diff
$ curl -o PKGBUILD.diff http://ix.io/4x0L
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 601 100 601 0 0 1130 0 --:--:-- --:--:-- --:--:-- 1129
$ file PKGBUILD.diff
PKGBUILD.diff: unified diff output, ASCII text
$ md5sum PKGBUILD.diff
194274204513ed4cd7c09c9968881f55 PKGBUILD.diff
$ git apply -v PKGBUILD.diff
Checking patch PKGBUILD...
Applied patch PKGBUILD cleanly.
$ git apply -v PKGBUILD
error: No valid patches in input (allow with "--allow-empty")
Offline
$ file PKGBUILD.diff PKGBUILD.diff: unified diff output, ASCII text $ md5sum PKGBUILD.diff 194274204513ed4cd7c09c9968881f55 PKGBUILD.diff $ rm PKGBUILD.diff $ curl -o PKGBUILD.diff http://ix.io/4x0L % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 601 100 601 0 0 1130 0 --:--:-- --:--:-- --:--:-- 1129 $ file PKGBUILD.diff PKGBUILD.diff: unified diff output, ASCII text $ md5sum PKGBUILD.diff 194274204513ed4cd7c09c9968881f55 PKGBUILD.diff $ git apply -v PKGBUILD.diff Checking patch PKGBUILD... Applied patch PKGBUILD cleanly. $ git apply -v PKGBUILD error: No valid patches in input (allow with "--allow-empty")
You seem to have the same issue as I can see.
Offline
You posted
$ git apply -v PKGBUILD.diff
error: No valid patches in input (allow with "--allow-empty")
My output for the same command is
$ git apply -v PKGBUILD.diff
Checking patch PKGBUILD...
Applied patch PKGBUILD cleanly.
I produced the same output you posted with a different command
$ git apply -v PKGBUILD
error: No valid patches in input (allow with "--allow-empty")
PKGBUILD and PKGBUILD.diff are not the same.
Are you transcribing the commands and their outputs by hand and introducing transcription errors?
Last edited by loqs (2023-05-29 18:53:21)
Offline
You posted
$ git apply -v PKGBUILD.diff error: No valid patches in input (allow with "--allow-empty")
My output for the same command is
$ git apply -v PKGBUILD.diff Checking patch PKGBUILD... Applied patch PKGBUILD cleanly.
I produced the same output you posted with a different command
$ git apply -v PKGBUILD error: No valid patches in input (allow with "--allow-empty")
PKGBUILD and PKGBUILD.diff are not the same.
Are you transcribing the commands and their outputs by hand and introducing transcription errors?
$ git apply -v PKGBUILD.diff
Checking patch PKGBUILD...
Applied patch PKGBUILD cleanly.
This is what I got now. I had to drag the PKGBUILD file do the right directory. What's next? pacman -Syu?
Offline
This is what I got now. I had to drag the PKGBUILD file do the right directory.
Then you are working in the wrong directory. See the link in post #30.
What's next? pacman -Syu?
Covered by later sections of the same link.
Offline
Fabienne wrote:This is what I got now. I had to drag the PKGBUILD file do the right directory.
Then you are working in the wrong directory. See the link in post #30.
I tried in powerline-shell directory without success.
Offline
First of all, stop "dragging" stuff somewhere.
Start with a fresh clone of the AUR package.
cd ~
rm -rf powerline-shell-git
git clone https://aur.archlinux.org/powerline-shell-git.git
cd powerline-shell-git
curl -o PKGBUILD.diff http://ix.io/4x0L
git apply -v PKGBUILD.diff
makepkg -i
Offline
I tried in powerline-shell directory without success.
Because that is a clone of the upstream project.
Offline
First of all, stop "dragging" stuff somewhere.
Start with a fresh clone of the AUR package.
cd ~ rm -rf powerline-shell-git git clone https://aur.archlinux.org/powerline-shell-git.git cd powerline-shell-git curl -o PKGBUILD.diff http://ix.io/4x0L git apply -v PKGBUILD.diff makepkg -i
This worked with adding -o in last line of command.
Now I can update the system and reboot?
Offline
"-o" means you didn't actually build the package and you neither have to "update the system" nor "reboot" here.
Build the package, install it your next invocation of powerline-shell will hopefully be fine.
Offline
"-o" means you didn't actually build the package and you neither have to "update the system" nor "reboot" here.
Build the package, install it your next invocation of powerline-shell will hopefully be fine.
well i did this before
$ makepkg -i -o
==> Making package: powerline-shell-git r588.4b19aa4-1 (Mon 29 May 2023 09:56:47 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating powerline-shell git repo...
==> Validating source files with md5sums...
powerline-shell ... Skipped
==> Extracting sources...
-> Creating working copy of powerline-shell git repo...
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Sources are ready.
and the powerline-shell still doesn't look fixed the way it was before.
Offline
well i did this before
$ makepkg -i -o ==> Making package: powerline-shell-git r588.4b19aa4-1 (Mon 29 May 2023 09:56:47 PM CEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating powerline-shell git repo... ==> Validating source files with md5sums... powerline-shell ... Skipped ==> Extracting sources... -> Creating working copy of powerline-shell git repo... Switched to a new branch 'makepkg' ==> Starting pkgver()... ==> Sources are ready.
and the powerline-shell still doesn't look fixed the way it was before.
"-o" means you didn't actually build the package
Why would you expect anything to change when you did not build or install a package?
Offline
Fabienne wrote:well i did this before
$ makepkg -i -o ==> Making package: powerline-shell-git r588.4b19aa4-1 (Mon 29 May 2023 09:56:47 PM CEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating powerline-shell git repo... ==> Validating source files with md5sums... powerline-shell ... Skipped ==> Extracting sources... -> Creating working copy of powerline-shell git repo... Switched to a new branch 'makepkg' ==> Starting pkgver()... ==> Sources are ready.
and the powerline-shell still doesn't look fixed the way it was before.
seth wrote:"-o" means you didn't actually build the package
Why would you expect anything to change when you did not build or install a package?
Because I get this then
$ makepkg -i
==> Making package: powerline-shell-git r588.4b19aa4-1 (Mon 29 May 2023 10:21:47 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating powerline-shell git repo...
==> Validating source files with md5sums...
powerline-shell ... Skipped
==> Extracting sources...
-> Creating working copy of powerline-shell git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> WARNING: A package has already been built, installing existing package...
==> Installing package powerline-shell-git with pacman -U...
[sudo] password for user:
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) powerline-shell-git-r588.4b19aa4-1
Total Installed Size: 0.27 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%
error: failed to commit transaction (conflicting files)
powerline-shell-git: /usr/bin/powerline-shell exists in filesystem
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).
Offline
Because I get this then
error: failed to commit transaction (conflicting files) powerline-shell-git: /usr/bin/powerline-shell exists in filesystem Errors occurred, no packages were upgraded. ==> WARNING: Failed to install built package(s).
Offline
Also https://bbs.archlinux.org/viewtopic.php … 4#p2102254
I'm starting to think that this is some sort of prank…
Offline
Also https://bbs.archlinux.org/viewtopic.php … 4#p2102254
I'm starting to think that this is some sort of prank…
Sadly not a prank.
Ran
$ find /var/cache/pacman/pkg/ -iname "*.part" -delete
Now I have to remove powerline-shell-git-r588.4b19aa4-1 since it's the conflicting package? If so then I do that with
$ pacman -Rns powerline-shell-git-r588.4b19aa4-1
and then run
$ makepkg -i
?
Offline
find /var/cache/pacman/pkg/ -iname "*.part" -delete
You managed to look at the wrong wiki paragraph.
Now I have to remove powerline-shell-git-r588.4b19aa4-1 since it's the conflicting package?
Do you have this package?
I told you what to do in the post I just linked in #45
Offline
I'm starting to think that this is some sort of prank…
Possibly a serious case of help vampirism?
Offline
Help vampires usually don't come up with new and creative ways to circumvent the solution at every step
I guess if there's really no understanding for anything one's doing…
@Fabienne, did somebody else install archlinux for you and then left you alone in front of the system?
Offline
Now I have to remove powerline-shell-git-r588.4b19aa4-1 since it's the conflicting package?
Do you have this package?
Well yes unless it wouldn't say conflicting package.
I told you what to do in the post I just linked in #45
It tried and it doesn't work.
Offline