You are not logged in.
Not sure if bug, couldn't find anything in the bug tracker or forums.
When building with makepkg where files are downloaded, the following is printed for each downloaded file
Usage: file [-bcCdEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding]
[--mime-type] [-e <testname>] [-F <separator>] [-f <namefile>]
[-m <magicfiles>] [-P <parameter=value>] <file> ...
file -C [-m <magicfiles>]
file [--help]
For example, here's when I build sudo:
[user@tremor aur]$ git clone --single-branch --branch packages/sudo https://git.archlinux.org/svntogit/packages.git
Cloning into 'packages'...
remote: Enumerating objects: 1431, done.
remote: Counting objects: 100% (1431/1431), done.
remote: Compressing objects: 100% (1037/1037), done.
remote: Total 1431 (delta 417), reused 1340 (delta 379)
Receiving objects: 100% (1431/1431), 192.74 KiB | 134.00 KiB/s, done.
Resolving deltas: 100% (417/417), done.
[user@tremor aur]$ cd packages/trunk/
[user@tremor trunk]$ gpg --recv-keys 59D1E9CCBA2B376704FDD35BA9F4C021CEA470FB
gpg: key A9F4C021CEA470FB: 1 signature not checked due to a missing key
gpg: key A9F4C021CEA470FB: public key "Todd C. Miller <Todd.Miller@sudo.ws>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
[user@tremor trunk]$ makepkg -o
==> Making package: sudo 1.8.30-1 (2020-01-10T20:51:35 +08)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading sudo-1.8.30.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3270k 100 3270k 0 0 457k 0 0:00:07 0:00:07 --:--:-- 646k
-> Downloading sudo-1.8.30.tar.gz.sig...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 566 100 566 0 0 498 0 0:00:01 0:00:01 --:--:-- 499
-> Found sudo.pam
==> Validating source files with sha256sums...
sudo-1.8.30.tar.gz ... Passed
sudo-1.8.30.tar.gz.sig ... Skipped
sudo.pam ... Passed
==> Verifying source file signatures with gpg...
sudo-1.8.30.tar.gz ... Passed
==> Extracting sources...
Usage: file [-bcCdEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding]
[--mime-type] [-e <testname>] [-F <separator>] [-f <namefile>]
[-m <magicfiles>] [-P <parameter=value>] <file> ...
file -C [-m <magicfiles>]
file [--help]
-> Extracting sudo-1.8.30.tar.gz with bsdtar
Usage: file [-bcCdEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding]
[--mime-type] [-e <testname>] [-F <separator>] [-f <namefile>]
[-m <magicfiles>] [-P <parameter=value>] <file> ...
file -C [-m <magicfiles>]
file [--help]
Usage: file [-bcCdEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding]
[--mime-type] [-e <testname>] [-F <separator>] [-f <namefile>]
[-m <magicfiles>] [-P <parameter=value>] <file> ...
file -C [-m <magicfiles>]
file [--help]
==> Starting prepare()...
==> Sources are ready.
Doesn't seem to occur with VCS packages. For example, no issue with archey-git or aurvote.
But printed twice for aurutils
Last edited by oinkl (2020-01-10 16:33:53)
Offline
Please provide
type file
which file
Last edited by schard (2020-01-10 13:59:24)
macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }
Offline
Please provide
type file which file
[user@tremor ~]$ type file
file is /usr/bin/file
[user@tremor ~]$ which file
/usr/bin/file
[user@tremor ~]$ pacman -Qkk file
file: 24 total files, 0 altered files
Last edited by oinkl (2020-01-10 14:20:19)
Offline
type gzip
pacman -Qkk gzip
may be more useful.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
type gzip pacman -Qkk gzip
may be more useful.
[user@tremor ~]$ type gzip
gzip is /usr/bin/gzip
[user@tremor ~]$ pacman -Qkk gzip
gzip: 32 total files, 0 altered files
Offline
My bad, I meant bsdtar. I got distracted by the gz file extension, but it's a tarball.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
My bad, I meant bsdtar. I got distracted by the gz file extension, but it's a tarball.
[user@tremor ~]$ type bsdtar
bsdtar is /usr/bin/bsdtar
[user@tremor ~]$ pacman -Qkk $(pacman -Qqo $(which bsdtar))
libarchive: 66 total files, 0 altered files
Last edited by oinkl (2020-01-10 14:22:25)
Offline
It's not just compressed files. I was writing a new PKGBUILD when I noticed it occurring for a .patch plaintext file. It didn't occur for previous PKGBUILDs that I built, but now it occurs for them as well (for each downloaded file).
Offline
One more shot:
which strip
macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }
Offline
Yeah, I think schard was closer to the mark from the off.
Okay, the last things I can think to check are 'makepkg', 'rm' and 'ln' (packages are 'pacman' and 'coreutils').
Basically what I (and probably schard) are checking are the commands that are used by makepkg (notably in /usr/share/makepkg/source/file.sh) between "Extracting sources..." and "Extracting %s with %s" (lines 85 and 130). We think there's probably *something* e.g. an alias, or binary outside of /usr/bin, which is getting used instead of the expected binary.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
[user@tremor ~]$ which strip
/usr/bin/strip
[user@tremor ~]$ pacman -Qkk $(pacman -Qqo $(which strip))
binutils: 385 total files, 0 altered files
[user@tremor ~]$ pacman -Qkk pacman
backup file: pacman: /etc/makepkg.conf (Modification time mismatch)
backup file: pacman: /etc/makepkg.conf (Size mismatch)
backup file: pacman: /etc/pacman.conf (Modification time mismatch)
backup file: pacman: /etc/pacman.conf (Size mismatch)
pacman: 369 total files, 0 altered files
[user@tremor ~]$ curl https://git.archlinux.org/svntogit/packages.git/plain/trunk/makepkg.conf?h=packages/pacman > makepkg.conf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5717 100 5717 0 0 9856 0 --:--:-- --:--:-- --:--:-- 9839
[user@tremor ~]$ diff makepkg.conf /etc/makepkg.conf
144a145
> #PKGEXT='.pkg.tar'
145a147
> #SRCEXT='.src.tar'
[user@tremor ~]$ curl https://git.archlinux.org/svntogit/packages.git/plain/trunk/pacman.conf?h=packages/pacman > pacman.conf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2883 100 2883 0 0 5203 0 --:--:-- --:--:-- --:--:-- 5194
[user@tremor ~]$ diff pacman.conf /etc/pacman.conf
25c25,26
< #IgnorePkg =
---
> #IgnorePkg = intellij-idea-ultimate-edition unity-editor angband rider
> IgnorePkg = intellij-idea-ultimate-edition-jre intellij-idea-ultimate-edition angband rider
36c37
< #VerbosePkgLists
---
> VerbosePkgLists
92,93c93,94
< #[multilib]
< #Include = /etc/pacman.d/mirrorlist
---
> [multilib]
> Include = /etc/pacman.d/mirrorlist
99a101,104
>
> [custom]
> SigLevel = Optional TrustAll
> Server = file:///mnt/hdd/packages/custom
[user@tremor ~]$ pacman -Qkk coreutils
coreutils: 431 total files, 0 altered files
[user@tremor ~]$ which makepkg
/usr/bin/makepkg
[user@tremor ~]$ which rm
/usr/bin/rm
[user@tremor ~]$ which ln
/usr/bin/ln
I tried testing with a clean user account but still happens.
[user@tremor ~]$ sudo useradd -m -G wheel -s /bin/bash test
[user@tremor ~]$ sudo su - test
[test@tremor ~]$ git clone https://aur.archlinux.org/mrifk-git.git
Cloning into 'mrifk-git'...
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (5/5), done.
[test@tremor ~]$ cd mrifk-git/
[test@tremor mrifk-git]$ makepkg -o
==> Making package: mrifk-git 3.r0.g48687e5-1 (2020-01-10T23:15:37 +08)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning mrifk git repo...
Cloning into bare repository '/home/test/mrifk-git/mrifk'...
remote: Enumerating objects: 25, done.
remote: Total 25 (delta 0), reused 0 (delta 0), pack-reused 25
Unpacking objects: 100% (25/25), done.
-> Found Makefile.patch
==> Validating source files with sha256sums...
mrifk ... Skipped
Makefile.patch ... Passed
==> Extracting sources...
-> Creating working copy of mrifk git repo...
Cloning into 'mrifk'...
done.
Usage: file [-bcCdEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding]
[--mime-type] [-e <testname>] [-F <separator>] [-f <namefile>]
[-m <magicfiles>] [-P <parameter=value>] <file> ...
file -C [-m <magicfiles>]
file [--help]
==> Starting prepare()...
patching file Makefile
==> Starting pkgver()...
==> Sources are ready.
I'm out of ideas... you mean it's not happening for anyone else?
Offline
I downgraded to my previously installed version.
Package (1) Old Version New Version Net Change
pacman 5.2.1-4 5.1.3-1 0.19 MiB
Success! Doesn't complain anymore. Then I reinstalled the current version and the problem came back. Gonna stick with the latest version since it isn't a breaking error, but would be nice if it was fixed.
Offline
Problem was caused by an additional flag to file
local file_type=$(file -S -bizL -- "$file")
Fixed after I upgraded file to 5.38.
Offline
Looks like there have been a few changes regarding libseccomp in the past few days:
https://git.archlinux.org/svntogit/pack … kages/file
https://git.archlinux.org/svntogit/pack … ges/pacman
I'm not sure how you ended up with incompatible package versions (possibly a quirk with your mirror?), but I'm glad it's sorted now.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
It should be quite impossible to get mismatched versions of pacman/file since they were moved to [core] in the same transaction, precisely because the new version of file required a rebuild of pacman (the -S option to file is *required* on the new version of file, and it's an invalid option for the old version).
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline