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

binpkg is being created, waiting for 1s... #21020

Closed
svenper opened this issue Apr 15, 2020 · 3 comments
Closed

binpkg is being created, waiting for 1s... #21020

svenper opened this issue Apr 15, 2020 · 3 comments

Comments

@svenper
Copy link
Contributor

svenper commented Apr 15, 2020

Inspired by #2368

System

  • xuname:
    Void 5.4.32_1 x86_64-musl GenuineIntel uptodate hold rrnFFFFFFFFF
  • package:
    texlive2020-exec [WIP] (which package should be irrelevant but repro timing is hard)

Expected behavior

The dviout-util subpkg packages just like the others. .lock files are reset when repackaging.

Actual behavior

=> WARNING: texlive2020-exec-dviout-util-2020.0_1: binpkg is being created, waiting for 1s...
=> WARNING: texlive2020-exec-dviout-util-2020.0_1: binpkg is being created, waiting for 1s...
=> WARNING: texlive2020-exec-dviout-util-2020.0_1: binpkg is being created, waiting for 1s...
...
$ ls -lA srcpkgs/texlive2020-exec-dviout-util
lrwxrwxrwx 1 $USER $USER 16 2020-04-15 07:13 srcpkgs/texlive2020-exec-dviout-util -> texlive2020-exec
$ file masterdir.*/upperdir/destdir/texlive2020-exec-dviout-util-2020.0/opt/texlive/2020/bin/xbps/*
masterdir.XXXXOjegIa/upperdir/destdir/texlive2020-exec-dviout-util-2020.0/opt/texlive/2020/bin/xbps/chkdvifont: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=90500c98f88a4080a71af02d436761b77333fec3, stripped
masterdir.XXXXOjegIa/upperdir/destdir/texlive2020-exec-dviout-util-2020.0/opt/texlive/2020/bin/xbps/dvispc:     ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=9149d0fb093ea6de295d49249568a7a422b98551, stripped

There was a .lock file from previous build cancelled midway through packaging. Removing it fixed the problem.

rm /var/cache/xbps-src/binpkgs/texlive/texlive2020-exec-dviout-util-2020.0_1.x86_64-musl.xbps.lock

Steps to reproduce the behavior

Package a package, but cancel it while packaging. Then package again.

./xbps-src -H /var/cache/xbps-src pkg -t -f texlive2020-exec
@abenson
Copy link
Contributor

abenson commented Apr 24, 2020

The .lock file is created when packaging. If you interrupted it at some point (ctrl-c), the lock file remains. I'm not sure there's a way to clean up the .lock file (maybe a trap of some sort?).

@Noah-Huppert
Copy link
Contributor

Proposing this change: #24191. It traps and removes the lock file.

@ericonr
Copy link
Member

ericonr commented Jan 21, 2021

Closing in a commit missed the hook.

Thanks noah :)

@ericonr ericonr closed this as completed Jan 21, 2021
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

Successfully merging a pull request may close this issue.

4 participants