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

adapta-gtk-theme: 3.94.0.132 -> 3.95.0.1 #47610

Closed
wants to merge 1 commit into from

Conversation

tadfisher
Copy link
Contributor

Motivation for this change

Update to the latest Adapta release.

Add override flags for all knobs that can be tweaked by Adapta's configuration scripts.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

make[3]: Leaving directory '/build/source'
make[2]: Leaving directory '/build/source'
make[1]: Leaving directory '/build/source'
glibPreFixupPhase
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/zam6apa8xmx6f5h0zryihlmm0nb3x8ca-adapta-gtk-theme-3.95.0.1
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/zam6apa8xmx6f5h0zryihlmm0nb3x8ca-adapta-gtk-theme-3.95.0.1
checking for references to /build in /nix/store/zam6apa8xmx6f5h0zryihlmm0nb3x8ca-adapta-gtk-theme-3.95.0.1...

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

make[3]: Leaving directory '/build/source'
make[2]: Leaving directory '/build/source'
make[1]: Leaving directory '/build/source'
glibPreFixupPhase
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/xdzwc9ympxi93jwi0zg867sgs7b1ksdb-adapta-gtk-theme-3.95.0.1
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/xdzwc9ympxi93jwi0zg867sgs7b1ksdb-adapta-gtk-theme-3.95.0.1
checking for references to /build in /nix/store/xdzwc9ympxi93jwi0zg867sgs7b1ksdb-adapta-gtk-theme-3.95.0.1...

}:

let
enableFlag = flag: en: stdenv.lib.optional en "--enable-${flag}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not

enableFlag = flag: en: if en then "--enable-${flag}" else "--disable-"${flag}"

?

I'm pretty sure I've seen that pattern before, maybe its already in lib somewhere. Otherwise maybe it should be.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"--disable-unity"
];
configureFlags = [ "--enable-parallel" ]
++ (disableFlag "gnome" enableGnome)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disableFlag returns a string, so why the ++?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It returns an array (using lib.optional).

But I'd rather use lib.enableFeature like you suggested.


stdenv.mkDerivation rec {
, # Enable Gnome Shell support
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the comma should be in the same line as the flags. Most of these comments are pretty redundant anyways. I also don't much like the empty lines between all flags, but thats a matter of taste.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can just remove these.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, I based this off of existing arg documentation, such as fetchurl: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/default.nix#L41

I agree that it looks odd.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah there is a lot of weird formatting in the repo and since we don't have a comprehensive style guide I can only review based on my personal preference. I try not to block merging on that though.

We really should have a style guide, I just don't want to be the one that leads the bikeshed.

Copy link
Member

@timokau timokau Oct 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the later comments are useful of course - just the enableFoo # enables foo ones could be removed.

@timokau
Copy link
Member

timokau commented Oct 1, 2018

Note that #47619 also does the same update.

@tadfisher
Copy link
Contributor Author

@timokau Updated. lib does have a withFeatureAs, but these "--with-" flags are truly optional and don't have "--without-" counterparts, so I made a withOptional function.

@tadfisher
Copy link
Contributor Author

@GrahamcOfBorg build adapta-gtk-theme

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

make[3]: Leaving directory '/build/source'
make[2]: Leaving directory '/build/source'
make[1]: Leaving directory '/build/source'
glibPreFixupPhase
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/gwlw9n47ya9blhylj116hdfsfccbf8px-adapta-gtk-theme-3.95.0.1
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/gwlw9n47ya9blhylj116hdfsfccbf8px-adapta-gtk-theme-3.95.0.1
checking for references to /build in /nix/store/gwlw9n47ya9blhylj116hdfsfccbf8px-adapta-gtk-theme-3.95.0.1...

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

make[3]: Leaving directory '/build/source'
make[2]: Leaving directory '/build/source'
make[1]: Leaving directory '/build/source'
glibPreFixupPhase
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/wnxrywqmc861w8gl7gh0qn9mmlm6z2vw-adapta-gtk-theme-3.95.0.1
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/wnxrywqmc861w8gl7gh0qn9mmlm6z2vw-adapta-gtk-theme-3.95.0.1
checking for references to /build in /nix/store/wnxrywqmc861w8gl7gh0qn9mmlm6z2vw-adapta-gtk-theme-3.95.0.1...

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

/nix/store/gwlw9n47ya9blhylj116hdfsfccbf8px-adapta-gtk-theme-3.95.0.1

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

make[3]: Leaving directory '/build/source'
make[2]: Leaving directory '/build/source'
make[1]: Leaving directory '/build/source'
glibPreFixupPhase
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/wnxrywqmc861w8gl7gh0qn9mmlm6z2vw-adapta-gtk-theme-3.95.0.1
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/wnxrywqmc861w8gl7gh0qn9mmlm6z2vw-adapta-gtk-theme-3.95.0.1
checking for references to /build in /nix/store/wnxrywqmc861w8gl7gh0qn9mmlm6z2vw-adapta-gtk-theme-3.95.0.1...

, enablePlank ? false
, enableTelegram ? false
, enableTweetdeck ? false
, withSelectionColor ? null # Primary color for 'selected-items' (Default: #3F51B5 = Indigo500)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't align the comments

configureFlags =
let
inherit (stdenv.lib) enableFeature optional;
withOptional = feat: value: optional (value != null) "--with-${feat}=${value}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure there is no --without counterpart? Isn't that an autotools standard? Or are they not using autotools?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are using autotools, but these options are provided via custom m4 scripts. These are simple customization options, not feature flags.

withOptional = feat: value: optional (value != null) "--with-${feat}=${value}";
in [
"--enable-parallel"
(enableFeature enableGnome "gnome")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused: Wouldnt't this result in --enable-gnome=true (does nix coalesce booleans to strings)? Shouldn't it be = yes?

Also please no alignment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enableFeature doesn't produce assignments, so you'll get either --enable-{feature} or --disable-{feature}.

@tadfisher
Copy link
Contributor Author

@timokau Removed code alignment.

@tadfisher
Copy link
Contributor Author

@GrahamcOfBorg build adapta-gtk-theme

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

make[3]: Leaving directory '/build/source'
make[2]: Leaving directory '/build/source'
make[1]: Leaving directory '/build/source'
glibPreFixupPhase
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/9dlwflh2zf2q1yf5zday5xjn70bg6ndc-adapta-gtk-theme-3.95.0.1
strip is /nix/store/428gs2z4b8f9byvghzlpbjwjb3a7jwxx-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/9dlwflh2zf2q1yf5zday5xjn70bg6ndc-adapta-gtk-theme-3.95.0.1
checking for references to /build in /nix/store/9dlwflh2zf2q1yf5zday5xjn70bg6ndc-adapta-gtk-theme-3.95.0.1...

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

make[3]: Leaving directory '/build/source'
make[2]: Leaving directory '/build/source'
make[1]: Leaving directory '/build/source'
glibPreFixupPhase
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/p03r415ig2gvhvfhxzfc20ivy3qh2f6f-adapta-gtk-theme-3.95.0.1
strip is /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/p03r415ig2gvhvfhxzfc20ivy3qh2f6f-adapta-gtk-theme-3.95.0.1
checking for references to /build in /nix/store/p03r415ig2gvhvfhxzfc20ivy3qh2f6f-adapta-gtk-theme-3.95.0.1...

@tadfisher
Copy link
Contributor Author

@timokau Upstream has reverted to the previous version, so this PR is no longer valid. Closing.

@tadfisher tadfisher closed this Oct 3, 2018
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

/nix/store/9dlwflh2zf2q1yf5zday5xjn70bg6ndc-adapta-gtk-theme-3.95.0.1

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: adapta-gtk-theme

Partial log (click to expand)

make[3]: Leaving directory '/build/source'
make[2]: Leaving directory '/build/source'
make[1]: Leaving directory '/build/source'
glibPreFixupPhase
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/p03r415ig2gvhvfhxzfc20ivy3qh2f6f-adapta-gtk-theme-3.95.0.1
strip is /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/p03r415ig2gvhvfhxzfc20ivy3qh2f6f-adapta-gtk-theme-3.95.0.1
checking for references to /build in /nix/store/p03r415ig2gvhvfhxzfc20ivy3qh2f6f-adapta-gtk-theme-3.95.0.1...

@timokau
Copy link
Member

timokau commented Oct 3, 2018

They removed a release? Very weird.

@tadfisher tadfisher mentioned this pull request Dec 17, 2018
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants