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
aspino: fix build #36933
aspino: fix build #36933
Conversation
let | ||
glucose' = glucose.overrideAttrs (_: { | ||
src = fetchurl { | ||
url = "http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup.tgz"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied this URL from the last glucose
bump, however a versioned URL is preferable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately the Glucose homepage currently points to this URL as well for v4.0 (http://www.labri.fr/perso/lsimon/glucose/), furthermore http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup-4.0.tgz
returns a 404
so I'm afraid that we have to keep this for now
Typically the way people solve this is they add back in the old package as something like |
@ryantm I know about this pattern, however I’ve mainly observed this with frequently used libraries where several versions are under active development or maintenance. The bump of libglucose was IMO the right decision as 4.0 is way outdated ATM. However if that approach is considered as general rule, I can fix the libglucose derivation accordingly:) |
Okay, I'm not sure if it's a general rule. Hopefully someone with more experience can also weigh in. |
/cc maintainer: @gebner. |
{ stdenv, fetchurl, fetchFromGitHub, zlib, boost, glucose }: | ||
|
||
let | ||
glucose' = glucose.overrideAttrs (_: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't even need to build glucose here, we just need the sources. Please remove the override and just use glucoseSrc = fetchurl ...
.
It's unfortunate that upstream did not manage to use versioned tarballs, but there's nothing we can do about that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, you're absolutely right, will fix this.
It's unfortunate that upstream did not manage to use versioned tarballs, but there's nothing we can do about that.
this is one of the reasons why I added myself as maintainer as well, so in case of any breackage in the future I can help out :)
Since we just need the glucose sources here (and for a specific version nevertheless!), I think that we don't need a separate glucose package. Everything else looks good to me. |
Aspino patched `libglucose` for their own uses, however they currently depend on glucose v4.0. (see https://github.com/alviano/aspino/tree/e31c3b4e5791a454e6602439cb26bd98d23c4e78/patches) The patches don't apply properly on `glucose-4.1` anymore, furthermore the new source directory caused the `bootstrap.sh` from `aspino` which was supposed to apply the patches and recompile the setup to break. Furthermore some minor changes to the derivation were introduced: - upgraded from `2016-01-31` to `2017-03-09` - the name contains an `-unstable-` infix as upstream has no releases - instead of a `patchPhase` the `postPatch` hook will be used for `substituteInPlace` to keep advanced patching features from `nixpkgs` available. - `patchShebangs` will be called to avoid impurities because of the implicit reliance on `/bin/sh` - added myself as second maintainer to have more people available in case of any further breackage See https://hydra.nixos.org/build/70688471/log See ticket NixOS#36453
@GrahamcOfBorg build aspino |
Failure on aarch64-linux (full log) Attempted: aspino Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: aspino Partial log (click to expand)
|
Cherry-picked to 18.03 as well. |
Motivation for this change
Aspino patched
libglucose
for their own uses, however they currentlydepend on glucose v4.0.
(see https://github.com/alviano/aspino/tree/e31c3b4e5791a454e6602439cb26bd98d23c4e78/patches)
The patches don't apply properly on
glucose-4.1
anymore, furthermorethe new source directory caused the
bootstrap.sh
fromaspino
whichwas supposed to apply the patches and recompile the setup to break.
Furthermore some minor changes to the derivation were introduced:
2016-01-31
to2017-03-09
-unstable-
infix as upstream has no releasespatchPhase
thepostPatch
hook will be used forsubstituteInPlace
to keep advanced patching features fromnixpkgs
available.
patchShebangs
will be called to avoid impurities because of theimplicit reliance on
/bin/sh
case of any further breackage
See https://hydra.nixos.org/build/70688471/log
See ticket #36453
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)