NetBSD Problem Report #54351

From  Sat Jul  6 12:13:47 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id EE31E7A0D9
	for <>; Sat,  6 Jul 2019 12:13:46 +0000 (UTC)
Message-Id: <>
Date: Sat, 6 Jul 2019 21:13:43 +0900 (JST)
From: Izumi Tsutsui <>
Subject: 10-wpa_supplicant for dhcpcd(8) shouldn't be marked obsolete
X-Send-Pr-Version: 3.95

>Number:         54351
>Category:       install
>Synopsis:       10-wpa_supplicant for dhcpcd(8) shouldn't be marked obsolete
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 06 12:15:00 +0000 2019
>Last-Modified:  Sat Jul 06 19:50:01 +0000 2019
>Originator:     Izumi Tsutsui
>Release:        NetBSD 8.1
System: NetBSD/i386 8.1 (GENERIC)
Architecture: i386 (affects all ports)
Machine: i386
The dhcpcd(8) man page suggest to install 10-wpa_supplicant files
to use WiFi devices with dhcpcd(8):
     More scripts are supplied in /usr/share/examples/dhcpcd/hooks and need to
     be copied to /libexec/dhcpcd-hooks if you intend to use them.  For
     example, you could install 10-wpa_supplicant so that dhcpcd can ensure
     that wpa_supplicant(8) is always running on a hot-plugged wireless
and it works fine.

However src/distrib/sets/lists/base/mi has the following entry:
./libexec/dhcpcd-hooks/10-wpa_supplicant        base-obsolete      obsolete

So the manually installed 10-wpa_supplicant script is removed
as obsolete on every upgrade installation by sysinst(8)
(or postinstall(8) fix command).

- copy /usr/share/examples/dhcpcd/hooks/10-wpa_supplicant to
- upgrade the system to 8.1 using sysinst 

Remove the entry of ./libexec/dhcpcd-hooks/10-wpa_supplicant from


From: Leonardo Taccari <>
Subject: Re: install/54351: 10-wpa_supplicant for dhcpcd(8) shouldn't be marked obsolete
Date: Sat, 06 Jul 2019 14:36:58 +0200

 Hello Izumi,

 Izumi Tsutsui writes:
 > [...]
 > >Fix:
 > Remove the entry of ./libexec/dhcpcd-hooks/10-wpa_supplicant from
 > src/distrib/sets/lists/base/mi?
 > [...]

 Not a fix - and probably obvious workaround! - but it can be copied to
 /libexec/dhcpcd-hooks/15-wpa_supplicant or similar to avoid that.

 That's what I usually do, I think it was marked as obsolete because
 there wasn't an agreement on starting wpa_supplicant by default when
 invoking dhcpcd.  In any case - if it's should be kept as obsolete entry
 due that - probably it's less surprising to rename the example to
 11-wpa_supplicant or similar so just directly copying it will work and
 avoid further surprises.

From: "Christos Zoulas" <>
Subject: PR/54351 CVS commit: src/distrib/sets/lists/base
Date: Sat, 6 Jul 2019 15:45:25 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Sat Jul  6 19:45:25 UTC 2019

 Modified Files:
 	src/distrib/sets/lists/base: mi

 Log Message:
 PR/54351: Izumi Tsutsui: Remove obsolete entries that are in
 /usr/share/examples/dhcpcd/hooks/, so that when someone uses
 the examples, they don't get removed by postinstall. A more
 advanced way to fix this is to put a date in the the obsolete
 entry and only remove files when they pre-date that date. But
 this is too much complexity for little benefit for now.

 To generate a diff of this commit:
 cvs rdiff -u -r1.1205 -r1.1206 src/distrib/sets/lists/base/mi

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.