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

logrotate fails to build on current master #27916

Closed
fadenb opened this issue Aug 3, 2017 · 4 comments
Closed

logrotate fails to build on current master #27916

fadenb opened this issue Aug 3, 2017 · 4 comments

Comments

@fadenb
Copy link
Contributor

fadenb commented Aug 3, 2017

Hey :)

Issue description

logrotate fails to build on current master
See https://hydra.nixos.org/build/57335219

Steps to reproduce

With current master:
nix-build '<nixpkgs>' --option build-use-chroot true --option build-use-sandbox true --keep-going -K -A logrotate

Technical details

Did a quick bisect leading me to 093cc00 or 3739858 (ping @Ericson2314)
Unfortunately my battery is running low so I can not pinpoint which of those 2 introduced the issue at the moment.

@Ericson2314
Copy link
Member

The second once has since been reverted for sake of MacOS's old bash in nix-shell. The former however can break builds with the new env-vars it defines. I left a message in that commit, but the tl;dr is try

{
  preConfigure = ''
    LD=$CC
    # or `unset LD`
  '';
}

@fadenb
Copy link
Contributor Author

fadenb commented Aug 4, 2017

I tried what you suggested (both LD=$CC as well as unsetting LD) but it had no effect.

@Ericson2314
Copy link
Member

Ah unset CPP—it's trying to use that to build C code, not merely preprocess. But that's quite the upstream bug; I'm curious what's calling it.

@globin globin closed this as completed in 1da0264 Aug 4, 2017
@globin
Copy link
Member

globin commented Aug 4, 2017

Fixed by using autoconf, the way we were packaging it was deprecated upstream anyway. Updated it while at it.

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

3 participants