-
Notifications
You must be signed in to change notification settings - Fork 164
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
getaddrinfo(3) failure when building bulk, interactive works #287
Comments
This is because poudriere does not allow network access in the stage part of the build (only in the fetch phase IIRC). You might look at the FreeBSD node port to see how they get around this. But basically it is to prevent software from pulling in things that are unexpected and not properly setup in the ports Makefile. I imagine you can just disable that network test. |
Makes sense.
Maybe I can force npm to do the download in the fetch phase. |
You might need to create additional ports for those dependencies. |
No way, there so many of them! Plus I think there is no way we can sanely support node_modules dependency model with ports easily (every module can have it's So they nicely recurse, avoiding the "DLL hell" problem: https://gist.github.com/1c887b483de687b024ca Let's see if I can run npm in the |
Well, I can't :) because it need an unpacked |
Ouch. |
Some progress: saper/ports-exp@9564a10 |
Cool! In between which phases? |
The bug for getifaddrs(3) is described at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178881. I am working on a proper patch to fix the problem in head. There's a temporary fix for npm at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198350 |
Thanks @bdrewery ! I think I reported 198350 :) Looks like the simpler fix for 9.x/10.x posted on bug 178881 does not work for me. Too many IPv6 addresses configured? :) |
After a lot of fighting I finally got this port to build offline using poudriere saper/ports-exp@86b8a08 Thank you for your patience :) |
@saper The "simpler" fix you mention. Which was it? Was it what I have in https://reviews.freebsd.org/D2131? |
I mean https://bugs.freebsd.org/bugzilla/attachment.cgi?id=134236 (ported as https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154041 to 10.1) which were originally attached to the bug. This is before the code got refactored; but still it does not work for my 10.1 system. |
@saper Your host is 10.1-RELEASE? |
10.1-STABLE, |
@bdrewery Same problem here. Also tested on jails 93/amd64, 93/i386
Any thoughts how to handle this? |
It's a bug in the kernel, still present. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178881 |
Thanks @bdrewery. So we can't overcome this problem ATM. Do we have any temporary fix or dirty hack? |
Sure, read this issue, there are links. |
@bdrewery have you updated the rtsock.c patch for 10.2-RELEASE? It fails to builkernel using this one: |
While there are or were some getaddrinfo(3) handling issues in node/npm npm/npm#7508, nodejs/node-v0.x-archive#9212) there is something strange happening:
I build a local port (
textproc/node-sass
, not yet in the tree) with:and the build fails in npm with getaddrinfo(3) problem:
Full log: https://gist.github.com/anonymous/b1a9680802336c1ab059
However, after the failure, when I drop into the
-i
shell I can cd to/usr/ports/www/node-sass
and compile that port using
make stage
without problems.DNS resolution also works, I have 2 IPv6 and 5 IPv6 addresses configured on the interface
and visible in the poudriere jail.
Local port tree changes (https://github.com/saper/ports-exp):
textproc/libsass
andtextproc/sassc
ports updatedwww/npm
on i386 to work around FreeBSD bug 198350: [www/node] segfault when installing npm on 8.4, 9.3 on i386 which is caused by the kernel bug 178881: getifaddrs(3) does not report IPv6 addresses properly in 32-bit compatibility modePortshaker configuration:
Portshaker
myrepo
configuration:The text was updated successfully, but these errors were encountered: