habitat
habitat copied to clipboard
unknown protocol icmp
/etc/protocols
is missing in the studio:
# hab pkg exec core/inetutils ping -c3 localhost
ping: unknown protocol icmp.
create /etc/protocols
:
ip 0 IP # internet protocol, pseudo protocol number
icmp 1 ICMP # internet control message protocol
igmp 2 IGMP # Internet Group Management
# hab pkg exec core/inetutils ping -c3 localhost
PING localhost.containerstore.com (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.081 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.088 ms
^C--- localhost.containerstore.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.081/0.084/0.088/0.000 ms
@adamhjk: ☝️ from our conversation yesterday.
If you look in $(hab pkg path core/glibc)/include/netdb.h
, you'll see:
#define _PATH_PROTOCOLS "/etc/protocols"
#define _PATH_SERVICES "/etc/services"
The correct thing might be to have core/glibc have a dependency on core/iana-etc and patch these to point to $(pkg_path_for iana-etc)/etc/protocols
, etc.
@smith I think that's the right approach
I've implemented what @smith wrote in habitat-sh/core-plans#929
:+1: on @smith’s approach.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.
If not done yet, it still deserves some attention IMHO. Also, the fix could be added before a refresh.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.