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

fedora package will not build locally with osc #2195

Closed
bill-auger opened this issue Oct 4, 2016 · 11 comments
Closed

fedora package will not build locally with osc #2195

bill-auger opened this issue Oct 4, 2016 · 11 comments

Comments

@bill-auger
Copy link

bill-auger commented Oct 4, 2016

when i try to build a fedora package with osc locally it says "chroot: failed to run command 'rpm': No such file or directory" and quits - packages for other systems build successfully locally - i have tried this on both a debian and opensuse host

.build.log here --> https://gist.github.com/bill-auger/4e88a8b6119f352c7a0d25d05725004b

@lethliel
Copy link
Member

lethliel commented Oct 5, 2016

it seems that your build system is broken. Have you tried to run the build with the clean option?

osc build --clean Fedora_23 x86_64 av-caster.spec

@bill-auger
Copy link
Author

yes it says that every time because it will not finish - it always asks to clean in this case anyways

but i tried explicitly as you suggested and the result is the same

$ osc build --noverify --clean Fedora_23 x86_64 av-caster.spec

and yes i need --noverify or else every packages says "public key not available" and quits immediately

@lethliel
Copy link
Member

lethliel commented Oct 5, 2016

can you move your buildroot (/var/tmp/build-root) to /tmp (or where you prefer) and rebuild again. I still think that there is something wrong with your buildroot.

@bill-auger
Copy link
Author

bill-auger commented Oct 5, 2016

ok i created a new directory chown root:root (osc insisted this directory must be owned by root) - then i set osc to build there with the osc --root= arg and the result was exactly the same

i thank you for helping but please allow me to make clear what i said before -

  • the debian and opensuse packages build ok
  • the fedora packages are giving me this error
  • the arch package build also fails but for an apparently different reason
  • i have tried this on multiple host systems (including a fresh install of opensuse tumbleweed) and the result is exactly the same

@lethliel
Copy link
Member

lethliel commented Oct 5, 2016

Thank you for testing this again. I will have a look at it and will get back to the issue.
I just had the feeling that your Fedora buildroot was broken. It was not my intention to needle you with my suggestions.

But if you tested it on a fresh install the buildroot is obviously not the reason.

@bill-auger
Copy link
Author

bill-auger commented Oct 5, 2016

np take your time - i will help if i can but i do think you will be able to reproduce this easily

im much less concerned about this issue now as my main problem actually fixed itself inexplicably (#2194) - i was building locally only to troubleshoot why the OBS server was building corrupted fedora packages - it will probably be some time before i need to rebuild locally again

@lethliel
Copy link
Member

lethliel commented Oct 6, 2016

can you please attach a .build.log file that fails if you use the clean option?

osc build --clean --noverify Fedora_23 x86_64 av-caster.spec

I cannot reproduce this error. I tried several times and on different systems and for me it works every time.

@bill-auger
Copy link
Author

bill-auger commented Oct 6, 2016

the gist now contains the results from both debian/testing and also opensuse tumbleweed hosts

https://gist.github.com/bill-auger/4e88a8b6119f352c7a0d25d05725004b

@lethliel
Copy link
Member

lethliel commented Oct 6, 2016

please install bsdtar on your hostsystem. Otherwise the build script will use cpio instead.
Then it will work. (Tested) If I uninstall bsdtar on my system the build fails just as yours.

@bill-auger
Copy link
Author

yep that fixed it on debian - perhaps bsdtar should be a dependency of the osc debian package

on the opensuse system it allowed the build to proceed most of the way but then failed with a different error

[  452s] [290/345] installing systemd-libs-222-7.fc23
[  453s] [291/345] installing gdb-7.10-23.fc23
[  453s] error: unpacking of archive failed on file /usr/bin/gdb;57f63822: cpio: read
[  453s] error: gdb-7.10-23.fc23.x86_64: install failed
[  453s] exit ...
[  453s] 

the full log is here if you are interested --> https://gist.github.com/bill-auger/4e88a8b6119f352c7a0d25d05725004b

@lethliel
Copy link
Member

lethliel commented Oct 7, 2016

I will close this issue for it is fixed.

@lethliel lethliel closed this as completed Oct 7, 2016
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

2 participants