Comments (13)
Fixed! The difference was indeed related to glibc 2.26. The implementation of open() was changed to call the openat syscall. I didn't handle the openat syscall in the syscall validator, so it was throwing an error. It's handled now. Thanks for reporting this. I'll make a patch release shortly.
from fwup.
Thanks for letting me know about this. That really looks like an issue with the test suite rather than fwup itself. Between the versions that you referenced, I added code to validate syscalls since there are non-obvious constraints with buffer alignment, sizes and offsets on some platforms. That code is failing, but it's failing since the syscalls aren't being captured. I doubt that anything here is a problem for NixOS, but something could be hiding.
I'm not a NixOS user so I tried pulling down the NixOS appliance and installing everything needed to build fwup (like gcc, autoconf, automake, libconfuse, libarchive, etc.). I'm stuck at what looks like a noob issue, but my searches are failing me. gcc
fails to build anything with error trying to exec 'as': execp: No such file or directory
. I didn't see a build-essential
package for NixOS. Any ideas how I may reproduce and debug?
from fwup.
@fhunleth Thank you for your effort! You can run nix-shell '<nixpkgs>' -A fwup
to enter the build environment with all the dependencies for fwup
.
from fwup.
I just ran the following in a fwup source directory:
nix-shell '<nixpkgs>' -A fwup
./autogen.sh
./configure
make
make check
All tests passed for me.
I'm running NixOS 17.09.2249.6b8833df272 (x86_64-linux) in VirtualBox. Are you running something different?
from fwup.
Sorry about that, NixOS 17.09 contains the old version of fwup
. Could you run nix-channel --add https://nixos.org/channels/nixpkgs-unstable
and nix-channel --update
before entering the shell.
from fwup.
I checked out fwup v0.18.0 from Github to ~/fwup and built it there. I ran the commands that you wrote and re-entered the shell. Should I be compiling from a different directory?
from fwup.
My bad, that should be fine. Then it looks like a problem with environment. Could you try using nix-shell '<nixpkgs>' -A fwup --pure
to sandbox the shell?
from fwup.
Ok, --pure
is really cool.
I ran make distclean
first to start a fresh build and then repeated what I did above. I have the same result. I.e. everything works.
from fwup.
Sorry, we have not checked if the tests of the newer fwup
fail in NixOS 17.09 (EDIT: they don't), only in the NixOS master (aka unstable). One of the differences is the upgrade to Glibc 2.26.
from fwup.
Could you unpack https://github.com/NixOS/nixpkgs/archive/master.tar.gz somewhere and run nix-shell path/to/master -A fwup --pure
? This should reproduce test failure. (EDIT: doing what @jtojnar has said about nix-channel
is equivalent to the manual downloading and unpacking.)
from fwup.
Downloaded and unpacked and I'm finally getting the failures! Investigating...
from fwup.
Thank you for the fix (and for introducing me to the open_by_handle_at
syscall)!
from fwup.
Thanks @jtojnar and @orivej again for reporting the issue and helping me reproduce it. The 0.18.1 release is now available with the fix.
from fwup.
Related Issues (20)
- fsck.fat v4.2 failure HOT 4
- question: sometimes, for ext4 partition, no sparse compression is done HOT 4
- Failed to start File System Check on Root Device HOT 6
- fwup:amd64 : Depends: libc6:amd64 (>= 2.4) but it is not installable HOT 8
- Add `.deb` for `aarch64` to the releases
- zlib-1.2.11 is no longer available from zlib.net HOT 3
- Add lock file support
- Support usb drive or card reader HOT 4
- Compiling with glibc 2.36 fails due to conflicting headers HOT 1
- xdelta tries to read too much data HOT 5
- Handle /dev/null as a special case output device HOT 4
- Support delta-source-fat-offset and delta-source-fat-path HOT 4
- Arm build is missing from releases. HOT 1
- u-boot redundant environment support issue HOT 5
- UMS is not detected by fwup on Windows 11 HOT 5
- fwupd defeated by secure boot kernel lockdown? HOT 1
- Test failure installing 1.10.1 HOT 3
- Suggestion: Ignore tiny discovered drives/devices HOT 4
- Signing firmware files post-delta creation fails
- Red Hat support HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fwup.