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

autofs: do not strip needed symbols #31038

Merged
merged 1 commit into from Nov 1, 2017
Merged

autofs: do not strip needed symbols #31038

merged 1 commit into from Nov 1, 2017

Conversation

orivej
Copy link
Contributor

@orivej orivej commented Oct 31, 2017

Motivation for this change

Fixes #28282 after #27415. See #28282 (comment) and #28282 (comment) .

@Ericson2314 Is this fine or should we not unset STRIP here? Maybe export STRIP="${STRIP:-strip} --strip-debug?

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

@orivej orivej added the 9.needs: port to stable A PR needs a backport to the stable release. label Oct 31, 2017
@orivej
Copy link
Contributor Author

orivej commented Nov 1, 2017

@Ericson2314 ping

@grahamc
Copy link
Member

grahamc commented Nov 1, 2017

@GrahamcOfBorg autofs

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

For system: x86_64-linux

error: attribute ‘autofs’ in selection path ‘autofs’ not found

@orivej
Copy link
Contributor Author

orivej commented Nov 1, 2017

@grahamc Somehow the attribute is autofs5 while the name is autofs.

Can I do this?

@GrahamcOfBorg autofs5

@grahamc
Copy link
Member

grahamc commented Nov 1, 2017

@GrahamcOfBorg autofs5

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

For system: x86_64-linux

shrinking /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/lib/autofs/mount_ext2.so
shrinking /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/lib/autofs/lookup_nisplus.so
shrinking /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/lib/autofs/mount_nfs.so
shrinking /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/lib/autofs/mount_bind.so
gzipping man pages under /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/share/man/
stripping (with flags -S) in /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/lib  /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/sbin
patching script interpreter paths in /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3
checking for references to /tmp/nix-build-autofs-5.1.3.drv-0 in /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3...
moving /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/sbin/* to /nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3/bin
/nix/store/y19ha5f1i7sj6gsdhiq7lqn15pq40668-autofs-5.1.3

@grahamc grahamc mentioned this pull request Nov 1, 2017
@fpletz fpletz added this to the 17.09 milestone Nov 1, 2017
@fpletz fpletz merged commit 2df0fe9 into NixOS:master Nov 1, 2017
@fpletz
Copy link
Member

fpletz commented Nov 1, 2017

Thanks! Backported to 17.09: 4200dcd

@orivej orivej added 8.has: port to stable A PR already has a backport to the stable release. and removed 9.needs: port to stable A PR needs a backport to the stable release. labels Nov 1, 2017
@Ericson2314
Copy link
Member

Was the makefile just adding that flag?

@orivej
Copy link
Contributor Author

orivej commented Nov 9, 2017

The Makefile contains this snippet:

ifdef DONTSTRIP
STRIP     ?= :
else
STRIP     ?= strip --strip-debug
endif

and then invokes something like $(STRIP) some.o. It clearly expects that if the user exports STRIP, he should know better how to strip autofs.

@orivej orivej deleted the autofs branch November 13, 2017 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: port to stable A PR already has a backport to the stable release. 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants