-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Changed xen submodule to track Qubes Xen #207
Conversation
Compiled on Ubuntu 16.04 and Fedora VM (so didn't test reproducibility), tested okay on X230 hardware. |
Prevents subsequent builds from trying to unpack/repatch
Reproducibility checks out on the Fedora 24/25, Ubuntu 16.04, Debian 8/9:
Looks like this adds a dependency on gpg (qubes-vmm-xen uses it to verify), so the http://osresearch.net/Building docs should be updated so that fedora dnf install command includes it. |
Thank you for tracking down the dependencies and making this change! Is there a reason to rename the submodule since it is being replaced? |
Nope not real ones. Initially I had worried about a build cache conflict, but only later realized that it shouldn't a problem since the build directory name comes from the tar. Updated to revert to the xen module name, here are the updated hashes tested on Fedora 25/Ubuntu 16.04/Debian 9 (xen binaries are the same, probably the config file variable name changes caused the hash change):
Let me know if you want me to squash/rebase to remove the commit noise before merge. |
I'm building and testing now to prepare to merge. Thanks for signing your commits, too! The build config is copied into the |
It's probably easier for now to have a single place for platform configs, plus it could be useful to know your build config at runtime. I just needed to convince myself I hadn't broken anything with the submodule name change =) |
Is your output file named
|
I just renamed the roms before hash. I'll build flammit - qubes-xen (7f6f365) again with a clean checkout on a few systems again. Will revert. |
Building on Fedora matches your hash:
Unpacking the |
Darn - just goes to show building on 3 variants isn't enough... I can try to track it down if you let me know what your first build environment looks like (and I will add it to my testing regime). |
I had difficulty making Xen reproducible the first time; some of the patches were accepted... https://lists.xen.org/archives/html/xen-devel/2016-08/msg01196.html I'm diffing the binaries and the |
Ok, looks like there are some differences..
versus
|
Wish I could help. I built from clean checkouts on 6 systems Local Ubuntu 16.04, AWS Fedora 24/25, AWS Ubuntu 16.04, AWS Debian 8/9 and get the same hash as I reported above. Wow that's annoying. I can patch to tell Xen never use the figlet command. |
Do none of your systems have figlet installed? My Ubuntu laptop (the "official" build system, since it has the yubikey with the signing keys) does. So either we change the Xen After running
|
Yeah none of those machines (even Ubuntu 16.04 laptop) has figlet installed. I think it's probably safer to have it ignore figlet since it will successfully compile whether it is there or not and people might get confused w.r.t. reproducibility. What do you think? |
Removed conditional figlet usage for banner generation
I'm patching the |
Apologies but I tested and pushed the |
It boots in qemu and on my testing x230, so it's been merged (along with my patch 7e5c9bf ). thanks again for tracking down what was necessary to track the Qubes build -- this is one of the more important security related issues to be fixed. |
Closes #159