Skip to content

Conversation

tuxillo
Copy link
Contributor

@tuxillo tuxillo commented Jan 28, 2020

procfs(5) is not always mounted in DragonFly BSD, for example during
the binary package build with synth. os.Executable() consumers
will then fail, we've spotted this when trying to build tinygo:

[...]

copying source files
./build/tinygo build-builtins -target=armv6m-none-eabi [...]
panic: could not get executable path: readlink /proc/curproc/file:
no such file or directory

[...]

Use KERN_PROC_PATHNAME as FreeBSD does.

@googlebot googlebot added the cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. label Jan 28, 2020
@gopherbot
Copy link
Contributor

This PR (HEAD: 851c4e4) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/216622 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 1:

(2 comments)

This will be for 1.15.


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Antonio Huete Jimenez:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Antonio Huete Jimenez:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@tuxillo tuxillo force-pushed the dragonfly-os-executable branch from 851c4e4 to d6b2146 Compare January 28, 2020 18:27
@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

This PR (HEAD: d6b2146) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/216622 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Antonio Huete Jimenez:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 3:

(1 comment)

Thanks, looks reasonable. Leaving for 1.15.


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@tuxillo tuxillo force-pushed the dragonfly-os-executable branch from d6b2146 to b85c923 Compare January 28, 2020 21:45
@gopherbot
Copy link
Contributor

This PR (HEAD: b85c923) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/216622 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Antonio Huete Jimenez:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@pd0h

This comment has been minimized.

@pd0h

This comment has been minimized.

1 similar comment
@pd0h

This comment has been minimized.

Copy link

@pd0h pd0h left a comment

Choose a reason for hiding this comment

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

Hi

@tuxillo

This comment has been minimized.

@gopherbot
Copy link
Contributor

Message from Tobias Klauser:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Antonio Huete Jimenez:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Antonio Huete Jimenez:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

  procfs(5) is not always mounted in DragonFly BSD, for example during
  the binary package build with synth. os.Executable() consumers
  will then fail, we've spotted this when trying to build tinygo:

    [...]

    copying source files
    ./build/tinygo build-builtins -target=armv6m-none-eabi [...]
    panic: could not get executable path: readlink /proc/curproc/file:
    no such file or directory

    [...]

  Use KERN_PROC_PATHNAME as FreeBSD does.
@tuxillo tuxillo force-pushed the dragonfly-os-executable branch from b85c923 to 083120a Compare October 28, 2020 11:43
@gopherbot
Copy link
Contributor

This PR (HEAD: 083120a) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/216622 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Antonio Huete Jimenez:

Patch Set 5:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Tobias Klauser:

Patch Set 5: Run-TryBot+1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 5:

SlowBots beginning. Status page: https://farmer.golang.org/try?commit=a8432d35


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 5: TryBot-Result+1

SlowBots are happy.
SlowBot builds that ran:

  • dragonfly-amd64
  • dragonfly-amd64-5_8

Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Tobias Klauser:

Patch Set 5: Code-Review+2

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/216622.
After addressing review feedback, remember to publish your drafts!

gopherbot pushed a commit that referenced this pull request Oct 28, 2020
  procfs(5) is not always mounted in DragonFly BSD, for example during
  the binary package build with synth. os.Executable() consumers
  will then fail, we've spotted this when trying to build tinygo:

    [...]

    copying source files
    ./build/tinygo build-builtins -target=armv6m-none-eabi [...]
    panic: could not get executable path: readlink /proc/curproc/file:
    no such file or directory

    [...]

  Use KERN_PROC_PATHNAME as FreeBSD does.

Change-Id: Ic65bea02cd0309fb24dec8ba8d2b151d1acde67b
GitHub-Last-Rev: 083120a
GitHub-Pull-Request: #36826
Reviewed-on: https://go-review.googlesource.com/c/go/+/216622
Run-TryBot: Tobias Klauser <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Tobias Klauser <[email protected]>
Trust: Brad Fitzpatrick <[email protected]>
@gopherbot
Copy link
Contributor

This PR is being closed because golang.org/cl/216622 has been merged.

@gopherbot gopherbot closed this Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants