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

[package request] browsh #43283

Closed
dtzWill opened this issue Jul 10, 2018 · 6 comments · Fixed by #44251
Closed

[package request] browsh #43283

dtzWill opened this issue Jul 10, 2018 · 6 comments · Fixed by #44251

Comments

@dtzWill
Copy link
Member

dtzWill commented Jul 10, 2018

Issue description

browsh isn't yet available in Nixpkgs, which is a bummer since I wanted to check it out :).

Technical details

We'll probably need to go the "source" route (preferable anyway) since the "static binary" immediately starts looking for a dynamic linker/loader, here's a quick strace:

26577 09:29:20 execve("./browsh_1.2.3_linux_amd64", ["./browsh_1.2.3_linux_amd64"], 0x7ffde0240890 /* 70 vars */) = 0
26577 09:29:20 mmap(0xa41000, 6477494, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0xa41000
26577 09:29:20 readlink("/proc/self/exe", "/home/will/nixpkgs/tmp/browsh/br"..., 4096) = 54
26577 09:29:20 mmap(0x400000, 6557696, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400000
26577 09:29:20 mmap(0x400000, 3021456, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400000
26577 09:29:20 mprotect(0x400000, 3021456, PROT_READ|PROT_EXEC) = 0
26577 09:29:20 mmap(0x6e2000, 2423142, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0x2e2000) = 0x6e2000
26577 09:29:20 mprotect(0x6e2000, 2423142, PROT_READ) = 0
26577 09:29:20 mmap(0x932000, 963264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0x532000) = 0x932000
26577 09:29:20 mprotect(0x932000, 963264, PROT_READ|PROT_WRITE) = 0
26577 09:29:20 mmap(0xa1e000, 139352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa1e000
26577 09:29:20 open("/lib64/ld-linux-x86-64.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
26577 09:29:20 exit(127)                = ?
26577 09:29:20 +++ exited with 127 +++

Suggesting it's an unpacker of dynamically linked executables or something? Haven't investigated beyond the above :). Source looks like it's someone else's cup-of-tea :3.

@matthiasbeyer
Copy link
Contributor

Bump!

I want to push this request!

@mrkgnao
Copy link
Contributor

mrkgnao commented Jul 27, 2018

er, re-bump? I'm interested in this too, would do it myself but I'm no patching ninja :)

@kalbasit
Copy link
Member

You can probably use buildGoPackage to build this as a derivation, you do not need to use the binary release. See the package being built in AUR as an example of how to build it.

I can probably package it up this weekend if no one has already done that.

@mrkgnao
Copy link
Contributor

mrkgnao commented Jul 30, 2018

I'd love that, largely because I can't find any docs on buildGoPackage anywhere

@kalbasit
Copy link
Member

@mrkgnao sure I'll work on it today.

@kalbasit kalbasit mentioned this issue Jul 31, 2018
9 tasks
@kalbasit
Copy link
Member

@mrkgnao @dtzWill @matthiasbeyer please try #44251 and let me know if it works for you.

kalbasit added a commit to kalbasit/nixpkgs that referenced this issue Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants