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

Cannot build mat2 from AUR #433

Closed
eleius opened this issue Dec 16, 2019 · 6 comments
Closed

Cannot build mat2 from AUR #433

eleius opened this issue Dec 16, 2019 · 6 comments

Comments

@eleius
Copy link

@eleius eleius commented Dec 16, 2019

I tried updating the packages as usual with -Sy and -Su but one of them (aur/mat2) fails.

Error log here: https://pastebin.com/raw/kzVEReas

If I download the pkgbuild and run makepkg manually everything works fine.

pikaur -Vq returns:
Pikaur v1.5.4
Pacman v5.2.1 - libalpm v12.0.1

@actionless

This comment has been minimized.

Copy link
Owner

@actionless actionless commented Dec 16, 2019

try first running pikaur with adding -v flag and next running manually the commands from verbose log

@eleius

This comment has been minimized.

Copy link
Author

@eleius eleius commented Dec 21, 2019

If I run pikaur -v mat2, the same 2 tests reported above fail. But it builds fine if I manually run the commands from the log, that is:

git -C /home/user/.local/share/pikaur/aur_repos/mat2 pull origin master
pacman --color=always --deptest perl-image-exiftool python-mutagen python-cairo python-gobject poppler-glib gdk-pixbuf2 mailcap
pacman --color=always --deptest python-setuptools git
pacman --color=always --deptest ffmpeg
sudo rm -rf /home/user/.cache/pikaur/build/mat2
mkdir -p /hd/ramdisk/.cache/pikaur/build/mat2
cp -r /home/user/.local/share/pikaur/aur_repos/mat2/PKGBUILD /home/user/.local/share/pikaur/aur_repos/mat2/.SRCINFO /hd/ramdisk/.cache/pikaur/build/mat2/
makepkg --packagelist
makepkg --force

@actionless

This comment has been minimized.

Copy link
Owner

@actionless actionless commented Dec 21, 2019

do you run pikaur normally with your user, with sudo, as root or using dynamic_users?

@actionless

This comment has been minimized.

Copy link
Owner

@actionless actionless commented Dec 21, 2019

But it builds fine if I manually run the commands from the log

and when building manually, are you also doing it inside /hd/ramdisk/.cache/pikaur/build/mat2/ directory?

@eleius

This comment has been minimized.

Copy link
Author

@eleius eleius commented Dec 21, 2019

I'm running pikaur with my main (non-root) user.

When running manually the commands listed in the verbose log, right before makepkg I changed directory to the one you mentioned.

Let me know if there are other tests I can do that may help you.

@actionless

This comment has been minimized.

Copy link
Owner

@actionless actionless commented Dec 21, 2019

i took a look on the error log

AssertionError: b' [-v] [-l] [--check-dependencies] [-L | -s]' not found in b"usage: mat2 [-h] [-V] [--unknown-members policy] [--inplace] [--no-sandbox] [-v]\n [-l] [--check-dependencies] [-L | -s]\n

the problem is with the testsuite itself. it using some function to linewrap to terminal size and insert newline and for some reason it's assuming it to be 80:

$ echo "usage: mat2 [-h] [-V] [--unknown-members policy] [--inplace] [--no-sandbox] [-v]" | wc -c
81

contact mat2 developers to fix the test/output wrapper or comment out check in the pkgbuild

@actionless actionless closed this Dec 21, 2019
@actionless actionless added upstream issue and removed need info labels Dec 21, 2019
jvoisin added a commit to jvoisin/mat2 that referenced this issue Dec 23, 2019
Some terminals with a small number of column
could wrap the cli's output in a way that
would make the testsuite fail.
This commit break the tests in several smaller one
to mitigate this.

This issue was originally reported by eleius
[here](actionless/pikaur#433), and forwarded as #153.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.