From owner-freebsd-questions@freebsd.org Sun Oct 27 11:27:38 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F3BA174BA8 for ; Sun, 27 Oct 2019 11:27:38 +0000 (UTC) (envelope-from jbe-mlist@magnetkern.de) Received: from sapphire.magnetkern.de (sapphire.magnetkern.de [185.228.139.199]) by mx1.freebsd.org (Postfix) with ESMTP id 471FvD4MZ8z4c9T for ; Sun, 27 Oct 2019 11:27:36 +0000 (UTC) (envelope-from jbe-mlist@magnetkern.de) Received: from titanium (p57A35420.dip0.t-ipconnect.de [87.163.84.32]) by sapphire.magnetkern.de (Postfix) with ESMTPSA id 2A5C8A3BB for ; Sun, 27 Oct 2019 11:27:29 +0000 (UTC) Date: Sun, 27 Oct 2019 12:27:28 +0100 From: Jan Behrens To: freebsd-questions@freebsd.org Subject: ZFS snapdir readability - feature request or security issue? Message-Id: <20191027122728.8de0e914dcb2d72d13d682d6@magnetkern.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 471FvD4MZ8z4c9T X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jbe-mlist@magnetkern.de designates 185.228.139.199 as permitted sender) smtp.mailfrom=jbe-mlist@magnetkern.de X-Spamd-Result: default: False [-0.67 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.94)[-0.943,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.92)[-0.917,0]; MIME_TRACE(0.00)[0:+]; MV_CASE(0.50)[]; DMARC_NA(0.00)[magnetkern.de]; IP_SCORE(-0.11)[asn: 197540(-0.54), country: DE(-0.01)]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[32.84.163.87.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:197540, ipnet:185.228.136.0/22, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2019 11:27:38 -0000 Dear all, I recently noticed that all ZFS filesystems in FreeBSD allow access to the .zfs directory (snapdir) for all users of the system. It is possible to hide that directory using the snapdir option: snapdir=hidden | visible Controls whether the .zfs directory is hidden or visible in the root of the file system as discussed in the "Snapshots" section. The default value is hidden. However, setting snapdir=hidden will only "hide" the directory from "ls". It is still possible to access that directory, also as a non-privileged user! It seems to be impossible to restrict access to this directory. Calling chmod 700 /.zfs results in "chmod: /.zfs: Operation not supported". Given the immutability of snapshots, the directories and files will have access rights from the point in time when the snapshot was taken. Considering a system that creates snapshots regularly (e.g. for backup or replication purposes), this could lead to security issues, as I would like to illustrate with the following example: Consider a user (Alice) who accidentally created a file /usr/home/alice/.ssh/id_rsa as publicly readible, but who notices shortly after that this was a mistake. Alice fixes her mistake by calling: chmod 600 /usr/home/alice/.ssh/id_rsa If in the meantime a snapshot zroot/usr/home@2019-10-27 was taken, which is intended to be kept for a longer time, then Bob will be able to access Alice's private SSH key through the file /usr/home/.zfs/snapshot/2010-10-27/alice/.ssh/id_rsa As far as I understand, there is no (clean) way to prohibit this, except deleting the whole snapshot (which might not be desirable in all scenarios). Note that: su - root chmod 700 /usr/home/.zfs => Operation not supported chmod 700 /usr/home/.zfs/snapshot => Operation not supported chmod 700 /usr/home/.zfs/snapshot/2019-10-27 => Read-only file system Of course, one could argue that Alice shouldn't have made the mistake in the first place. Nonetheless, I consider it to be a security issue if regular snapshots cause files which were once publicly readable to be always readable (as long as certain snapshots exist). Moreover, a user might want to deliberatly block access to a file that was intendedly public before. One (dirty) workaround I was able to figure out is to do a mount_nullfs /var/empty /usr/home/.zfs which results in the following behavior: - /usr/home/.zfs is still hidden - /usr/home/.zfs is empty for all users (root and non-privileged users) I was able to improve this by doing: mkdir -p /usr/home/protected/snapshot chmod 700 /usr/home/protected mount_nullfs /usr/home/.zfs/snapshot /usr/home/protected/snapshot mount_nullfs /var/empty /usr/home/.zfs This way, the root user can access the snapshot directory through /usr/home/protected/snapshot while all other users should (hopefully) not be able to gain access to snapshot data. This workaround, however, has several drawbacks: - Considering a larger number of ZFS filesystems on an average system (my system came with 14 file systems by default), this will bloat the output of "mount" and easily cause confusion. - There can be race conditions when mounting a previously unmounted ZFS filesystem, such that for a small moment (after mounting the ZFS file system and before doing the nullfs mount), a malicious user could access the hidden .zfs directory. - Using the default commands, it is likely to accidentally forget the nullfs mount and leave the snapdir exposed to non-privileged users. Is there any other method to prohibit non-privileged users from accessing the ZFS snapdir? If not, I would propose to add one. I'm not even sure if this is a feature request or rather fixing a security vulnerability as explained in the Alice & Bob example above. Kind regards, Jan Behrens From owner-freebsd-questions@freebsd.org Mon Oct 28 12:19:55 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 521BB1A105C for ; Mon, 28 Oct 2019 12:19:55 +0000 (UTC) (envelope-from robert@webtent.org) Received: from mx3.webtent.net (mx3.webtent.net [208.38.145.5]) by mx1.freebsd.org (Postfix) with ESMTP id 471v16472Vz3N9T for ; Mon, 28 Oct 2019 12:19:54 +0000 (UTC) (envelope-from robert@webtent.org) Received: from localhost (localhost [127.0.0.1]) by mx3.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTP id 61D41D79F5 for ; Mon, 28 Oct 2019 08:19:51 -0400 (EDT) Received: from mx3.webtent.net ([127.0.0.1]) by localhost (mx3.webtent.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 72190-09 for ; Mon, 28 Oct 2019 08:19:49 -0400 (EDT) Received: from [192.168.1.100] (unknown [96.254.71.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robert@mx3.webtent.net) by mx3.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTPSA id 3F396D7B30 for ; Mon, 28 Oct 2019 08:19:49 -0400 (EDT) To: FreeBSD From: Robert Fitzpatrick Subject: Pkg broken after 11.3 upgrade Message-ID: <788f2dc2-d1c9-37b5-5a39-065c1afcd5d8@webtent.org> Date: Mon, 28 Oct 2019 08:19:49 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 PostboxApp/6.1.18 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Virus-Scanned: WebTent Mailguard 1.0.4_3 X-Rspamd-Queue-Id: 471v16472Vz3N9T X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.80 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[webtent.org:s=201611]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:208.38.145.0/26]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[5.145.38.208.list.dnswl.org : 127.0.5.2]; DKIM_TRACE(0.00)[webtent.org:+]; DMARC_POLICY_ALLOW(-0.50)[webtent.org,reject]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.20)[ip: (-0.50), ipnet: 208.38.128.0/18(-0.25), asn: 16724(-0.20), country: US(-0.05)]; ASN(0.00)[asn:16724, ipnet:208.38.128.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 12:19:55 -0000 After doing an upgrade from 11.2-RELEASE to 11.3-RELEASE, I could no longer login via SSH. When I login from console, there are many packages that generate segmentation faults including pkg when I tried to pkg upgrade openssh or just pkg update... root@db1: ~ # pkg update /usr/lib/libssl.so.8: Shared object has no run-time symbol table I tried to deinstall pkg from ports manually and get these same errors when trying to make install afterward. What can I do to get this functional again? -- Robert From owner-freebsd-questions@freebsd.org Mon Oct 28 12:33:22 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AA22A1A18F9 for ; Mon, 28 Oct 2019 12:33:22 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 471vJd0BJNz3P9Q for ; Mon, 28 Oct 2019 12:33:20 +0000 (UTC) (envelope-from kremels@kreme.com) From: "@lbutlr" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: Pkg broken after 11.3 upgrade Date: Mon, 28 Oct 2019 06:33:19 -0600 References: <788f2dc2-d1c9-37b5-5a39-065c1afcd5d8@webtent.org> To: FreeBSD In-Reply-To: <788f2dc2-d1c9-37b5-5a39-065c1afcd5d8@webtent.org> Message-Id: <47FE0BB5-89D2-4732-905B-7F5FE701EE9E@kreme.com> X-Mailer: Apple Mail (2.3594.4.19) X-Rspamd-Queue-Id: 471vJd0BJNz3P9Q X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kremels@kreme.com designates 65.121.55.42 as permitted sender) smtp.mailfrom=kremels@kreme.com X-Spamd-Result: default: False [-0.59 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MISSING_MIME_VERSION(2.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[kreme.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.990,0]; IP_SCORE(-0.21)[ip: (-0.75), ipnet: 65.112.0.0/12(-0.21), asn: 209(-0.02), country: US(-0.05)]; TO_DN_ALL(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; RCVD_IN_DNSWL_LOW(-0.10)[42.55.121.65.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.112.0.0/12, country:US]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 12:33:22 -0000 On 28 Oct 2019, at 06:19, Robert Fitzpatrick via freebsd-questions = wrote: > After doing an upgrade from 11.2-RELEASE to 11.3-RELEASE, I could no = longer login via SSH. When I login from console, there are many packages = that generate segmentation faults including pkg when I tried to pkg = upgrade openssh or just pkg update... >=20 > root@db1: ~ # pkg update > /usr/lib/libssl.so.8: Shared object has no run-time symbol table >=20 > I tried to deinstall pkg from ports manually and get these same errors = when trying to make install afterward. What can I do to get this = functional again? Did you read the how to update documentation? It seems not. You have put yourself in a bad position that it will take some effort to = fix. It might be easiest to rollback to 11.2 and start over. freebsd-update rollback You COULD try=20 pkg-static upgrade -f --=20 When the stars threw down their spears And watered heaven with their tears, Did He smile his work to see? Did He who made the Lamb make thee? From owner-freebsd-questions@freebsd.org Mon Oct 28 16:01:44 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC35B1A63B8 for ; Mon, 28 Oct 2019 16:01:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 471zx31hqmz4DbJ for ; Mon, 28 Oct 2019 16:01:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([188.102.109.221]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPA (Nemesis) id 1Mw9Dg-1i6d8U0UcO-00s9B0; Mon, 28 Oct 2019 17:01:34 +0100 Date: Mon, 28 Oct 2019 17:01:30 +0100 From: Polytropon To: Robert Fitzpatrick Cc: Robert Fitzpatrick via freebsd-questions Subject: Re: Pkg broken after 11.3 upgrade Message-Id: <20191028170130.f51f5c47.freebsd@edvax.de> In-Reply-To: <788f2dc2-d1c9-37b5-5a39-065c1afcd5d8@webtent.org> References: <788f2dc2-d1c9-37b5-5a39-065c1afcd5d8@webtent.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:M81ApGhmEt2RLZaDEqbtAQx52AJ7sKwfLMGTvYDqLuCXlwJFS5e +9I4+ZHe+h1bE14cl7dL4aYZYRSmCN2PsLzYC9ZEEiOe1rHS2Br1eSiyXN/r+zgufAGeirP l0+SvUc/FmPgL3bRLX3gvejmwIXgHQ1IVJRJ8VU/MI1GG+9+80pRjNBlJEjkPTSuGK/DYeV CASZ1LHgrEptKw+z+FYgA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:pIJIHbsaGZc=:yykOvzIZNGOorMNzYV95B8 gSsdn237B/bdbPIoioIk2soyg8A9lYuAk7f1yUBhnJt5LGK2DsAVYchpSuS0xZKnxDZy+hMgi cnoqigKIOTwH+lBth01cBu3xp6nQ1YX5tD9+RF8thuNNWLk8Am0uOocK3TeZ8fCbOul3YjDRY UnCd3hLuieUlrw2Ts9GBG1QYRwC5KLxySXw1l8Icyk8kW67JCZl/KR4z8baUoZ+RqmbuLd0fN rr+DrOqWBpov55G8sau8IAJxYADRyR22AF38X6OnjpFf2GigQ/6mU/irojEERUN/fA5ycscvN /DLMWg/5H73guplt0taWI5OdpWgNITCxsSNW1wQeBmcjiTZLpW0kdnrwPJLNAsPD4esLkv2Ai 1FeuFX45PccE4i/YTk2FtVg/ZpPQuFMl/xTktCgZuswhKE61UYf4vIDIgx/IS7Z6rlkSs8cv5 KZKTQxPXiIUpsIjqz7wTC0rCkThq76MNlUOfgf5LvKbUR9cdzRjMIsc6goZyl7MqAMuCjBHQk IjIoKizT5qBSy7e5bn0JfzGj8V2TpKg3BZZtWKBQZx6arG3xzjscGcsV2RRuVz8iX3P1cVIgc 3wIRyFxBSxiV8Ir0Jbc88ZJhsZwxVeXFHW2/1mNsRovBFXQgNea9BuGZSzsgI/ACa7xd2xxLY RPkrrkEfBA7vc/LbppXskKc81Ln2hF1yckGvdglFztm/kfpfp0F7xxOFXkfIObugbQUSEDIEK J4YwlTTTlVdUxhB/WTiGTb7wpUre0T1Ws5/OejowWHc9IBNV4YdcQYfiJI/dWkf/haeY8KrF/ 6Nn5tAn4lPyY+hiScYX2BDuOt/Tyn3VVXg5Pa6w8cKGCX8iOl1rVc9J53jJ8udbygjE81ycXL w/msAu8Crx6tAtBUgFCX4iWzdbWA3D1bYeOYMiovU= X-Rspamd-Queue-Id: 471zx31hqmz4DbJ X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.131) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.78 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[221.109.102.188.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.94)[0.941,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.985,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[131.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.45)[ip: (1.63), ipnet: 212.227.0.0/16(-1.35), asn: 8560(1.99), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 16:01:44 -0000 On Mon, 28 Oct 2019 08:19:49 -0400, Robert Fitzpatrick via freebsd-questions wrote: > After doing an upgrade from 11.2-RELEASE to 11.3-RELEASE, I could no > longer login via SSH. When I login from console, there are many packages > that generate segmentation faults including pkg when I tried to pkg > upgrade openssh or just pkg update... > > root@db1: ~ # pkg update > /usr/lib/libssl.so.8: Shared object has no run-time symbol table > > I tried to deinstall pkg from ports manually and get these same errors > when trying to make install afterward. What can I do to get this > functional again? It might be possible to use the following command: # pkg-static -f update Seems that somehow your OS and ports (shared) library requirements got out of sync... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Mon Oct 28 16:09:32 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2559F1A6705 for ; Mon, 28 Oct 2019 16:09:32 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47206320hTz4Dyc for ; Mon, 28 Oct 2019 16:09:30 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=JHmSWt7ROetlhhfwTW0LGkdzJf6ixth09FtJe2c6XEU=; b=kXmhyIlEI00K93cyKyI7YHa5Pk rYJZUKU9lOync2YXOX5LwwFxgLheUXvnqNc0q1/Ak3dybWYNzRNDTIG8gO61+s7P12TZQ35VdxsrJ 1YSWBR9N/ZumJlHDX+vBThzRmRYildcNXuxZ60ZZCNlVdE9hdnpeJy5l+mdqHeeYd4hU=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iP7aD-0000y6-AS for freebsd-questions@freebsd.org; Mon, 28 Oct 2019 23:09:29 +0700 Date: Mon, 28 Oct 2019 23:09:29 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: autofs problems Message-ID: <20191028160929.GA2632@admin.sibptus.ru> References: <94a6b756-27bf-0363-b6f2-c711c33ab2c2@panix.com> <20191025044310.GA82046@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <20191025044310.GA82046@admin.sibptus.ru> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47206320hTz4Dyc X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=kXmhyIlE; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.36 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.26)[ip: (-9.83), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.49), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 16:09:32 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yet another problem:=20 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241531 autofs: stale entries remain in /media, "automount -c" does not remove them --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdtxK5AAoJEA2k8lmbXsY0+yYIAKkknhSvug4Rvlq6h9tagjVj UaGGZ9xEPWI0QWXk/XSk85KO1S9haFIahDhp3yonkihX1OslKv0dttebZ26e78TF j+cLacNa5lr5TnZFhipn+fw/+0Cd5jU0Fd37NNfsz+nKP4DcY6bvoGdvwLbrsb3i AtL5bYm/QlljZ6NfdpJpoI+O44KCm4pgJ4ZPP4bUwFfreZGptwlbTzq/Z7WWts0T QadQAuJn11aP7A6LmRX/Z89tQiSTzqONXH5A2XZJX3zInFz6KUA7EWBxicUnp4+P 8l3pQcB0MBBHnjwtz2xLURKPLld7ho7SUWddVg3AbnE/rmje8vmeHD8/95yLrhs= =NCF6 -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC-- From owner-freebsd-questions@freebsd.org Mon Oct 28 17:06:50 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9D4F21A7892 for ; Mon, 28 Oct 2019 17:06:50 +0000 (UTC) (envelope-from robert@webtent.org) Received: from mx3.webtent.net (mx3.webtent.net [208.38.145.5]) by mx1.freebsd.org (Postfix) with ESMTP id 4721N96tDqz4HXy for ; Mon, 28 Oct 2019 17:06:49 +0000 (UTC) (envelope-from robert@webtent.org) Received: from localhost (localhost [127.0.0.1]) by mx3.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTP id 22544D7B6D; Mon, 28 Oct 2019 13:06:47 -0400 (EDT) Received: from mx3.webtent.net ([127.0.0.1]) by localhost (mx3.webtent.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 78936-06; Mon, 28 Oct 2019 13:06:44 -0400 (EDT) Received: from [192.168.1.100] (unknown [96.254.71.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robert@mx3.webtent.net) by mx3.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTPSA id 9E4D5D7B20; Mon, 28 Oct 2019 13:06:44 -0400 (EDT) Subject: Re: Pkg broken after 11.3 upgrade To: Polytropon Cc: Robert Fitzpatrick via freebsd-questions References: <788f2dc2-d1c9-37b5-5a39-065c1afcd5d8@webtent.org> <20191028170130.f51f5c47.freebsd@edvax.de> From: Robert Fitzpatrick Message-ID: <4b0baf7a-bd0a-660d-a52e-a6090964e240@webtent.org> Date: Mon, 28 Oct 2019 13:06:44 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 PostboxApp/6.1.18 MIME-Version: 1.0 In-Reply-To: <20191028170130.f51f5c47.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: WebTent Mailguard 1.0.4_3 X-Rspamd-Queue-Id: 4721N96tDqz4HXy X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.82 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[webtent.org:s=201611]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:208.38.145.0/26]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[5.145.38.208.list.dnswl.org : 127.0.5.2]; DKIM_TRACE(0.00)[webtent.org:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[webtent.org,reject]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.22)[ip: (-0.56), ipnet: 208.38.128.0/18(-0.28), asn: 16724(-0.22), country: US(-0.05)]; ASN(0.00)[asn:16724, ipnet:208.38.128.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 17:06:50 -0000 Polytropon wrote on 10/28/2019 12:01 PM: > On Mon, 28 Oct 2019 08:19:49 -0400, Robert Fitzpatrick via freebsd-questions wrote: >> After doing an upgrade from 11.2-RELEASE to 11.3-RELEASE, I could no >> longer login via SSH. When I login from console, there are many packages >> that generate segmentation faults including pkg when I tried to pkg >> upgrade openssh or just pkg update... >> >> root@db1: ~ # pkg update >> /usr/lib/libssl.so.8: Shared object has no run-time symbol table >> >> I tried to deinstall pkg from ports manually and get these same errors >> when trying to make install afterward. What can I do to get this >> functional again? > > It might be possible to use the following command: > > # pkg-static -f update > > Seems that somehow your OS and ports (shared) library requirements > got out of sync... > Yes, I did this and it says all my packages are up to date. -- Robert From owner-freebsd-questions@freebsd.org Mon Oct 28 17:08:46 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 95F211A7A1A for ; Mon, 28 Oct 2019 17:08:46 +0000 (UTC) (envelope-from robert@webtent.org) Received: from mx3.webtent.net (mx3.webtent.net [208.38.145.5]) by mx1.freebsd.org (Postfix) with ESMTP id 4721QQ1yCBz4Hgm for ; Mon, 28 Oct 2019 17:08:46 +0000 (UTC) (envelope-from robert@webtent.org) Received: from localhost (localhost [127.0.0.1]) by mx3.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTP id 5DA9ED7B49; Mon, 28 Oct 2019 13:08:44 -0400 (EDT) Received: from mx3.webtent.net ([127.0.0.1]) by localhost (mx3.webtent.net [127.0.0.1]) (maiad, port 10024) with ESMTP id 33002-05; Mon, 28 Oct 2019 13:08:42 -0400 (EDT) Received: from [192.168.1.100] (unknown [96.254.71.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: robert@mx3.webtent.net) by mx3.webtent.net (WebTent ESMTP Postfix Internet Mail Exchange) with ESMTPSA id B6B86D7B0B; Mon, 28 Oct 2019 13:08:41 -0400 (EDT) Subject: Re: Pkg broken after 11.3 upgrade To: "@lbutlr" Cc: FreeBSD References: <788f2dc2-d1c9-37b5-5a39-065c1afcd5d8@webtent.org> <47FE0BB5-89D2-4732-905B-7F5FE701EE9E@kreme.com> From: Robert Fitzpatrick Message-ID: <68b4abbc-a849-3da8-c610-0cd32c3e9f2e@webtent.org> Date: Mon, 28 Oct 2019 13:08:41 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 PostboxApp/6.1.18 MIME-Version: 1.0 In-Reply-To: <47FE0BB5-89D2-4732-905B-7F5FE701EE9E@kreme.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: WebTent Mailguard 1.0.4_3 X-Rspamd-Queue-Id: 4721QQ1yCBz4Hgm X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.85 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[webtent.org:s=201611]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:208.38.145.0/26:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[webtent.org:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[webtent.org,reject]; RCVD_IN_DNSWL_MED(-0.20)[5.145.38.208.list.dnswl.org : 127.0.5.2]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.25)[ip: (-0.62), ipnet: 208.38.128.0/18(-0.31), asn: 16724(-0.25), country: US(-0.05)]; ASN(0.00)[asn:16724, ipnet:208.38.128.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 17:08:46 -0000 @lbutlr wrote on 10/28/2019 8:33 AM: > On 28 Oct 2019, at 06:19, Robert Fitzpatrick via freebsd-questions wrote: >> After doing an upgrade from 11.2-RELEASE to 11.3-RELEASE, I could no longer login via SSH. When I login from console, there are many packages that generate segmentation faults including pkg when I tried to pkg upgrade openssh or just pkg update... >> >> root@db1: ~ # pkg update >> /usr/lib/libssl.so.8: Shared object has no run-time symbol table >> >> I tried to deinstall pkg from ports manually and get these same errors when trying to make install afterward. What can I do to get this functional again? > > Did you read the how to update documentation? It seems not. > > You have put yourself in a bad position that it will take some effort to fix. It might be easiest to rollback to 11.2 and start over. > > freebsd-update rollback > > You COULD try > > pkg-static upgrade -f > Yes, this appears to work and will try tonight. Sorry, I do need to read through all, didn't even know about rollback. Thanks! -- Robert From owner-freebsd-questions@freebsd.org Mon Oct 28 23:57:43 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6499416084A for ; Mon, 28 Oct 2019 23:57:43 +0000 (UTC) (envelope-from nathan@robertsonfamily.id.au) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472BVF6xQmz4fPw for ; Mon, 28 Oct 2019 23:57:41 +0000 (UTC) (envelope-from nathan@robertsonfamily.id.au) Received: by mail-ot1-x332.google.com with SMTP id m19so8267764otp.1 for ; Mon, 28 Oct 2019 16:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=robertsonfamily-id-au.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=mSB6FdqP0NmKJpOekrGjWgQPqNlZ7xmHGvvH4uoAaJ8=; b=rGR1w2CAanUfUR7mI83kp2R97ADp6SwnYbwl6rfk3/pYmYgX8tO35uVIwHKkE3/J08 IQ6bhLKCE0jo1HwdSMyQvvhU56QXhDANqr4AuH/IiGMxqHLReqF+7Dfp+Jgmyt8HJNtg aVLOXYnGxdSICdzKpMh/uU7dyCpU/F7AfLKHv+TmtsnzJnwBvoCh5LXfVVjIB+cPDhlP t9leBh71NBLLbnD7n1vy74bH3P/ljHn7XLyUKAo+jzXM0LUQx5hQzVuNlxJve+gKUhJn cGngeJ1wafFAnjtUK9po5VS3Si5u9m2fmuaMLPavVl3ioCPPHw3E0sm6pewR5Bxk0t8C VqHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mSB6FdqP0NmKJpOekrGjWgQPqNlZ7xmHGvvH4uoAaJ8=; b=ZRUamvLzxEUBaCCjahlt2367MnHRyNiV5XqaNLOo/XPwuMWCPtjI8Ab+1pKI+f/t15 FWONGu1hLLR2TnwlGPL6h0X84befa4I3V/EYK5NQlVZiNaAtTmGV71mzPkpvYoj7N9wU On/mZ/m45t8uykJqFx1Thp9D9CkqVywURcGAMMwKhHUm9TFrDg0s0D877AJDywU40ovb u8+f1cExjOT5SNgbiIlvuWlD9Uiq7EKFF9o+F724+zQkuec/5wTIHlj5xgq0uiXbxOo+ JlYVKJqAlkYB0UF1TTjMaMGQB2Koi8zNWJxU3w8uRPXxCgndLC3TWMhCBFmBeV9zgQPw Dkqw== X-Gm-Message-State: APjAAAW3uUaaPR4b1kvlx3n+m990BQ09iZlsMTcxWZTymX3h7xk1jSBu TeG0mFlvPdpbAEvabYUsN+UefwoBzUz9KsTsDiq+tCMEBi5VuQ== X-Google-Smtp-Source: APXvYqwcu0vRqgRMvrlGFNX1HV1lIqKgCloQ1wy3RP09RSBKZpVeWUdS0T3IBPhgagEcObnZEraqujqnqAHNlsr7lt0= X-Received: by 2002:a9d:6084:: with SMTP id m4mr15799152otj.18.1572307060174; Mon, 28 Oct 2019 16:57:40 -0700 (PDT) MIME-Version: 1.0 From: Nathan Robertson Date: Tue, 29 Oct 2019 10:57:28 +1100 Message-ID: Subject: Masquerading MAC addresses To: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 472BVF6xQmz4fPw X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=robertsonfamily-id-au.20150623.gappssmtp.com header.s=20150623 header.b=rGR1w2CA; dmarc=none; spf=none (mx1.freebsd.org: domain of nathan@robertsonfamily.id.au has no SPF policy when checking 2607:f8b0:4864:20::332) smtp.mailfrom=nathan@robertsonfamily.id.au X-Spamd-Result: default: False [-3.89 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[robertsonfamily-id-au.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[robertsonfamily.id.au]; DKIM_TRACE(0.00)[robertsonfamily-id-au.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.59)[ip: (-8.47), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.05), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 23:57:43 -0000 Hi, I have an interesting issue that I'm hoping that somebody might be able to point me in the right direction on. Even just a pointer or two, or where to go ask. I've got a situation where my VPS provider is packet filtering my traffic based on MAC address, and as a result are dropping my jail traffic (as FreeBSD bridges traffic from the jail to the network using the jail's MAC address). I need a way to essentially masquerade the MAC address for outbound traffic on the host interface to get past the VPS vendors firewall. Basically, I need vnet jails with IP addresses to use the host adapters MAC address for outbound connections (think of it as masquerading / NAT of MAC addresses). On Linux, it looks like ebtables can do it (MAC NAT - https://ebtables.netfilter.org/documentation/features.html). I can see ipfw supports packet filtering based on MAC address, but I can't find anything on packet mangling. Any idea of where I should look or who I could ask about MAC NAT on FreeBSD? Thanks for any help provided. This one's really starting to do my head in. Nathan. From owner-freebsd-questions@freebsd.org Tue Oct 29 00:32:35 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E7A531617F4 for ; Tue, 29 Oct 2019 00:32:35 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472CGW17PZz3ClZ for ; Tue, 29 Oct 2019 00:32:34 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pg1-x544.google.com with SMTP id w3so8206498pgt.5 for ; Mon, 28 Oct 2019 17:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=We+rBibVeRbuQSMC13SVi1ce6uFL6DCBaCCu/0Zlvpc=; b=oKMszgnQWwtmoKV9LldjYEjsPN34kJfhdqqANJ092ZLQ10iT54vyX/JP4dFA/qAGa8 G8P0uKrZfaYG8JBw/pNK3tZRsIOwnfWsZbUxXz/yg2TR4e/nd1CxcyXLJTlo07x+oWxi D64icquoeOyXSSq7TUBlS6Ko9gumhmkwho8Dlm2SEaWqp/d1GxfI1199qw1i7IR/aFZ5 wV49axcPpcN3D5AaSLYkg5+sjGJN9KUebVfIQVCbJ0lMioyilKflrN09OvCaKw7KsB6C Kt5yJYqZRvFvmk8eAc4zpueq9ittVS5K57Fkw8XJnscvohjqlhlfW1bLJx8ojBony5cn RDuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=We+rBibVeRbuQSMC13SVi1ce6uFL6DCBaCCu/0Zlvpc=; b=M3ttWTelxRZB3TSHAP0Mzt3moL/Y2eEymGEjwG7ISIxtJec00KiIAsCVACR5Rc7aQ4 yb+JyOGJ8iA9KANdUmliz2+v0SYDTTxXUr0G5lJYJtxZVyOhEP0ggVe8prn5sPHrJ3tI wIqbPSpMo/B126VObSMEnx7/vL5go9wStAbQRd3hphVQys5YH1V6f2B1pJftEXIqv5sI AJUJWzXBPTgxPaUHsGUtYlmC21qph4/IyCT6Un+E7GJ+hX1MLW4O7dj1L/DYL4i4jRnL VogF5BK98u3x5e9Lappnlx4zE/deapgN5GfSfa0XXkUlSeNm2sOKIiboQzEnqktZwn0H GPpA== X-Gm-Message-State: APjAAAXBSfwJhyoetiE/6z6Wj/bzDumi6P91kYYuOnFZ7656dVDgWB/Q CSU1Ha3LGyTiPOeGJf8V89uXiCeg X-Google-Smtp-Source: APXvYqwhuYnLII44s9dS7Wqfmna8sJrlYkLwjfCK4BR+1+Qje48s4/HCaI37nZ/5hB/uNMZ9tibMAQ== X-Received: by 2002:a63:6cf:: with SMTP id 198mr23530934pgg.259.1572309153575; Mon, 28 Oct 2019 17:32:33 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id h9sm666902pjh.8.2019.10.28.17.32.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2019 17:32:33 -0700 (PDT) Subject: Re: Masquerading MAC addresses To: Nathan Robertson , freebsd-questions@freebsd.org References: From: MJ Message-ID: Date: Tue, 29 Oct 2019 11:31:36 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 472CGW17PZz3ClZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=oKMszgnQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::544 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-0.40), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.05), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 00:32:36 -0000 On 29/10/2019 10:57 am, Nathan Robertson wrote: > Hi, > > I have an interesting issue that I'm hoping that somebody might be able to > point me in the right direction on. Even just a pointer or two, or where to > go ask. I've got a situation where my VPS provider is packet filtering my > traffic based on MAC address, and as a result are dropping my jail traffic > (as FreeBSD bridges traffic from the jail to the network using the jail's > MAC address). I need a way to essentially masquerade the MAC address for > outbound traffic on the host interface to get past the VPS vendors firewall. > > Basically, I need vnet jails with IP addresses to use the host adapters MAC > address for outbound connections (think of it as masquerading / NAT of MAC > addresses). On Linux, it looks like ebtables can do it (MAC NAT - > https://ebtables.netfilter.org/documentation/features.html). I can see ipfw > supports packet filtering based on MAC address, but I can't find anything > on packet mangling. > > Any idea of where I should look or who I could ask about MAC NAT on FreeBSD? > > Thanks for any help provided. This one's really starting to do my head in. > > Nathan. Sounds like you need some sort of ARP proxy? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-questions@freebsd.org Tue Oct 29 01:05:35 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7B4B5162325 for ; Tue, 29 Oct 2019 01:05:35 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472D0Z5VTJz3Fk8 for ; Tue, 29 Oct 2019 01:05:34 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pg1-x542.google.com with SMTP id w3so8263448pgt.5 for ; Mon, 28 Oct 2019 18:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=dx4RANN7fmkC9iF6qHLD04xtjljP/Oc/5tow1yJADgo=; b=SO/h+4EVNbydyllByMfsR6LMl9joipia1vSrt+iU0XotT+SXk7aN2v1pJXWSwIUoq7 i/HaD0VzrUf67K8OsBr2ErutOlSKJcdzbMm7NNhjwC1SAh9qiCn/QxPd/mJ0MMZQ6Q6g Poy3LszQOwZoMDh6VRXcjaQEaPtpGuOi3knkMR8a+nef6UwXV46Eus4DW3Qd0Y/9eQEJ nbo79NZ7P2o4asuGI+BVuhqIcARIedA3irYTDLC7JrmuD+bTVQyiOqETwEKL38if0OYr wd3JkpL5H6Rh5R3ECnEUC1EIXBOTNjA1R7zb+7OFk9SN1Dav1NbJaLHpmcxHDBsiWxZC SlYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=dx4RANN7fmkC9iF6qHLD04xtjljP/Oc/5tow1yJADgo=; b=CEBvuyZjSwo9KYCZohbyZRc3hzXC6XLNnjFt2sOGPr3YHco4ZPGpCHtNBpEmwEnmZJ K6CWZtjejvS3Co0im9cEcXhDbMNxdco6935OLfdFmQphZDYTAeVIq0adKAyEvux/H0rj ClnEjfvEs/fLhGLEscVEJgVEkURSDJ9ZooBfbKd2E2VMQhdc4GJlYpinITt5rAAxPtii 2SbW9O5DIUviKX22hdCbmdQo3RcIrCD8ZXgZ70M5rvsY8/ehjd3N3T9ORGzg44dyYN2F WAJCmbj06WKnhDMl0gwYZIvRWnk9uSYtkDIq6ehqdZN0x+6EIlEU+U6aHsAzgMXaMjpZ zO6A== X-Gm-Message-State: APjAAAXBEEEn4bXwMHrN/L/29QBNo4Vglkh6qOUayQCz56+WSPU1BK9s MreLCRtKPtW464W8KMsyL5nedjFz X-Google-Smtp-Source: APXvYqyEL8DS73wk4NMLb9WG//pVo4dIzFlgGIi0B32Lm/P43bO1uOxl2QddLb5w/hCGtnSZsX5YXw== X-Received: by 2002:a65:55c3:: with SMTP id k3mr23345177pgs.155.1572311133193; Mon, 28 Oct 2019 18:05:33 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id e184sm11544270pfa.87.2019.10.28.18.05.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2019 18:05:32 -0700 (PDT) Subject: Re: Masquerading MAC addresses To: freebsd-questions@freebsd.org References: From: MJ Message-ID: <699b96b0-2259-10a0-52fd-9a6a75588515@gmail.com> Date: Tue, 29 Oct 2019 12:04:36 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-AU X-Rspamd-Queue-Id: 472D0Z5VTJz3Fk8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SO/h+4EV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::542 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-0.70), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.05), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[2.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 01:05:35 -0000 On 29/10/2019 11:31 am, MJ wrote: > > On 29/10/2019 10:57 am, Nathan Robertson wrote: >>   Hi, >> >> I have an interesting issue that I'm hoping that somebody might be able to >> point me in the right direction on. Even just a pointer or two, or where to >> go ask. I've got a situation where my VPS provider is packet filtering my >> traffic based on MAC address, and as a result are dropping my jail traffic >> (as FreeBSD bridges traffic from the jail to the network using the jail's >> MAC address). I need a way to essentially masquerade the MAC address for >> outbound traffic on the host interface to get past the VPS vendors firewall. >> >> Basically, I need vnet jails with IP addresses to use the host adapters MAC >> address for outbound connections (think of it as masquerading / NAT of MAC >> addresses). On Linux, it looks like ebtables can do it (MAC NAT - >> https://ebtables.netfilter.org/documentation/features.html). I can see ipfw >> supports packet filtering based on MAC address, but I can't find anything >> on packet mangling. >> >> Any idea of where I should look or who I could ask about MAC NAT on FreeBSD? >> >> Thanks for any help provided. This one's really starting to do my head in. >> >> Nathan. > > > Sounds like you need some sort of ARP proxy? Something went wrong. Anyway, if that's what you need, look at https://www.freshports.org/net-mgmt/choparp Regards MarkJ > >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-questions@freebsd.org Tue Oct 29 01:40:39 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 85D23163D1D for ; Tue, 29 Oct 2019 01:40:39 +0000 (UTC) (envelope-from nathan@robertsonfamily.id.au) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472Dn04bHvz3HVf for ; Tue, 29 Oct 2019 01:40:36 +0000 (UTC) (envelope-from nathan@robertsonfamily.id.au) Received: by mail-ot1-x332.google.com with SMTP id b19so6055180otq.10 for ; Mon, 28 Oct 2019 18:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=robertsonfamily-id-au.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=qJmrqsmKNrw+D4kSqwD9NTLI9PRJmwaY2HbUWcDV7FY=; b=CiagQ2HesA4o4Oimp/ExkjgxL11g/OuYoUqT6iRoLD+Ozyqueyfbcld0BgGJP/v3Bw 3/q8V90243AtObpnyIuvLCg+0O1ustmX+FhhksCqxdOJXTdN1jdNTorQFghSDeD6gRQj pifJNlfKgclCqc2/9m4So9P/jQSDIoGM3gdB0gz6TKY2wHMTui6FbMxN3kRDPlmQIyoj 9/VQReF3sUlumUS3jAGxhJPeXGsizTS1wbCL6x4S1Iof+11tTHdE8aANFMV7e4cZVlov YqpygMPSjJBF5rLdXjFrKVXD5wUW6AFYzjpkGfpW+Wr03xDLRSUcKqs5NWbq7kybWFTB pSYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=qJmrqsmKNrw+D4kSqwD9NTLI9PRJmwaY2HbUWcDV7FY=; b=jHmyNiJsN6mOKkdufrv3ErO33dptl+xmg7j4UscJlgnYv5B+KzDf+ONzWlEExJz4Rp IPkysWXpYyGqjdEoHn9R5mEEoKL+QoOeCiM8GuIH94hzhmzl/9VzvdVwS12o9wQKzH65 ssJnD3BeYoRaTxH/JehSAikjN+ptNWHRVcVBXVGAIzVFp/b20SBFDvKauIumd68gPYet fOUibEzJtVAz/qbbEmXTVFQgPNlOGLXpowR9Rch+NQWSbpOKdjJDV5+tlZacUI/7qnX0 Vw02J/ikPej/sYMulFTz2haQPdwKBzi2S+GESTvNoRjb3sFYfxaH4CE6FahXMyCSuJPI v0pA== X-Gm-Message-State: APjAAAVAWjB2NvlpSY2wIVIifBzFRaJSH9PDlfuyJTnJMp2mIYS7SFx8 tmglJyl81g5vD6dKTojqYIEsUNn3SnvoFqv/c63SJg== X-Google-Smtp-Source: APXvYqxBroAA2Fw6aA2f1l18c1rJqI851h/DwOeEsVqyX93XmxXvlUPfD1xxjpedb9cpUUKEiN9sE8m5excw9vckGZE= X-Received: by 2002:a9d:7756:: with SMTP id t22mr9037585otl.43.1572313235105; Mon, 28 Oct 2019 18:40:35 -0700 (PDT) MIME-Version: 1.0 References: <699b96b0-2259-10a0-52fd-9a6a75588515@gmail.com> In-Reply-To: <699b96b0-2259-10a0-52fd-9a6a75588515@gmail.com> From: Nathan Robertson Date: Tue, 29 Oct 2019 12:40:23 +1100 Message-ID: Subject: Re: Masquerading MAC addresses To: MJ , freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 472Dn04bHvz3HVf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=robertsonfamily-id-au.20150623.gappssmtp.com header.s=20150623 header.b=CiagQ2He; dmarc=none; spf=none (mx1.freebsd.org: domain of nathan@robertsonfamily.id.au has no SPF policy when checking 2607:f8b0:4864:20::332) smtp.mailfrom=nathan@robertsonfamily.id.au X-Spamd-Result: default: False [-3.89 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[robertsonfamily-id-au.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[robertsonfamily.id.au]; URI_COUNT_ODD(1.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[robertsonfamily-id-au.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.59)[ip: (-8.44), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.05), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 01:40:39 -0000 On Tue, 29 Oct 2019 at 12:06, MJ wrote: > > On 29/10/2019 11:31 am, MJ wrote: > > > > On 29/10/2019 10:57 am, Nathan Robertson wrote: > >> [...] > >> Any idea of where I should look or who I could ask about MAC NAT on > FreeBSD? > > > > Sounds like you need some sort of ARP proxy? > > Something went wrong. > > Anyway, if that's what you need, look at > https://www.freshports.org/net-mgmt/choparp > I don't think proxy ARP is quite enough. It's possibly half the answer, as it'll make ARP requests from servers on the VPS vendors network work ok, and probably make inbound packets work ok (although possibly could confuse the jail server), but when the jail sends an ethernet frame (which goes over an ethernet bridge to the physical adapter, then out over the wire to the network), the source MAC address will still be the jail one, not the host one. The result is the VPS vendor will packet filter the outbound ethernet frame. The only way I can think of defeating this is SNAT / masquerade of the ethernet frame. (I'm trying to avoid doing a TCP level port forward, as I'd prefer the jail host to not have an IP address on this interface). From owner-freebsd-questions@freebsd.org Tue Oct 29 07:07:14 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A108917C4DA for ; Tue, 29 Oct 2019 07:07:14 +0000 (UTC) (envelope-from frankfenderbender@council124.org) Received: from vps349.pairvps.com (vps349.pairvps.com [216.92.231.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 472N1s628qz49bq for ; Tue, 29 Oct 2019 07:07:13 +0000 (UTC) (envelope-from frankfenderbender@council124.org) Received: from [192.168.0.100] (unknown [104.220.39.23]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by vps349.pairvps.com (Postfix) with ESMTPSA id 1D2161A26B0; Tue, 29 Oct 2019 03:07:05 -0400 (EDT) Subject: n-boot systems, bootloaders, and grub Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Frank Fenderbender Date: Tue, 29 Oct 2019 00:07:03 -0700 Reply-To: Frank Fenderbender Content-Transfer-Encoding: quoted-printable Message-Id: <57ABB44D-96E6-45F5-9837-1B66EF4C30DF@council124.org> To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.1085) X-Rspamd-Queue-Id: 472N1s628qz49bq X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of frankfenderbender@council124.org designates 216.92.231.69 as permitted sender) smtp.mailfrom=frankfenderbender@council124.org X-Spamd-Result: default: False [-0.07 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[frankfenderbender@council124.org]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:cegray.mail.pairserver.com]; HEADER_FORGED_MDN(2.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[council124.org]; RCPT_COUNT_ONE(0.00)[1]; REPLYTO_EQ_FROM(0.00)[]; IP_SCORE(-0.28)[ipnet: 216.92.0.0/16(-0.18), asn: 7859(-1.15), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MV_CASE(0.50)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.991,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7859, ipnet:216.92.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 07:07:14 -0000 I am seeking clarification on using 'update-grub' and/or = 'grub-mkconfig'. Here's the details upon which I am working. Systems: two Dell Precision 5820 Tower Workstations, each currently = using 4 internal HDs. Primary/default OS on both systems: Ubuntu 18.04. Goal: add three (3) more operating systems (FreeBSD, Fedora, Debian = added on one; Window10, GhostBSD, DragonflyBSD added onto the other). Required process: a step-wise installations with intermittent backup = and and modification of GRUB (v2.x). Okay, I've read about two methods of creating my N-boot system. The essence of "Method 1" is: $ sudo gedit /etc/default/grub # menu will list ordered boot/bootloader options # the "primary" will need to have the highest "GRUB_DEFAULT" number # the list, with just a primary OS, starts with 0 # to add a secondary OS, add its section, and increment the primary # # with four OSs, the primary OS ends up set as 3=20 # and the secondary OSs will be set at 0, 1, and 2 GRUB_DEFAULT=3D3 GRUB_DEFAULT=3D2 GRUB_DEFAULT=3D1 GRUB_DEFAULT=3D0 # the OS-adding and default-tweaking must be done one-at-a-time # with the use of a tool, 'update-grub', in-between. The second, method, which I am opting for, because it is said to be less = complicated, is: $ sudo gedit /etc/default/grub # change variable from original GRUB_DEFAULT=3D0 to GRUB_DEFAULT=3Dsaved # also, change the default time allowed in menu before the default # for the primary OS starts, i.e., the one with the highest number, # however, will that be added into the file by the 'grub-set-default' # method below? GRUB_TIMEOUT=3D15 # save the edit session # update the grub.cfg file $ sudo update-grub # run command $ sudo grub-set-default 'Ubuntu 18.04 (loader) (on /dev/sda1)' # there is no longer a need to set a number, since the list option is = explicit # now, add other OSs for each OS and HD# # '[OS name] (loader) (on /dev/sd[hdd#][partition#])', such as # $ sudo grub-set-default 'Ubuntu 18.04 (loader) (on /dev/sda1)' # $ sudo grub-set-default 'FreeBSd (loader) (on /dev/sda2)' # $ sudo grub-set-default 'Fedora 12 (loader) (on /dev/sda3)' # $ sudo grub-set-default 'Debian (loader) (on /dev/sda4)' I'm leaning towards Method2, as it is said to be "safer".=20 No explanatory evidence for that statement was given. I am using the following as references (versus the search results with = uncertain starting points): How Linux Works (2nd ed. - 2015) - by Brian Ward Linux Administration: A Beginner's Guide (7th ed. - 2016) - by Wale = Soyinka Ubuntu 16.04 LTS Desktop Applications and Administration (2016) - by = Richard Peterson GNU Grub Reference Manual (2012) - by Matzigkeit, Okuji, Watson, Bennett As I understand it so far, the UEFI partition on sda will be home to the = one-and-only grub installation on the system (on sda in its /boot/grub = directory's grub.cfg file). After having its boot presented-list has received a valid selection = input, it will direct the system boot process to the correct operating = system /boot directory on either sda, sdb, sdc, or sdd. I have partitions on sda set up as: partition type mount-pt actual-size notes --------- ------- ------------ ----------- ------ free space 1M for MBR backward-compatibility /dev/sda1 fat32 /boot/efi 1G size input covers the preceding 'free = space' /dev/sda2 fat32 /biosgrub 10M /dev/sda3 ext4 /boot 4G /dev/sda4 ext4 / 300G "root partition", used for the OS /dev/sda5 ext4 swap 12G /dev/sda6 ext4 /usr 20G /dev/sda7 ext4 /tmp 12G /dev/sda8 ext4 /usr/local 50G /dev/sda9 ext4 /home 450G On sdb (and likewise, substituting "sdc" or "sdd" for the other = secondary OSs)=20 the partitions are: free space 2.1M /dev/sdb1 fat32 /biosgrub 34M /dev/sdb2 ext4 /boot 4.2G /dev/sdb3 ext4 / 315G "root partition", used for the OS /dev/sdb4 ext4 swap 13G /dev/sdb5 ext4 /usr 20G /dev/sdb6 ext4 /tmp 12G /dev/sdb7 ext4 /usr/local 50G /dev/sdb8 ext4 /home 450G Although additional comments are welcomed offline, my question is based = in seeing two recommendations for updating the "live" grub.cfg file, = after each install-step, via running a referred-to command on = /use/default/grub in order to create that "live" file.=20 Two tools have been given, and, understanding their general use, I am = trying to understand their specific use. So, can you tell me what the difference(s) between, the = [dis]advantage(s) of each, and the system/kernel requirement(s) of/for = using the 'update-grub' and/or 'grub-mkconfig' commands? I might guess that... one is a specific to one OS (wrapped around Linux) over another; it is the release of the Canonical Linux kernel (4.x versus 5.x); it is more robust; it reduces the number of "outside-of-the-tool" steps wherein higher = possibility for error awaits. That is just me guessing. I've seen both commands referenced in reading about both methods. I appreciate your review of this topic and any knowledge gleaned from = your own n-boot setup experience. Thanks much. "Frank" From owner-freebsd-questions@freebsd.org Tue Oct 29 11:26:11 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F27E01A3AB3 for ; Tue, 29 Oct 2019 11:26:11 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 472Tmg4k3nz4PJf for ; Tue, 29 Oct 2019 11:26:11 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id A1FBF1A3AB2; Tue, 29 Oct 2019 11:26:11 +0000 (UTC) Delivered-To: questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A1C0E1A3AB1 for ; Tue, 29 Oct 2019 11:26:11 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472Tmf59qMz4PJd for ; Tue, 29 Oct 2019 11:26:10 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-oi1-x235.google.com with SMTP id s71so8579229oih.11 for ; Tue, 29 Oct 2019 04:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cO+A4pKjGhYfteuqSqVzQWKjLZl4Dui24h4OXqeV0K4=; b=Fm0iHt1k2rlYgkVbeBrue62tPxl2unC9jHlKDFk5snYWwkg43USvRLxM/W9rHZmgNj m2TN9weFMkQdvUNcCvei2HAYwv0AGOgWKclXmjDn7mo3gA/Xyl+/JendbHLdioK3ls76 5nNc8aTPhq91qQlMBA+HqJxq8FgdlhBvZzkWIT5MBy67UVMWjB8zxbyqyzQkKn9aae2E gcaSGorf4YKzhNHo0jfpef1BXD5oaYIb6uqN8jsVauO0guht175VU5k7l6zElnJMX03W ymRY6VaAHomWujg4c2Hf08vnlCUDERZV++Ap0BSoVVjBqOccvMdYen7luLj+pUbx8zYK oZfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cO+A4pKjGhYfteuqSqVzQWKjLZl4Dui24h4OXqeV0K4=; b=Zqxz+tnZgxTX4aXNVhtUP1NPNkRb7S4hRK/lGCvYpks3MiitHdEh5+3I9tcJJ2Ag1z 7uuUTOUhCJcGWcqSvI9vUaNQPKrL1uD/Lk7KLO7M/L2pm4vNpIB8Yp4fAPU/b88Z+o/U 5rUmc912auRzoBJPZBC2ZeXonGbE7sgQcqOenUyTdWncRcDW0a5S+WVf42NSEy70iRmd s/+F6D1UMH2eJPH3s5rK9f2Y2IqlFvPFhOw/8tonOIkOaCBAyr9NRIE58o/r240/i8BG W/uM7k9PyJ6cyHkgsjzIt6p2Q9L+wRk3smQtUVfbgyNZ/qK+XL3Grx9aRgI61UNLtGVm LqGQ== X-Gm-Message-State: APjAAAUPqI9qmJzI8M7+OYX6jFfFkzjwPwRkg7uxvzhWhdaEZQv8n9xi ZsEQbW+Dh1Dp/n4ezBFCzfUcnqJ6DGgnfdJb3N8OTulH X-Google-Smtp-Source: APXvYqzOAB8prMgYen6No4wOjvRrgAy6brQ0vGGuM1+6eJxC85w4Lk8+HcvYUOwo6h7jgMXSlbEE3il4qJNRZMzgqEY= X-Received: by 2002:aca:5058:: with SMTP id e85mr3691124oib.100.1572348368666; Tue, 29 Oct 2019 04:26:08 -0700 (PDT) MIME-Version: 1.0 From: Odhiambo Washington Date: Tue, 29 Oct 2019 14:25:31 +0300 Message-ID: Subject: IPSec+PSK Clients To: questions X-Rspamd-Queue-Id: 472Tmf59qMz4PJd X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Fm0iHt1k; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2607:f8b0:4864:20::235 as permitted sender) smtp.mailfrom=odhiambo@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-8.94), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.05), country: US(-0.05)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[5.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 11:26:12 -0000 Hi everyone, I need to configure a server to create multiple IPSec VPN tunnels as a* client, *using PSK, to different Cisco ASA Firewalls. All the tunnels need to be up at the same time, and routed accordingly. I was thinking I could do this with OpenVPN as a client, using different client config files, but I seem to have hit my /etc (end of thinking capacity) on this. What client apps are out there for Unix systems - FreeBSD/Linux - for this purpose ??? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-) From owner-freebsd-questions@freebsd.org Tue Oct 29 14:17:41 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F194C1A7CF6 for ; Tue, 29 Oct 2019 14:17:41 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (unknown [IPv6:2607:f3e0:0:3::19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pyroxene2.sentex.ca", Issuer "pyroxene2.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 472YZY0yR1z4Ybb for ; Tue, 29 Oct 2019 14:17:41 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:c938:e96c:c58e:60ff] ([IPv6:2607:f3e0:0:4:c938:e96c:c58e:60ff]) by pyroxene2a.sentex.ca (8.15.2/8.15.2) with ESMTPS id x9TEHdds062272 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 29 Oct 2019 10:17:40 -0400 (EDT) (envelope-from mike@sentex.net) To: FreeBSD Questions From: mike tancsa Subject: replacing zfs disk (freebsd-boot vs freebsd-efi) Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; keydata= mQENBFywzOMBCACoNFpwi5MeyEREiCeHtbm6pZJI/HnO+wXdCAWtZkS49weOoVyUj5BEXRZP xflV2ib2hflX4nXqhenaNiia4iaZ9ft3I1ebd7GEbGnsWCvAnob5MvDZyStDAuRxPJK1ya/s +6rOvr+eQiXYNVvfBhrCfrtR/esSkitBGxhUkBjOti8QwzD71JVF5YaOjBAs7jZUKyLGj0kW yDg4jUndudWU7G2yc9GwpHJ9aRSUN8e/mWdIogK0v+QBHfv/dsI6zVB7YuxCC9Fx8WPwfhDH VZC4kdYCQWKXrm7yb4TiVdBh5kgvlO9q3js1yYdfR1x8mjK2bH2RSv4bV3zkNmsDCIxjABEB AAG0HW1pa2UgdGFuY3NhIDxtaWtlQHNlbnRleC5uZXQ+iQFUBBMBCAA+FiEEmuvCXT0aY6hs 4SbWeVOEFl5WrMgFAlywzOYCGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ eVOEFl5WrMhnPAf7Bf+ola0V9t4i8rwCMGvzkssGaxY/5zNSZO9BgSgfN0WzgmBEOy/3R4km Yn5KH94NltJYAAE5hqkFmAwK6psOqAR9cxHrRfU+gV2KO8pCDc6K/htkQcd/mclJYpCHp6Eq EVJOiAxcNaYuHZkeMdXDuvvI5Rk82VHk84BGgxIqIrhLlkguoPbXOOa+8c/Mpb1sRAGZEOuX EzKNC49+GS9gKW6ISbanyPsGEcFyP7GKMzcHBPf3cPrewZQZ6gBoNscasL6IJeAQDqzQAxbU GjO0qBSMRgnLXK7+DJlxrYdHGXqNbV6AYsmHJ6c2WWWiuRviFBqXinlgJ2FnYebZPAfWibkB DQRcsMzkAQgA1Dpo/xWS66MaOJLwA28sKNMwkEk1Yjs+okOXDOu1F+0qvgE8sVmrOOPvvWr4 axtKRSG1t2QUiZ/ZkW/x/+t0nrM39EANV1VncuQZ1ceIiwTJFqGZQ8kb0+BNkwuNVFHRgXm1 qzAJweEtRdsCMohB+H7BL5LGCVG5JaU0lqFU9pFP40HxEbyzxjsZgSE8LwkI6wcu0BLv6K6c Lm0EiHPOl5G8kgRi38PS7/6s3R8QDsEtbGsYy6O82k3zSLIjuDBwA9GRaeigGppTxzAHVjf5 o9KKu4O7gC2KKVHPegbXS+GK7DU0fjzX57H5bZ6komE5eY4p3oWT/CwVPSGfPs8jOwARAQAB iQE8BBgBCAAmFiEEmuvCXT0aY6hs4SbWeVOEFl5WrMgFAlywzOQCGwwFCQHhM4AACgkQeVOE Fl5WrMhmjQf/dBCjAVn1J0GzSsHiLvSAQz1cchbdy8LD0Tnpzjgp5KLU7sNojbI8vqt4yKAi cayI88j8+xxNXPMWM4pHELuUuVHS5XTpHa/wwulUtI5w/zyKlUDsIvqTPZLUEwH7DfNBueVM WyNaIjV2kxSmM8rNMC+RkgyfbjGLCkmWsMRVuLIUYpl5D9WHmenUbiErlKU2KvEEXEg/aLKq 3m/AdM9RAYsP9O4l+sAZEfyYoNJzDhTZMzn/9Q0uFPLK9smDQh4WBTFaApveVJPHRKmHPoNF Xxj+yScYdQ4SKH34WnhNSELvnZQ3ulH5tpASmm0w+GxfZqSc8+QCwoKtBRDUxoE56A== Message-ID: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> Date: Tue, 29 Oct 2019 10:17:40 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 472YZY0yR1z4Ybb X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [0.78 / 15.00]; ARC_NA(0.00)[]; RDNS_NONE(1.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[sentex.net]; TO_DN_ALL(0.00)[]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.72)[ipnet: 2607:f3e0::/32(-4.93), asn: 11647(-3.56), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 14:17:42 -0000 In the past when replacing a disk in a zfs pool that I boot from, simply doing gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 where     p1 = freebsd-boot     p2 = freebsd-swap     p3 = freebsd-zfs works just fine (ie. replacing ada0).  However, on this one box, I noticed the disk has both freebsd-boot and efi     p1 = efi     p2 = freebsd-boot     p3 = freebsd-swap     p4 = freebsd-zfs If I replace ada0, what do I need to do in order to full restore boot functionality to the disk ? gpart bootcode -b /boot/pmbr -p /boot/boot1.efifat -i 1 ada0 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 vs gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 ? And is it boot1.efi or boot1.efifat ? I am guessing I also need the lable ? gpart modify -l efiboot2 -i 1 ada0 e.g. current ada0 is Geom name: ada0 modified: false state: OK fwheads: 16 fwsectors: 63 last: 976773127 first: 40 entries: 128 scheme: GPT Providers: 1. Name: ada0p1    Mediasize: 209715200 (200M)    Sectorsize: 512    Stripesize: 0    Stripeoffset: 20480    Mode: r0w0e0    efimedia: HD(1,GPT,a1ffb215-ff5c-11e8-98c7-ac1f6b70b306,0x28,0x64000)    rawuuid: a1ffb215-ff5c-11e8-98c7-ac1f6b70b306    rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b    label: efiboot0    length: 209715200    offset: 20480    type: efi    index: 1    end: 409639    start: 40 2. Name: ada0p2    Mediasize: 524288 (512K)    Sectorsize: 512    Stripesize: 0    Stripeoffset: 209735680    Mode: r0w0e0    efimedia: HD(2,GPT,a20b59f0-ff5c-11e8-98c7-ac1f6b70b306,0x64028,0x400)    rawuuid: a20b59f0-ff5c-11e8-98c7-ac1f6b70b306    rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f    label: gptboot0    length: 524288    offset: 209735680    type: freebsd-boot    index: 2    end: 410663    start: 409640 From owner-freebsd-questions@freebsd.org Tue Oct 29 14:48:29 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3F533158993 for ; Tue, 29 Oct 2019 14:48:29 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (unknown [IPv6:2607:f3e0:0:3::19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pyroxene2.sentex.ca", Issuer "pyroxene2.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 472ZG40p2Tz4bNM for ; Tue, 29 Oct 2019 14:48:28 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:c938:e96c:c58e:60ff] ([IPv6:2607:f3e0:0:4:c938:e96c:c58e:60ff]) by pyroxene2a.sentex.ca (8.15.2/8.15.2) with ESMTPS id x9TEmRkP064268 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 29 Oct 2019 10:48:27 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: replacing zfs disk (freebsd-boot vs freebsd-efi) From: mike tancsa To: FreeBSD Questions References: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; keydata= mQENBFywzOMBCACoNFpwi5MeyEREiCeHtbm6pZJI/HnO+wXdCAWtZkS49weOoVyUj5BEXRZP xflV2ib2hflX4nXqhenaNiia4iaZ9ft3I1ebd7GEbGnsWCvAnob5MvDZyStDAuRxPJK1ya/s +6rOvr+eQiXYNVvfBhrCfrtR/esSkitBGxhUkBjOti8QwzD71JVF5YaOjBAs7jZUKyLGj0kW yDg4jUndudWU7G2yc9GwpHJ9aRSUN8e/mWdIogK0v+QBHfv/dsI6zVB7YuxCC9Fx8WPwfhDH VZC4kdYCQWKXrm7yb4TiVdBh5kgvlO9q3js1yYdfR1x8mjK2bH2RSv4bV3zkNmsDCIxjABEB AAG0HW1pa2UgdGFuY3NhIDxtaWtlQHNlbnRleC5uZXQ+iQFUBBMBCAA+FiEEmuvCXT0aY6hs 4SbWeVOEFl5WrMgFAlywzOYCGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ eVOEFl5WrMhnPAf7Bf+ola0V9t4i8rwCMGvzkssGaxY/5zNSZO9BgSgfN0WzgmBEOy/3R4km Yn5KH94NltJYAAE5hqkFmAwK6psOqAR9cxHrRfU+gV2KO8pCDc6K/htkQcd/mclJYpCHp6Eq EVJOiAxcNaYuHZkeMdXDuvvI5Rk82VHk84BGgxIqIrhLlkguoPbXOOa+8c/Mpb1sRAGZEOuX EzKNC49+GS9gKW6ISbanyPsGEcFyP7GKMzcHBPf3cPrewZQZ6gBoNscasL6IJeAQDqzQAxbU GjO0qBSMRgnLXK7+DJlxrYdHGXqNbV6AYsmHJ6c2WWWiuRviFBqXinlgJ2FnYebZPAfWibkB DQRcsMzkAQgA1Dpo/xWS66MaOJLwA28sKNMwkEk1Yjs+okOXDOu1F+0qvgE8sVmrOOPvvWr4 axtKRSG1t2QUiZ/ZkW/x/+t0nrM39EANV1VncuQZ1ceIiwTJFqGZQ8kb0+BNkwuNVFHRgXm1 qzAJweEtRdsCMohB+H7BL5LGCVG5JaU0lqFU9pFP40HxEbyzxjsZgSE8LwkI6wcu0BLv6K6c Lm0EiHPOl5G8kgRi38PS7/6s3R8QDsEtbGsYy6O82k3zSLIjuDBwA9GRaeigGppTxzAHVjf5 o9KKu4O7gC2KKVHPegbXS+GK7DU0fjzX57H5bZ6komE5eY4p3oWT/CwVPSGfPs8jOwARAQAB iQE8BBgBCAAmFiEEmuvCXT0aY6hs4SbWeVOEFl5WrMgFAlywzOQCGwwFCQHhM4AACgkQeVOE Fl5WrMhmjQf/dBCjAVn1J0GzSsHiLvSAQz1cchbdy8LD0Tnpzjgp5KLU7sNojbI8vqt4yKAi cayI88j8+xxNXPMWM4pHELuUuVHS5XTpHa/wwulUtI5w/zyKlUDsIvqTPZLUEwH7DfNBueVM WyNaIjV2kxSmM8rNMC+RkgyfbjGLCkmWsMRVuLIUYpl5D9WHmenUbiErlKU2KvEEXEg/aLKq 3m/AdM9RAYsP9O4l+sAZEfyYoNJzDhTZMzn/9Q0uFPLK9smDQh4WBTFaApveVJPHRKmHPoNF Xxj+yScYdQ4SKH34WnhNSELvnZQ3ulH5tpASmm0w+GxfZqSc8+QCwoKtBRDUxoE56A== Message-ID: <00c936e7-d9f2-91f7-62ab-87cf77bfe813@sentex.net> Date: Tue, 29 Oct 2019 10:48:28 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 472ZG40p2Tz4bNM X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [0.78 / 15.00]; ARC_NA(0.00)[]; RDNS_NONE(1.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; TO_DN_ALL(0.00)[]; DMARC_NA(0.00)[sentex.net]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.72)[ipnet: 2607:f3e0::/32(-4.93), asn: 11647(-3.56), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 14:48:29 -0000 On 10/29/2019 10:17 AM, mike tancsa wrote: > If I replace ada0, what do I need to do in order to full restore boot > functionality to the disk ? > > gpart bootcode -b /boot/pmbr -p /boot/boot1.efifat -i 1 ada0 > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 > > vs > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > > ? > I am guessing this message should probably be updated with the caveat that if you have an efi partition, it should be different ? zpool replace zroot 9333639541642063400 /dev/ada0p4 Make sure to wait until resilver is done before rebooting. If you boot from pool 'zroot-nfs2', you may need to update boot code on newly attached disk '/dev/ada0p4'. Assuming you use GPT partitioning and 'da0' is your new boot disk you may use the following command:         gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 From owner-freebsd-questions@freebsd.org Tue Oct 29 18:09:09 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D382215F562 for ; Tue, 29 Oct 2019 18:09:09 +0000 (UTC) (envelope-from mike@sentex.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 472fjd4Gkwz3NVq for ; Tue, 29 Oct 2019 18:09:09 +0000 (UTC) (envelope-from mike@sentex.net) Received: by mailman.nyi.freebsd.org (Postfix) id 90BE615F560; Tue, 29 Oct 2019 18:09:09 +0000 (UTC) Delivered-To: questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8CB2015F55F for ; Tue, 29 Oct 2019 18:09:09 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (unknown [IPv6:2607:f3e0:0:3::19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pyroxene2.sentex.ca", Issuer "pyroxene2.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 472fjc4Zsfz3NVp for ; Tue, 29 Oct 2019 18:09:08 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:c938:e96c:c58e:60ff] ([IPv6:2607:f3e0:0:4:c938:e96c:c58e:60ff]) by pyroxene2a.sentex.ca (8.15.2/8.15.2) with ESMTPS id x9TI97FR078685 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 29 Oct 2019 14:09:07 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: IPSec+PSK Clients To: Odhiambo Washington , questions References: From: mike tancsa Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; keydata= mQENBFywzOMBCACoNFpwi5MeyEREiCeHtbm6pZJI/HnO+wXdCAWtZkS49weOoVyUj5BEXRZP xflV2ib2hflX4nXqhenaNiia4iaZ9ft3I1ebd7GEbGnsWCvAnob5MvDZyStDAuRxPJK1ya/s +6rOvr+eQiXYNVvfBhrCfrtR/esSkitBGxhUkBjOti8QwzD71JVF5YaOjBAs7jZUKyLGj0kW yDg4jUndudWU7G2yc9GwpHJ9aRSUN8e/mWdIogK0v+QBHfv/dsI6zVB7YuxCC9Fx8WPwfhDH VZC4kdYCQWKXrm7yb4TiVdBh5kgvlO9q3js1yYdfR1x8mjK2bH2RSv4bV3zkNmsDCIxjABEB AAG0HW1pa2UgdGFuY3NhIDxtaWtlQHNlbnRleC5uZXQ+iQFUBBMBCAA+FiEEmuvCXT0aY6hs 4SbWeVOEFl5WrMgFAlywzOYCGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ eVOEFl5WrMhnPAf7Bf+ola0V9t4i8rwCMGvzkssGaxY/5zNSZO9BgSgfN0WzgmBEOy/3R4km Yn5KH94NltJYAAE5hqkFmAwK6psOqAR9cxHrRfU+gV2KO8pCDc6K/htkQcd/mclJYpCHp6Eq EVJOiAxcNaYuHZkeMdXDuvvI5Rk82VHk84BGgxIqIrhLlkguoPbXOOa+8c/Mpb1sRAGZEOuX EzKNC49+GS9gKW6ISbanyPsGEcFyP7GKMzcHBPf3cPrewZQZ6gBoNscasL6IJeAQDqzQAxbU GjO0qBSMRgnLXK7+DJlxrYdHGXqNbV6AYsmHJ6c2WWWiuRviFBqXinlgJ2FnYebZPAfWibkB DQRcsMzkAQgA1Dpo/xWS66MaOJLwA28sKNMwkEk1Yjs+okOXDOu1F+0qvgE8sVmrOOPvvWr4 axtKRSG1t2QUiZ/ZkW/x/+t0nrM39EANV1VncuQZ1ceIiwTJFqGZQ8kb0+BNkwuNVFHRgXm1 qzAJweEtRdsCMohB+H7BL5LGCVG5JaU0lqFU9pFP40HxEbyzxjsZgSE8LwkI6wcu0BLv6K6c Lm0EiHPOl5G8kgRi38PS7/6s3R8QDsEtbGsYy6O82k3zSLIjuDBwA9GRaeigGppTxzAHVjf5 o9KKu4O7gC2KKVHPegbXS+GK7DU0fjzX57H5bZ6komE5eY4p3oWT/CwVPSGfPs8jOwARAQAB iQE8BBgBCAAmFiEEmuvCXT0aY6hs4SbWeVOEFl5WrMgFAlywzOQCGwwFCQHhM4AACgkQeVOE Fl5WrMhmjQf/dBCjAVn1J0GzSsHiLvSAQz1cchbdy8LD0Tnpzjgp5KLU7sNojbI8vqt4yKAi cayI88j8+xxNXPMWM4pHELuUuVHS5XTpHa/wwulUtI5w/zyKlUDsIvqTPZLUEwH7DfNBueVM WyNaIjV2kxSmM8rNMC+RkgyfbjGLCkmWsMRVuLIUYpl5D9WHmenUbiErlKU2KvEEXEg/aLKq 3m/AdM9RAYsP9O4l+sAZEfyYoNJzDhTZMzn/9Q0uFPLK9smDQh4WBTFaApveVJPHRKmHPoNF Xxj+yScYdQ4SKH34WnhNSELvnZQ3ulH5tpASmm0w+GxfZqSc8+QCwoKtBRDUxoE56A== Message-ID: <6c8d8509-4743-3cf9-84b9-4dd91bd28bef@sentex.net> Date: Tue, 29 Oct 2019 14:09:08 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 472fjc4Zsfz3NVp X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [0.78 / 15.00]; ARC_NA(0.00)[]; RDNS_NONE(1.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sentex.net]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.72)[ipnet: 2607:f3e0::/32(-4.93), asn: 11647(-3.56), country: CA(-0.09)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 18:09:09 -0000 On 10/29/2019 7:25 AM, Odhiambo Washington wrote: > Hi everyone, > > I need to configure a server to create multiple IPSec VPN tunnels as a* > client, *using PSK, to different Cisco ASA Firewalls. > All the tunnels need to be up at the same time, and routed accordingly. > I was thinking I could do this with OpenVPN as a client, using different > client config files, but I seem to have hit my /etc (end of thinking > capacity) on this. > > What client apps are out there for Unix systems - FreeBSD/Linux - for this > purpose ??? Not sure what the ASA uses/defaults to, but it should support some form of IPSEC. In that case, security/strongswan is the program to use.  They have all sorts of config examples on their website too.     ---Mike From owner-freebsd-questions@freebsd.org Tue Oct 29 19:41:04 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 246281626DA for ; Tue, 29 Oct 2019 19:41:04 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 472hlg6Fb7z40F0 for ; Tue, 29 Oct 2019 19:41:03 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id D48791626D9; Tue, 29 Oct 2019 19:41:03 +0000 (UTC) Delivered-To: questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D441C1626D7 for ; Tue, 29 Oct 2019 19:41:03 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 472hlf5wHsz40Dv for ; Tue, 29 Oct 2019 19:41:02 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-oi1-x22e.google.com with SMTP id r27so3816608oij.7 for ; Tue, 29 Oct 2019 12:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=sur0sRDlL/lf7CbkJ044m9NPJxeqk9bhhp4e7Yd7XKA=; b=kVVvGUZ5GiCbDgAbFgMCw9pZJGmTwJ3nixfwVZW+1yRvpe+ivbe5+E+skk0evgtGBm r6XHUIF2QhuYmdTXWKI05GJg7vakp09Lx6sMObAf6wVkGbZGyuVkkALcjA3v6u5HGfGr AUNXaFCfs2Rzzqz55en4Sd9QIWqWWvsxsQ2QLEmuOyib/3x8ZuEhBo5sqIxjzo/cCcxn C247QXM0h27oAA2Qq0BxxfMsiApc+HR253OekCT5LTd1xfWLiDJU1KM3nrrxHpgkjRig hXJWPZmktLjAn2fe/5Bl2Slxm1ZBfgRJV98BVrlX8leR5Z9Gf1Nl8r8dKT30N5En4YF2 ICWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=sur0sRDlL/lf7CbkJ044m9NPJxeqk9bhhp4e7Yd7XKA=; b=s8ZlY/MZ5EFAwIU6X8D4hiBpZIkJ2eNdlK6vnBHG8+RQFax8BM788nwvkw/wu/gsC7 xA0fUIz1p0uv+yWwR+WuXMCaVHzrYplpk4i5qDXSqaRRQOdP4W8486/NNSV0ALoSJK7c yx0nNvh544SzyOFPwcTWWfb70026ImhixGE+oqg0VcNUetpgHWP7ksSqD3XOfs6gflqe hrdM4lUUnOvjqFxipywrgDwBmXNSXqT4YbjaPesmcOiZKxN1X5ue0CQcofexfzUam3yY jrpEuCyY261p84TtaR862aiLS7VQ3CG5Mz2J0R5T4Zr7s+O0gGThQiPIiq8A7SZ6SAuw aX/w== X-Gm-Message-State: APjAAAUzQAGVomPtLUyNN86zzXZpNyeHP7Wyy957r4+MTToSGFAgXRGR UMT/rwZKmYZ9mxT+2HIjYBPFFWzFnibp96NxKxxL9fiG X-Google-Smtp-Source: APXvYqwU9UPHHaOZtOej/U+PfLJ18IZbziirk/BMHMhrBGiZG2Ih8ZvjWl5tXRqnQUeZHgRbdW8Is/0Npl4iThrsSTE= X-Received: by 2002:aca:f01:: with SMTP id 1mr5287174oip.32.1572378059948; Tue, 29 Oct 2019 12:40:59 -0700 (PDT) MIME-Version: 1.0 References: <6c8d8509-4743-3cf9-84b9-4dd91bd28bef@sentex.net> In-Reply-To: <6c8d8509-4743-3cf9-84b9-4dd91bd28bef@sentex.net> From: Odhiambo Washington Date: Tue, 29 Oct 2019 22:40:47 +0300 Message-ID: Subject: Re: IPSec+PSK Clients To: questions@freebsd.org X-Rspamd-Queue-Id: 472hlf5wHsz40Dv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=kVVvGUZ5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2607:f8b0:4864:20::22e as permitted sender) smtp.mailfrom=odhiambo@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(0.00)[ip: (-7.17), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.04), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[e.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2019 19:41:04 -0000 I did find it earlier today. Thanks. On Tue, Oct 29, 2019, 21:09 mike tancsa wrote: > > On 10/29/2019 7:25 AM, Odhiambo Washington wrote: > > Hi everyone, > > > > I need to configure a server to create multiple IPSec VPN tunnels as a* > > client, *using PSK, to different Cisco ASA Firewalls. > > All the tunnels need to be up at the same time, and routed accordingly. > > I was thinking I could do this with OpenVPN as a client, using different > > client config files, but I seem to have hit my /etc (end of thinking > > capacity) on this. > > > > What client apps are out there for Unix systems - FreeBSD/Linux - for > this > > purpose ??? > > Not sure what the ASA uses/defaults to, but it should support some form > of IPSEC. In that case, security/strongswan is the program to use. They > have all sorts of config examples on their website too. > > ---Mike > > From owner-freebsd-questions@freebsd.org Wed Oct 30 08:53:37 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 32FF017E429 for ; Wed, 30 Oct 2019 08:53:37 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4732L81GdMz4cJn for ; Wed, 30 Oct 2019 08:53:35 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=Z5jkbJHhZe1b82ETlXEaphj3c8Xka/NFRjG8EidQP/Q=; b=kITQ93clUYiKA8PAsKcI5LILCe 9ED+dc+oIgvfAfm0tqeb9qnUzD7FuoPhos8OHnguLg2rXyTDXRcFDv6Z5kr3cyAvVxDid6pvfEYeO OUe6HWWVsWvQHERolrlBF3J0A8PBdn/FbbzyAmXlugOytKOM4VQVAVWu//eUPpTX+sHs=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iPjjN-000KEk-88 for freebsd-questions@freebsd.org; Wed, 30 Oct 2019 15:53:29 +0700 Date: Wed, 30 Oct 2019 15:53:29 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: replacing zfs disk (freebsd-boot vs freebsd-efi) Message-ID: <20191030085329.GA77044@admin.sibptus.ru> References: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 4732L81GdMz4cJn X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=kITQ93cl; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.36 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.26)[ip: (-9.83), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.51), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2019 08:53:37 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable mike tancsa wrote: > In the past when replacing a disk in a zfs pool that I boot from, simply > doing >=20 > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 >=20 > where > =A0=A0=A0 p1 =3D freebsd-boot > =A0=A0=A0 p2 =3D freebsd-swap > =A0=A0=A0 p3 =3D freebsd-zfs >=20 >=20 > works just fine (ie. replacing ada0).=A0 However, on this one box, I > noticed the disk has both freebsd-boot and efi >=20 > =A0=A0=A0 p1 =3D efi > =A0=A0=A0 p2 =3D freebsd-boot > =A0=A0=A0 p3 =3D freebsd-swap > =A0=A0=A0 p4 =3D freebsd-zfs >=20 >=20 > If I replace ada0, what do I need to do in order to full restore boot > functionality to the disk ? May I suggest that if it's really a UEFI system, you probably don't need the freebsd-boot partition at all, nor any boot blocks or {P,M,V}BRs. Just make sure that the EFI (p1) partition is formatted as FAT (even FAT16 would do) and contains the \EFI\BOOT\BOOTX64.EFI loader. The command "gpart bootcode -p /boot/boot1.efifat -i 1 ada0"=20 may be a convenient way of copying the FAT partition image to the p1 partition, but certainly not the only one to format and populate it. You could use an MS-DOS floppy as well for the purpose. >=20 > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 The above ^^^^^ should be unnecessary. Your UEFI firmware will find the partition of the "efi" type and try to load /EFI/BOOT/BOOTX64.EFI from there, which in turn will sniff your ZFS filesystems for the loader. man 8 uefi --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJduU+JAAoJEA2k8lmbXsY0q7kH/ih3Y1rIZAIp99Ek4MAGZTHI ybPkyMcq5geSmvnCn6O9wc+8HUpxGQKUA3mvGxa1VrqDUVr21h2EqKtik5Ir40md wLokLSl+9nuBOiMSlFEFqT14hRg9dvVanzSOOgFHz1TdH1/6/O4iK04Oj8G5KIQ4 Q2pQYQUmJFz5wR+WXHK3XwmVPNNkR45MDTJBzJCHUWiwBuyLjLGEeL4SmvDFlkd5 RAoJvpRBaVT55dhAtsHYIFczuRzTwcXCxJnIg0QDX3hc0TplnWAyMVr5lpKzDHSB 3sT5WYZj0/0wv+WiMw2NctA0fZ+pySFxg1t3C0ot4y1dsx1rvmDmiA3XJ2xIFWU= =kSBw -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From owner-freebsd-questions@freebsd.org Wed Oct 30 12:53:02 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A8201A5053 for ; Wed, 30 Oct 2019 12:53:02 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (unknown [IPv6:2607:f3e0:0:3::19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pyroxene2.sentex.ca", Issuer "pyroxene2.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4737fN4Qjfz3P2w for ; Wed, 30 Oct 2019 12:53:00 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:e85e:a33:462c:726] ([IPv6:2607:f3e0:0:4:e85e:a33:462c:726]) by pyroxene2a.sentex.ca (8.15.2/8.15.2) with ESMTPS id x9UCqxcg056866 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 30 Oct 2019 08:52:59 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: replacing zfs disk (freebsd-boot vs freebsd-efi) To: Victor Sudakov , freebsd-questions@freebsd.org References: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> <20191030085329.GA77044@admin.sibptus.ru> From: mike tancsa Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; keydata= mQENBFywzOMBCACoNFpwi5MeyEREiCeHtbm6pZJI/HnO+wXdCAWtZkS49weOoVyUj5BEXRZP xflV2ib2hflX4nXqhenaNiia4iaZ9ft3I1ebd7GEbGnsWCvAnob5MvDZyStDAuRxPJK1ya/s +6rOvr+eQiXYNVvfBhrCfrtR/esSkitBGxhUkBjOti8QwzD71JVF5YaOjBAs7jZUKyLGj0kW yDg4jUndudWU7G2yc9GwpHJ9aRSUN8e/mWdIogK0v+QBHfv/dsI6zVB7YuxCC9Fx8WPwfhDH VZC4kdYCQWKXrm7yb4TiVdBh5kgvlO9q3js1yYdfR1x8mjK2bH2RSv4bV3zkNmsDCIxjABEB AAG0HW1pa2UgdGFuY3NhIDxtaWtlQHNlbnRleC5uZXQ+iQFUBBMBCAA+FiEEmuvCXT0aY6hs 4SbWeVOEFl5WrMgFAlywzOYCGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQ eVOEFl5WrMhnPAf7Bf+ola0V9t4i8rwCMGvzkssGaxY/5zNSZO9BgSgfN0WzgmBEOy/3R4km Yn5KH94NltJYAAE5hqkFmAwK6psOqAR9cxHrRfU+gV2KO8pCDc6K/htkQcd/mclJYpCHp6Eq EVJOiAxcNaYuHZkeMdXDuvvI5Rk82VHk84BGgxIqIrhLlkguoPbXOOa+8c/Mpb1sRAGZEOuX EzKNC49+GS9gKW6ISbanyPsGEcFyP7GKMzcHBPf3cPrewZQZ6gBoNscasL6IJeAQDqzQAxbU GjO0qBSMRgnLXK7+DJlxrYdHGXqNbV6AYsmHJ6c2WWWiuRviFBqXinlgJ2FnYebZPAfWibkB DQRcsMzkAQgA1Dpo/xWS66MaOJLwA28sKNMwkEk1Yjs+okOXDOu1F+0qvgE8sVmrOOPvvWr4 axtKRSG1t2QUiZ/ZkW/x/+t0nrM39EANV1VncuQZ1ceIiwTJFqGZQ8kb0+BNkwuNVFHRgXm1 qzAJweEtRdsCMohB+H7BL5LGCVG5JaU0lqFU9pFP40HxEbyzxjsZgSE8LwkI6wcu0BLv6K6c Lm0EiHPOl5G8kgRi38PS7/6s3R8QDsEtbGsYy6O82k3zSLIjuDBwA9GRaeigGppTxzAHVjf5 o9KKu4O7gC2KKVHPegbXS+GK7DU0fjzX57H5bZ6komE5eY4p3oWT/CwVPSGfPs8jOwARAQAB iQE8BBgBCAAmFiEEmuvCXT0aY6hs4SbWeVOEFl5WrMgFAlywzOQCGwwFCQHhM4AACgkQeVOE Fl5WrMhmjQf/dBCjAVn1J0GzSsHiLvSAQz1cchbdy8LD0Tnpzjgp5KLU7sNojbI8vqt4yKAi cayI88j8+xxNXPMWM4pHELuUuVHS5XTpHa/wwulUtI5w/zyKlUDsIvqTPZLUEwH7DfNBueVM WyNaIjV2kxSmM8rNMC+RkgyfbjGLCkmWsMRVuLIUYpl5D9WHmenUbiErlKU2KvEEXEg/aLKq 3m/AdM9RAYsP9O4l+sAZEfyYoNJzDhTZMzn/9Q0uFPLK9smDQh4WBTFaApveVJPHRKmHPoNF Xxj+yScYdQ4SKH34WnhNSELvnZQ3ulH5tpASmm0w+GxfZqSc8+QCwoKtBRDUxoE56A== Message-ID: Date: Wed, 30 Oct 2019 08:53:00 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191030085329.GA77044@admin.sibptus.ru> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4737fN4Qjfz3P2w X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [0.78 / 15.00]; ARC_NA(0.00)[]; RDNS_NONE(1.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; DMARC_NA(0.00)[sentex.net]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.72)[ipnet: 2607:f3e0::/32(-4.93), asn: 11647(-3.56), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2019 12:53:02 -0000 On 10/30/2019 4:53 AM, Victor Sudakov wrote: > mike tancsa wrote: >> In the past when replacing a disk in a zfs pool that I boot from, simply >> doing >> >> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 >> >> where >>     p1 = freebsd-boot >>     p2 = freebsd-swap >>     p3 = freebsd-zfs >> >> >> works just fine (ie. replacing ada0).  However, on this one box, I >> noticed the disk has both freebsd-boot and efi >> >>     p1 = efi >>     p2 = freebsd-boot >>     p3 = freebsd-swap >>     p4 = freebsd-zfs >> >> >> If I replace ada0, what do I need to do in order to full restore boot >> functionality to the disk ? > May I suggest that if it's really a UEFI system, you probably don't need > the freebsd-boot partition at all, nor any boot blocks or {P,M,V}BRs. > Thanks for the confirmation and explanation.  I wonder if an added note after a re-sliver would be a good idea --- zpool_main.c.orig   2019-10-30 08:44:12.688304000 -0400 +++ zpool_main.c        2019-10-30 08:49:40.292540000 -0400 @@ -5856,6 +5856,8 @@                     "the following command will do it:\n"                     "\n"                     "\tgpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0\n\n", +                   "\tor for EFI\n\n", +                   "\tgpart bootcode -p /boot/boot1.efifat -i 1 da0\n\n",                     cb.cb_poolname);         }   > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 > The above ^^^^^ should be unnecessary. Your UEFI firmware will find the > partition of the "efi" type and try to load /EFI/BOOT/BOOTX64.EFI from > there, which in turn will sniff your ZFS filesystems for the loader. I think FreeBSD's install added it by default. I wonder if that was done to make the disks portable between EFI and non EFI systems ? I will have to test to see if thats the case.     ---Mike From owner-freebsd-questions@freebsd.org Wed Oct 30 14:54:27 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BA0681A733D for ; Wed, 30 Oct 2019 14:54:27 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 473BLV58F6z41vK for ; Wed, 30 Oct 2019 14:54:26 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x230.google.com with SMTP id m193so2231270oig.0 for ; Wed, 30 Oct 2019 07:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZHyCbO7vm8wBVVSF1NxjE/hOcnR+JtoAokKEEpqa33k=; b=Hs4AUeWzQpgQf+jeGRMa8qMlf2hIRr2NKGzUG3dYmQPTXwqgOskb9wTWvtuNdeie4b qme1RwiyVUaWRE6Rm93SKN6QNDRrvASR2i895AtKk0l6w04ffoT5fVYqyJGScayXa9FG IN/N+W+nKIcdEwVtpgKvZAYvwxWUus0uk8JGYVzcwL4cjbJ1IIcoQxJrX0XuSLSKLdlo ZdXQmQ6MH4aQPgtak+AV8XWKCX3ZNnZhKNjZ0K5SRAmdKKxvZOIf7bOAAToyBufVWlBI KwSQYv6GHSZbWRUy/e2rtnP7Z2kiS63cL1hI/Bo2ufXD1Ej6/mluzDMe93/FUKtTNmi+ 1Y8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZHyCbO7vm8wBVVSF1NxjE/hOcnR+JtoAokKEEpqa33k=; b=q5siCGegX8N68xzbtTOvQhZOSHycto5Iz9XpOp9C5hgtdehjreO3k8qZBEEk2pTQRp yhur+I54rlXEZ01GVh3XUxLA8CvHDS0Dum7Y29rhYqKJnLI1K9bHk8GiAKmvknOZ9ECv COyD2bfTur1WYHovzlrdT4EEqbiEyjLj+iOrbNhGOuJsqxonV6xkPzpRg3iaasLJUlFX g6wfBbsO/KJaWuxh7l+NJv495UzSJvFuKEQGT+tlnMceUXdeaROefWuYX4fjH9Y6UsUT Y9TbbV+NtdT2BBOrd//wH6mbL+jmuc58ubz9DIatDh9vMuvl+7+3RWTNDGuIPiX/zhej 3U0g== X-Gm-Message-State: APjAAAUdZVYFLviobbC5h7h8pk6fJCuZ62+D8rIaSc1kl8GJWhnV1xxq RQ2KPNmLVjrWv3Ef+ObYoO+BWlY5OMQ= X-Google-Smtp-Source: APXvYqyeAJw/1oucsCDPtLOLpcaD+uv7TkV3APsEKbhGIfeVeO72veShEQwzKksv+SX0fzZ3HEImFQ== X-Received: by 2002:a05:6808:a04:: with SMTP id n4mr8819123oij.44.1572447264697; Wed, 30 Oct 2019 07:54:24 -0700 (PDT) Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com. [209.85.167.174]) by smtp.gmail.com with ESMTPSA id j62sm101423otc.45.2019.10.30.07.54.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Oct 2019 07:54:23 -0700 (PDT) Received: by mail-oi1-f174.google.com with SMTP id g81so2190369oib.8 for ; Wed, 30 Oct 2019 07:54:23 -0700 (PDT) X-Received: by 2002:aca:3846:: with SMTP id f67mr8945431oia.78.1572447263125; Wed, 30 Oct 2019 07:54:23 -0700 (PDT) MIME-Version: 1.0 References: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> <20191030085329.GA77044@admin.sibptus.ru> In-Reply-To: From: Tomasz CEDRO Date: Wed, 30 Oct 2019 15:54:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: replacing zfs disk (freebsd-boot vs freebsd-efi) To: Mike Tancsa Cc: Victor Sudakov , FreeBSD Questions Mailing List X-Rspamd-Queue-Id: 473BLV58F6z41vK X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=Hs4AUeWz; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::230) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.82 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; URI_COUNT_ODD(1.00)[3]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[0.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.52)[ip: (-8.11), ipnet: 2607:f8b0::/32(-2.39), asn: 15169(-2.04), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2019 14:54:27 -0000 The bsdinstall can make encrypted zfs root disk bootable on both bios and efi systems or only one of them (as selected during install). This is very handy for testing! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-questions@freebsd.org Wed Oct 30 16:02:32 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8306415938B for ; Wed, 30 Oct 2019 16:02:32 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 473Cs33DyCz48l2 for ; Wed, 30 Oct 2019 16:02:31 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=RGSjJ/IH7yfnIyBm+NY491dupQTV5OQIt+Fq2bNDbI4=; b=mG/J+TAibmcsZc+JfrhQTY19EZ RjUbxSiJKWPAfW3NWmoxZWcgEZSqA+0XCjpuFibJcz1PYLtwmYXOigAHa2wCny/uMMd6q95Znuza9 ADbnMsDuvh2WfrIPUKZ32+M72GnBtF/rqxCdD/bswAB+9DQbBtPr3EGN2EJk0JNdzjVQ=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iPqQX-000PW9-Om for freebsd-questions@freebsd.org; Wed, 30 Oct 2019 23:02:29 +0700 Date: Wed, 30 Oct 2019 23:02:29 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: replacing zfs disk (freebsd-boot vs freebsd-efi) Message-ID: <20191030160229.GA97870@admin.sibptus.ru> References: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> <20191030085329.GA77044@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 473Cs33DyCz48l2 X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=mG/J+TAi; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.36 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.26)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.52), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2019 16:02:32 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable mike tancsa wrote: [dd] > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 > > The above ^^^^^ should be unnecessary. Your UEFI firmware will find the > > partition of the "efi" type and try to load /EFI/BOOT/BOOTX64.EFI from > > there, which in turn will sniff your ZFS filesystems for the loader. >=20 > I think FreeBSD's install added it by default. I wonder if that was done > to make the disks portable between EFI and non EFI systems ? I will have > to test to see if thats the case. If you select "GPT (UEFI)" during installation, FreeBSD's install does not even create a freebsd-boot partition. If you select "GPT (BIOS)", it may create it, I think. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdubQVAAoJEA2k8lmbXsY0HAYIAKBIi3HJXKbZPKqn5QNfr54D woDCd0mMfmYxIjsYaYL3Syj1ALBcFmeml+u9yTH0cwzmu3C40bLhx81cQkPWmqdI WQtyfoxFNOQQAOvvPCJaz5yQdJRf5s/yGXiMOKTPg5/AoNTFXqH1pP06Gr/95dMC 66VUrqCvjpXRoI9gHSQyt1Ut6qCruV8uj6oc2nCIVHfHp2BOvJrGhOlOqAP5CyWc k37ItB9vDRsFiDNO8xk1+zXAI2coKQxsst49DZ0UKZjEp/cfit5xVy3sYaMLaoon IPwxCdHW3U+UHU4TjZ9by7Z9OONFLBmb6f/PMgTOAYxm0k/I2xreZezMOg8FskE= =LNq/ -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From owner-freebsd-questions@freebsd.org Wed Oct 30 21:14:36 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AC4381619E7; Wed, 30 Oct 2019 21:14:36 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 473Ln753TWz4bXG; Wed, 30 Oct 2019 21:14:35 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E3E8A222FB; Wed, 30 Oct 2019 17:14:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 30 Oct 2019 17:14:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:cc:subject:message-id:mime-version:content-type; s= fm1; bh=/ci8xDj3w37n7iwEP0+tSwJBNfBDe+CO36q9hzQ25lw=; b=UkRHAnD1 MXkFiGjk7V6pUAwhjoNrKaIVCQNnjKwnUVQM3+DE02U1+4O+fPKQEJPh4kfZ25ZI kTQv5Zi/b/DUSkU/7SeixssQQd9TmXN5TiJS/esBxQ/sqMJgNKn8uvzlPZYaSdlC tbPONTwYzIwZbhyFKXGILxKON/yaZDCW9lsuHPFXmG+dsYrR687go9LWG5VgRDPO V1/tdanraoWufkCWp6mPKO3SxsqkZi+ymxwmX0HGIN/46d0w8kTXuFBZc10AlgDj dQBY3OPQDLMbbpvhONCtRLrV4pmSBaFV+W1bKND/6noWr1KHuU6LzsgFSS93Zy6k gkEE9w8tD451jQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=/ci8xDj3w37n7iwEP0+tSwJBNfBDe +CO36q9hzQ25lw=; b=JKrdIwlWoleVEPRyvhKFflf8XLZTfMwAPgyTJxoJ0YExv 50o5hCDgvnJkqrxOMGc/B5ZWT85GsI8jN7PH73lrBJYgPuVJcINHjdQ+fuMXWYT2 wGuT6NJWi90kIYgxUx9j669VSBfmFKb8k17PEb3PcvAJmseWYbcaiBf/ntlJX5hP 21CBNyV+JnM5Lh3gZVFxu8l6K4X8csnfp6ftx/7JbhAeOQ6NRAeMG2J3diF8yJ2Z o8fTJ8Yg+/FGeO/nG68n8iT1BtJiJypDTTl00qL21NTq4Ogr0fA2El0mdMq3plO2 14kl+4WXjo8Y+YUcfVzjt9G7hnc/uJkEtX4jo1zHQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddtfedgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggufgesghdtre ertdervdenucfhrhhomhepthgvtghhqdhlihhsthhsuceothgvtghhqdhlihhsthhsseii hiigshhtrdhnvghtqeenucfkphepkedvrdejtddrledurdelleenucfrrghrrghmpehmrg hilhhfrhhomhepthgvtghhqdhlihhsthhsseiihiigshhtrdhnvghtnecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: from bastion.zyxst.net (bastion.zyxst.net [82.70.91.99]) by mail.messagingengine.com (Postfix) with ESMTPA id 1CCD280059; Wed, 30 Oct 2019 17:14:34 -0400 (EDT) Date: Wed, 30 Oct 2019 21:14:04 +0000 From: tech-lists To: freebsd-pkg@freebsd.org Cc: freebsd-questions@freebsd.org Subject: building math/atlas in poudriere Message-ID: <20191030211404.GA55997@bastion.zyxst.net> Mail-Followup-To: freebsd-pkg@freebsd.org, freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 473Ln753TWz4bXG X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm1 header.b=UkRHAnD1; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=JKrdIwlW; dmarc=none; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 66.111.4.27 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-8.19 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm1,messagingengine.com:s=fm1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[zyxst.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-3.49)[ip: (-9.83), ipnet: 66.111.4.0/24(-4.87), asn: 11403(-2.68), country: US(-0.05)]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; SIGNED_PGP(-2.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[27.4.111.66.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2019 21:14:36 -0000 --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Is there a way of building math/atlas within poudriere? I get this cryptic error: # make =3D=3D=3D> atlas-math-3.8.4_18,1 has to be built manually: Optimizes for t= he local machine.. *** Error code 1 What does "has to be built manually" mean in this context? thanks, --=20 J. --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl25/S8ACgkQs8o7QhFz NAVkxA/6AtulQU6u1Z6mcejisUkLiU2c8KowSNs8BOvqLxUb/b1OT9TaNkRWjVv8 19LU3FMLf02wNgUCwLoBKPiAf/QBAsGAVtcu3xQ3K9xZ8n+nRpaBmfHpieZcW5PT 1ywG/KSJl8b5GLWVLjCgtZmM+DYZsVlaUuR/sdtIOmuus31yuMU1OlheKwnoYLav KjbBtJfVtpTCp53xjhJyd3w7auW/1H4usfcwWbODRpz9NEh99nS0sbvMHI378csO BdqPtHrWoiiSh+8m9WZsoNxVuLiL1QkabIHLhwDn8U/h3B42fck7ef7B6+TuwQsz RLsAMOP362UaOGR3a5dgYW1sST8+c0pt+8rrPjSm8rZwf50xqr+ZCBUPGq/g2bD/ aP9ASMQLsYA8v63C2ApyoxedwhAce2OumVU5FNPk9QCYv6wbveJrWuZR625ajqWX VQhkvcPDom6odhglzdnxhJ9JOHXIRUwNFeJqk5+zvFFLmY8/ASJqHkXvidBKA8+1 FPJdcRfh9aJF2gDj5Jd1a/gWsmK5BKSY8fh+8KXTPCAv8gYksHbR+WVpbIjk7ZHI KNVipbsuOCEEP5MBbJTHlxdPKV8PliTSZGZe41aivOj21ADyvn8naN55JtEcA7XL wsiIERtAbn5EQNx25ShRMCBqYY08bwpbKiITADJorzBKKBhBtR8= =5Czs -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l-- From owner-freebsd-questions@freebsd.org Thu Oct 31 02:58:50 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F25FA174B83; Thu, 31 Oct 2019 02:58:50 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [150.101.137.136]) by mx1.freebsd.org (Postfix) with ESMTP id 473VQJ73lJz4vmd; Thu, 31 Oct 2019 02:58:48 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp14-2-94-181.adl-apt-pir-bras31.tpg.internode.on.net (HELO leader.local) ([14.2.94.181]) by ipmail01.adl6.internode.on.net with ESMTP; 31 Oct 2019 13:28:42 +1030 Subject: Re: building math/atlas in poudriere To: freebsd-pkg@freebsd.org, freebsd-questions@freebsd.org References: <20191030211404.GA55997@bastion.zyxst.net> From: Shane Ambler Message-ID: <3fcd3c3e-af54-7ff2-a58c-eab818b7d48a@ShaneWare.Biz> Date: Thu, 31 Oct 2019 13:28:41 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20191030211404.GA55997@bastion.zyxst.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 473VQJ73lJz4vmd X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of FreeBSD@shaneware.biz has no SPF policy when checking 150.101.137.136) smtp.mailfrom=FreeBSD@shaneware.biz X-Spamd-Result: default: False [4.40 / 15.00]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[ShaneWare.Biz]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.997,0]; IP_SCORE(1.52)[ip: (3.81), ipnet: 150.101.0.0/16(2.49), asn: 4739(1.27), country: AU(0.01)]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.99)[0.986,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[136.137.101.150.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4739, ipnet:150.101.0.0/16, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2019 02:58:51 -0000 On 31/10/19 7:44 am, tech-lists wrote: > Hi, > > Is there a way of building math/atlas within poudriere? > > I get this cryptic error: > > # make > ===>  atlas-math-3.8.4_18,1 has to be built manually: Optimizes for the > local > machine.. > *** Error code 1 > > What does "has to be built manually" mean in this context? > > thanks, It means that it queries the current cpu to decide which code can get compiled in. If you are building on the same machine that will be installed then it will be the same. The only way I know to bypass this is comment the line in its Makefile #MANUAL_PACKAGE_BUILD= Optimizes for the local machine. The math/sage port should be the only one that depends on atlas. If you are looking for your own use, you have other blas libraries to choose from. Look in Mk/Uses/blaslapack.mk, the USES=blaslapack option can choose between four other blas libraries. -- FreeBSD - the place to B...Software Developing Shane Ambler From owner-freebsd-questions@freebsd.org Thu Oct 31 08:33:05 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C522D17F99A for ; Thu, 31 Oct 2019 08:33:05 +0000 (UTC) (envelope-from phakt@elude.in) Received: from mx1.elude.in (mx1.elude.in [185.2.82.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 473dr00jC5z40j5 for ; Thu, 31 Oct 2019 08:33:03 +0000 (UTC) (envelope-from phakt@elude.in) Received: from meerkat.elude.in (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.elude.in (Postfix) with ESMTPS id AFB47BE0938 for ; Thu, 31 Oct 2019 09:32:55 +0100 (CET) Received: from webclient.eludemaillhqfkh5.onion (webclient.core_local_net [172.21.0.3]) by meerkat.elude.in (Postfix) with ESMTPA id 93DAA7A8E71 for ; Thu, 31 Oct 2019 08:32:07 +0000 (UTC) Received: from 172.18.0.2 (proxying for 10.152.152.10) by _ with HTTP; Thu, 31 Oct 2019 08:32:07 -0000 Message-ID: <8df7aecd9e30389237e59b0f5da02e6a.squirrel@_> Date: Thu, 31 Oct 2019 08:32:07 -0000 Subject: INTEL board compatible with Coreboot From: "iPwn" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=elude.in; s=mail; t=1572510727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DBn5it4WZaGUtRsffjGX4M0PB/ZI3a4ImkuPvxE//I4=; b=ZPouvBAueBZ71hqeDBlseAKJZ82XTphP2JtvBiizaLEOGiWRktaTROubECGanE5x2GOQYt fxGu1vSIhgkr4pf4WesVkPAlAQeXO6nVENFIXNTFnAN5d3ofHNtKLJvcy+u9ElFLKdGvJq E+ndXNdm3UCvTjb78kAUfEO2aISQRyg= ARC-Seal: i=1; s=mail; d=elude.in; t=1572510727; a=rsa-sha256; cv=none; b=WKZ/m31n2qfYiuOnlr4RWffv+TSltwli5KlkzSIRo5q9Rr3qpiSabHQpae7oYJW++5s0ii Hbbsp2KCFltv9QSidogmkMMkyKPa/CuQJS+ltziNRU1MYy9qxgjUxinEp+0cIqM0ZMrSbX nVMu2lgqgEbQGv8Gl0Wfgks9Rhqg2N8= ARC-Authentication-Results: i=1; meerkat.elude.in; auth=pass smtp.mailfrom=phakt@elude.in X-Rspamd-Queue-Id: 473dr00jC5z40j5 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.62 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[elude.in:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-0.12)[asn: 49981(-0.61), country: NL(0.02)]; DKIM_TRACE(0.00)[elude.in:+]; DMARC_POLICY_ALLOW(-0.50)[elude.in,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:49981, ipnet:185.2.80.0/22, country:NL]; ARC_ALLOW(-1.00)[i=1] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2019 08:33:05 -0000 Hello, on FreeBSD forum there was a discussion about "FreeBSD friendly Motherboard compatible with Coreboot" link: https://forums.freebsd.org/threads/freebsd-friendly-motherboard-compatible-with-coreboot.68346/ the INTEL boards compatible with Coreboot seems to be: - Gigabyte GA-B75M-D3H - Asrock E350M1 does anyone know better options? another question still looking for answer: using flashrom if you type: -L | --list-supported print supported devices it says: Supported flash chips (total: 391): can someone check output and tell which are the best boards? Thanks From owner-freebsd-questions@freebsd.org Thu Oct 31 09:44:25 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC1241A26AA for ; Thu, 31 Oct 2019 09:44:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 473gQJ5cnBz449m for ; Thu, 31 Oct 2019 09:44:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.8.32.104]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPA (Nemesis) id 1N4eOd-1i0Qw02OZT-011gCx; Thu, 31 Oct 2019 10:44:19 +0100 Date: Thu, 31 Oct 2019 10:44:15 +0100 From: Polytropon To: Victor Sudakov Cc: freebsd-questions@freebsd.org Subject: Re: replacing zfs disk (freebsd-boot vs freebsd-efi) Message-Id: <20191031104415.ad81b5ce.freebsd@edvax.de> In-Reply-To: <20191030160229.GA97870@admin.sibptus.ru> References: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> <20191030085329.GA77044@admin.sibptus.ru> <20191030160229.GA97870@admin.sibptus.ru> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:fi6eqnY2qx35C33I7CrB4hRwAyPmmkhyYWssQ4NL8Uqw48b2zqD BKWhQfpUury9fV81HKeSzk3ZKnTyF5rrAEQe4HtundK30u/qH+T+6+KOilyEcplkFSqdFmM vE6DkMRt4qNlqXnXkFZ2waCl26ESlkfNJ9wQ72hKU4pEt7jAJAEngxRJtdUvCu4HjOgNAXq avVIMAdTe3vOgMghqH4QQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:m112UXjto58=:ZcYWmZAoYoWJbFvW4F+CKm PrA8g8SafQJDf1Cz7BG2coS7J9DLnQgWVHaOlQ18HqeHrGYLEwkDj/TbcZCA34VEKdgWcMr2D 7RI967BQifzZ15ki1IQV4+RaCwrlM/zBdiWNMGOKeIV3rLeKygre3IT6uQntLpb31WA6+5aw0 C/aAJg5i/INKGh7J719QDeT6RLgrNqXyVqNoBhgZ8Ikr/CSWnvSB/RN5KUfgMyq+8kO/TKAwK v6x2n34rLDAoVOSSbp+tRrnBjDK9euKeAaMaeRxcLdAtiarSdThkKlOHWeWmK4G46/oCXRzz/ yOCY7bD8spcSGy5AXCCMJWPt7OFVmEck9HVVr6IirCTl4MKGZQ/2W3dMhBYUHUDnZpM2IneGO 275d0ef1N5qIG5K7l0X5cCtpfZW+pep6OTj3bDnpRXVGDuP6JvXAOSUQZdZxoKVa1Gw5FrNRc uC3aSVuEIUJHQIQI0RTViMqtSJCxpVKOVPBtgfCk4bqmsAWVGnbLs6eCf8JDhnHYWfUI0Op32 upEUXxOeEuo6V8I7phxcU3GS6kMvfp29j/h+nbpo/huUljyPm05aEK6r3oOnm50uRU8OqDfQT 79gudOEHineoTFLOU00MeBndcBGqJpAylUCN+M9caARVId/XAne0JjhHdJj2Qz+eKg0PQZG1o mppd+wxv+wQy8qLYS4bZzzSOfVk4nTtrk/pAKpd0kPQptHPszX51rXJSnC4oo9V6EM8HRstYt weExVEpGsqQOynImhhyXjoME55xRNr+L8nf0LLUZmgVcT6wj4GdYzcAteAXyD9NG2whOwQ3IA 2O5E9Ziz11Ethd8IDXq6v17ur7GclyZnYM3CTIY2k22/uRPSyGUrlbCoXnyClyuDP6bu3iHOS WKKlom6nyZ0A1WDVQ1ShVdsGmRwe/JkzbeMCmg11w= X-Rspamd-Queue-Id: 473gQJ5cnBz449m X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.187) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.44 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[104.32.8.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.83)[0.833,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.94)[0.938,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[187.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[187.126.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.27)[ip: (0.44), ipnet: 212.227.0.0/16(-1.35), asn: 8560(2.28), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2019 09:44:25 -0000 On Wed, 30 Oct 2019 23:02:29 +0700, Victor Sudakov wrote: > mike tancsa wrote: > > [dd] > > > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 > > > The above ^^^^^ should be unnecessary. Your UEFI firmware will find the > > > partition of the "efi" type and try to load /EFI/BOOT/BOOTX64.EFI from > > > there, which in turn will sniff your ZFS filesystems for the loader. > > > > I think FreeBSD's install added it by default. I wonder if that was done > > to make the disks portable between EFI and non EFI systems ? I will have > > to test to see if thats the case. > > If you select "GPT (UEFI)" during installation, FreeBSD's install does > not even create a freebsd-boot partition. > > If you select "GPT (BIOS)", it may create it, I think. Yes, that is correct (at least regarding FreeBSD 12.0). Partition p1 is boot, p2 is /, p3 is swap, if you use the automated installation. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Thu Oct 31 11:48:10 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 163861A534E for ; Thu, 31 Oct 2019 11:48:10 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 473k944mldz49cZ for ; Thu, 31 Oct 2019 11:48:08 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id x9VBlu4V009365 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 31 Oct 2019 12:47:58 +0100 (CET) (envelope-from ml@netfence.it) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfence.it; s=201911; t=1572522478; bh=GSmkjYoU9DpJn3cR89GxnAMeuXDPo2td2oIb3jHrt0g=; h=To:From:Subject:Date; b=TQVEYkd4nvn5YXmmHbIwrVQF0NzaYWwn7lW4SaATx4QENVo+fLbXd52f/9rBD/06B FStiwHEfh8Cswba7BhvYm3IkN9zWCb81k8A23HGrJzLgoxAdKeATtPJ9n2l82pgDO1 K6svPCotOWNY9fQnMnyu8RBtQ/nNmELLKmuMZsTU= X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu To: freebsd-questions@freebsd.org From: Andrea Venturoli Subject: Increasing shutdown timeout Message-ID: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> Date: Thu, 31 Oct 2019 12:47:56 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 473k944mldz49cZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netfence.it header.s=201911 header.b=TQVEYkd4; dmarc=none; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-4.49 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[netfence.it:s=201911]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:2.44.121.52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[netfence.it:+]; DMARC_NA(0.00)[netfence.it]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.99)[ip: (-6.48), ipnet: 2.44.0.0/16(-3.24), asn: 30722(-0.26), country: IT(0.03)]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2019 11:48:10 -0000 Hello. I'm having some problems on different servers with shutdown timeout. For the curious, it ranges from bhyve VMs failing to stop (and keeping running as zombie, preventing real shutdown after init died), to NUT shutdown script not having the chance to run (so the UPS power won't get killed and the servers won't come up again unless all batteries are fully drained before the power comes back). First: why not? Are there good reasons NOT to increase this timeout? Possible side effects? Any experience with an high value? Second: how? I see there's "rcshutdown_timeout" that can be set in /etc/rc.conf, but also "kern.init_shutdown_timeout" sysctl. I read the latter is obsolete and not used since years. Seeing it there raises the doubt. Is it still valid? Should I increase both? bye & Thanks av. From owner-freebsd-questions@freebsd.org Thu Oct 31 13:20:07 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 44EFF1582F2 for ; Thu, 31 Oct 2019 13:20:07 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 473mC95pM2z4Gj6 for ; Thu, 31 Oct 2019 13:20:05 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id x9VDJoW0054958 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 31 Oct 2019 14:19:51 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1572527991; bh=/EQ6B//7IgptOEbCh3HLeMMg9tzBZHn4UfRvj0d/lCQ=; h=Date:From:To:Subject:In-Reply-To:References; b=DqmakV4oa7PUISYP+vgaSOFxnWjTnQ1H8h+nGtl1X31txCbZ7gnVs3jEUgm61f8qX uGExS0X403GI99kBGH48a9eOtPIxB3w1oWLxSOhhKb9JsYSpyhSCVYw1JEd0ErhBKa 2rB2tO14mLBbVUd89t4emVh2Vc90bgt6whlxtZwnUswfQHzta9tJK+2C+xHo9oCHBc MCmMPAaOKbvABC9VvCe9tDZdVSQekG2A6cBTHjyKzPBexrkv+cegJnziI4BMAC9R+x HxjMZOLYzqo1SEeh1OwFih7TuQcP6M3RuWQriN+0G2NWFxZTBwrDVu6i2xq1bpNcPb ZYdiCarQ+uZ4Q== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id x9VDJo1h054955 for ; Thu, 31 Oct 2019 14:19:50 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Thu, 31 Oct 2019 14:19:50 +0100 (CET) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: freebsd-questions@freebsd.org Subject: Re: Increasing shutdown timeout In-Reply-To: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> Message-ID: References: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> User-Agent: Alpine 2.21.99999 (BSF 352 2019-06-22) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on enterprise.ximalas.info X-Rspamd-Queue-Id: 473mC95pM2z4Gj6 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ximalas.info header.s=default header.b=DqmakV4o; dmarc=pass (policy=none) header.from=ximalas.info; spf=pass (mx1.freebsd.org: domain of trond.endrestol@ximalas.info designates 2001:700:1100:1::8 as permitted sender) smtp.mailfrom=trond.endrestol@ximalas.info X-Spamd-Result: default: False [-4.93 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[ximalas.info:s=default]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[ximalas.info:+]; DMARC_POLICY_ALLOW(-0.50)[ximalas.info,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:224, ipnet:2001:700::/32, country:NO]; IP_SCORE(-1.93)[ip: (-7.91), ipnet: 2001:700::/32(-1.12), asn: 224(-0.62), country: NO(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2019 13:20:07 -0000 On Thu, 31 Oct 2019 12:47+0100, Andrea Venturoli wrote: > I'm having some problems on different servers with shutdown timeout. > > For the curious, it ranges from bhyve VMs failing to stop (and keeping running > as zombie, preventing real shutdown after init died), to NUT shutdown script > not having the chance to run (so the UPS power won't get killed and the > servers won't come up again unless all batteries are fully drained before the > power comes back). > > First: why not? > Are there good reasons NOT to increase this timeout? Possible side effects? > Any experience with an high value? In my experience, the shutdown script(s) display more patience with a higher value. > Second: how? > I see there's "rcshutdown_timeout" that can be set in /etc/rc.conf, but also > "kern.init_shutdown_timeout" sysctl. > I read the latter is obsolete and not used since years. Seeing it there raises > the doubt. Is it still valid? > Should I increase both? My version control system says I had to increase rcshutdown_timeout from 30 seconds to 60 seconds on 2011-02-28 for one of my systems, and again to 90 seconds on 2011-05-09. 90 seconds has been the default value since 2012-02-17. Try setting rcshutdown_timeout to 120 seconds, or higher, i.e.: rcshutdown_timeout="120" -- Trond. From owner-freebsd-questions@freebsd.org Fri Nov 1 02:48:26 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CA74217F813 for ; Fri, 1 Nov 2019 02:48:26 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47467s1kkNz49fW for ; Fri, 1 Nov 2019 02:48:24 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=H4mkMWOD+Y6wLzkUZiH8Zyonb3q1QcbOJ2h1QOxeOAY=; b=fwos0dhbtrb+teMkAGpiFw6R84 sJloNJmOf5PMwWDInrWip2z2mwWXQpVYeTSo06xWNiaLS4IOne+tYEPL9vH+F2TVDsJavccrAAjun 0TRZSIIa+FuQcb94BqUFBSkTCUJOc2hKyC6hJHIQN5DORC5j1tOVWekh2K5ppb3B4Ywc=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQMz3-000Fgd-P6 for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 09:48:17 +0700 Date: Fri, 1 Nov 2019 09:48:17 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: grep for ascii nul Message-ID: <20191101024817.GA60134@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47467s1kkNz49fW X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=fwos0dhb; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.27)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.52), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 02:48:26 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, How can I print the names of files containing ascii nul (\x0)? The FreeBSD "grep -l" does not seem to be able to do it. NB I don't need to delete the nul character with sed or tr, just need to find files containing it. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdu5zxAAoJEA2k8lmbXsY0YXUH/i8sLMi6Z8aRRdZxknk4JFRi qOG+wSso9kopmLAZKVZCh8l7S7YVtZYkOsfDlunYTg5Bm95iR74ww2YrEPh/PMVf 3xRHCu+KEusPRvyj+aH8b6EtboP2moJPB47jBrsFzTIfxxjq+Z+nErSAt2EBSrDd 6XTduCLjEiAB6eKbPognnohhlaM9G2zPGGGEMHP+S6HLO8H8UY1FmvA7qzIwnU/P 3f8cTxBtrPvBIDTPuJVeeN1e+TXugiwj74vw0r/e6nx7PQiNnOO2JCKrY/EBJ172 mV0MCDsbSefK5jLoSltURZenXeCaTv/WYe7qDQQ92mj0qzhjPqaYXrf21Mljx4E= =cDyI -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP-- From owner-freebsd-questions@freebsd.org Fri Nov 1 02:55:37 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B51E117FE2F for ; Fri, 1 Nov 2019 02:55:37 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4746J91bTtz4BHn for ; Fri, 1 Nov 2019 02:55:36 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=g/95r1tndlN8CwARjwdvVn8rhAqJPpu+GxARB8jQGtE=; b=M5XKHnUkFzUEW/T6aMl5crn+6v vM+Jh6E4wWJJSW6vQbJbl/Hv4YTsQFdQq6eC5uZgEGejfsm0VVXqewX6j/ot2lB0zpDavDpIzUYHO gz7nxvqbyBdOwbFTtiBy2gWkhzaavD3j8ac/ziO5RTubWT08gS6cvs8+fTVj/0xLb1/Q=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQN67-000Fin-NW for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 09:55:35 +0700 Date: Fri, 1 Nov 2019 09:55:35 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: Increasing shutdown timeout Message-ID: <20191101025535.GB60134@admin.sibptus.ru> References: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vGgW1X5XWziG23Ko" Content-Disposition: inline In-Reply-To: <3cf157fa-6941-b662-9ffd-d9e2370f8846@netfence.it> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 4746J91bTtz4BHn X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=M5XKHnUk; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.27)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.53), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 02:55:37 -0000 --vGgW1X5XWziG23Ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andrea Venturoli wrote: >=20 > I'm having some problems on different servers with shutdown timeout. >=20 > For the curious, it ranges from bhyve VMs failing to stop (and keeping=20 > running as zombie, preventing real shutdown after init died), to NUT=20 > shutdown script not having the chance to run (so the UPS power won't get= =20 > killed and the servers won't come up again unless all batteries are=20 > fully drained before the power comes back). I've had a lot of trouble with VMs not shutting down properly after apcupsd ininitates a shutdown. I had to place an additional script: #!/bin/sh /usr/bin/logger -p daemon.warn UPS stopping all VMs /usr/local/sbin/vm stopall /usr/bin/logger -p daemon.warn VMs stopped as "/usr/local/etc/apcupsd/doshutdown".=20 You have NUT not apcupsd, but you may find my workaround useful. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --vGgW1X5XWziG23Ko Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdu56nAAoJEA2k8lmbXsY0BDwH/iYThZNQaGWndUeA9DzKRM5a 33qdUh8GWm/VEBFuTbMnoRDU08dCIkurU2YsJgMTdadMQKRwD2fvsSxEZhknW5oW DUEToJF0Edp0tpGbVK7bH5GsZnIsUeOzo+cNbGi5XipoQ7IbT3CDINOxnEfUUtT/ DOLWBDq/BFScfBMjJ8X/GcG/qoRM/LInDqBMpH/WJoVbYDILPx/hSt5cJIl+Dl5V WGjIJVozpAz2+o5uqGyS2a51HfVwEJIcvTC7JTquf27PWzi/c2lk/m2fUHxiyv6B SitV8XLa7yJNuC4F/At7WeravC+ZqBR/udKBmZ3luLFqtqI8EhLMkikCxIW/cZM= =KRdf -----END PGP SIGNATURE----- --vGgW1X5XWziG23Ko-- From owner-freebsd-questions@freebsd.org Fri Nov 1 03:07:35 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E38FD1A1581 for ; Fri, 1 Nov 2019 03:07:35 +0000 (UTC) (envelope-from thor@irk.ru) Received: from mail.irk.ru (relay2.dsi.ru [195.206.40.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4746Yx3tWMz4CNF for ; Fri, 1 Nov 2019 03:07:33 +0000 (UTC) (envelope-from thor@irk.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=irk.ru; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:To:Subject; bh=D2KIXQRJmHF9K2PykiyzwrupNMHayVeUI/wTYFp7QxA=; b=XrTl8Ge3OqKpDEjLMK9wxNX/bZ Y6KGz91tpMxfo4RI/sB5X3A4Gbl7g1kDaW4c98cVhddK9c52JHy+S5Xvlfl6OkfH49E8eguSUnvZo Ly8TrKP3bP4bYQYS/bMb0NrdEoFOKk5QV/zqG5639tMPvJoC9iH6QRerNto/9sXWmE8M=; Received: from [194.176.114.54] (helo=[192.168.1.130]) by mail.irk.ru with esmtpa (Exim 4.86 (FreeBSD)) (envelope-from ) id 1iQN5p-000JiO-Mw for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 10:55:17 +0800 Subject: Re: grep for ascii nul To: freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> From: thor Message-ID: <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> Date: Fri, 1 Nov 2019 11:07:29 +0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20191101024817.GA60134@admin.sibptus.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4746Yx3tWMz4CNF X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=irk.ru header.s=dkim header.b=XrTl8Ge3; dmarc=pass (policy=none) header.from=irk.ru; spf=pass (mx1.freebsd.org: domain of thor@irk.ru designates 195.206.40.175 as permitted sender) smtp.mailfrom=thor@irk.ru X-Spamd-Result: default: False [-0.30 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[irk.ru:s=dkim]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.94)[-0.938,0]; NEURAL_SPAM_MEDIUM(0.09)[0.086,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(1.55)[ipnet: 195.206.32.0/19(4.31), asn: 8345(3.45), country: RU(0.01)]; DKIM_TRACE(0.00)[irk.ru:+]; DMARC_POLICY_ALLOW(-0.50)[irk.ru,none]; RCVD_IN_DNSWL_NONE(0.00)[175.40.206.195.list.dnswl.org : 127.0.10.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8345, ipnet:195.206.32.0/19, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 03:07:35 -0000 There is NO such thing as filenames containing 0x00 inside the filename. UNIX filenames are strings in C meaning and may contain any 8-bit values except "/" which delimits the subdirectory names and 0x00 which marks the end of filename string. At least it was so when I first met Unix, and I hope Bill Gates never influenced Unix since this time. On 11/01/19 10:48, Victor Sudakov wrote: > Dear Colleagues, > > How can I print the names of files containing ascii nul (\x0)? The > FreeBSD "grep -l" does not seem to be able to do it. > > NB I don't need to delete the nul character with sed or tr, just need to > find files containing it. > From owner-freebsd-questions@freebsd.org Fri Nov 1 03:07:50 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4FA6C1A159C; Fri, 1 Nov 2019 03:07:50 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 4746ZF2b1gz4CQS; Fri, 1 Nov 2019 03:07:48 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id E17F04E687; Thu, 31 Oct 2019 20:07:47 -0700 (PDT) From: "Ronald F. Guilmette" To: freebsd-questions@freebsd.org, freebsd-perl@freebsd.org Subject: Help wanted: Install of p5-JSON-Parse removes Perl ??? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <58258.1572577667.1@segfault.tristatelogic.com> Content-Transfer-Encoding: quoted-printable Date: Thu, 31 Oct 2019 20:07:47 -0700 Message-ID: <58259.1572577667@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 4746ZF2b1gz4CQS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-4.16 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[tristatelogic.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-2.86)[ip: (-7.52), ipnet: 69.62.128.0/17(-3.76), asn: 14051(-2.98), country: US(-0.05)]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; MIME_TRACE(0.00)[0:+] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 03:07:50 -0000 I found I needed to install the p5-JSON-Parse package for some work I'm doing at present. No problem, I thought, I'll su'd to root and then just type: pkg install p5-JSON-Parse I did that and the log is shown below. I REALLY don't understand it. I don't understand why this simple thing caused pkg to attempt to install a fresh new Perl (5.30.0) *and* at the same time try to reinstall the one I already had installed which was apparently perl-5.28.2. What's up with that? More to the point, now /usr/local/bin/perl no longer exists on my system!! So what's up with THAT?? I am, as you might imagine, rather disgruntled at this point. I have work to do and now my Perl interpreter has disappeared. Was it somehow my fault? Was I bad? I have tried to lead a good life, up until now anyway. I have been kind to animals and small children. So what have I done wrong that has caused my Perl interpreter to be disappeared on me for no apparently good reason? The full log is below. Any help appreciated. At this point I would be happy just to be able to get my Perl interpreter back. P.S. I even tried to reinstall Perl-5.30.0 again, but that yeilds no joy: # pkg install perl5-5.30.0 Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The most recent versions of packages are already installed # ls -l /usr/local/bin/perl ls: /usr/local/bin/perl: No such file or directory log file: Script started on Thu Oct 31 19:24:38 2019 root@segfault:~ # pkg install p5-JSON-Parse Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. The following 3 package(s) will be affected (of 0 checked): New packages to be INSTALLED: p5-JSON-Parse: 0.55 perl5.28: 5.28.2 Installed packages to be UPGRADED: perl5: 5.28.1_1 -> 5.30.0 Number of packages to be installed: 2 Number of packages to be upgraded: 1 The process will require 58 MiB more space. 28 MiB to be downloaded. Proceed with this action? [y/N]: y [1/3] Fetching p5-JSON-Parse-0.55.txz: 0%[1/3] Fetching p5-JSON-Parse-0.= 55.txz: 100% 65 KiB 66.7kB/s 00:01 = [2/3] Fetching perl5-5.30.0.txz: 0%[2/3] Fetching perl5-5.30.0.txz: 3%= 472 KiB 483.3kB/s 00:29 ETA[2/3] Fetching perl5-5.30.0.txz: 11% 2= MiB 1.2MB/s 00:14 ETA[2/3] Fetching perl5-5.30.0.txz: 19% 3 MiB = 1.2MB/s 00:10 ETA[2/3] Fetching perl5-5.30.0.txz: 27% 4 MiB 1.2= MB/s 00:09 ETA[2/3] Fetching perl5-5.30.0.txz: 35% 5 MiB 1.2MB/s = 00:08 ETA[2/3] Fetching perl5-5.30.0.txz: 43% 6 MiB 1.2MB/s 00= :07 ETA[2/3] Fetching perl5-5.30.0.txz: 51% 7 MiB 1.2MB/s 00:06 E= TA[2/3] Fetching perl5-5.30.0.txz: 59% 8 MiB 1.2MB/s 00:05 ETA[2/= 3] Fetching perl5-5.30.0.txz: 68% 9 MiB 1.2MB/s 00:04 ETA[2/3] Fe= tching perl5-5.30.0.txz: 75% 11 MiB 1.2MB/s 00:03 ETA[2/3] Fetchin= g perl5-5.30.0.txz: 84% 12 MiB 1.2MB/s 00:02 ETA[2/3] Fetching per= l5-5.30.0.txz: 92% 13 MiB 1.2MB/s 00:00 ETA[2/3] Fetching perl5-5.= 30.0.txz: 100% 14 MiB 1.2MB/s 00:12 = [3/3] Fetching perl5.28-5.28.2.txz: 0%[3/3] Fetching perl5.28-5.28.2.txz= : 6% 912 KiB 933.9kB/s 00:14 ETA[3/3] Fetching perl5.28-5.28.2.txz: = 14% 2 MiB 1.2MB/s 00:11 ETA[3/3] Fetching perl5.28-5.28.2.txz: 2= 2% 3 MiB 1.2MB/s 00:09 ETA[3/3] Fetching perl5.28-5.28.2.txz: 30%= 4 MiB 1.2MB/s 00:08 ETA[3/3] Fetching perl5.28-5.28.2.txz: 38% = 5 MiB 1.2MB/s 00:07 ETA[3/3] Fetching perl5.28-5.28.2.txz: 47% = 7 MiB 1.2MB/s 00:06 ETA[3/3] Fetching perl5.28-5.28.2.txz: 55% 8 = MiB 1.2MB/s 00:05 ETA[3/3] Fetching perl5.28-5.28.2.txz: 63% 9 Mi= B 1.2MB/s 00:04 ETA[3/3] Fetching perl5.28-5.28.2.txz: 71% 10 MiB = 1.2MB/s 00:03 ETA[3/3] Fetching perl5.28-5.28.2.txz: 79% 11 MiB = 1.2MB/s 00:02 ETA[3/3] Fetching perl5.28-5.28.2.txz: 88% 12 MiB 1.= 2MB/s 00:01 ETA[3/3] Fetching perl5.28-5.28.2.txz: 96% 13 MiB 1.2M= B/s 00:00 ETA[3/3] Fetching perl5.28-5.28.2.txz: 100% 14 MiB 1.2MB/= s 00:12 = Checking integrity... done (1 conflicting) - perl5.28-5.28.2 conflicts with perl5-5.28.1_1 on /usr/local/lib/perl5/= 5.28/AnyDBM_File.pm Checking integrity... done (0 conflicting) Conflicts with the existing packages have been found. One more solver iteration is needed to resolve them. The following 4 package(s) will be affected (of 0 checked): New packages to be INSTALLED: p5-JSON-Parse: 0.55 perl5.28: 5.28.2 Installed packages to be UPGRADED: perl5: 5.28.1_1 -> 5.30.0 Installed packages to be REINSTALLED: pkg-1.12.0 Number of packages to be installed: 2 Number of packages to be upgraded: 1 Number of packages to be reinstalled: 1 The process will require 58 MiB more space. Proceed with this action? [y/N]: y Installing perl5-5.30.0... Extracting perl5-5.30.0: 0%Extracting perl5-5.30.0: 0%Extracting perl5= -5.30.0: 1%Extracting perl5-5.30.0: 2%Extracting perl5-5.30.0: 3%Ext= racting perl5-5.30.0: 4%Extracting perl5-5.30.0: 5%Extracting perl5-5.= 30.0: 6%Extracting perl5-5.30.0: 7%Extracting perl5-5.30.0: 8%Extrac= ting perl5-5.30.0: 9%Extracting perl5-5.30.0: 10%Extracting perl5-5.30.= 0: 11%Extracting perl5-5.30.0: 12%Extracting perl5-5.30.0: 13%Extractin= g perl5-5.30.0: 14%Extracting perl5-5.30.0: 15%Extracting perl5-5.30.0: = 16%Extracting perl5-5.30.0: 17%Extracting perl5-5.30.0: 18%Extracting p= erl5-5.30.0: 19%Extracting perl5-5.30.0: 20%Extracting perl5-5.30.0: 21= %Extracting perl5-5.30.0: 22%Extracting perl5-5.30.0: 23%Extracting perl= 5-5.30.0: 24%Extracting perl5-5.30.0: 25%Extracting perl5-5.30.0: 26%Ex= tracting perl5-5.30.0: 27%Extracting perl5-5.30.0: 28%Extracting perl5-5= .30.0: 29%Extracting perl5-5.30.0: 30%Extracting perl5-5.30.0: 31%Extra= cting perl5-5.30.0: 32%Extracting perl5-5.30.0: 33%Extracting perl5-5.30= .0: 34%Extracting perl5-5.30.0: 35%Extracting perl5-5.30.0: 36%Extracti= ng perl5-5.30.0: 37%Extracting perl5-5.30.0: 38%Extracting perl5-5.30.0:= 39%Extracting perl5-5.30.0: 40%Extracting perl5-5.30.0: 41%Extracting = perl5-5.30.0: 42%Extracting perl5-5.30.0: 43%Extracting perl5-5.30.0: 4= 4%Extracting perl5-5.30.0: 45%Extracting perl5-5.30.0: 46%Extracting per= l5-5.30.0: 47%Extracting perl5-5.30.0: 48%Extracting perl5-5.30.0: 49%E= xtracting perl5-5.30.0: 50%Extracting perl5-5.30.0: 51%Extracting perl5-= 5.30.0: 52%Extracting perl5-5.30.0: 53%Extracting perl5-5.30.0: 54%Extr= acting perl5-5.30.0: 55%Extracting perl5-5.30.0: 56%Extracting perl5-5.3= 0.0: 57%Extracting perl5-5.30.0: 58%Extracting perl5-5.30.0: 59%Extract= ing perl5-5.30.0: 60%Extracting perl5-5.30.0: 61%Extracting perl5-5.30.0= : 62%Extracting perl5-5.30.0: 63%Extracting perl5-5.30.0: 64%Extracting= perl5-5.30.0: 65%Extracting perl5-5.30.0: 66%Extracting perl5-5.30.0: = 67%Extracting perl5-5.30.0: 68%Extracting perl5-5.30.0: 69%Extracting pe= rl5-5.30.0: 70%Extracting perl5-5.30.0: 71%Extracting perl5-5.30.0: 72%= Extracting perl5-5.30.0: 73%Extracting perl5-5.30.0: 74%Extracting perl5= -5.30.0: 75%Extracting perl5-5.30.0: 76%Extracting perl5-5.30.0: 77%Ext= racting perl5-5.30.0: 78%Extracting perl5-5.30.0: 79%Extracting perl5-5.= 30.0: 80%Extracting perl5-5.30.0: 81%Extracting perl5-5.30.0: 82%Extrac= ting perl5-5.30.0: 83%Extracting perl5-5.30.0: 84%Extracting perl5-5.30.= 0: 85%Extracting perl5-5.30.0: 86%Extracting perl5-5.30.0: 87%Extractin= g perl5-5.30.0: 88%Extracting perl5-5.30.0: 89%Extracting perl5-5.30.0: = 90%Extracting perl5-5.30.0: 91%Extracting perl5-5.30.0: 92%Extracting p= erl5-5.30.0: 93%Extracting perl5-5.30.0: 94%Extracting perl5-5.30.0: 95= %Extracting perl5-5.30.0: 96%Extracting perl5-5.30.0: 97%Extracting perl= 5-5.30.0: 98%Extracting perl5-5.30.0: 99%Extracting perl5-5.30.0: 100% [1/4] Deinstalling perl5-5.28.1_1... [1/4] Deleting files for perl5-5.28.1_1: 0%[1/4] Deleting files for perl= 5-5.28.1_1: 0%[1/4] Deleting files for perl5-5.28.1_1: 1%[1/4] Deletin= g files for perl5-5.28.1_1: 2%[1/4] Deleting files for perl5-5.28.1_1: = 3%[1/4] Deleting files for perl5-5.28.1_1: 4%[1/4] Deleting files for p= erl5-5.28.1_1: 5%[1/4] Deleting files for perl5-5.28.1_1: 6%[1/4] Dele= ting files for perl5-5.28.1_1: 7%[1/4] Deleting files for perl5-5.28.1_1= : 8%[1/4] Deleting files for perl5-5.28.1_1: 9%[1/4] Deleting files fo= r perl5-5.28.1_1: 10%[1/4] Deleting files for perl5-5.28.1_1: 11%[1/4] D= eleting files for perl5-5.28.1_1: 12%[1/4] Deleting files for perl5-5.28.= 1_1: 13%[1/4] Deleting files for perl5-5.28.1_1: 14%[1/4] Deleting files= for perl5-5.28.1_1: 15%[1/4] Deleting files for perl5-5.28.1_1: 16%[1/4= ] Deleting files for perl5-5.28.1_1: 17%[1/4] Deleting files for perl5-5.= 28.1_1: 18%[1/4] Deleting files for perl5-5.28.1_1: 19%[1/4] Deleting fi= les for perl5-5.28.1_1: 20%[1/4] Deleting files for perl5-5.28.1_1: 21%[= 1/4] Deleting files for perl5-5.28.1_1: 22%[1/4] Deleting files for perl5= -5.28.1_1: 23%[1/4] Deleting files for perl5-5.28.1_1: 24%[1/4] Deleting= files for perl5-5.28.1_1: 25%[1/4] Deleting files for perl5-5.28.1_1: 2= 6%[1/4] Deleting files for perl5-5.28.1_1: 27%[1/4] Deleting files for pe= rl5-5.28.1_1: 28%[1/4] Deleting files for perl5-5.28.1_1: 29%[1/4] Delet= ing files for perl5-5.28.1_1: 30%[1/4] Deleting files for perl5-5.28.1_1:= 31%[1/4] Deleting files for perl5-5.28.1_1: 32%[1/4] Deleting files for= perl5-5.28.1_1: 33%[1/4] Deleting files for perl5-5.28.1_1: 34%[1/4] De= leting files for perl5-5.28.1_1: 35%[1/4] Deleting files for perl5-5.28.1= _1: 36%[1/4] Deleting files for perl5-5.28.1_1: 37%[1/4] Deleting files = for perl5-5.28.1_1: 38%[1/4] Deleting files for perl5-5.28.1_1: 39%[1/4]= Deleting files for perl5-5.28.1_1: 40%[1/4] Deleting files for perl5-5.2= 8.1_1: 41%[1/4] Deleting files for perl5-5.28.1_1: 42%[1/4] Deleting fil= es for perl5-5.28.1_1: 43%[1/4] Deleting files for perl5-5.28.1_1: 44%[1= /4] Deleting files for perl5-5.28.1_1: 45%[1/4] Deleting files for perl5-= 5.28.1_1: 46%[1/4] Deleting files for perl5-5.28.1_1: 47%[1/4] Deleting = files for perl5-5.28.1_1: 48%[1/4] Deleting files for perl5-5.28.1_1: 49= %[1/4] Deleting files for perl5-5.28.1_1: 50%[1/4] Deleting files for per= l5-5.28.1_1: 51%[1/4] Deleting files for perl5-5.28.1_1: 52%[1/4] Deleti= ng files for perl5-5.28.1_1: 53%[1/4] Deleting files for perl5-5.28.1_1: = 54%[1/4] Deleting files for perl5-5.28.1_1: 55%[1/4] Deleting files for = perl5-5.28.1_1: 56%[1/4] Deleting files for perl5-5.28.1_1: 57%[1/4] Del= eting files for perl5-5.28.1_1: 58%[1/4] Deleting files for perl5-5.28.1_= 1: 59%[1/4] Deleting files for perl5-5.28.1_1: 60%[1/4] Deleting files f= or perl5-5.28.1_1: 61%[1/4] Deleting files for perl5-5.28.1_1: 62%[1/4] = Deleting files for perl5-5.28.1_1: 63%[1/4] Deleting files for perl5-5.28= .1_1: 64%[1/4] Deleting files for perl5-5.28.1_1: 65%[1/4] Deleting file= s for perl5-5.28.1_1: 66%[1/4] Deleting files for perl5-5.28.1_1: 67%[1/= 4] Deleting files for perl5-5.28.1_1: 68%[1/4] Deleting files for perl5-5= .28.1_1: 69%[1/4] Deleting files for perl5-5.28.1_1: 70%[1/4] Deleting f= iles for perl5-5.28.1_1: 71%[1/4] Deleting files for perl5-5.28.1_1: 72%= [1/4] Deleting files for perl5-5.28.1_1: 73%[1/4] Deleting files for perl= 5-5.28.1_1: 74%[1/4] Deleting files for perl5-5.28.1_1: 75%[1/4] Deletin= g files for perl5-5.28.1_1: 76%[1/4] Deleting files for perl5-5.28.1_1: = 77%[1/4] Deleting files for perl5-5.28.1_1: 78%[1/4] Deleting files for p= erl5-5.28.1_1: 79%[1/4] Deleting files for perl5-5.28.1_1: 80%[1/4] Dele= ting files for perl5-5.28.1_1: 81%[1/4] Deleting files for perl5-5.28.1_1= : 82%[1/4] Deleting files for perl5-5.28.1_1: 83%[1/4] Deleting files fo= r perl5-5.28.1_1: 84%[1/4] Deleting files for perl5-5.28.1_1: 85%[1/4] D= eleting files for perl5-5.28.1_1: 86%[1/4] Deleting files for perl5-5.28.= 1_1: 87%[1/4] Deleting files for perl5-5.28.1_1: 88%[1/4] Deleting files= for perl5-5.28.1_1: 89%[1/4] Deleting files for perl5-5.28.1_1: 90%[1/4= ] Deleting files for perl5-5.28.1_1: 91%[1/4] Deleting files for perl5-5.= 28.1_1: 92%[1/4] Deleting files for perl5-5.28.1_1: 93%[1/4] Deleting fi= les for perl5-5.28.1_1: 94%[1/4] Deleting files for perl5-5.28.1_1: 95%[= 1/4] Deleting files for perl5-5.28.1_1: 96%[1/4] Deleting files for perl5= -5.28.1_1: 97%[1/4] Deleting files for perl5-5.28.1_1: 98%[1/4] Deleting= files for perl5-5.28.1_1: 99%[1/4] Deleting files for perl5-5.28.1_1: 10= 0% [2/4] Reinstalling pkg-1.12.0... [2/4] Extracting pkg-1.12.0: 0%[2/4] Extracting pkg-1.12.0: 0%[2/4] Ex= tracting pkg-1.12.0: 1%[2/4] Extracting pkg-1.12.0: 3%[2/4] Extracting= pkg-1.12.0: 5%[2/4] Extracting pkg-1.12.0: 7%[2/4] Extracting pkg-1.1= 2.0: 8%[2/4] Extracting pkg-1.12.0: 10%[2/4] Extracting pkg-1.12.0: 12= %[2/4] Extracting pkg-1.12.0: 14%[2/4] Extracting pkg-1.12.0: 15%[2/4] E= xtracting pkg-1.12.0: 17%[2/4] Extracting pkg-1.12.0: 19%[2/4] Extractin= g pkg-1.12.0: 21%[2/4] Extracting pkg-1.12.0: 22%[2/4] Extracting pkg-1.= 12.0: 24%[2/4] Extracting pkg-1.12.0: 26%[2/4] Extracting pkg-1.12.0: 2= 8%[2/4] Extracting pkg-1.12.0: 29%[2/4] Extracting pkg-1.12.0: 31%[2/4] = Extracting pkg-1.12.0: 33%[2/4] Extracting pkg-1.12.0: 35%[2/4] Extracti= ng pkg-1.12.0: 36%[2/4] Extracting pkg-1.12.0: 38%[2/4] Extracting pkg-1= .12.0: 40%[2/4] Extracting pkg-1.12.0: 42%[2/4] Extracting pkg-1.12.0: = 43%[2/4] Extracting pkg-1.12.0: 45%[2/4] Extracting pkg-1.12.0: 47%[2/4]= Extracting pkg-1.12.0: 49%[2/4] Extracting pkg-1.12.0: 50%[2/4] Extract= ing pkg-1.12.0: 52%[2/4] Extracting pkg-1.12.0: 54%[2/4] Extracting pkg-= 1.12.0: 56%[2/4] Extracting pkg-1.12.0: 57%[2/4] Extracting pkg-1.12.0: = 59%[2/4] Extracting pkg-1.12.0: 61%[2/4] Extracting pkg-1.12.0: 63%[2/4= ] Extracting pkg-1.12.0: 64%[2/4] Extracting pkg-1.12.0: 66%[2/4] Extrac= ting pkg-1.12.0: 68%[2/4] Extracting pkg-1.12.0: 70%[2/4] Extracting pkg= -1.12.0: 71%[2/4] Extracting pkg-1.12.0: 73%[2/4] Extracting pkg-1.12.0:= 75%[2/4] Extracting pkg-1.12.0: 77%[2/4] Extracting pkg-1.12.0: 78%[2/= 4] Extracting pkg-1.12.0: 80%[2/4] Extracting pkg-1.12.0: 82%[2/4] Extra= cting pkg-1.12.0: 84%[2/4] Extracting pkg-1.12.0: 85%[2/4] Extracting pk= g-1.12.0: 87%[2/4] Extracting pkg-1.12.0: 89%[2/4] Extracting pkg-1.12.0= : 91%[2/4] Extracting pkg-1.12.0: 92%[2/4] Extracting pkg-1.12.0: 94%[2= /4] Extracting pkg-1.12.0: 96%[2/4] Extracting pkg-1.12.0: 98%[2/4] Extr= acting pkg-1.12.0: 100% [3/4] Installing p5-JSON-Parse-0.55... [3/4] Extracting p5-JSON-Parse-0.55: 0%[3/4] Extracting p5-JSON-Parse-0.= 55: 0%[3/4] Extracting p5-JSON-Parse-0.55: 7%[3/4] Extracting p5-JSON-= Parse-0.55: 15%[3/4] Extracting p5-JSON-Parse-0.55: 23%[3/4] Extracting = p5-JSON-Parse-0.55: 30%[3/4] Extracting p5-JSON-Parse-0.55: 38%[3/4] Ext= racting p5-JSON-Parse-0.55: 46%[3/4] Extracting p5-JSON-Parse-0.55: 53%[= 3/4] Extracting p5-JSON-Parse-0.55: 61%[3/4] Extracting p5-JSON-Parse-0.5= 5: 69%[3/4] Extracting p5-JSON-Parse-0.55: 76%[3/4] Extracting p5-JSON-P= arse-0.55: 84%[3/4] Extracting p5-JSON-Parse-0.55: 92%[3/4] Extracting p= 5-JSON-Parse-0.55: 100% [4/4] Installing perl5.28-5.28.2... [4/4] Extracting perl5.28-5.28.2: 0%[4/4] Extracting perl5.28-5.28.2: = 0%[4/4] Extracting perl5.28-5.28.2: 1%[4/4] Extracting perl5.28-5.28.2: = 2%[4/4] Extracting perl5.28-5.28.2: 3%[4/4] Extracting perl5.28-5.28.2= : 4%[4/4] Extracting perl5.28-5.28.2: 5%[4/4] Extracting perl5.28-5.28= .2: 6%[4/4] Extracting perl5.28-5.28.2: 7%[4/4] Extracting perl5.28-5.= 28.2: 8%[4/4] Extracting perl5.28-5.28.2: 9%[4/4] Extracting perl5.28-= 5.28.2: 10%[4/4] Extracting perl5.28-5.28.2: 11%[4/4] Extracting perl5.2= 8-5.28.2: 12%[4/4] Extracting perl5.28-5.28.2: 13%[4/4] Extracting perl5= .28-5.28.2: 14%[4/4] Extracting perl5.28-5.28.2: 15%[4/4] Extracting per= l5.28-5.28.2: 16%[4/4] Extracting perl5.28-5.28.2: 17%[4/4] Extracting p= erl5.28-5.28.2: 18%[4/4] Extracting perl5.28-5.28.2: 19%[4/4] Extracting= perl5.28-5.28.2: 20%[4/4] Extracting perl5.28-5.28.2: 21%[4/4] Extracti= ng perl5.28-5.28.2: 22%[4/4] Extracting perl5.28-5.28.2: 23%[4/4] Extrac= ting perl5.28-5.28.2: 24%[4/4] Extracting perl5.28-5.28.2: 25%[4/4] Extr= acting perl5.28-5.28.2: 26%[4/4] Extracting perl5.28-5.28.2: 27%[4/4] Ex= tracting perl5.28-5.28.2: 28%[4/4] Extracting perl5.28-5.28.2: 29%[4/4] = Extracting perl5.28-5.28.2: 30%[4/4] Extracting perl5.28-5.28.2: 31%[4/4= ] Extracting perl5.28-5.28.2: 32%[4/4] Extracting perl5.28-5.28.2: 33%[4= /4] Extracting perl5.28-5.28.2: 34%[4/4] Extracting perl5.28-5.28.2: 35%= [4/4] Extracting perl5.28-5.28.2: 36%[4/4] Extracting perl5.28-5.28.2: 3= 7%[4/4] Extracting perl5.28-5.28.2: 38%[4/4] Extracting perl5.28-5.28.2: = 39%[4/4] Extracting perl5.28-5.28.2: 40%[4/4] Extracting perl5.28-5.28.2= : 41%[4/4] Extracting perl5.28-5.28.2: 42%[4/4] Extracting perl5.28-5.28= .2: 43%[4/4] Extracting perl5.28-5.28.2: 44%[4/4] Extracting perl5.28-5.= 28.2: 45%[4/4] Extracting perl5.28-5.28.2: 46%[4/4] Extracting perl5.28-= 5.28.2: 47%[4/4] Extracting perl5.28-5.28.2: 48%[4/4] Extracting perl5.2= 8-5.28.2: 49%[4/4] Extracting perl5.28-5.28.2: 50%[4/4] Extracting perl5= .28-5.28.2: 51%[4/4] Extracting perl5.28-5.28.2: 52%[4/4] Extracting per= l5.28-5.28.2: 53%[4/4] Extracting perl5.28-5.28.2: 54%[4/4] Extracting p= erl5.28-5.28.2: 55%[4/4] Extracting perl5.28-5.28.2: 56%[4/4] Extracting= perl5.28-5.28.2: 57%[4/4] Extracting perl5.28-5.28.2: 58%[4/4] Extracti= ng perl5.28-5.28.2: 59%[4/4] Extracting perl5.28-5.28.2: 60%[4/4] Extrac= ting perl5.28-5.28.2: 61%[4/4] Extracting perl5.28-5.28.2: 62%[4/4] Extr= acting perl5.28-5.28.2: 63%[4/4] Extracting perl5.28-5.28.2: 64%[4/4] Ex= tracting perl5.28-5.28.2: 65%[4/4] Extracting perl5.28-5.28.2: 66%[4/4] = Extracting perl5.28-5.28.2: 67%[4/4] Extracting perl5.28-5.28.2: 68%[4/4= ] Extracting perl5.28-5.28.2: 69%[4/4] Extracting perl5.28-5.28.2: 70%[4= /4] Extracting perl5.28-5.28.2: 71%[4/4] Extracting perl5.28-5.28.2: 72%= [4/4] Extracting perl5.28-5.28.2: 73%[4/4] Extracting perl5.28-5.28.2: 7= 4%[4/4] Extracting perl5.28-5.28.2: 75%[4/4] Extracting perl5.28-5.28.2: = 76%[4/4] Extracting perl5.28-5.28.2: 77%[4/4] Extracting perl5.28-5.28.2= : 78%[4/4] Extracting perl5.28-5.28.2: 79%[4/4] Extracting perl5.28-5.28= .2: 80%[4/4] Extracting perl5.28-5.28.2: 81%[4/4] Extracting perl5.28-5.= 28.2: 82%[4/4] Extracting perl5.28-5.28.2: 83%[4/4] Extracting perl5.28-= 5.28.2: 84%[4/4] Extracting perl5.28-5.28.2: 85%[4/4] Extracting perl5.2= 8-5.28.2: 86%[4/4] Extracting perl5.28-5.28.2: 87%[4/4] Extracting perl5= .28-5.28.2: 88%[4/4] Extracting perl5.28-5.28.2: 89%[4/4] Extracting per= l5.28-5.28.2: 90%[4/4] Extracting perl5.28-5.28.2: 91%[4/4] Extracting p= erl5.28-5.28.2: 92%[4/4] Extracting perl5.28-5.28.2: 93%[4/4] Extracting= perl5.28-5.28.2: 94%[4/4] Extracting perl5.28-5.28.2: 95%[4/4] Extracti= ng perl5.28-5.28.2: 96%[4/4] Extracting perl5.28-5.28.2: 97%[4/4] Extrac= ting perl5.28-5.28.2: 98%[4/4] Extracting perl5.28-5.28.2: 99%[4/4] Extr= acting perl5.28-5.28.2: 100% =3D=3D=3D=3D=3D Message from perl5-5.30.0: -- The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. =3D=3D=3D=3D=3D Message from perl5.28-5.28.2: -- The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. -- =3D=3D=3D> NOTICE: This port is deprecated; you may wish to reconsider installing it: Support end three years after .0 release, please upgrade to a more recent = version of Perl. It is scheduled to be removed on or after 2021-06-22. root@segfault:~ # exit exit Script done on Thu Oct 31 19:26:46 2019 From owner-freebsd-questions@freebsd.org Fri Nov 1 04:19:26 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 341C11A3765 for ; Fri, 1 Nov 2019 04:19:26 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47488r6sLjz4GW3 for ; Fri, 1 Nov 2019 04:19:24 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pf1-x42d.google.com with SMTP id p26so6119564pfq.8 for ; Thu, 31 Oct 2019 21:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=1JfsE5o0Kh7I54LLG5zK5CH70qTsAKzfGPlGhxM3Tl8=; b=foYgkTDA34Iu5dSApROa5VAW59bLW6kuQYHCgnO66qXmU06dk+Q0qVyDNSXWRBmSwR RPK/GToIof82Xxfkd/DqHGFXhopVy2AU56P+1NUKDsDKgErQ4H4EmS3IS9S4ncDRQtdG gx6lwJE5PvlwgX8y2JGClvZYfzGuj3Yp06Gojm6xzp7t3BfSmpbMAbPueiBKkw/HT49g NPp8VHxzNlKGtEfh86QtEyH8FBXMzY0czk3AwdwzrN6tUsb1qVaU1Hyrx9et5GpXz+F+ XvS6C/UH/HW46SR7qoBih9jPMULqIbS0UNmJeWk5MG9lqt3eiDkH8wjBsiAenkmyHEbS DvRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=1JfsE5o0Kh7I54LLG5zK5CH70qTsAKzfGPlGhxM3Tl8=; b=GDT0Avowa2gIDuW6daOGzwnMQpHdgguXYjyqR7P0bjcvRqxKNfXrSuIy4rvCTr6n2e Yy+h6Kzzo3Zm0hrLXi1vhXF/UsgqpdbFlNMNARDH5awyyhvisTgpS7boEaRLALOQOAQg 1Ub8LGA8rOFl4yAOCUuSxIkZrS2z7L061vTWXSsOnV68ENW6GmQyP/ceHosVZzKSFjBm 65/SQMF4m2ZpqTL0/nQF+6Qh9nYo4IKQMk2133CHuefYJ02I+5aOJcsNf/QlfQyp7xsD iMo3ipq9+hA12B+y7ZhTuWTq9Xb6Z3MEx9fRrJ5UrUOC41nUb3PV/EO1Vl7uTyahx1Au mn4A== X-Gm-Message-State: APjAAAVfYoYllzy9DZeYVUO1X4FWILU1QMdqrqjdAoaxpDacyl7WSXDd Oi2IyHtSKP14AGrtk5lghTAW0XJy X-Google-Smtp-Source: APXvYqzMBoGiUQGNWjo/JtW1Sv2pJPFB4CbFL+2Q1K2z9ZOyHy0KsjVKOdxiTg3v82k1JgivzNlfAQ== X-Received: by 2002:a63:3e0b:: with SMTP id l11mr7939969pga.448.1572581962611; Thu, 31 Oct 2019 21:19:22 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id o12sm5249357pgl.86.2019.10.31.21.19.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Oct 2019 21:19:22 -0700 (PDT) Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? To: freebsd-questions@freebsd.org References: <58259.1572577667@segfault.tristatelogic.com> From: MJ Message-ID: Date: Fri, 1 Nov 2019 15:18:16 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <58259.1572577667@segfault.tristatelogic.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 47488r6sLjz4GW3 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=foYgkTDA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::42d as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[d.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.04), ipnet: 2607:f8b0::/32(-2.39), asn: 15169(-2.04), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 04:19:26 -0000 On 1/11/2019 2:07 pm, Ronald F. Guilmette wrote: > I found I needed to install the p5-JSON-Parse package for some work I'm > doing at present. No problem, I thought, I'll su'd to root and then > just type: > > pkg install p5-JSON-Parse > > I did that and the log is shown below. I REALLY don't understand it. > I don't understand why this simple thing caused pkg to attempt to install > a fresh new Perl (5.30.0) *and* at the same time try to reinstall the > one I already had installed which was apparently perl-5.28.2. > > What's up with that? It (obviously?) thinks you've got some other package that depends on 5.28.2. Have you tried performing a package update/upgrade? MarkJ From owner-freebsd-questions@freebsd.org Fri Nov 1 04:25:35 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ACE031A3A73 for ; Fri, 1 Nov 2019 04:25:35 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4748Hz1D4bz4Grf for ; Fri, 1 Nov 2019 04:25:34 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pf1-x444.google.com with SMTP id q26so6118216pfn.11 for ; Thu, 31 Oct 2019 21:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=JkCmjVoKiqg5WtvP2RZ1Ul+jPWUN/o1OKa0o13zv9RI=; b=rKNnIyzDI6+59Eo1175qZ8gMjsCu/o6uJclCQjlVcOS471DClkQc8SSBQQ0Ly/79KB b2x6XnguDvocaJitb4iqYYWOfaLdvptPJqldlN8ZNaB9Tuv7QjU/S8ScfkTKfU7vYEL3 lbttJ9EBqFpiYC0w9qwHo4NVCs1pHPbI+FTC1x0/4xrw/bK30Z7YM+xASgR2CIOyTEcV Om/3CVEQCkoYAT766i1mdTk7DtE/zmIQpusGE+sSIdQcXm4yR8g7/UzAS994pjqs6Z54 6Fg5hgTTQhfnTrslHuCEds3Ku+xKpO7gM6/jdeQ+PgC0GumxqgpLEtr1lZdNz7PXNb0K uvYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=JkCmjVoKiqg5WtvP2RZ1Ul+jPWUN/o1OKa0o13zv9RI=; b=jpi1FbXy/UZRZBR1+Pvkk90sEItDvI8jkEgpUTrTV3synmLWPRR+MEVj102BnLaXBm jS5+RrgpYpL1neu9d2CRQfu2/Amfp8aqJVlkHyFIpp9POaUQPlClvo74kx38iQN+dkgG DwQgKqq5znhS/9X8Iu/zYIRKmkM+YCvoZchJAeYy+T2jIIiE7LGf2YDrjC1y4pWLwSVW pkg/DsuT6VWDO0NY9hAwoeGUYXhLeQb5CAtWXMRD+LBLJZ80/eP8wknadBSAOBqz8zbB tUZJiOFcidsYkqLVF50f4dgR3tK/Vv6sh2EyWP47TuHF8e+iMGnQPwAnSDxoPW6QbXUw ml7w== X-Gm-Message-State: APjAAAVxt4M6XQkLE52FwjL8TDvKJdX711WZdJtY69BhRo82fouchRxR zpd4UkxrtFK+X93p5uUgDuE3t4A3 X-Google-Smtp-Source: APXvYqyKcyCFAMVlKlnO8noTVC8I8GrompSIuGOg5Jz/pBKYXDmGY4zRtBz1tTOU6alrX2cwyqDWDg== X-Received: by 2002:a63:d0f:: with SMTP id c15mr11014010pgl.313.1572582332325; Thu, 31 Oct 2019 21:25:32 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id e8sm5391467pga.17.2019.10.31.21.25.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Oct 2019 21:25:31 -0700 (PDT) Subject: Re: grep for ascii nul To: thor , freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> From: MJ Message-ID: <8af5cac6-827e-9420-fe14-204bd4490976@gmail.com> Date: Fri, 1 Nov 2019 15:24:26 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 4748Hz1D4bz4Grf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=rKNnIyzD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::444 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-0.48), ipnet: 2607:f8b0::/32(-2.39), asn: 15169(-2.04), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 04:25:35 -0000 On 1/11/2019 2:07 pm, thor wrote: > There is NO such thing as filenames containing 0x00 inside the filename. UNIX filenames are strings in C meaning and may contain any 8-bit values except "/" which delimits the subdirectory names and 0x00 which marks the end of filename string. > > At least it was so when I first met Unix, and I hope Bill Gates never influenced Unix since this time. Nope you're right, no \0 allowed in filenames. None, nada, zilch. > On 11/01/19 10:48, Victor Sudakov wrote: >> Dear Colleagues, >> >> How can I print the names of files containing ascii nul (\x0)? The >> FreeBSD "grep -l" does not seem to be able to do it. >> >> NB I don't need to delete the nul character with sed or tr, just need to >> find files containing it. >> Victor, If you do find a file with it in, I suggest you bottle it and place it alongside your unicorn. MarkJ From owner-freebsd-questions@freebsd.org Fri Nov 1 04:44:31 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 76D8B1A4284 for ; Fri, 1 Nov 2019 04:44:31 +0000 (UTC) (envelope-from kh@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4748jp6mYlz4HYw for ; Fri, 1 Nov 2019 04:44:30 +0000 (UTC) (envelope-from kh@panix.com) Received: from rain.home (pool-72-74-69-77.bstnma.fios.verizon.net [72.74.69.77]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4748jn6F7yzygG for ; Fri, 1 Nov 2019 00:44:29 -0400 (EDT) Subject: Re: grep for ascii nul To: freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> From: Kurt Hackenberg Message-ID: <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> Date: Fri, 1 Nov 2019 00:44:23 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20191101024817.GA60134@admin.sibptus.ru> Content-Language: en-US X-Rspamd-Queue-Id: 4748jp6mYlz4HYw X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kh@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=kh@panix.com X-Spamd-Result: default: False [-3.79 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:166.84.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MIME_BAD_ATTACHMENT(1.60)[c]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_NONE(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[89.1.84.166.list.dnswl.org : 127.0.5.2]; DMARC_NA(0.00)[panix.com]; IP_SCORE(-2.89)[ip: (-8.73), ipnet: 166.84.0.0/16(-3.15), asn: 2033(-2.52), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 04:44:31 -0000 On 2019-10-31 22:48, Victor Sudakov wrote: > How can I print the names of files containing ascii nul (\x0)? The > FreeBSD "grep -l" does not seem to be able to do it. Yeah, no. Probably grep takes that NUL as the end of the C string that is that command-line argument. You could use the attached program, which I wrote some time ago for this purpose. From owner-freebsd-questions@freebsd.org Fri Nov 1 04:56:26 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0964F1A4707 for ; Fri, 1 Nov 2019 04:56:26 +0000 (UTC) (envelope-from kh@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4748zY53b3z4J3j for ; Fri, 1 Nov 2019 04:56:25 +0000 (UTC) (envelope-from kh@panix.com) Received: from rain.home (pool-72-74-69-77.bstnma.fios.verizon.net [72.74.69.77]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4748zX66jCzytS for ; Fri, 1 Nov 2019 00:56:24 -0400 (EDT) Subject: Re: grep for ascii nul To: freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> From: Kurt Hackenberg Message-ID: <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> Date: Fri, 1 Nov 2019 00:56:18 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4748zY53b3z4J3j X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kh@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=kh@panix.com X-Spamd-Result: default: False [-5.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:166.84.0.0/16:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[panix.com]; RCVD_IN_DNSWL_MED(-0.20)[89.1.84.166.list.dnswl.org : 127.0.5.2]; IP_SCORE(-2.97)[ip: (-8.86), ipnet: 166.84.0.0/16(-3.28), asn: 2033(-2.63), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 04:56:26 -0000 On 2019-11-01 00:44, Kurt Hackenberg wrote: > You could use the attached program, which I wrote some time ago for this > purpose. Huh. The attachment didn't come through. Does this list forbid attachments? Anyway, here's the program inline. It's C. ---------------------------- #include #include #include typedef int BOOL; #define TRUE 1 #define FALSE 0 static void qerror(char *me, char *thing) { char tmp[1024 + 255 + 2 + 1]; /* max pathname + max filename + junk + NUL */ sprintf(tmp, "%s: %s", me, thing); perror(tmp); } static BOOL doit(FILE *fin) { int c; while ((c = getc(fin)) != EOF) if (c == '\0') return TRUE; return FALSE; } int main(int argc, char *argv[], char *envp[]) { FILE *fin; char *me; if ((me = strrchr(*argv, '/')) != NULL) me++; else me = *argv; argc--, argv++; if (argc > 0) do { if ((fin = fopen(*argv, "r")) != NULL) { if (doit(fin)) printf("%s\n", *argv); if (fclose(fin) != 0) qerror(me, *argv); } else qerror(me, *argv); } while (++argv, --argc > 0); else if (doit(stdin)) printf("\n"); return errno; } From owner-freebsd-questions@freebsd.org Fri Nov 1 05:32:41 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CC5401A71C2 for ; Fri, 1 Nov 2019 05:32:41 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4749nN3ztGz3CFT for ; Fri, 1 Nov 2019 05:32:40 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pl1-x62f.google.com with SMTP id j12so1905117plt.9 for ; Thu, 31 Oct 2019 22:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=ZRPPuIqW527+Dtqslx/4IC25wdQ3Hxy+UnMgI/frj0s=; b=OlpBe7l5dlDDBpwU28anLeB0bcPAERVVqtPuj2jpszoSKvUb8+9vhPjsocTOMy8Rg+ Iidj7qj/UCfkNIzZlCR9FiFLozQlM5HWBW4KuNKbt/1cR4lEHYQ+jcF7UkSsDgeB10Xy OAQ5qnHf6PF5piyVSM3YOS+nUYh8OCqZ2nUnd5lPURll7ovVw/S1A8mVG7dqae/vsprl NzvInxsiucMZ/KLF9+POkP+K+nXz/uwreuDkHtjtMEOXckkWNn6Kawrpc5oH6X4wG5nX cEWn+A78BvU4X+BT26rAVTLztf6kglas1Q0pQbKFDU+H3rjZ+7emwfc6vn3zgmnCmKCO PeXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ZRPPuIqW527+Dtqslx/4IC25wdQ3Hxy+UnMgI/frj0s=; b=kJvuhKSoIyFgSvxpepJS4L628j7f7n5nNluW5D2qTwvuHbfaJC252jJt5680XiZ0bV 87Bc41WD+SL2X9YYl7D7+nij3kZX1MHR2ei24qOy97zikz5CTocDFBr5rMWvO5bo0grV 5XsvAY7SYk5OmK4RJsxaYI3H75tJ7yy1TrDRdhRXZ/DXt+UGoqATXnOqgwx1rknkj8mN sQjx8janwFlHsNYPZao0kry/EWsStP0X9mBz8qHfN4tQ34+uFMHxxO3ZtO2I246NNXI6 Bk1PfDnBk+YTyphGerT4L20ypI/7uSOS1LEyOuLosqpAtYFZkkxXw6u8kq9p6yMpc9cp qoWQ== X-Gm-Message-State: APjAAAXf9W+wqLJ6U6sJw+wbRh3IggJmIZsnNUzESDSvvSuAR1SEFUIl nXjfZS6w6OsHzabv1ksXADI5rzCc X-Google-Smtp-Source: APXvYqyJGDKPzt3/W67GXNMZqQevdmPGDPzRP3JTPa7G73EtK7sUgxFhzrtu6JjV316ms19hmunImg== X-Received: by 2002:a17:902:a714:: with SMTP id w20mr10224091plq.116.1572586359021; Thu, 31 Oct 2019 22:32:39 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id a29sm7505913pfr.49.2019.10.31.22.32.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Oct 2019 22:32:38 -0700 (PDT) Subject: Re: grep for ascii nul To: Kurt Hackenberg , freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> From: MJ Message-ID: <1055308d-8846-cce5-f803-b1dd891ba3ff@gmail.com> Date: Fri, 1 Nov 2019 16:31:32 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 4749nN3ztGz3CFT X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=OlpBe7l5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[f.2.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.30), ipnet: 2607:f8b0::/32(-2.39), asn: 15169(-2.04), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 05:32:41 -0000 On 1/11/2019 3:56 pm, Kurt Hackenberg wrote: > On 2019-11-01 00:44, Kurt Hackenberg wrote: > >> You could use the attached program, which I wrote some time ago for this purpose. > > Huh. The attachment didn't come through. Does this list forbid attachments? Don't know. It stripped my smiley face off the last message I sent.:-) (html-free perhaps) MarkJ From owner-freebsd-questions@freebsd.org Fri Nov 1 05:50:40 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3497516404A for ; Fri, 1 Nov 2019 05:50:40 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 474BB66ltjz3HRj for ; Fri, 1 Nov 2019 05:50:38 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 1A6954E684; Thu, 31 Oct 2019 22:50:37 -0700 (PDT) From: "Ronald F. Guilmette" To: MJ cc: freebsd-questions@freebsd.org Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <60022.1572587436.1@segfault.tristatelogic.com> Date: Thu, 31 Oct 2019 22:50:37 -0700 Message-ID: <60023.1572587437@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 474BB66ltjz3HRj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-4.14 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[tristatelogic.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.84)[ip: (-7.46), ipnet: 69.62.128.0/17(-3.73), asn: 14051(-2.96), country: US(-0.05)]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; MIME_TRACE(0.00)[0:+] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 05:50:40 -0000 In message , MJ wrote: >On 1/11/2019 2:07 pm, Ronald F. Guilmette wrote: >> I found I needed to install the p5-JSON-Parse package for some work I'm >> doing at present. No problem, I thought, I'll su'd to root and then >> just type: >> >> pkg install p5-JSON-Parse >> >> I did that and the log is shown below. I REALLY don't understand it. >> I don't understand why this simple thing caused pkg to attempt to install >> a fresh new Perl (5.30.0) *and* at the same time try to reinstall the >> one I already had installed which was apparently perl-5.28.2. >> >> What's up with that? > > >It (obviously?) thinks you've got some other package that depends on 5.28.2. Yeabut is that a good excuse to render my already installed Perl non-functional, which is exactly what happened? Something is very very wrong here. >Have you tried performing a package update/upgrade? I have now. I ended up doing a forced pkg delete on both Perl versions and then a fresh install on 5.30.0 and now at least my Perl scripts seem to be working again, for which I am greatful, but of course, I am eternally worried about there being some subtle version skew problem that will only show up later. But that seems like a minor concern at this point. Far more troubling is the fact that pkg, in its infinite wisdom, somehow decided to install two versions of Perl at the same time, breaking both in the process. I hope that somebody will look at that. Regards, rfg From owner-freebsd-questions@freebsd.org Fri Nov 1 06:13:20 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2AC7C17F0FC for ; Fri, 1 Nov 2019 06:13:20 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 474BhH25Gnz3KM3 for ; Fri, 1 Nov 2019 06:13:18 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id F2D0A4E684; Thu, 31 Oct 2019 23:13:17 -0700 (PDT) From: "Ronald F. Guilmette" To: freebsd-questions@freebsd.org Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? In-Reply-To: <2b4dbaff-9eb3-4e9d-bf62-505683dc7ce1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <60170.1572588797.1@segfault.tristatelogic.com> Content-Transfer-Encoding: quoted-printable Date: Thu, 31 Oct 2019 23:13:17 -0700 Message-ID: <60171.1572588797@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 474BhH25Gnz3KM3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-4.12 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[tristatelogic.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-2.82)[ip: (-7.41), ipnet: 69.62.128.0/17(-3.70), asn: 14051(-2.94), country: US(-0.05)]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; MIME_TRACE(0.00)[0:+] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 06:13:20 -0000 In message <2b4dbaff-9eb3-4e9d-bf62-505683dc7ce1@gmail.com>, = MJ wrote: >> Yeabut is that a good excuse to render my already installed Perl >> non-functional, which is exactly what happened? > >Well what's it to do? If you have one package dependent on 5.28.2 and ano= ther = >one on 5.30.0 then it has no choice. Yes, it does. Stop and require manual intervention is a reasonable choice= . >Perhaps what would be preferred is that it stops any install and tells yo= u >that the package needs 5.30.0 and you have installed 5.28.2? That would >seem more logical. We agree. >> But that seems like a minor concern at this point. Far more troubling >> is the fact that pkg, in its infinite wisdom, somehow decided to instal= l >> two versions of Perl at the same time, breaking both in the process. > > From afar it didn't break both, it just failed to add a softlink. Is tha= t not > the case? I am able to answer that question definitely at this point in time, hoever now that I have Perl back and working again I see that the /usr/local/bin/= perl file on my system is quite distinctly and certainly *not* a synmlink, and also, the file inseld is showing up on ls -l as having a link count of 1. >> >> I hope that somebody will look at that. > >Well, nobody here will unless the maintainer for perl is active. If you w= ant >this looked at, I suggest contacting the port maintainer and/or raising a >bug report. ACK Regards, rfg From owner-freebsd-questions@freebsd.org Fri Nov 1 06:05:43 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0904C17BDFC for ; Fri, 1 Nov 2019 06:05:43 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474BWT4M7Dz3JkV for ; Fri, 1 Nov 2019 06:05:41 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pf1-x431.google.com with SMTP id u9so6321229pfn.4 for ; Thu, 31 Oct 2019 23:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=YgZVj02n9hGDY6DFPN5efgbJrUM9ZM7vTUM4sjJLJa4=; b=lgc4G7JVDyxGKS4M9HkgtIfW7RvhTc9kBPbP0pHP6DrnM26TARnRimVrivVX/DEDiS rmfn2Cuv7MqORSdzMgpY8srl2T72SjdTj3aRCbZ5qSU2gTrLIned4hrcOPGIxrMUZT+G Kk95IVY5kMuODjI4IM2B/a2p3GvLPXzJuc4Gcgb3jPAgylAFXVkTfelobbn8b6cOr9gN MT+IaR6NB1tYrzuX8YgEZYlu1uPZDff0/bTEn9QiTuw7pZEXnXxJYsmo/6UxfSHLx66X 46nGA+0LnlKJ8EBp3IWEBHhcbqewlIkxv1TRvjdP56PtaBCLosaasL8cCaLkXsQpt/96 6N/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YgZVj02n9hGDY6DFPN5efgbJrUM9ZM7vTUM4sjJLJa4=; b=EvO7rf6nNZAtPUyZ2nMmHcnEFU03dZxRY0FgEJK837QS7PM2mdivRjGAMHtpQ4MdBa fC3JCNrCbs0VdyNZNOb4IxAiydsWuYCn1WqWOczw3H9eF3IuAW/PtqbRHHMuX0cQKaPj n+ayMzRI6kW/fisXWCcFznk4YuZhiECpnoLSbn0RXrfmvyzViT+dfcfmjM8VBUlSUX2u LZ+zyPgobXP5rQF0QVeEFtDj+22LbwuA5eaSE/643812BxPHvCCtmErF8bYD2MAOQB/+ WHkXv+5HSkz8RbT3LlG2eAt2KkzWbZe0L2WDaOQ8vP3NCXsNZCdLjweyPx+FME0bTtQ4 Q33w== X-Gm-Message-State: APjAAAX2KkYXCoEDnC5+BA88gliKty9KoOw4djZ2zT0PdLFsfeNsIaAM kFfF90JvXDgA8WW5ZC+EABFhfRXm75s= X-Google-Smtp-Source: APXvYqybNrUEpfMmvDPbsEoypHIcofuGIOJ7xUxnrGG/8QTjXWAwFZBSLH2ieQnlOOehWD4oqacqQQ== X-Received: by 2002:a62:b504:: with SMTP id y4mr11543406pfe.40.1572588339737; Thu, 31 Oct 2019 23:05:39 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id r24sm761344pgu.46.2019.10.31.23.05.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Oct 2019 23:05:39 -0700 (PDT) Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? To: "Ronald F. Guilmette" Cc: freebsd-questions@freebsd.org References: <60023.1572587437@segfault.tristatelogic.com> From: MJ Message-ID: <2b4dbaff-9eb3-4e9d-bf62-505683dc7ce1@gmail.com> Date: Fri, 1 Nov 2019 17:04:34 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <60023.1572587437@segfault.tristatelogic.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 474BWT4M7Dz3JkV X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lgc4G7JV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::431 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(0.00)[ip: (-8.77), ipnet: 2607:f8b0::/32(-2.39), asn: 15169(-2.04), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 06:05:43 -0000 On 1/11/2019 4:50 pm, Ronald F. Guilmette wrote: > In message , > MJ wrote: > >> On 1/11/2019 2:07 pm, Ronald F. Guilmette wrote: >>> I found I needed to install the p5-JSON-Parse package for some work I'm >>> doing at present. No problem, I thought, I'll su'd to root and then >>> just type: >>> >>> pkg install p5-JSON-Parse >>> >>> I did that and the log is shown below. I REALLY don't understand it. >>> I don't understand why this simple thing caused pkg to attempt to install >>> a fresh new Perl (5.30.0) *and* at the same time try to reinstall the >>> one I already had installed which was apparently perl-5.28.2. >>> >>> What's up with that? >> >> It (obviously?) thinks you've got some other package that depends on 5.28.2. > Yeabut is that a good excuse to render my already installed Perl > non-functional, which is exactly what happened? Well what's it to do? If you have one package dependent on 5.28.2 and another one on 5.30.0 then it has no choice. Perhaps what would be preferred is that it stops any install and tells you that the package needs 5.30.0 and you have installed 5.28.2? That would seem more logical. That way it will refuse an install until you've updated to 5.30.0. > > Something is very very wrong here. > >> Have you tried performing a package update/upgrade? > I have now. I ended up doing a forced pkg delete on both Perl versions > and then a fresh install on 5.30.0 and now at least my Perl scripts seem > to be working again, for which I am greatful, but of course, I am > eternally worried about there being some subtle version skew problem > that will only show up later. Well that's a problem with perl, surely. After all, how are you to have two or more versions of perl co-existing when at least one must be symbolically linked to "perl"? > > But that seems like a minor concern at this point. Far more troubling > is the fact that pkg, in its infinite wisdom, somehow decided to install > two versions of Perl at the same time, breaking both in the process. From afar it didn't break both, it just failed to add a softlink. Is that not the case? > > I hope that somebody will look at that. Well, nobody here will unless the maintainer for perl is active. If you want this looked at, I suggest contacting the port maintainer and/or raising a bug report. Regards MarkJ From owner-freebsd-questions@freebsd.org Fri Nov 1 09:22:18 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AECF41AE3B6 for ; Fri, 1 Nov 2019 09:22:18 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474GtK1nLcz3ybP for ; Fri, 1 Nov 2019 09:22:17 +0000 (UTC) (envelope-from mail@ozzmosis.com) X-Originating-IP: 167.179.139.56 Received: from blizzard.ozzmosis.com (167-179-139-56.a7b38b.mel.nbn.aussiebb.net [167.179.139.56]) (Authenticated sender: ozzmosis@ozzmosis.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 291D520008; Fri, 1 Nov 2019 09:22:13 +0000 (UTC) Received: by blizzard.ozzmosis.com (Postfix, from userid 1001) id 435BA73505; Fri, 1 Nov 2019 20:22:06 +1100 (AEDT) Date: Fri, 1 Nov 2019 20:22:06 +1100 From: andrew clarke To: Victor Sudakov Cc: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-ID: <20191101092206.rvydwz5ezdfbsqhq@ozzmosis.com> References: <20191101024817.GA60134@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191101024817.GA60134@admin.sibptus.ru> User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: 474GtK1nLcz3ybP X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mail@ozzmosis.com designates 217.70.183.200 as permitted sender) smtp.mailfrom=mail@ozzmosis.com X-Spamd-Result: default: False [-3.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.70.183.192/28]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ozzmosis.com]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-1.02)[ip: (-2.21), ipnet: 217.70.176.0/20(-1.60), asn: 29169(-1.28), country: FR(-0.00)]; RCVD_IN_DNSWL_LOW(-0.10)[200.183.70.217.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 09:22:18 -0000 On Fri 2019-11-01 09:48:17 UTC+0700, Victor Sudakov (vas@sibptus.ru) wrote: > Dear Colleagues, > > How can I print the names of files containing ascii nul (\x0)? The > FreeBSD "grep -l" does not seem to be able to do it. > > NB I don't need to delete the nul character with sed or tr, just need to > find files containing it. I don't believe FreeBSD (or Linux, Windows or even DOS) allows filenames containing a null. Any regular C program that treats filenames as a null-terminated string would correctly stop iterating over the string at the first null. Consequently two files named "Hello" and another named "Hello\0world" would be seen as identical, leading to unpredictable results. From owner-freebsd-questions@freebsd.org Fri Nov 1 09:27:31 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 86E191AE585 for ; Fri, 1 Nov 2019 09:27:31 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474H0L3ltwz3ylx for ; Fri, 1 Nov 2019 09:27:30 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=Fg58E095DJwYGEccPavv2BMbawKolUPGQLi7Wy8wLOM=; b=gAeyPbOfaSgwdZWc6Mxayy6r9g oLw2JP4Mmk7C+abWhgCgfweVD49CWbqhWwZiscpEOoyen8YnmGFw4XSBVV+vyGIZODYg0tiR2Xqzf PzLeG28v7FOUKngdnc75SoN+n2GtZQxEYLuNWKnZ8mbcT3Be/WEGxYl2YtGyuxhltL0w=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQTDA-000Hcg-HS for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 16:27:16 +0700 Date: Fri, 1 Nov 2019 16:27:16 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-ID: <20191101092716.GA67658@admin.sibptus.ru> References: <20191101024817.GA60134@admin.sibptus.ru> <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 474H0L3ltwz3ylx X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=gAeyPbOf; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.27)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.54), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 09:27:31 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sorry for the confusion. Of cource I meant files with ascii nul in file contents, inside. Because why would I have mentioned "grep"? I need to find files containing ascii null inside, and print their names to= stdout. thor wrote: > There is NO such thing as filenames containing 0x00 inside the filename.= =20 > UNIX filenames are strings in C meaning and may contain any 8-bit values= =20 > except "/" which delimits the subdirectory names and 0x00 which marks=20 > the end of filename string. >=20 > At least it was so when I first met Unix, and I hope Bill Gates never=20 > influenced Unix since this time. >=20 > On 11/01/19 10:48, Victor Sudakov wrote: > > Dear Colleagues, > > > > How can I print the names of files containing ascii nul (\x0)? The > > FreeBSD "grep -l" does not seem to be able to do it. > > > > NB I don't need to delete the nul character with sed or tr, just need to > > find files containing it. > > >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --AhhlLboLdkugWU4S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdu/p0AAoJEA2k8lmbXsY0DuIH/2mMXEgB5gkWNzqapXfFLVtd 43KBww3GsDYHg9r0F6WNAnnA2LVRI+pzgX0RWur3rLz/sewLstVQAWql4mw4Ue4P LBQpqZZXZT+YX5iR686VOpc/cO8p1DRN9vJqw5mMxXjrmbjekUX+muK1RProjQ+S z62aaSbWksVXoi81mda4ffqHwpm2kwQ6EukXXzGNhNkDp+k6u6K5F9+xB149ZZg2 vrKMrDmvBoQrEnqKM1HUG2+CXRoKwQ0fk9JsYiYOO6Puu/0BfMgWmcKIeAHP/y4p w08EquQjyzpl+NYgSoCmTch9Fm1Tf3rNDW0C7J25hFF9+sUBAQIi8THriLUyZgQ= =B//2 -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- From owner-freebsd-questions@freebsd.org Fri Nov 1 09:41:03 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A68B61AEB36 for ; Fri, 1 Nov 2019 09:41:03 +0000 (UTC) (envelope-from ipluta@wp.pl) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474HHy3528z40TY for ; Fri, 1 Nov 2019 09:41:01 +0000 (UTC) (envelope-from ipluta@wp.pl) Received: (wp-smtpd smtp.wp.pl 6441 invoked from network); 1 Nov 2019 10:40:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1572601258; bh=9VDLPNMVK1Nwz0SEkSvQoNvGmz53aswdsWCeWwJfsxE=; h=Subject:To:From; b=cAxCtAeL4DJzy8Xxz4q8u2IVlsZ+KySeRS3KqS7cg7MzUpQ8+u+20uZGBC7Pxti+0 RK7rpSzuH7x8wxMJyjyBbmsn09pkhlZPQyhnl+fq5g/yOEVcdn65Aw2ny9DyuNdgIR 6UtcIn4vujXRvt8N/kOhUYUb9258lwQYTHmJLots= Received: from bmb112.neoplus.adsl.tpnet.pl (HELO [10.0.0.83]) (ipluta@wp.pl@[83.28.221.112]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 1 Nov 2019 10:40:58 +0100 Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? To: "Ronald F. Guilmette" , freebsd-questions@freebsd.org, freebsd-perl@freebsd.org References: <58259.1572577667@segfault.tristatelogic.com> From: "Ireneusz Pluta/wp.pl" Message-ID: <0d1e31bd-bd45-090f-9fc7-2f3efa3013f7@wp.pl> Date: Fri, 1 Nov 2019 10:40:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <58259.1572577667@segfault.tristatelogic.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pl X-WP-MailID: 333c02a98818bb271be9f42172c7e6a6 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000001 [geJA] X-Rspamd-Queue-Id: 474HHy3528z40TY X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wp.pl header.s=1024a header.b=cAxCtAeL; dmarc=pass (policy=none) header.from=wp.pl; spf=pass (mx1.freebsd.org: domain of ipluta@wp.pl designates 212.77.101.10 as permitted sender) smtp.mailfrom=ipluta@wp.pl X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.77.96.0/19]; FREEMAIL_FROM(0.00)[wp.pl]; DKIM_TRACE(0.00)[wp.pl:+]; DMARC_POLICY_ALLOW(-0.50)[wp.pl,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[wp.pl]; ASN(0.00)[asn:12827, ipnet:212.77.101.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[wp.pl.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[wp.pl:s=1024a]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-perl@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-8.27), ipnet: 212.77.101.0/24(-3.83), asn: 12827(-3.06), country: PL(0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[10.101.77.212.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 09:41:03 -0000 W dniu 2019-11-01 o 04:07, Ronald F. Guilmette pisze: > I have work > to do and now my Perl interpreter has disappeared. Was it somehow my > fault? Was I bad? I have tried to lead a good life, up until now anyway. > I have been kind to animals and small children. So what have I done wrong > that has caused my Perl interpreter to be disappeared on me for no > apparently good reason? If you really depend on Perl, don't use the "system" one, that is likely to be messed up with the pkg dependency hell. Use your own perl. Consider https://perlbrew.pl/ for managing it. Once you swith to it, use the: #!/usr/bin/env perl shebang in your perl scripts (not something like #!/usr/local/bin/perl) From owner-freebsd-questions@freebsd.org Fri Nov 1 09:47:21 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E3EA01AF036 for ; Fri, 1 Nov 2019 09:47:21 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474HRD0WDzz412S for ; Fri, 1 Nov 2019 09:47:19 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-qk1-x741.google.com with SMTP id q70so10024882qke.12 for ; Fri, 01 Nov 2019 02:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U8gRcLApSWCldXtIPFzccAJYZLLBZNHWawL/1EKzsx8=; b=O2GfS7xtRlG8dmLzleJr/Bq1Apv3Fu0UwIPZvrMBUMKgy+GpetLFWYs8ndcuuWK4UQ 2/LOGJXRfvmzzlCMNchsctQOlh1u1g6o7T+UkrQNX+QjD4PxZxVPFPbV+fmXGXuYGn1s jRbf9cUboWSqexpT5o9qc4hGK6wid/+kBIr89siusadgrf9jeczH4yecOyXfSV/MalrI n0wJU4kbDUgpZaSscJAqZ0YNFgMYj5jvn9f5BU95lZzYo2iRwo0FEcXcgikWkwUbAx3p LG3ThXqPnPCXb7x4ukw6sTeS8pNPfx1px1O3RlJLTkHhOZcXGhJWUGzZxOcZ6/Hbqf2K vC+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U8gRcLApSWCldXtIPFzccAJYZLLBZNHWawL/1EKzsx8=; b=plHjHCUdaeDrrOOQ+PD/a8eBBkbUSl7x6YwAPVxJ95AruNYYILM2G/z9+ANIaI9p5a T5SVFXa3EhJCrIFiTmnGC7zyYA+zjgLfC9F6afIFMJfI014Sy9yq16NJlw/+pksUzxJy LY6+o8zeypRaFtKenthtbtC1J/7G5K6QbAyvqug8ncEXD7kDl1m5TQrZz+SybytUJDvB HJ1WjJUme4gAJ4kqZ8B1ZbdWLg8Oi/yHHQRzBTEgM3hADqvSRjwdciKAs+I4fhALdVm8 6ZYZO0eiIBoUaucymlSPcovHR7gq17Vx93fumy+dOLl1N0HvUj5KhV94aPe8ndKxfEZC 0iSw== X-Gm-Message-State: APjAAAXvEkWyWjU3tCRqEYqxBFDKpWPa03mJfvQCUCMJFevCymilbwbf EKZ5J6x09T/ml+GE1e4GKncrXd7u+sVHGfFL8NnYIA== X-Google-Smtp-Source: APXvYqykZC/vVUmvDfLN0POkEsn5Zi1xSP7ErmM0Yk2G4VJXXYau9Sxqe7dpvvj1k6xtFcj6ivmh1NjU8B9/rF615eg= X-Received: by 2002:a05:620a:527:: with SMTP id h7mr9367677qkh.322.1572601638784; Fri, 01 Nov 2019 02:47:18 -0700 (PDT) MIME-Version: 1.0 References: <20191101024817.GA60134@admin.sibptus.ru> <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> <20191101092716.GA67658@admin.sibptus.ru> In-Reply-To: <20191101092716.GA67658@admin.sibptus.ru> From: Michael Schuster Date: Fri, 1 Nov 2019 10:47:07 +0100 Message-ID: Subject: Re: grep for ascii nul To: Victor Sudakov Cc: freeBSD Mailing List X-Rspamd-Queue-Id: 474HRD0WDzz412S X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=O2GfS7xt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2607:f8b0:4864:20::741 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; URI_COUNT_ODD(1.00)[9]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (2.52), ipnet: 2607:f8b0::/32(-2.39), asn: 15169(-2.04), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 09:47:21 -0000 https://stackoverflow.com/questions/4180081/binary-grep-on-linux/4180531#4180531 Does that help? On Fri, Nov 1, 2019, 10:29 Victor Sudakov wrote: > Sorry for the confusion. Of cource I meant files with ascii nul in file > contents, inside. Because why would I have mentioned "grep"? > > I need to find files containing ascii null inside, and print their names > to stdout. > > > thor wrote: > > There is NO such thing as filenames containing 0x00 inside the filename. > > UNIX filenames are strings in C meaning and may contain any 8-bit values > > except "/" which delimits the subdirectory names and 0x00 which marks > > the end of filename string. > > > > At least it was so when I first met Unix, and I hope Bill Gates never > > influenced Unix since this time. > > > > On 11/01/19 10:48, Victor Sudakov wrote: > > > Dear Colleagues, > > > > > > How can I print the names of files containing ascii nul (\x0)? The > > > FreeBSD "grep -l" does not seem to be able to do it. > > > > > > NB I don't need to delete the nul character with sed or tr, just need > to > > > find files containing it. > > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > -- > Victor Sudakov, VAS4-RIPE, VAS47-RIPN > 2:5005/49@fidonet http://vas.tomsk.ru/ > From owner-freebsd-questions@freebsd.org Fri Nov 1 09:49:25 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 555811AF19C for ; Fri, 1 Nov 2019 09:49:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474HTc23P0z41Cm for ; Fri, 1 Nov 2019 09:49:23 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.38.115]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1MO9qz-1ib6Xs45cn-00OaRt; Fri, 01 Nov 2019 10:49:18 +0100 Date: Fri, 1 Nov 2019 10:49:17 +0100 From: Polytropon To: Kurt Hackenberg Cc: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-Id: <20191101104917.e49c518e.freebsd@edvax.de> In-Reply-To: <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:BHS8hUEnks+wpDRffAAViG3gpHmSmvqeWfKwoz3GnEcGH2z2Uac IbvfMUcp59+ecZsSXBsCkizNnvFaCg53iwAhUfMwgVkFxs/shFDtnbDCB5bG/V/sAQ6MuZa WTlKayZMOw4uFAJdLvgaT2+27Vm6J0bVTmQ2qXWVlbxnemsb3eiW/uU8FTAeG0gc/uP6Cem q+/AGhCOCN8shymSzwNSQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zE3rlkmpB3w=:fLHZV7ZpFt3Tl8HX9BxKbM f6HDkrdEJgeyztuw7WnFfmnhzVR2wzdR3ZsKQZrAxwN6pfxd5vciyHdLg5zH5EygRXBaUGEnm QILSSayQOptfVnqIA/vOYgRavtkIw3e6mMml4fpiQo/NENvsuuJqrwXlc6Y52qO18UrL9wxC8 lH+6TqqEPncjmXzIHdJtcRrGp7UnX/TCpi6jg1YxfuZoLwtPr4mcPlhzbZhXTr6eXBs+lY7of KbMZxb7C3dwVUdCxOOHpJYDUZ1CerQgSHe5CQNInE8zXT8QvYczCdCNV1zJW1OabRiSbgkWVU NQRbrsxe2tjgdXLhAFPlZ2PCPNxgfAiI8CHPd/G5ahpKnNHFJKKPEUW0Vj92EUpqS/RGXZ83J 00Ua044/gcidxt2M/LralJIlzYwuFv7rlKMP0dHpV1E7ARB5xGqRhBsDQG7mkwBJA1XAs3Zq3 gh2aQ3XFRDOUZjUe0oURq8lhTUkGaZZNcsHLbhy997amy7h8z906bCowkwu44QI0pDVDDp9hg 2PGilm60gytt8HhtHyGmd+LxLHJ5LHJl88P7Qj6DGUcU44yah8U7W6744Uz+jmdxIUZl0K+Nr nMQ+E+oaaas6C8d7MdQM3Gt+9MMZZbFYdQ35yeBFO5tnb2ncmHBmS5vHHxEL4yFtXB0/O3Slz HSahtJa59nE5qktgk+o/g7EEaH8Zqm2dckeQUDvS1EAtfs10jLIFXGm3sxxqwVPXuRTc5XeQl Pilp4wBo0G4PdaF1U0wq0IVEzzA/vPapzk/J96KeZnVCU9kHK9eD+SpDAo2G35fOi/ht533H5 xL+iKNEp202wdlBmDWWqPOwlZYD5nmtu/alhtHvEg4bFLIfo5zDhZ5Lj+a7lqYuTZuAhIwe1C ZiRi2kHMWi+70NpWusc/vIKW9Ha65VtZxKeGNMCBI= X-Rspamd-Queue-Id: 474HTc23P0z41Cm X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.130) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [5.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[115.38.12.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.94)[0.938,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.995,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[130.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.67)[ip: (2.42), ipnet: 212.227.0.0/16(-1.34), asn: 8560(2.29), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 09:49:25 -0000 On Fri, 1 Nov 2019 00:56:18 -0400, Kurt Hackenberg wrote: > Huh. The attachment didn't come through. Does this list forbid attachments? At least the list does _strip_ attachments which aren't of type "text/ascii"; maybe with a re-declaration of the attachment type it would have come through. However, inlining a small C program is (just like with log files, program outputs or "ASCII screenshots") fully accaptable and welcome. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Fri Nov 1 09:59:58 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8E4F01AF74F for ; Fri, 1 Nov 2019 09:59:58 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474Hjn70Lcz41rt for ; Fri, 1 Nov 2019 09:59:57 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=cpLOVnjOhJTOPAKN1+9MKQN1qj1WQ05PE1EACBOdshc=; b=KsRMJt98j8/2w9cxqnYZclNu9f UcRKg9DehVvgTtjOq2sgxrD2i4k++04YB37WGgOcgJcjvZMTgHB0NCh56lAwayH2n3LPvBeAaZcxX cEKSIi2LH5rpE4LhNnyqsu5DBodSNGExcrL6ySp+dVs0th56pZnG1HrD6k8r6P7bX5tI=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQTim-000HpC-N9 for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 16:59:56 +0700 Date: Fri, 1 Nov 2019 16:59:56 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-ID: <20191101095956.GA68342@admin.sibptus.ru> References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 474Hjn70Lcz41rt X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=KsRMJt98; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.27)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.55), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 09:59:58 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Kurt Hackenberg wrote: >=20 > > You could use the attached program, which I wrote some time ago for thi= s=20 > > purpose. >=20 > Huh. The attachment didn't come through. Does this list forbid attachment= s? >=20 > Anyway, here's the program inline. It's C. It worked, thank you very much! At least it has found (via "find | xargs -n1") a bunch of files which I kind of expected to have ascii nul in them. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdvAIcAAoJEA2k8lmbXsY0VekIAIgWqiWx+XBggInzozq/ggOE mRxP/0bAO1v3Xtijjqraaz9QR2XjqoBUbnTE2L9wI+du/W0+LIUactSN8f/bELOK nn3N9D4PXg8YlLCkwR9gugQkcc92A/oLlRYyFPkClK+cRNV7TOoTQA1m89vo/WTd qpnS+MltGmELrZLgLjFymGB67WLo+f1ELwFo9SAGBBcku5HAhuE4dIiP0diDU8Sk Dsv6DxaulE1d9L+v1WOQzi/oI6YGeKnLpjqZeal1EaOoUdvom+kbb+ZiYwJcGLss FJXP2e/p6c8NFniyIZ6FRQUvqI2Eo8GKHNrLKeXA7XEEsA8xM31VnwxvZBq+NMA= =G7cV -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- From owner-freebsd-questions@freebsd.org Fri Nov 1 10:02:06 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6EDB21AF911 for ; Fri, 1 Nov 2019 10:02:06 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 474HmD6ts2z4295 for ; Fri, 1 Nov 2019 10:02:04 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id xA1A1v1J095878 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Fri, 1 Nov 2019 11:01:57 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1572602517; bh=uRh1Uf6Qo74195M81RbByHKj5ugcQ38lPxDpf8/ei9A=; h=Date:From:To:Subject:In-Reply-To:References; b=mhIn/Hx5/vPpipyvd3KG9jeMpT4Op/HkXeReEkeMSX9ddbAuur231lXJyKthXs5kR f8jwswd76qJtXi3gk6ZxsE3C3nKISto++C73ZOjrWI6loBo4SAuASBMovv3KVVBSXd /uP+5JJcWy8XcPo+x5fNV+MLC4fm1E+ap47eOUFcfeCnR7Jauo+mRwSZyRQf+8wK+T ZitWrx3Bt2OW0CkxvF1bP8xnkpwQb/2evcJeVVde5R/T5NKRsFp3tPQ4O520TGIgnh l+NVWIBn2oFLpJcI4OPcwEoXoa4Y2PTiMG5pIwktOpl56WMg6rBZknRbtpDb2Fi0U2 pDr6MRK8fQnzw== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id xA1A1vCc095875 for ; Fri, 1 Nov 2019 11:01:57 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Fri, 1 Nov 2019 11:01:56 +0100 (CET) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul In-Reply-To: <20191101104917.e49c518e.freebsd@edvax.de> Message-ID: References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> <20191101104917.e49c518e.freebsd@edvax.de> User-Agent: Alpine 2.21.99999 (BSF 352 2019-06-22) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on enterprise.ximalas.info X-Rspamd-Queue-Id: 474HmD6ts2z4295 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ximalas.info header.s=default header.b=mhIn/Hx5; dmarc=pass (policy=none) header.from=ximalas.info; spf=pass (mx1.freebsd.org: domain of trond.endrestol@ximalas.info designates 2001:700:1100:1::8 as permitted sender) smtp.mailfrom=trond.endrestol@ximalas.info X-Spamd-Result: default: False [-5.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[ximalas.info:s=default]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; HAS_XAW(0.00)[]; DKIM_TRACE(0.00)[ximalas.info:+]; DMARC_POLICY_ALLOW(-0.50)[ximalas.info,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:224, ipnet:2001:700::/32, country:NO]; IP_SCORE(-2.00)[ip: (-8.12), ipnet: 2001:700::/32(-1.21), asn: 224(-0.65), country: NO(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 10:02:06 -0000 On Fri, 1 Nov 2019 10:49+0100, Polytropon wrote: > At least the list does _strip_ attachments which aren't > of type "text/ascii"; maybe with a re-declaration of > the attachment type it would have come through. However, > inlining a small C program is (just like with log files, > program outputs or "ASCII screenshots") fully accaptable > and welcome. :-) I use Alpine for email, and my ~/.mimes.types contains text/plain adb ads c cc conf cpp cs d dat diff erl fdi fragment go h hh hpp hrl local log patch rb rc rs sh sql txt to ensure the attachments are marked as plain text when they are in fact such beasts. -- Trond. From owner-freebsd-questions@freebsd.org Fri Nov 1 10:20:48 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F3761AFE59 for ; Fri, 1 Nov 2019 10:20:48 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474J9q1XbTz42kT for ; Fri, 1 Nov 2019 10:20:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.38.115]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1My3Ad-1i2Egu3hkd-00zZbn; Fri, 01 Nov 2019 11:20:36 +0100 Date: Fri, 1 Nov 2019 11:20:30 +0100 From: Polytropon To: Trond =?ISO-8859-1?Q?Endrest=F8l?= Cc: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-Id: <20191101112030.4e4f09f3.freebsd@edvax.de> In-Reply-To: References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> <20191101104917.e49c518e.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:pG2J2G7JEY4lWxlPVVme+FNtjVvc95DFXyh5bmdC/irK09wZAzs sT0CZi2kMO8CWuTkaIXIkjnas+ovQP0F5z1wyc3iTiw1O7aCSFDpzkDPmvceTDMJPSAPCFE +g+q3jck8gEBWUEW8wO7plIzmqWE17cqIhmhSGpgmsI/55MlGR59Dtrflr1OuYoqbUSl0rc oexMVpb0dAG+jycZ0uKzw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:40REoeuDBSM=:PoVcXqB5fDS9AyVke88jW0 zPsER8Q3QUdy85lne5RmbyfMN/N46rpBNwkfRNNqRLhO16h32sdc49+f2ZSk3NMJYIiA5L+Tn tki4ZPM2ow7lqmYNNyDDVSiE5UqNy0IqZX7KX99cDE2iKeXwpUfEZHJeo3+De/NPhAAKv9Jww l9J1dAQb3x91lU1IMUqsm8JbO1Ae3uGcFuyHDxBosChcTWOxGHL7fx3ChqFrPMwdTEdnhLJ1w 5MFYZfGOsjAnDy44XtNRwn6gLzEY6vTWLTWom424KvwGAyBQ6OrrAYf2qoWcHMhHczqIyayBU VwjWxli/dY+BCyPabxgLyf6zdSJ2fk386vV2XIry+GE0ffNZuDsv+Awkpfo9IP/JTXkmpXbrG ws9XN+C6G3Z8N1fF8TURtiWRs+2XkAgaFE0vE8HVg/YBK4rlejg9Uf7Xz5JsTO2XE3jK0r08X v367fJ19ToDxOBLwIHMKftT3Jmq2vSl5aEACyjW4lY5J9ASWrDpw2GKtkjyQ7vH7V8hEA4l9P 6LeGTWCgbShz18RmDqDzK6OMaV61DHo8VWPP+QgQliGZvifMczUypgHg0FjoB1e8ko4gL/8M1 IQ278ybH/aB1FNTCRQ0mthcxZLnLyRnkSYIVbe/8k4JFKCHFbDj5euNH7i0XF77H73wxC5OR6 HYt4b1qZ0ll3C+lS79+dR8PzYdHu8dPRPQjNDUnOoYDtc3GpvgjxpEUnUFoHXb1beIf+O6PC7 dXVtG+XiD8dE9TgUWRqVETiQ0yVTsRy8nMNmg7iJeEgGgCAWjta4VL0gn0SWossr9wJ/1pCsr JYOAjvDYXzZeXS3uJ8jagLlpDBQUSEKKodbCVjiVflTdEytGawP54STsT/gvMkgqP6wh9hZ8+ 7UbGONCwTntIloXNRmts3NetFrmIn1tSGx/LQm5hs= X-Rspamd-Queue-Id: 474J9q1XbTz42kT X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.130) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.99 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[115.38.12.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.94)[0.938,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.994,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[130.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.66)[ip: (2.38), ipnet: 212.227.0.0/16(-1.34), asn: 8560(2.29), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 10:20:48 -0000 On Fri, 1 Nov 2019 11:01:56 +0100 (CET), Trond Endrest=F8l wrote: > On Fri, 1 Nov 2019 10:49+0100, Polytropon wrote: >=20 > > At least the list does _strip_ attachments which aren't > > of type "text/ascii"; maybe with a re-declaration of > > the attachment type it would have come through. However, > > inlining a small C program is (just like with log files, > > program outputs or "ASCII screenshots") fully accaptable > > and welcome. :-) >=20 > I use Alpine for email, and my ~/.mimes.types contains >=20 > text/plain adb ads c cc conf cpp cs d dat diff erl fd >i fragment go h hh hpp hrl local log patch rb rc rs sh sql txt Yes, "text/plain" is correct of course. :-) > to ensure the attachments are marked as plain text when they are in=20 > fact such beasts. I don't know if the declaration "text/x-csrc" is processed by the mailing list as regular text attachment, but as you said, "text/plain" should work. Stripping non-text attachments (especially binary ones, like images) has been common practice on this list for years, probably for decades now. Inlining source code could have another aspect, and depending on the language (!) of the inlined program, it _might_ or _might not_ affect what the program does: I'm talking about automated linebreaks inserted by the MUA (max. column width). --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Fri Nov 1 11:02:18 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0D09C159600 for ; Fri, 1 Nov 2019 11:02:18 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474K5h52PSz45F2 for ; Fri, 1 Nov 2019 11:02:16 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pl1-x629.google.com with SMTP id k7so4220224pll.1 for ; Fri, 01 Nov 2019 04:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=04jPIK9mW62hR33Q8AqiyRb/qWj1WZKgWckvaHcR9FY=; b=SNgFIbWoOM5C/CXR+ZimnLBvGp+4+FkghRCC992oc+q/kng4nW16emQNKlbrnNb3mL gDHgJZt270grZhDYEPuZfDObtFkCNwYcNO293djVC2V0bGy+VojYYylHwaoGbhLotTi8 GIk4psvxh4tXPh3D+MA7nGEu3CqgOP2znpw32B7ClF4tKSmVTPASJ+1OCa2tQt4z/fg4 33YeMc5SzWpwXuAlB2vpG1Ggs+y6QfmasRPzDdDhi2GkTEzS7FMI4xyqpEL7xLbpAGJk mDPuCMS3PjYGiRYJYbkafyNPmyO3Zsz+vGc98kWQpZ+v5ut+cojTFcO7LjOCye9icy1/ IF+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=04jPIK9mW62hR33Q8AqiyRb/qWj1WZKgWckvaHcR9FY=; b=AwyNTmh+W4tBcZIBSUw4PhlC1r1SZt1A22o+ohzUKhcGmsXcRmVaOqOkC6IL3qfBK1 KkTii4eZ9zan0aKJC0Vv689P3YxYcxhtukGKCpAG6OO2tsq/2tHRIzmnxrtLQopf1Uyp WExBEWhXTVNmNTWm7ABOTnvAkOvqDb5ppB+1E3F4HR5tHtVZgArrTQ5CjEysKVATbvl+ TmKiq0KtfD/uSBs441qNpYpdEUtcIVRrW9Eyfw1putmtix1vIOVUZy7SJFspAjw6EhgB bdz1QURzMFt4ZFLVwQFrYlL65VjHITxOULqbNiX2zUfqhsTcCif0+mhIBaDbWyTzcqQA kJlg== X-Gm-Message-State: APjAAAVyAo2MZYpgF1c0ZIxDlvK6mIGmPT+vo7+iv2BsYTiNlaZw+RYF Q3dVtkH0CmFhNCtLzKV0D/v6Cn6u X-Google-Smtp-Source: APXvYqzjcTDBdwqrTW1xoDK3IUmxHhGBUIvyF1HyS7KIlcPIHTOxBdINLftVLx1SjYdZmpEcXTXTFw== X-Received: by 2002:a17:902:bb84:: with SMTP id m4mr12053196pls.211.1572606134942; Fri, 01 Nov 2019 04:02:14 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-231-119.bur.connect.net.au. [59.101.231.119]) by smtp.gmail.com with ESMTPSA id c1sm13718375pjc.23.2019.11.01.04.02.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Nov 2019 04:02:14 -0700 (PDT) Subject: Re: grep for ascii nul To: freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> <20191101092716.GA67658@admin.sibptus.ru> From: MJ Message-ID: <4f7fed64-df67-f60b-7a53-fd1e2f1be592@gmail.com> Date: Fri, 1 Nov 2019 22:01:06 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191101092716.GA67658@admin.sibptus.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 474K5h52PSz45F2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SNgFIbWo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::629 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[119.231.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-9.16), ipnet: 2607:f8b0::/32(-2.38), asn: 15169(-2.04), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[9.2.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 11:02:18 -0000 On 1/11/2019 8:27 pm, Victor Sudakov wrote: > Sorry for the confusion. Of cource I meant files with ascii nul in file > contents, inside. Because why would I have mentioned "grep"? > > I need to find files containing ascii null inside, and print their names to stdout. > Well you could have been looking at something like: ls -Fl > filelist; grep '\0' filelist Who knows? Anyway, you've clarified now. MarkJ From owner-freebsd-questions@freebsd.org Fri Nov 1 13:17:04 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7CBB016519F for ; Fri, 1 Nov 2019 13:17:04 +0000 (UTC) (envelope-from feenberg@nber.org) Received: from mail2.nber.org (mail2.nber.org [198.71.6.79]) by mx1.freebsd.org (Postfix) with ESMTP id 474N5B6Z7Qz4Dq7 for ; Fri, 1 Nov 2019 13:17:02 +0000 (UTC) (envelope-from feenberg@nber.org) Received: from mail2.nber.org (mail2.nber.org [198.71.6.79]) by mail2.nber.org (8.15.2/8.15.2) with ESMTPS id xA1DH01P075673 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Nov 2019 09:17:00 -0400 (EDT) (envelope-from feenberg@nber.org) Date: Fri, 1 Nov 2019 09:17:00 -0400 (EDT) From: Daniel Feenberg To: Kurt Hackenberg cc: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul In-Reply-To: <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> Message-ID: References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, 2019/07/09 11:58:30 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2019/11/01 06:54:00 #10529665 X-KLMS-AntiVirus-Status: Clean, skipped X-Rspamd-Queue-Id: 474N5B6Z7Qz4Dq7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of feenberg@nber.org designates 198.71.6.79 as permitted sender) smtp.mailfrom=feenberg@nber.org X-Spamd-Result: default: False [-2.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.938,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nber.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[79.6.71.198.list.dnswl.org : 127.0.4.2]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:26287, ipnet:198.71.6.0/23, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-0.01)[country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 13:17:04 -0000 On Fri, 1 Nov 2019, Kurt Hackenberg wrote: > On 2019-10-31 22:48, Victor Sudakov wrote: > >> How can I print the names of files containing ascii nul (\x0)? The >> FreeBSD "grep -l" does not seem to be able to do it. > > Yeah, no. Probably grep takes that NUL as the end of the C string that is > that command-line argument. > > You could use the attached program, which I wrote some time ago for this > purpose. Huh? I don't think the FreeBSD (or any Unix-like system) will create a file name with an embedded null byte. If you tried, the name would end at the null byte anyway. Perhaps the original poster has some corruption in his filesystem that manifests itself in a way that suggests a null byte? Or the file name could be in an archive of some sort? More information is required if help is to be given. The rule that a filename can not contain a null byte is more like the law of gravity than a standard that a programmer might casually ignore. Daniel Feenberg > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-questions@freebsd.org Fri Nov 1 14:28:58 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 349EE167184 for ; Fri, 1 Nov 2019 14:28:58 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from edna.lautre.net (edna.lautre.net [80.67.160.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lautre.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474Ph90C0rz4JS8 for ; Fri, 1 Nov 2019 14:28:56 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by edna.lautre.net (Postfix) with ESMTPSA id C55E11086F9 for ; Fri, 1 Nov 2019 15:28:54 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id 0333E32CB91; Fri, 1 Nov 2019 15:28:53 +0100 (CET) Date: Fri, 1 Nov 2019 15:28:53 +0100 From: Thierry Thomas To: freebsd-questions@freebsd.org Subject: [ARG_MAX] execv: Argument list too long Message-ID: <20191101142853.GC3072@graf.pompo.net> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline X-Operating-System: FreeBSD 12.0-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xF1C516B3C8359753 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 474Ph90C0rz4JS8 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of thierry@pompo.net has no SPF policy when checking 80.67.160.88) smtp.mailfrom=thierry@pompo.net X-Spamd-Result: default: False [-5.43 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[thierry@freebsd.org,thierry@pompo.net]; IP_SCORE(-2.55)[ip: (-9.29), ipnet: 80.67.160.0/19(-1.91), asn: 20766(-1.53), country: FR(-0.00)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_NEQ_ENVFROM(0.00)[thierry@freebsd.org,thierry@pompo.net]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.983,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[88.160.67.80.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[88.160.67.80.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 14:28:58 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I'm trying to upgrade the port french/aster to the latest stable release. This is a complex port: it has no Makefile (in the upstream tarball, but of course there is a Makefile for the port), and it uses a combination of setup.py (Python) and a bundled waf. At this point, it builds, but the latest step (linkage) fails with the following message: gfortran9: fatal error: cannot execute '/usr/local/libexec/gcc9/gcc/x86_64-= portbld-freebsd12.0/9.2.0/collect2': execv: Argument list too long Yes, linkage is done by gfortran, in a classical way: gfortran9 (some -Wl parameters) (a very long list of object files .o) (a list of several libraies with their paths) but the problem is not caused neither by gfortran nor by the final linker: if I execute the same command line manually from my shell, it succeeds and the aster program is built. So I guess that the problem is caused partly by the arguments list, but also by the environment variables brought by the build system. On my machine, `getconf ARG_MAX' returns 262144. Is there a way to increase this value dynamically? Any idea? Thanks for reading! --=20 Th. Thomas. --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJdvEElXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdTaZUP/1wNrO5/XE232PW/9jShd48/ UzxtByhspM8GkYsXWGmd1a0vcndfv5Z+ujYaM1bNnWzxr7Um65rJIN6P2ofEUZJL ZTc1tfMi/BYmQ1H/mdPcVeHunP+aGv/9lhLIvg3ptVg7o7T1kAZfjFvIpr0sZLw9 rF+pNRpvFBr6om1LRTNQehCrjpHGxQkJ+4mIDnKLBaWQytwsSilMabgaWxivKZ1P XHjbRK+wBm2l6z+0XsIz1aB+UYWrY3jCKxNJRHXqoPoJ96FEWGUEHThmMMQ+IJOi RA0tcLETGXJ4r24qeSqBClRRB8zphXRn5DjQUQKGfhnQ74T3gTBtCA+Jx95IIpMf Blcj8eCY3x4LmB66WhC1hKH27CtE9BYtP5IEs9f6aet9o5LaIfJEjx2yB1nNYyTW 8u4/FfKUjWZ5//lT82Gc0msN8tDTX7AF+PY3X7CvRE959hK/OXPgxjoCF9MFV9Ff y9Ozjv6eAf5X6jTtKw+Qfg/+L5VoLIlcUcgs/IAVaVCZNUKvfza9zUHyo0+2XWF/ v8B+Tqj9BUJ+wFmuJZo9EGCk1G5y15H+AT97+09tvfB6gyjlZH7E+Zv3tdQ3V0fE C/mg2S6+6R/SnyJKCsMXCEb+bBk0yO9fFR5wytY2GcZyW8jta09FE5iKtoO34Rb+ sadn9/VCRqJMxP2jYprw =nUh2 -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- From owner-freebsd-questions@freebsd.org Fri Nov 1 14:59:04 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1E85F17833C for ; Fri, 1 Nov 2019 14:59:04 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474QLv0zBpz4LHP for ; Fri, 1 Nov 2019 14:59:02 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=pU1DYMHxmsijldL3YtyDWmDseV6Ngj/xuVsf/IeRQU4=; b=o1k1Z3mTgov0fEe0oXbR5t3Bos Gkt2ICGCsgS+KN78jchQxjdygorrwCiCp9bzDCcOU7q0oHw735gg1B8iPAaOtFXrRecT36fKAuK0w 2C2lvIRbxK0IdxotUp0Na2bezMKzt3AuYrCSoNupMt81P3mE3PUpH3PpWRPLfYGIRvqQ=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQYOC-000JXw-MB for freebsd-questions@freebsd.org; Fri, 01 Nov 2019 21:59:00 +0700 Date: Fri, 1 Nov 2019 21:59:00 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-ID: <20191101145900.GA74710@admin.sibptus.ru> References: <20191101024817.GA60134@admin.sibptus.ru> <2c08387c-425b-060d-4f9b-3443a3f6a18f@irk.ru> <20191101092716.GA67658@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 474QLv0zBpz4LHP X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=o1k1Z3mT; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.37 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.27)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.56), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 14:59:04 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael Schuster wrote: > https://stackoverflow.com/questions/4180081/binary-grep-on-linux/4180531#= 4180531 >=20 > Does that help? Actually, Kurt's small program has been much more helpful. I'm in fact surprised that the FreeBSD base system does not contain a binary-capable grep. I've found out that pcregrep from devel/pcre can catch it with this syntax:= =20 pcregrep '\x0' test.txt but it does not output just the filename, even with -l --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdvEg0AAoJEA2k8lmbXsY0D1oH/i31pNE6mXbzXr4qUEaGG5vF G2NZZEU93MrMN7AhBbuZ/P9tzLqLBIHzCZBpHXv3OUkgM8UuVhDScOzESXj1O7z4 0xSo5Wh4KRGJAu81QGDW4n3l01KYWWKMmmBgOzv2chAyTI8RjpQ+kzBabxl8Nati CijTaKK8BgNGLVdp0Dk5xO3nBuTX3IVdc7O5J6BXJr59wze+9JecY8FznFNiuTlI glxNfRLTVs1n6BxXP/tOAeiiHcNNn5h/OxQacU15diN0Ql8aZNQS7qVctnjJGfqS x4p3DAPNHhEXb3LIx0Ar3lsxFwbACmTiWFfY6GmVY07ZXJj1Sfyp+giAoZHFW9o= =12Np -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- From owner-freebsd-questions@freebsd.org Fri Nov 1 16:52:27 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B59CE17B7C6 for ; Fri, 1 Nov 2019 16:52:27 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474Ssk4hz4z4VdJ for ; Fri, 1 Nov 2019 16:52:26 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 78011 invoked from network); 1 Nov 2019 16:52:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=130b9.5dbc62c3.k1911; i=printer-iecc.com@submit.iecc.com; bh=HbSL1yoZpMHBssCeqi/2ayR5FIOE7Y4AcJSU9l1uMsg=; b=n6tVHrU9TzJjY2TrB/Lt7yb+x2HXBScHFrv4HeQnFf4yumNRDNQ8Ijx5MF3I0pIBlb1jxRhkrp/vJlx5ENEURUA01ow2Qh9unH4fFuyL0OivpoRtu1BUypSldYjW/BKS6awH55EqaSgF/CfZYPABtI8DtHrj8ZsYvc+SBHsHvM7kYQGkKcfR+zDVmmV2xrFjNqXC9fBXz18XvE/JxOfB7rYWrR3rrnPuQQa42owD56701m6oTWvV5maWOCN/34rL Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPSA (TLS1.2 ECDHE-RSA AES-256-GCM AEAD, printer@iecc.com) via TCP6; 01 Nov 2019 16:52:19 -0000 Received: by ary.qy (Postfix, from userid 501) id 358AFDC250E; Fri, 1 Nov 2019 12:52:18 -0400 (EDT) Date: 1 Nov 2019 12:52:18 -0400 Message-Id: <20191101165219.358AFDC250E@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: ipluta@wp.pl Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? In-Reply-To: <0d1e31bd-bd45-090f-9fc7-2f3efa3013f7@wp.pl> Organization: Taughannock Networks X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-Rspamd-Queue-Id: 474Ssk4hz4z4VdJ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iecc.com header.s=130b9.5dbc62c3.k1911 header.b=n6tVHrU9; dmarc=pass (policy=none) header.from=iecc.com; spf=pass (mx1.freebsd.org: domain of johnl@iecc.com designates 2001:470:1f07:1126:0:43:6f73:7461 as permitted sender) smtp.mailfrom=johnl@iecc.com X-Spamd-Result: default: False [-5.13 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[iecc.com:s=130b9.5dbc62c3.k1911]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[iecc.com.dwl.dnswl.org : 127.0.4.2]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f07:1126::/64]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[iecc.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[iecc.com,none]; IP_SCORE(-1.63)[ipnet: 2001:470::/32(-4.61), asn: 6939(-3.47), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; FREEMAIL_CC(0.00)[wp.pl]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 16:52:27 -0000 In article <0d1e31bd-bd45-090f-9fc7-2f3efa3013f7@wp.pl> you write: >W dniu 2019-11-01 o 04:07, Ronald F. Guilmette pisze: >> I have work >> to do and now my Perl interpreter has disappeared. Was it somehow my >> fault? Was I bad? I have tried to lead a good life, up until now anyway. >> I have been kind to animals and small children. So what have I done wrong >> that has caused my Perl interpreter to be disappeared on me for no >> apparently good reason? > >If you really depend on Perl, don't use the "system" one, that is likely to be messed up with the >pkg dependency hell. > >Use your own perl. Consider https://perlbrew.pl/ for managing it. I would not recommend that. In my experience, so long as you do a pkg upgrade every few weeks your perl packages will be fine. A lot of stuff in the ports tree depends on perl and they have a strong incentive to be sure that it works. If you've installed perl modules through CPAN rather than through ports, it's up to you to remember and reinstall when the version of perl changes but there's not much you can do about that. I have about 200 modules installed as packages and one or two from CPAN. R's, John From owner-freebsd-questions@freebsd.org Fri Nov 1 17:27:18 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AB0D917C5E9 for ; Fri, 1 Nov 2019 17:27:18 +0000 (UTC) (envelope-from kh@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474Tdy0tJFz4XLy for ; Fri, 1 Nov 2019 17:27:17 +0000 (UTC) (envelope-from kh@panix.com) Received: from rain.home (pool-72-74-69-77.bstnma.fios.verizon.net [72.74.69.77]) by mailbackend.panix.com (Postfix) with ESMTPSA id 474Tdx1FTVzmpf for ; Fri, 1 Nov 2019 13:27:17 -0400 (EDT) Subject: Re: grep for ascii nul To: freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> <20191101104917.e49c518e.freebsd@edvax.de> <20191101112030.4e4f09f3.freebsd@edvax.de> From: Kurt Hackenberg Message-ID: <4b2158d3-4bc4-63d5-9d8b-8801f4588da4@panix.com> Date: Fri, 1 Nov 2019 13:27:08 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20191101112030.4e4f09f3.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 474Tdy0tJFz4XLy X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kh@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=kh@panix.com X-Spamd-Result: default: False [-5.53 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:166.84.0.0/16:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[panix.com]; RCVD_IN_DNSWL_MED(-0.20)[89.1.84.166.list.dnswl.org : 127.0.5.2]; IP_SCORE(-3.03)[ip: (-8.98), ipnet: 166.84.0.0/16(-3.41), asn: 2033(-2.72), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 17:27:18 -0000 On 2019-11-01 06:20, Polytropon wrote: > I don't know if the declaration "text/x-csrc" is processed > by the mailing list as regular text attachment, but as > you said, "text/plain" should work. Stripping non-text > attachments (especially binary ones, like images) has > been common practice on this list for years, probably > for decades now. Sure enough, my mail reader (Thunderbird) generates a C source attachment as text/x-csrc. I didn't know that type existed. Obviously it's non-standard. From owner-freebsd-questions@freebsd.org Fri Nov 1 18:55:12 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7CD4417E83D for ; Fri, 1 Nov 2019 18:55:12 +0000 (UTC) (envelope-from ipluta@wp.pl) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474WbM1bqpz4cY4 for ; Fri, 1 Nov 2019 18:55:10 +0000 (UTC) (envelope-from ipluta@wp.pl) Received: (wp-smtpd smtp.wp.pl 13587 invoked from network); 1 Nov 2019 19:55:06 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1572634506; bh=RPwkWB8nesRteCGpxeFSJftgNZOzh+Pcs8jCrk3PSuc=; h=Subject:To:From; b=LBZ9D/L61xgoaM8jp51JSVRwCDEsZCLEcWfybIXV2Mj6Ss68vKyZtsnNR/MiQM310 nwGYa5vhiTshAyupY8kif6d6caXFh78lYA5WRQwqJHbeZV54/6MzQdYjbnouytChV3 tU3LU14Q3J20NHqdsbPg1HhowJATpWFcWGIjpUgs= Received: from bmb112.neoplus.adsl.tpnet.pl (HELO [10.0.0.83]) (ipluta@wp.pl@[83.28.221.112]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 1 Nov 2019 19:55:06 +0100 Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? To: John Levine , freebsd-questions@freebsd.org References: <20191101165219.358AFDC250E@ary.qy> From: Ireneusz Pluta Message-ID: <7bf48391-7510-f2a0-9ca0-48ad8643d808@wp.pl> Date: Fri, 1 Nov 2019 19:55:00 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191101165219.358AFDC250E@ary.qy> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pl X-WP-MailID: 1cbd8d2c9680aef27fa9ab4039f00dc4 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000002 [gSEW] X-Rspamd-Queue-Id: 474WbM1bqpz4cY4 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wp.pl header.s=1024a header.b=LBZ9D/L6; dmarc=pass (policy=none) header.from=wp.pl; spf=pass (mx1.freebsd.org: domain of ipluta@wp.pl designates 212.77.101.9 as permitted sender) smtp.mailfrom=ipluta@wp.pl X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.77.96.0/19]; FREEMAIL_FROM(0.00)[wp.pl]; DKIM_TRACE(0.00)[wp.pl:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[wp.pl,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[wp.pl]; ASN(0.00)[asn:12827, ipnet:212.77.101.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[wp.pl.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[wp.pl:s=1024a]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-7.38), ipnet: 212.77.101.0/24(-3.82), asn: 12827(-3.06), country: PL(0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[9.101.77.212.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[9.101.77.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 18:55:12 -0000 W dniu 2019-11-01 o 17:52, John Levine pisze: > In article <0d1e31bd-bd45-090f-9fc7-2f3efa3013f7@wp.pl> you write: >> W dniu 2019-11-01 o 04:07, Ronald F. Guilmette pisze: >>> I have work >>> to do and now my Perl interpreter has disappeared. Was it somehow my >>> fault? Was I bad? I have tried to lead a good life, up until now anyway. >>> I have been kind to animals and small children. So what have I done wrong >>> that has caused my Perl interpreter to be disappeared on me for no >>> apparently good reason? >> If you really depend on Perl, don't use the "system" one, that is likely to be messed up with the >> pkg dependency hell. >> >> Use your own perl. Consider https://perlbrew.pl/ for managing it. > I would not recommend that. In my experience, so long as you do a pkg > upgrade every few weeks your perl packages will be fine. A lot of > stuff in the ports tree depends on perl and they have a strong > incentive to be sure that it works. > > If you've installed perl modules through CPAN rather than through > ports, it's up to you to remember and reinstall when the version of > perl changes but there's not much you can do about that. I have about > 200 modules installed as packages and one or two from CPAN. pkg perl is for packages which depend on pkg perl. When I maintain my own production environment built on Perl, my goal is to keep it stable and running, not finding some morning I am out of businees, just because some genius pkg maintainer finds that a new shiny perl 5.32.0 is out and (s)he blindly rasies her/his pkg perl requirement to that version, not even thinking if such a high requirement is really nescessary. From owner-freebsd-questions@freebsd.org Fri Nov 1 20:01:08 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 91D431A1672 for ; Fri, 1 Nov 2019 20:01:08 +0000 (UTC) (envelope-from frankfenderbender@council124.org) Received: from vps349.pairvps.com (vps349.pairvps.com [216.92.231.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474Y3R5fkqz3C3C for ; Fri, 1 Nov 2019 20:01:07 +0000 (UTC) (envelope-from frankfenderbender@council124.org) Received: from [192.168.0.100] (unknown [104.220.43.7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by vps349.pairvps.com (Postfix) with ESMTPSA id 5C0321A26B8; Fri, 1 Nov 2019 16:00:59 -0400 (EDT) Subject: doc listing of a full install's structure? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Frank Fenderbender In-Reply-To: Date: Fri, 1 Nov 2019 13:00:58 -0700 Reply-To: Frank Fenderbender Content-Transfer-Encoding: quoted-printable Message-Id: <5A739711-3758-4FAB-BEA7-D37A06AB92B9@council124.org> References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.1085) X-Rspamd-Queue-Id: 474Y3R5fkqz3C3C X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of frankfenderbender@council124.org designates 216.92.231.69 as permitted sender) smtp.mailfrom=frankfenderbender@council124.org X-Spamd-Result: default: False [1.02 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[frankfenderbender@council124.org]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:cegray.mail.pairserver.com]; HEADER_FORGED_MDN(2.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; REPLYTO_EQ_FROM(0.00)[]; DMARC_NA(0.00)[council124.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.96)[-0.959,0]; MV_CASE(0.50)[]; IP_SCORE(-0.28)[ipnet: 216.92.0.0/16(-0.18), asn: 7859(-1.17), country: US(-0.05)]; NEURAL_HAM_MEDIUM(-0.94)[-0.939,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7859, ipnet:216.92.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 20:01:08 -0000 I seek two=20 1) a full structural listing which I require for partitioning; 2) the minimum-required and performance-optimizing sizes for each. Ubuntu 18.04 is the primary OS on the first internal drive, whereon = exists the EFI partition and the GRUB install. This (1-TB) internal HD will be used for FreeBSD only, however, I want = the HD's partitions to match the structure so that backups are = more-easily scheduled according to use, that data corruption is = minimized, and so that system-restores are manageable. Thanks "frank"= From owner-freebsd-questions@freebsd.org Fri Nov 1 20:07:09 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 97CE11A18C0 for ; Fri, 1 Nov 2019 20:07:09 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 474YBN4MVbz3CQv for ; Fri, 1 Nov 2019 20:07:08 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 2DDCD4E684; Fri, 1 Nov 2019 13:07:07 -0700 (PDT) From: "Ronald F. Guilmette" To: Victor Sudakov cc: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul In-Reply-To: <20191101092716.GA67658@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <63807.1572638826.1@segfault.tristatelogic.com> Date: Fri, 01 Nov 2019 13:07:07 -0700 Message-ID: <63808.1572638827@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 474YBN4MVbz3CQv X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-5.16 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[tristatelogic.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; IP_SCORE(-2.86)[ip: (-7.50), ipnet: 69.62.128.0/17(-3.75), asn: 14051(-2.98), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 20:07:09 -0000 In message <20191101092716.GA67658@admin.sibptus.ru>, Victor Sudakov wrote: >I need to find files containing ascii null inside, and print their names to > stdout. Unfortunately, you're banging up against a long-standing a rather annoying non-feature of fgrep/grep/egrep, which is that unlike the tr command, the grep family of commands does not support the \DDD notation for specifying arbitrary byte values. Thus, you cannot use then to search for arbitrary byte values. I would thus suggest that you solve your problem using a Perl or C program. It would be relatively easy to code up a solution to your stated problem in either of these two languages. Something approximately like this might work. (But I DO NOT guarrantee that this will work. If you want guarrantees, send money.) You would give this script a list of the filenames you wanted checked on the command line when you invoke it. =========================================================================== #!/usr/local/bin/perl -w use strict; undef $/; foreach my $arg (@ARGV) { open (IFILE, "; close (IFILE) || die; print "$arg\n" if ($content ~= m/\000/); } From owner-freebsd-questions@freebsd.org Fri Nov 1 21:18:31 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8EF5E1A33F0 for ; Fri, 1 Nov 2019 21:18:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474Zmk2l3zz3H8K for ; Fri, 1 Nov 2019 21:18:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([188.103.164.61]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1Mf0Jg-1hlICv0dnW-00ga0p; Fri, 01 Nov 2019 22:18:19 +0100 Date: Fri, 1 Nov 2019 22:18:15 +0100 From: Polytropon To: Kurt Hackenberg Cc: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-Id: <20191101221815.a19d7dd8.freebsd@edvax.de> In-Reply-To: <4b2158d3-4bc4-63d5-9d8b-8801f4588da4@panix.com> References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <61f96c80-7965-9c80-30dc-b153e418b668@panix.com> <20191101104917.e49c518e.freebsd@edvax.de> <20191101112030.4e4f09f3.freebsd@edvax.de> <4b2158d3-4bc4-63d5-9d8b-8801f4588da4@panix.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:+GyLtxIv3/6GHjgx11DzKtMwcIAuz9FRiVak3D0K5aQ0UNHcETc fnz4ivajarl1wbYrOgiF7oSsw7zfqHA/feRA5duRMaUdzHCcoFmWNr36rS7EmFmtr2h0M19 e1Q4vUcVbuUac8dCbwmJ1GxQoRZHVDWMEJr+V1y1yZyh48lY2tPCb2U/XxY2Ht7R1SabTBS CTJiKHHGI1sMp3PfD3qjw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:iBwIVJOxMOU=:6Bx+PkMt1XqBuOv6XbV3mo 9DJhtRDziX32W6GobUc9jphcMUg6S3GDHY8lXMiPHZXyOPGIr1XWiZnPcUQkxXpciiSbeetIK 7AjK4bnCxcFvnZwJPpcwuWI0nN0+/LCTYucNdtNXKgfxLaquMJuv19po2+0KQjvPBnbsPsXG7 vRexHnHXIj0KhaA4TG8F3ZFEjsaM8kyFrS7uVKwCAYG13Fe35lv35SK8mV9G0mXsNNzsGA/Ue s3bZYtC2K8i0c4hMKtUJ49bjB3rbGshMyi9k0TO1s1XbzqGktdkNnv52XSyst7SMuaA7RZESf qmR5PJpwpE6HjSSoKrIeqAXtB+EBr2N+EIAYjezUQVOFfvacU5cmMxd0StvDJvOzy9M5AnU0K HgnpkM2SyTwNGyCgVe2brvmmqjl/NLeckVQwFa4Mfj4S3qZvr5+elYtIllxxY8albm/GjqLyg vxHHC5WLMoeiMi60ftsM/kTPGWyaeO6mEGyWrmcb+Og1LpMO7b1SzUcggIdC9vcJ9yW7FTF9Y gCXAV/FvASSmOE/+vazMSQVvKz8w7V/APWVpIvpwB4fYEcbPHueK21sV4SEkoLZ42fQbzVle7 cw9E4QBkBepNCtHmuLmFqwcvCgu9WPLtCUU0k+nrVZaIM0g3FHKGmlOx0TrDA+MOWjH0uHMNu /Sm0a1keAO6MPmrrc1glTqCahyaC4reREd0WxLuhqH45WV+9sPt+R7Dlyf7XwVhVF6ls7A6KA 7xN0GY3K/vBbjm+Ewh6J2pzk1xV4HDVFMWIS9rSuV96mSPeEkGTj8olR7Bk0lDuMbgESRDk8n DEeUm5BsZSxHh5ob0n27dIrtZhHQ7UvwhFwytXe/4Fua0NOUiqn/81b5LFkRFTVSp71eUFjyc huz5IozcgOAfRfU5vFc+iJW9HOhct+K7Yqk5nUZ/o= X-Rspamd-Queue-Id: 474Zmk2l3zz3H8K X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.24) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [3.74 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[61.164.103.188.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.55)[0.550,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.68)[0.684,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[24.17.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.11)[ip: (-0.40), ipnet: 212.227.0.0/16(-1.34), asn: 8560(2.29), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 21:18:31 -0000 On Fri, 1 Nov 2019 13:27:08 -0400, Kurt Hackenberg wrote: > On 2019-11-01 06:20, Polytropon wrote: > > > I don't know if the declaration "text/x-csrc" is processed > > by the mailing list as regular text attachment, but as > > you said, "text/plain" should work. Stripping non-text > > attachments (especially binary ones, like images) has > > been common practice on this list for years, probably > > for decades now. > > Sure enough, my mail reader (Thunderbird) generates a C source > attachment as text/x-csrc. I didn't know that type existed. Obviously > it's non-standard. Sylpheed does the same, for example "text/x-sh" for a shell script. Maybe it's a "not so well known standard"? ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Fri Nov 1 21:59:00 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 420C61A456F for ; Fri, 1 Nov 2019 21:59:00 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474bgR2Nz6z3KM4 for ; Fri, 1 Nov 2019 21:58:58 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pf1-x42c.google.com with SMTP id 21so7918762pfj.9 for ; Fri, 01 Nov 2019 14:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=CdQvQ4GqiZ+VLlRDtAEuH4WCjW8vPgsfTQI3egpff8A=; b=Rp1YmbSKsJWStY2wnfZCJXwFyotgWATQp7pl5V7iYIxm6Cz9aobE+UazLDbGGds4ba N0gVnphevUizPbfVxu2Z7R55vPoA0+L/hZ2TgKjjG/ExG0t6S+jBsH1s07ywM1FTc1cC rquDdlfHwwzyCj5gTerwhq+BtpVDwlx0RB+gP3o8H68oUtLWFDNbW0IpHcjKH/2mXj0u 73ELIbJnmiOQYRVFib2wpgoFCxMFauGoD+sn3bj5twAAs6hYM0iQOsfuRo1Jc8JvvNqG 1zBsvYfQntZNSoWguiDWjqfMcIFl/hhHw1GSffj4d3FOFUUA9BGDfxVD1PEp6GHdC1cD 5g+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=CdQvQ4GqiZ+VLlRDtAEuH4WCjW8vPgsfTQI3egpff8A=; b=UClcyGmqH4Z4wloh/aGscEDf3hIf0fqT89LLiKXyI/7bpY9AOkQIhNqpOu6lK0GW5m eq/xEClwN4pCGQtyHyYcd1HZHoWodXMVGX4A+nOVRdlVHrvAfYHLdfcy8ly6vIzaMApO lWkU68X2C7M146Ek/wUvBC9U0uwHcvtWWxMyXmIJ5kTfDs3OLam4M6nlTZ4CnMZCo8RI q3lNQ4bENwjhByTfN++bA1DmLaI+E1O9UrpVqN5e+zraVTRwrR9NJG6yFm6eAj73pUCB MGROU2fDQnsF3+le0Bbyr5W5yaRtrmUMYYlQ0c2RGBjHOIjsN1qk9UT/bVVilxeWpFcC ymAw== X-Gm-Message-State: APjAAAWgmzZh4xsZsocAwViRSgc8jEN7fbi4b+wFqjG/wu5eh1bPU96g SiBp0B0Rqniq9rd7T80IynV+5SYA X-Google-Smtp-Source: APXvYqx3gbG1YesnCfuV3qd5IrBZAexGOodv3vNi5CsW0akVmJ3DDFCUG1XoHK44JTQHgMU/JBicnQ== X-Received: by 2002:a17:90a:1782:: with SMTP id q2mr18292433pja.57.1572645537383; Fri, 01 Nov 2019 14:58:57 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-169-222.mel.connect.net.au. [59.101.169.222]) by smtp.gmail.com with ESMTPSA id k20sm7195901pfi.80.2019.11.01.14.58.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Nov 2019 14:58:57 -0700 (PDT) Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? To: freebsd-questions@freebsd.org References: <20191101165219.358AFDC250E@ary.qy> <7bf48391-7510-f2a0-9ca0-48ad8643d808@wp.pl> From: MJ Message-ID: Date: Sat, 2 Nov 2019 08:57:49 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <7bf48391-7510-f2a0-9ca0-48ad8643d808@wp.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-AU X-Rspamd-Queue-Id: 474bgR2Nz6z3KM4 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Rp1YmbSK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::42c as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[222.169.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[c.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.09), ipnet: 2607:f8b0::/32(-2.39), asn: 15169(-2.04), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 21:59:00 -0000 On 2/11/2019 5:55 am, Ireneusz Pluta wrote: > > W dniu 2019-11-01 o 17:52, John Levine pisze: >> In article <0d1e31bd-bd45-090f-9fc7-2f3efa3013f7@wp.pl> you write: >>> W dniu 2019-11-01 o 04:07, Ronald F. Guilmette pisze: >>>> I have work >>>> to do and now my Perl interpreter has disappeared.  Was it somehow my >>>> fault?  Was I bad?  I have tried to lead a good life, up until now anyway. >>>> I have been kind to animals and small children.  So what have I done wrong >>>> that has caused my Perl interpreter to be disappeared on me for no >>>> apparently good reason? >>> If you really depend on Perl, don't use the "system" one, that is likely to be messed up with the >>> pkg dependency hell. >>> >>> Use your own perl. Consider https://perlbrew.pl/ for managing it. >> I would not recommend that.  In my experience, so long as you do a pkg >> upgrade every few weeks your perl packages will be fine.  A lot of >> stuff in the ports tree depends on perl and they have a strong >> incentive to be sure that it works. >> >> If you've installed perl modules through CPAN rather than through >> ports, it's up to you to remember and reinstall when the version of >> perl changes but there's not much you can do about that.  I have about >> 200 modules installed as packages and one or two from CPAN. > > pkg perl is for packages which depend on pkg perl. When I maintain my own production environment built on Perl, my goal is to keep it stable and running, not finding some morning I am out of businees, just because some genius pkg maintainer finds that a new shiny perl 5.32.0 is out and (s)he blindly rasies her/his pkg perl requirement to that version, not even thinking if such a high requirement is really nescessary. And the port/package maintainer is not responsible for your "business". The onus is on YOU not to upgrade if this will break your system, NOT the port maintainer. Sometimes, just perhaps, upstream declares this a necessity. Ever thought of that? Regards From owner-freebsd-questions@freebsd.org Fri Nov 1 22:03:27 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 314411A4855 for ; Fri, 1 Nov 2019 22:03:27 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474bmY6yGnz3Kly for ; Fri, 1 Nov 2019 22:03:25 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pg1-x535.google.com with SMTP id e4so7307794pgs.1 for ; Fri, 01 Nov 2019 15:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=QU2Ld0E4LlzB0ksRo+CGp0ZivQmIvIKL4Oh2NyTRA2M=; b=LHBamWbVtFgL1HnOLBm1byN8suhe6U9MEgm7b6grNSA2wM3VADRe52y8VOzBO2ZTG5 uctW9HmBjpchht8xWG0nMuMzG/LmOesU9BmPDB4pC6wt/kdWsGrGHTpm663ACYIWE3ps 7wAKD14eU+tKjo+AQZPe45GIXd39N+sJhNNqrXScFO/min+QmhXznOsnWIzgWcYD8yNC ms/m11VeP6vxiH6SFExK1koavGVQfruQAoc+GSE4vhOqz4otDhZgOcnXG6WbE/9XZjEs mgtC1wytPpx39t5gfAu79/hx9Bjmdv3gSSLwtKjCHFnlzg4x01yyrxhJCMtK42jqOD4G ICwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=QU2Ld0E4LlzB0ksRo+CGp0ZivQmIvIKL4Oh2NyTRA2M=; b=TG3SWTdw4wFWTvxp6FVFXDJGvdTl3yNV7XtDF2KsQJZiPHzhxFcO6zoPi8uHUgNnFG scUofnaKgr3NXDISTJX4aIaqd6dveI17thJfLiHWqnRY71YlRrj2wO8OBSBIdSoA4srd CYMmTkWBlKCiFVeW2n/SC9RVqCvpM182wtBzbo0mqpyRbwTMMc1gWL4pg0qGVDXsKjvH oloSleZE8ySvE8Xm+USQEcrXTKrrM0S1R83Zo/Eahi/bHdqvEg7Kf8eB1MFSf4zjzLVZ vRenQac+iErja4i0pphbis8+xE6cC3hOOlHhOfuSFgbVdDEySR0T9ciPQ+3BXtj2QvuC YRqQ== X-Gm-Message-State: APjAAAW8Ql9+uqKl5bME/0NsdlAL96kwN2PsJkQzZFi0MR/F9KFNzl2b 53+6xGHHZ6xCBE5BgyaGESm/Kd0R X-Google-Smtp-Source: APXvYqyp/koAJPzriYabxtwNloTbruB5PqPqHAey4AX8BCahxZou+q33woiCXC00lBINAkCX0j/f9A== X-Received: by 2002:a17:90a:fa81:: with SMTP id cu1mr18566636pjb.114.1572645803664; Fri, 01 Nov 2019 15:03:23 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-169-222.mel.connect.net.au. [59.101.169.222]) by smtp.gmail.com with ESMTPSA id w26sm12407098pfj.123.2019.11.01.15.03.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Nov 2019 15:03:23 -0700 (PDT) Subject: Re: doc listing of a full install's structure? To: freebsd-questions@freebsd.org References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <5A739711-3758-4FAB-BEA7-D37A06AB92B9@council124.org> From: MJ Message-ID: <7138d654-93b3-42fc-93b7-e96e2613945e@gmail.com> Date: Sat, 2 Nov 2019 09:02:16 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <5A739711-3758-4FAB-BEA7-D37A06AB92B9@council124.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 474bmY6yGnz3Kly X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=LHBamWbV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::535 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[222.169.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[5.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.26), ipnet: 2607:f8b0::/32(-2.38), asn: 15169(-2.04), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 22:03:27 -0000 On 2/11/2019 7:00 am, Frank Fenderbender wrote: > I seek two > 1) a full structural listing which I require for partitioning; What is that? Install FreeBSD with default partitions if you're unsure what you want. > 2) the minimum-required and performance-optimizing sizes for each. See above. > > Ubuntu 18.04 is the primary OS on the first internal drive, whereon exists the EFI partition and the GRUB install. > This (1-TB) internal HD will be used for FreeBSD only, however, I want the HD's partitions to match the structure so that backups are more-easily scheduled according to use, that data corruption is minimized, and so that system-restores are manageable. I admit I'm confused. Regards MarkJ From owner-freebsd-questions@freebsd.org Sat Nov 2 05:56:59 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C5764163E26 for ; Sat, 2 Nov 2019 05:56:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474pGy421vz4F3h for ; Sat, 2 Nov 2019 05:56:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.38.43]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1MDQqk-1iHSzu0ipS-00AT53; Sat, 02 Nov 2019 06:56:48 +0100 Date: Sat, 2 Nov 2019 06:56:44 +0100 From: Polytropon To: Frank Fenderbender Cc: freebsd-questions@freebsd.org Subject: Re: doc listing of a full install's structure? Message-Id: <20191102065644.dddaaebc.freebsd@edvax.de> In-Reply-To: <5A739711-3758-4FAB-BEA7-D37A06AB92B9@council124.org> References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <5A739711-3758-4FAB-BEA7-D37A06AB92B9@council124.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:0FLS64Co4zUnL8tbh6GVV64pKSNJeb3jQUqSvejBo94EfoVX/ES GdjDimRa+sSsKa+lKDzY8UAnBpi0Wd2OzIahKFeplsxRA3E9xzzcaNm2tB26kIxRHmSwDpy C2tcZHayl4ODgfCFkIveYt0/Q6RBRsrgqAaedp2gftYo1TZOfNb3MT/1la7HqzEp8aGsIQO aJ0aUwO5efdTIpwK0U4IA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:G/UOS/oyqqI=:EeRZdeOW3OQTxGAM+cv1Dw KHveHkRK7szvEsimYCu1rgZD4TTmJWZtsnxToHHooeQ2df1Uwnkz6DBSpBF8+1R47qZax3jpw GnVsLvSJXf2ptoRkbgiSUV/GuS5ffvRCPkRtGvkkfYV95xYLmqnfxEBxGqsWGzk2jvm3vlUX/ FcFfdWJfHzG5qQpLvuk54+CdSMXHUI3VD8LCrqIqoCYqzm3F/Lz/TndBfF+S1YsDOb7dtrjuh E0aSZA8JkdoyrL0boVWY7JRM9resoZbUg8r+b14nkDnxW5pECRk10Hkxb+eWue97ZLgVZ2QY7 AAWfPma6kSzs7k2Rzmb0Vd0YSZMl7WUd7+2Mb1OQ5NMrzrk3TsplM3IOI1pr+yQHBNkD6+pL+ Xgry6UPjaIIz+upBv4jYbYaIxpxqClYTG/ljAircxV+Fa2JoCrl3xkNmhr8GwkC8grdK3h2FL IHDfKjsv+4e7kJfU6QJwimq881OjHy5ZYZ4MaxO+B53sdriWH9y3N+2Th1eaKLtbfPIlyaeQE 42FDGW6z489h7OgjX/wCPsZWRX2EsJo8IPokj0RptAsLOG+8tPcmuDlg9v0lSTmo/nA5AxeCL IEVSojEMJGVzKlcv+/Dim0j6w3nyBfB39OC5exagN7nxxbo4d5wAESQdxQ97ol7vaZE5ir5Ze fo2gNdRs4H7FPN5zKVF/97CI4EJPTHghREDr38uwMY9G1iF2fJF7rt4f1SBDbsfoW/sNg/WDR TUMxeK7j4C60tPfqXll9RGiihv9PKzN4dGx7eo3R4zAv6OgxItQOSw9wWbWP4euT9r73xUKca 414oyUNtVe5N1pNNyZi0+4LwOZRIhnhAIWBdIgdVM7ETHqj/M6XdpXDFoVX2X2oR2xy2cz0z3 q0qTsHSld2iRajm6nb2HO+frnuSQ4XrrnA+lpUM4M= X-Rspamd-Queue-Id: 474pGy421vz4F3h X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.131) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [5.82 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[43.38.12.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.92)[0.916,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[131.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.51)[ip: (1.61), ipnet: 212.227.0.0/16(-1.34), asn: 8560(2.28), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 05:56:59 -0000 On Fri, 1 Nov 2019 13:00:58 -0700, Frank Fenderbender wrote: > I seek two > 1) a full structural listing which I require for partitioning; That depends on how you _want_ to partition. Basically, you have the many choices of combining the following two sets: GPT or MBR (GPT is recommended), "all in one" or highly customized individual partitions. It's hard to tell how much _space_ you're going to need, because it depends on what you will install besides the FreeBSD OS. Further- more, FreeBSD installs can be customized a bit at install time, and if you recompile from source, you can have even more choice on what to install. > 2) the minimum-required and performance-optimizing sizes for each. As mentioned above, this is hard, maybe impossible to tell. You should allocate - and that's not much more than a guell - a few 100 GB at least. That doesn't say anything about being able to perform an OS install in _less_ than 10 GB, though. ;-) > Ubuntu 18.04 is the primary OS on the first internal drive, > whereon exists the EFI partition and the GRUB install. FreeBSD supports both EFI and being booted via GRUB. > This (1-TB) internal HD will be used for FreeBSD only, however, > I want the HD's partitions to match the structure so that > backups are more-easily scheduled according to use, that > data corruption is minimized, and so that system-restores > are manageable. How are those backups organized? If you have a "pattern" already, you can try to use that. If you're going to dedicate that 1 TB disk to FreeBSD (should be absolutely fine for OS, and probably have enough space for a lot of programs and data), just make sure GRUB gets an appropriate entry for that disk. Install FreeBSD as if it would be the only OS on that disk, which in fact it is. You can temporarily remove any other disks from the system to make sure no bad things (TM( can happen. Use labels. Then recombine, add GRUB entry, and boot into FreeBSD. However, FreeBSD and Linux do organize and name things quite differently, so don't assume that everything will be "the same" on both ends. :-) What you're attempting also depends on you backup/restore mechanism which you didn't specify anything about. Is it a whole disk dd image? Classic dump + restore? Some specific other program? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Sat Nov 2 06:45:14 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 33A6B166314 for ; Sat, 2 Nov 2019 06:45:14 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474qLd2BDHz4HPR for ; Sat, 2 Nov 2019 06:45:12 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=pRqprQdQAmLM+93wyxZl16S7G+gQ46MplLVUhGQJdMk=; b=hID8bOt/N+GCd2a9sF1JdyM/7h LqmKsDNlAE36XUTCeA5QIvi/pP2KCp6QnUf1IqAreEbhTOuXNQ0GT8DWplpEkPhCjh9pt9hNv5oLP nfQDUmT2xgB7U67Vn4n/6V1NUusaAK/R7XJGItYrcS58i4nMezn25ckDXWr2ECvl9e9k=; Received: from vas by admin.sibptus.ru with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQn9l-000PsO-HN for freebsd-questions@freebsd.org; Sat, 02 Nov 2019 13:45:05 +0700 Date: Sat, 2 Nov 2019 13:45:05 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: grep for ascii nul Message-ID: <20191102064505.GA98558@admin.sibptus.ru> References: <20191101092716.GA67658@admin.sibptus.ru> <63808.1572638827@segfault.tristatelogic.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <63808.1572638827@segfault.tristatelogic.com> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 474qLd2BDHz4HPR X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=hID8bOt/; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-8.38 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-3.28)[ip: (-9.84), ipnet: 2001:19f0:5000::/38(-4.92), asn: 20473(-1.57), country: US(-0.05)]; DKIM_TRACE(0.00)[sibptus.ru:+]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 06:45:14 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ronald F. Guilmette wrote: > In message <20191101092716.GA67658@admin.sibptus.ru>,=20 > Victor Sudakov wrote: >=20 > >I need to find files containing ascii null inside, and print their names= to > > stdout. >=20 > Unfortunately, you're banging up against a long-standing a rather > annoying non-feature of fgrep/grep/egrep, which is that unlike the > tr command, the grep family of commands does not support the \DDD > notation for specifying arbitrary byte values. Thus, you cannot use > then to search for arbitrary byte values. >=20 > I would thus suggest that you solve your problem using a Perl or C > program. =20 Perl is not in the base system, so that is not quite the answer.=20 I'm a big fan of awk, awk is in the base system and should be able to do it, right? $ hd trees.txt=20 00000000 66 69 72 0a 6f 61 6b 0a 63 65 64 00 61 72 0a 62 |fir.oak.ced.ar= =2Eb| 00000010 69 72 63 68 0a 70 61 6c 6d 0a |irch.palm.| 0000001a $=20 Note the ascii null embedded in the word "cedar" $ awk '/\x66\x69/{print $0}' trees.txt fir So far so good. But with the ascii nul it behaves in an unexpected way: $ awk '/\x00/{print $0}' trees.txt fir oak ced birch palm $=20 --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --/04w6evG8XlLl3ft Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJdvSXxAAoJEA2k8lmbXsY0qWwH/RkTNDcpCPx62KmkBx99CG6V NiohEjWgP0ZNpna6EKwHLKhO6ZV+zi9rBJbTS9u/Rwx8oH9NQnCVbhhHV9s5bzjq hnwajl7WeAp6b2KpfG1kMoVS68vUUJ/sSIa5VFmVX/gBu+6e+RqRHsM21IoW/UJA hqgr5sPCL/9nYo7EeMi0UkZxsnkYQXGcvsSCGk6Cabk15eA669A1qdqzlz/LBBdp oJdAHOFrlKaO1xrHaUFRJlCIUmbe8ObhY1UY0hPFCRThlExvVOl2L4A6ei/Nfatj DXW9sVLHuMR922CbIE1pzeQQt7d1iJKZbqzOCFrRA21Ko7EdLV6+eGEgrSP3AHA= =afP5 -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft-- From owner-freebsd-questions@freebsd.org Sat Nov 2 09:40:47 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 654B817CCF8 for ; Sat, 2 Nov 2019 09:40:47 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 474vF94fLvz4Q9j for ; Sat, 2 Nov 2019 09:40:44 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id xA29eW02054695 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sat, 2 Nov 2019 10:40:33 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1572687633; bh=DYMinCYFBztkTBMwQEfqui4V1tDDmCtVv2RPkoMm8AE=; h=Date:From:To:Subject:In-Reply-To:References; b=TU0nXFYO9wHasAWuOV+QUfcVMpvp87bOSTKjUwoKKHX/Lu1MPDJco5gFfKiB5BD7L hz6pwiS8fsRnTx4FSq8Sw8q6rgVo6OgRVQz+0pB0CwGgY2P3gQ9XXxJI5LXrk5K4Mp lXmvcZMVAKLftws3rYo0UHhuOF1VOLsIA/OiCRpH25BTtR9sGXOuGwIlpwlXDS3iJ6 RsUKoCrdfwLI2/dY1tJP/qtn3KLJelvYiLrDLSBjAWKB1+yqa8CH5JNpx+VNzLrqJ+ +GOqIQpKRQt7HUZUZFTNmysA2UbQBp1dd891e1SAbQgpMiXhlo9myvI9wmKw0s7yYw oVElrkjg59Ucg== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id xA29eWXF054692 for ; Sat, 2 Nov 2019 10:40:32 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Sat, 2 Nov 2019 10:40:32 +0100 (CET) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: freebsd-questions@freebsd.org Subject: Re: doc listing of a full install's structure? In-Reply-To: <7138d654-93b3-42fc-93b7-e96e2613945e@gmail.com> Message-ID: References: <20191101024817.GA60134@admin.sibptus.ru> <558fd145-ad3e-90dc-5930-c01ca0c27d3c@panix.com> <5A739711-3758-4FAB-BEA7-D37A06AB92B9@council124.org> <7138d654-93b3-42fc-93b7-e96e2613945e@gmail.com> User-Agent: Alpine 2.21.99999 (BSF 352 2019-06-22) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on enterprise.ximalas.info X-Rspamd-Queue-Id: 474vF94fLvz4Q9j X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ximalas.info header.s=default header.b=TU0nXFYO; dmarc=pass (policy=none) header.from=ximalas.info; spf=pass (mx1.freebsd.org: domain of trond.endrestol@ximalas.info designates 2001:700:1100:1::8 as permitted sender) smtp.mailfrom=trond.endrestol@ximalas.info X-Spamd-Result: default: False [-3.97 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[ximalas.info:s=default]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[ximalas.info:+]; DMARC_POLICY_ALLOW(-0.50)[ximalas.info,none]; IP_SCORE(-1.97)[ip: (-7.98), ipnet: 2001:700::/32(-1.20), asn: 224(-0.65), country: NO(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:224, ipnet:2001:700::/32, country:NO]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 09:40:47 -0000 On Sat, 2 Nov 2019 09:02+1100, MJ wrote: > On 2/11/2019 7:00 am, Frank Fenderbender wrote: > > I seek two > > 1) a full structural listing which I require for partitioning; > What is that? Install FreeBSD with default partitions if you're unsure what > you want. Maybe hier(7) can help the OP. See https://www.freebsd.org/cgi/man.cgi?query=hier&apropos=0&sektion=7&manpath=FreeBSD+12.0-RELEASE+and+Ports&arch=default&format=html for a web version. > > 2) the minimum-required and performance-optimizing sizes for each. > See above. https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-hardware.html states 96 MiB of RAM and 1.5 GiB of disk as a minimum. It also recommends 2-4 GiB of RAM and at least 8 GiB of disk space for desktop systems. Servers might need more resources. Maybe the OP should consider ZFS, as pooled storage coupled with quotas and reservations makes it at lot easier to manage disk space, and avoids falling into the old trap of creating a set of fixed sized disk partitions. > > Ubuntu 18.04 is the primary OS on the first internal drive, whereon exists > > the EFI partition and the GRUB install. > > This (1-TB) internal HD will be used for FreeBSD only, however, I want the > > HD's partitions to match the structure so that backups are more-easily > > scheduled according to use, that data corruption is minimized, and so that > > system-restores are manageable. > > I admit I'm confused. -- Trond. From owner-freebsd-questions@freebsd.org Sat Nov 2 09:44:06 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B188D17CFD0 for ; Sat, 2 Nov 2019 09:44:06 +0000 (UTC) (envelope-from ipluta@wp.pl) Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474vK13X93z4QTw for ; Sat, 2 Nov 2019 09:44:05 +0000 (UTC) (envelope-from ipluta@wp.pl) Received: (wp-smtpd smtp.wp.pl 9847 invoked from network); 2 Nov 2019 10:44:02 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1572687842; bh=LSoMVY7uhGFtb1V+RnI9cPEHIyVGrUT8GzWGly5mHZ4=; h=Subject:To:From; b=MyJakUYtwLzMZEssmjSw7VjBknaCnrwKFlHK8STLQT1sOvBSWPmzsXIBotNFuLrIk sPXdg0duUOzstXVP1V0+RjDG2/Yrc9cKERpCZftCHbNXp0Sypvl3UgeHbCLkE+z2qi iWFb6KWx5AW0dJk3bHGUMRZ6uqHVd/dZL0Kr0pzk= Received: from 79.184.106.116.ipv4.supernova.orange.pl (HELO [192.168.1.20]) (ipluta@wp.pl@[79.184.106.116]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 2 Nov 2019 10:44:02 +0100 Subject: Re: Help wanted: Install of p5-JSON-Parse removes Perl ??? To: MJ , freebsd-questions@freebsd.org References: <20191101165219.358AFDC250E@ary.qy> <7bf48391-7510-f2a0-9ca0-48ad8643d808@wp.pl> From: "Ireneusz Pluta/wp.pl" Message-ID: <3408417f-f91f-a270-b7e4-aadd83ddd3ce@wp.pl> Date: Sat, 2 Nov 2019 10:43:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pl X-WP-MailID: 480b02fe6d425460fdb3918c141ce979 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000002 [wcE2] X-Rspamd-Queue-Id: 474vK13X93z4QTw X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=wp.pl header.s=1024a header.b=MyJakUYt; dmarc=pass (policy=none) header.from=wp.pl; spf=pass (mx1.freebsd.org: domain of ipluta@wp.pl designates 212.77.101.10 as permitted sender) smtp.mailfrom=ipluta@wp.pl X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.77.96.0/19]; FREEMAIL_FROM(0.00)[wp.pl]; DKIM_TRACE(0.00)[wp.pl:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[wp.pl,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[wp.pl]; ASN(0.00)[asn:12827, ipnet:212.77.101.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[wp.pl.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[wp.pl:s=1024a]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-8.21), ipnet: 212.77.101.0/24(-3.81), asn: 12827(-3.05), country: PL(0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[10.101.77.212.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 09:44:06 -0000 W dniu 2019-11-01 o 22:57, MJ pisze: > > On 2/11/2019 5:55 am, Ireneusz Pluta wrote: >> >> W dniu 2019-11-01 o 17:52, John Levine pisze: >>> In article <0d1e31bd-bd45-090f-9fc7-2f3efa3013f7@wp.pl> you write: >>>> W dniu 2019-11-01 o 04:07, Ronald F. Guilmette pisze: >>>>> I have work >>>>> to do and now my Perl interpreter has disappeared.  Was it somehow my >>>>> fault?  Was I bad?  I have tried to lead a good life, up until now anyway. >>>>> I have been kind to animals and small children.  So what have I done wrong >>>>> that has caused my Perl interpreter to be disappeared on me for no >>>>> apparently good reason? >>>> If you really depend on Perl, don't use the "system" one, that is likely to be messed up with the >>>> pkg dependency hell. >>>> >>>> Use your own perl. Consider https://perlbrew.pl/ for managing it. >>> I would not recommend that.  In my experience, so long as you do a pkg >>> upgrade every few weeks your perl packages will be fine.  A lot of >>> stuff in the ports tree depends on perl and they have a strong >>> incentive to be sure that it works. >>> >>> If you've installed perl modules through CPAN rather than through >>> ports, it's up to you to remember and reinstall when the version of >>> perl changes but there's not much you can do about that.  I have about >>> 200 modules installed as packages and one or two from CPAN. >> >> pkg perl is for packages which depend on pkg perl. When I maintain my own production environment >> built on Perl, my goal is to keep it stable and running, not finding some morning I am out of >> businees, just because some genius pkg maintainer finds that a new shiny perl 5.32.0 is out and >> (s)he blindly rasies her/his pkg perl requirement to that version, not even thinking if such a >> high requirement is really nescessary. > > And the port/package maintainer is not responsible for your "business". The onus is on YOU not to > upgrade if this will break your system, NOT the port maintainer. > > Sometimes, just perhaps, upstream declares this a necessity. Ever thought of that? and all these are the exact reason why it is better to have your own independent Perl for your own development with Perl From owner-freebsd-questions@freebsd.org Sat Nov 2 11:36:38 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D61231A176B for ; Sat, 2 Nov 2019 11:36:38 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from tgv.rail.eu.org (tgv.rail.eu.org [62.210.247.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474xps5srbz4X7K for ; Sat, 2 Nov 2019 11:36:37 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from [IPv6:2a01:e0a:2b7:70e1:b94:fcaa:6532:bc5b] (unknown [IPv6:2a01:e0a:2b7:70e1:b94:fcaa:6532:bc5b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: erwan) by tgv.rail.eu.org (Postfix) with ESMTPSA id 0B6C987C5 for ; Sat, 2 Nov 2019 12:36:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rail.eu.org; s=mail; t=1572694589; bh=EElnNf0lB2SGMcdC5HGG41ErCOr0EbRvme6qXwxGBJ4=; h=To:From:Subject:Date:From; b=NMv6ebkbAf4FMFn68z3eSqz+u5gUEi+8/wkJJG/KlQw6KRbS7xva/oXi3KMU2ee3r Zfjt5GrNa5X6JKoYJDPUC7ZNIG8f2jFsxl1TFWoVWGDTMLHgldFwZsgcp5sGpkvvpq lF9NFsZ4LYAfs0XPB5Jh7l2Fx5TsDDcznOPLHY8E= To: FreeBSD From: Erwan David Subject: freebsd 11.2-p14 end of life Openpgp: id=CAB1220E04DDF6E9CF0CD5C9B80EAC15E40FFD0F Autocrypt: addr=erwan@rail.eu.org; keydata= mQINBFJAaOMBEADAHsjODUMNImClvj0eAW7oCKr/cjccRts2DVrslhb6UEDbxgvnCKGtRy2P A9NcILX/+lG9zaoPw0caDSXDuubrC/giKZAphUTSmd+Uqz+9WDtU602WQuP5d5S1aAUe+fzT 6l9iDSR8Fz07ajjZ791Q0P1P4EwWQDbCJvmNXAknwysX0fIAlLpDaIQ0Asa6IvG/v8TyLZSE U0NytwIfHJMJk5btrM4fdaGc+4XnTK0E2Oa+Qjab18fsBLtHGctQUrDjrWvnGj1slHrfhUrT 67e9NHZgDPmEsOeCChd1ZWurIR0AQFp/Wrz80abJltk+aFswEzOvhkriOGjt4gM31BocpNbZ +sEEg9M6skAeXvuISkfS0bCM3kZ6MgywHE98AbA+8WxiKMRKuuuTNSEmIIRQt8dn7ad/1+r1 KAZ1bkB2naCDArqnpeDb65+378qh/2J6/M0UivSMFLzxXc+AyIxucjmrK8VCWQbDwUiA6sPU W4BC7V7+5j7ELzh4JzQX2LisNzPOqkaTVTfmCgDeL7V9LZErtLlG1rYbISrLvDnWNdiJ9l1d flxnhCs4oqn8KA5DtV6HNwIW6b6zwEHFoDPwtK2fctj0VIRwjiIMlyrEWHiC5NZoPyfexGlj RNP7oaDb6PIItgnBItWq/ZRymXP9gA945DjnrozsUZ02y7OMjQARAQABtB9FcndhbiBEYXZp ZCA8ZXJ3YW5AcmFpbC5ldS5vcmc+iQJUBBMBCAA+AhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4B AheAFiEEyrEiDgTd9unPDNXJuA6sFeQP/Q8FAlzBWT8FCRPm8dwACgkQuA6sFeQP/Q+Ikw/+ Img88okG/yRMOXScYx2/xzr85kpoWJ2k6Pl5w23zZ3oHflMGqXfp5mVQbq2X7MRx/CJwvBcK BAOPe2xVPLh26AlCOI+ZY/cM7HtnKPhIGRqTVi6K8wRE2HSpusVTP9sIt3V7oudYawJq/3KG zRsLXQb4FzvZxE+WXEB1NOHYZsH9A/gG1ljsTAux0Gh6RFp+Ij904YzFyh2gSRTpcSmyotXA X+ur/Cp4fPxCgIKP5evT0Nnq+LUwUoYjhHh73VubdmhouXa4EHQnBtGpuAyRDYnu0GPO2Oo6 Zudsin1MKbYdfwwKo2be7XQa2L1Xx3eavwseJqAAYucKxEQtiqenRWV40Av18Jkv17g0ao3L 0vtoKViljOJgL1Ny8436b6oLJzyNOby0OWHbRjp1l/RYfVYXW2wlF5XzLUMBclZX1fSjheoK vCewHoiRl9XPA+Y4RXMfHRRRFqTt3rkt8A7FBnVXePqwCl63FJ7Ywap60UIsUkXqI2fv5COH eduWKzLvwK22KaaleDadxDgRT7uJSS1XVIjUhkNgrqVMhfoo3yS6qi4+7baGVSrjYRLOp8IO bBtxuNPaQw+/R6BsLC0qacCV0FFY7k22aaKl1WoMNkzY38hyxOPp2VHLtwIGGhY8hHicQUsu KTkF0e24LM5x0Qd7/YyckRDN3FxM6wEYANu5Ag0EUkBo4wEQAL6D44lG/kjEQCY17c5qoeIK RMgR2ZUC6Mx2wPjhawaxRoiDE6EYEt7A5S1KEx+VXDClRnj0DrnCC5UqWsKq0443p3SploIq oCU9yaUe5sfutwCb3SWl2Ae9sAb09RIgdS41Hhg1U1TctIPjLy+0A9qtTopqPZi3ffE+RcJG RDJbJO9e8FiGIkGayruqmvFGJ7lOyK806FJJduDdLbK/l9G3tvxglvrAoPfjxPMPqUACk4t+ 5Gaiu56Kdzf+Fh6hk5UJSV5ETj5FLes+eQgwqa0cPbVsbxZ93Q3ZXBCRTJVP7V34cGjGEeqR ikmceoLJ3Z0erpPY6xn8uHP0AWTh+8g5IlGnt+nfwqPvQcCOBpQGEWIX5Olb52w9J6/TrowV u0aK4XjMuEKRt+ggHwmE6oGGwMppMsEOZXkMOMOJt5hStJ2XcNljH5lWFKL+JyuPJVjOZTt/ wbOk2xtUANAZdsGhQcrkkUx961PVAz4fo+8LDX4eRVLvuFUTJgRaMzlh6EQkgCzprYrZUHa2 5/+GTMygk6kG1cEn10gENAT4g9Gmq6FCExQERg5fZDwC5sxNVPqBa54zyXGGJ+4gReJglFsj xHPKgTaebVTMkwYhVR8UeAMb/yBzpsTD5dr0+Fc7VnmBs5rjqR8bnnx0agJ0HkIB9efAw5tl gwNbVUo5OaUvABEBAAGJAh8EGAEIAAkFAlJAaOMCGwwACgkQuA6sFeQP/Q8A7g//RF2nU4xm n9jlmP1YhiJ6Kx72ODpDVONAujNJ3i71RcGS84pTwedHm8VaOI9hH1eSIxM4AM+hFmruTw65 PR0aziUjMZRsZ112GgiC6UyzfAUIQ1ypjty6rpE1P8C2G2WNNuEwAnr6OiTZA4kim9YmF1FQ y61dbAbajJaFA/SABMu8WJW/YXVYtxHgGW7KLj9LHfnWmbkDz1ECBJsh76PeHavsqhRTHfp7 JWFmsVsxViJT4sr+HkiDfTDuT4k1Ba8Kj3yscsntyNH1l8G/YbDdsfHEhDmsYCLrGb/fUm+p C4DT4+ygLSCJkI1/elKiUpOmOuMgu5xieWhXaWKQa73zsdShhuyRa74MPA8WjkLyDRlb8cGv J5cwsjwnidHE2gYqZETGSGuZDoTPUb5kc2XEKwg1eLuL67acYllzp2epAOAbXn2RahZJPUNX D9MKacByetKBAusXNi4AszxcBqFEHpG4/t3stLmXIDd5LvUayovHd1steHbEPvl9dpU36Fte cnUNO6Z9JhIvAYy8b/7TT61qwQvOsca+NMlS/q+hPkx3npI1GFEAkanFLrLVE1MGT6C0kZ2M Em7mCpZQIZT2IhMsHXhaMQlP5np5/mFJ915bd+B3usfoQNWJmN3g7tVZGvl5Z7m7J5Zv3L84 U13tbPt33blV8WK4hIDA/c/rm2k= Message-ID: <28787a08-ee8e-c025-4f5c-d044a827d7e5@rail.eu.org> Date: Sat, 2 Nov 2019 12:36:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: fr X-Rspamd-Queue-Id: 474xps5srbz4X7K X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rail.eu.org header.s=mail header.b=NMv6ebkb; dmarc=pass (policy=none) header.from=rail.eu.org; spf=pass (mx1.freebsd.org: domain of erwan@rail.eu.org designates 62.210.247.50 as permitted sender) smtp.mailfrom=erwan@rail.eu.org X-Spamd-Result: default: False [-2.96 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[rail.eu.org:s=mail]; NEURAL_HAM_MEDIUM(-0.97)[-0.974,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[rail.eu.org:+]; DMARC_POLICY_ALLOW(-0.50)[rail.eu.org,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.02)[ipnet: 62.210.0.0/16(-0.03), asn: 12876(0.12), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:62.210.0.0/16, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 11:36:38 -0000 Each night freebsd-update cron sens to me the message No updates needed to update system to 11.2-RELEASE-p15. WARNING: FreeBSD 11.2-RELEASE-p14 HAS PASSED ITS END-OF-LIFE DATE. Any security issues discovered after Thu Oct 31 01:00:00 CET 2019 will not have been corrected. What should I do (yes I am running 11.2-RELEASE-p15 From owner-freebsd-questions@freebsd.org Sat Nov 2 11:56:47 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F40411A2070 for ; Sat, 2 Nov 2019 11:56:46 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474yG55kWnz4Y6v for ; Sat, 2 Nov 2019 11:56:45 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1572695806; x=1575287806; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=oA/a88fwcV08BKnFJSj7kxdaLn4FPgrGtcMFFqQ6oxM=; b=X2kE9rQjsIkew/kAcWMoWj/TYEN65qxh3zz8PhWIu7OFPntOAmw5QN9RX7+NoyqH9miGjJGtV/LNjd5eaJ/TzWWnZGnTUTQ53h0qHkfxid5/RG+z07edVVWETlzEOMwoXJquo1Wt1xcUhY7i/grApGfh2Z6+/xG7f7awi6iVy+E= X-Thread-Info: NDI1MC4xMi4xYzcwMDAwMDFiYzU0ZDMuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r3.us-east-2.aws.in.socketlabs.com (r3.us-east-2.aws.in.socketlabs.com [142.0.189.3]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 2 Nov 2019 07:56:37 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r3.us-east-2.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 2 Nov 2019 07:56:36 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQs1D-000P6F-3Y; Sat, 02 Nov 2019 11:56:35 +0000 Date: Sat, 2 Nov 2019 11:56:34 +0000 From: Steve O'Hara-Smith To: Erwan David Cc: FreeBSD Subject: Re: freebsd 11.2-p14 end of life Message-Id: <20191102115634.c3dda1ca65440a4dac3fda75@sohara.org> In-Reply-To: <28787a08-ee8e-c025-4f5c-d044a827d7e5@rail.eu.org> References: <28787a08-ee8e-c025-4f5c-d044a827d7e5@rail.eu.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 474yG55kWnz4Y6v X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=X2kE9rQj; dmarc=none; spf=pass (mx1.freebsd.org: domain of 4250.10.freebsd-questions=freebsd.org@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.10.freebsd-questions=freebsd.org@email-od.com X-Spamd-Result: default: False [-1.76 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.940,0]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; FORGED_SENDER_VERP_SRS(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[198.176.0.142.list.dnswl.org : 127.0.15.0]; ENVFROM_VERP(0.00)[]; IP_SCORE(0.18)[ip: (-0.43), ipnet: 142.0.176.0/22(0.79), asn: 7381(0.59), country: US(-0.05)]; FORGED_SENDER(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 11:56:47 -0000 On Sat, 2 Nov 2019 12:36:28 +0100 Erwan David wrote: > Each night freebsd-update cron sens to me the message > > No updates needed to update system to 11.2-RELEASE-p15. > > WARNING: FreeBSD 11.2-RELEASE-p14 HAS PASSED ITS END-OF-LIFE DATE. > Any security issues discovered after Thu Oct 31 01:00:00 CET 2019 > will not have been corrected. > > > > What should I do (yes I am running 11.2-RELEASE-p15 Upgrade to 11.3-RELEASE. -- Steve O'Hara-Smith From owner-freebsd-questions@freebsd.org Sat Nov 2 15:31:41 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 320521A9454 for ; Sat, 2 Nov 2019 15:31:41 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47532370JBz3Kht for ; Sat, 2 Nov 2019 15:31:39 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 114F8408 for ; Sat, 2 Nov 2019 11:31:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 02 Nov 2019 11:31:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:mime-version:content-type; s= fm1; bh=zhkK/3wTJEhJq1Btx9ss/Ubj/FsKODLJ+uP7IRyuHbw=; b=VNu/dcZF KELqA8js3x99x82QI7+mWHRx/BTOcaD1ZNlJ5SiKDd4pSgxjGG85TzcyIob8BYAc 179huXm1axHHXLbg25UcFsOEmYu6AZeVaW9oGoA9niQdAgVYrIOD4rJcwmnKPlgE PtfhmyYe9M4LdZOpqBLrykUeKB3iDvtKcCqEEKD7cCsZ5tW6OtCd07untGCzHKqS MqYNtmFgQbRkwk6wD6hvsxNi9RPpFRNJP9QRH0KucB4ZA/3Lel0EBHwEpTIJl/AP p4y5gtNfuu4Alnnp6aeLV6MyqbYVKEPMRlEPzKgSzHKLjb0e8E4f0ioof/MblEda OnaM/yVjs+44IA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=zhkK/3wTJEhJq1Btx9ss/Ubj/FsKO DLJ+uP7IRyuHbw=; b=emTqFZ8dbA3HCSy9zVsJLzy4BpayYrzsJLzfHKO21KYNn PlSdzjA6h7jkg93a/boiqqjcBBhwMlygdfUQCfljWLtJ00V0bwfYiCqDCslyhGWL hnJwDCLq1FZZ5OID9cz2d/Tcuka0uuVpvnLKhNKHLRhafCUp3Xe9N4ju/njuc6tk 0ONl4nENs8bRuDPFVDfC1wmokTzDobvKTu3fl6NAKqOReQZkowVcm5qGU7qBs1cx 5oX12jls08hlBJfzST8vTbmY7Lf87se467GDrS0fVT8fajS+6qYqZe13cg3LLnK+ T5tuGncjpmj4+2HORdwG+X0ehKzkHJA7sZ44E95pg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddtledgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtuggfsehgtderre dtredvnecuhfhrohhmpehtvggthhdqlhhishhtshcuoehtvggthhdqlhhishhtshesiiih gihsthdrnhgvtheqnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgnecukfhppeekvd drjedtrdeluddrleelnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtvggthhdqlhhishht shesiiihgihsthdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from bastion.zyxst.net (bastion.zyxst.net [82.70.91.99]) by mail.messagingengine.com (Postfix) with ESMTPA id 22A763060061 for ; Sat, 2 Nov 2019 11:31:37 -0400 (EDT) Date: Sat, 2 Nov 2019 15:31:07 +0000 From: tech-lists To: freebsd-questions@freebsd.org Subject: freebsd-update not working as expected Message-ID: <20191102153107.GA93921@bastion.zyxst.net> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47532370JBz3Kht X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm1 header.b=VNu/dcZF; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=emTqFZ8d; dmarc=none; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 64.147.123.19 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-8.21 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm1,messagingengine.com:s=fm1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.19]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zyxst.net]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; SIGNED_PGP(-2.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[19.123.147.64.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-3.51)[ip: (-9.89), ipnet: 64.147.123.0/24(-4.91), asn: 11403(-2.68), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 15:31:41 -0000 --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, root@[REDACTED]:~ # uname -a FreeBSD [REDACTED] 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC amd64 root@[REDACTED]:~ # freebsd-update fetch Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 12.0-RELEASE from update1.freebsd.org... do= ne. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. No updates needed to update system to 12.0-RELEASE-p11. AIUI, there is a -p11 otherwise why the last line, or am I misunderstanding (entirely possible) thanks, --=20 J. --zhXaljGHf11kAtnf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl29oU0ACgkQs8o7QhFz NAUENA/8CFhG8W9K1dxVvNPqYb+REPfYBHZ2UQUTrJREaQHNVDFxWFJ7UcTPzWfd 2OoY3w0GApctRxhOtXiDMncIja/B+NJp9UqrwXKnKt6HIKNvShVq7SwX5yngHAWA Forhcdgu0JGIXg1WpzH9crkGwu8klg7UuRPxCZH4n7tiwsqbiVNTfeoKCx3ou5fo 9ZL4YRXSopog0lc16tRaRYYxMI9Wo9K+JjEh8XV0L+1hj5XXp27Wndrbz+mf5ZTA proLvGj/1+LmE0v81OKTHZ9OXF2cd7q7e0Kw5dyuCUGvi0YoDrgArZsbP63e7+T+ Z3Z0gfULEMAiA6gT1pWHRxcJO7gaJr8Lks9FgF7xLjUStAjHpzqmbhVmRn6A6tnm okpC0QwZVokNo3uhMd35/oS0BVICHo3pbn9WN5dT9tS0z78CljD7himC81CMHASd e8mubUpfGwQpnzTCykMS9GUfgZv8QmM4IfsIfsKY4XfzljmoNkm4HoJg9Ko1dYkz nJ7s30rylKJg6pDA3evBRJnohkkzvwVSz1eps2xjSW98J9d0JnSvJfirRPhKWYyY rH0NphHeUa/qqW2bsE4N7dL/2n6/keiB0eNX8NM9GKBMlOJK4z6cF8GYBkNl8I/C dFi+ihv5JG7IwTMsCUQXk/RpzQc3PZf1/SmNNHlBp6XcRpJeg2I= =muhc -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf-- From owner-freebsd-questions@freebsd.org Sat Nov 2 16:15:31 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 484881AA9D0 for ; Sat, 2 Nov 2019 16:15:31 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47540f2LC6z3Myg for ; Sat, 2 Nov 2019 16:15:30 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1572711330; x=1575303330; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=a2JO4qIPDQgbWw9njsU/vKrPVH1NQRU7l9OhW3zuSWU=; b=lygKmNqQsEVGDOqa8LUBWjYIJezou87ZEzy6nv2wdsKevpA/E+/VNE5kx60drwodOf9RuWrnGPJXbbQhrAZBzN8MU84X+yx48Ca4K0MHCOlAaR0na73dDCzXSH+gd5CeVzzFBUvxSBt/G3L7V078fVJzft/xs8i2hbue6c5nxF4= X-Thread-Info: NDI1MC4xMi4xYzcwMDAwMDFjM2U5NmYuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r3.sg.in.socketlabs.com (r3.sg.in.socketlabs.com [142.0.179.13]) by mxsg2.email-od.com with ESMTP; Sat, 2 Nov 2019 12:15:28 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r3.sg.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 2 Nov 2019 12:15:27 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iQw3h-0001k5-Gr; Sat, 02 Nov 2019 16:15:25 +0000 Date: Sat, 2 Nov 2019 16:15:25 +0000 From: Steve O'Hara-Smith To: tech-lists Cc: freebsd-questions@freebsd.org Subject: Re: freebsd-update not working as expected Message-Id: <20191102161525.59c4a1cd0c6e684b7753a390@sohara.org> In-Reply-To: <20191102153107.GA93921@bastion.zyxst.net> References: <20191102153107.GA93921@bastion.zyxst.net> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47540f2LC6z3Myg X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=lygKmNqQ; dmarc=none; spf=pass (mx1.freebsd.org: domain of 4250.10.freebsd-questions=freebsd.org@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.10.freebsd-questions=freebsd.org@email-od.com X-Spamd-Result: default: False [-1.77 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.946,0]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; FORGED_SENDER_VERP_SRS(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[198.176.0.142.list.dnswl.org : 127.0.15.0]; ENVFROM_VERP(0.00)[]; IP_SCORE(0.18)[ip: (-0.42), ipnet: 142.0.176.0/22(0.78), asn: 7381(0.58), country: US(-0.05)]; FORGED_SENDER(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 16:15:31 -0000 On Sat, 2 Nov 2019 15:31:07 +0000 tech-lists wrote: > No updates needed to update system to 12.0-RELEASE-p11. > > AIUI, there is a -p11 otherwise why the last line, or am I > misunderstanding (entirely possible) You are almost certainly running it - 12.0p11 was just timezone updates over p10 so no kernel update which means your unchanged kernel will still report p10 (which is what uname sees), freebsd-version will report the userland version or optionally the kernel version viz: $ uname -a FreeBSD steve 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC amd64 $ freebsd-version 12.0-RELEASE-p11 freebsd-version -k 12.0-RELEASE-p10 -- Steve O'Hara-Smith From owner-freebsd-questions@freebsd.org Sat Nov 2 18:57:29 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 453E81AFEFE for ; Sat, 2 Nov 2019 18:57:29 +0000 (UTC) (envelope-from kh@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4757bX5Mh5z43rd for ; Sat, 2 Nov 2019 18:57:28 +0000 (UTC) (envelope-from kh@panix.com) Received: from rain.home (pool-72-74-69-77.bstnma.fios.verizon.net [72.74.69.77]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4757bW1kRbz1w8j for ; Sat, 2 Nov 2019 14:57:27 -0400 (EDT) Subject: Re: grep for ascii nul To: freebsd-questions@freebsd.org References: <20191101092716.GA67658@admin.sibptus.ru> <63808.1572638827@segfault.tristatelogic.com> <20191102064505.GA98558@admin.sibptus.ru> From: Kurt Hackenberg Message-ID: <7775e7f8-89ba-d057-67d3-cdcb92d2bbb4@panix.com> Date: Sat, 2 Nov 2019 14:57:14 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20191102064505.GA98558@admin.sibptus.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4757bX5Mh5z43rd X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kh@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=kh@panix.com X-Spamd-Result: default: False [-5.59 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:166.84.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[panix.com]; RCVD_IN_DNSWL_MED(-0.20)[89.1.84.166.list.dnswl.org : 127.0.5.2]; IP_SCORE(-3.09)[ip: (-9.07), ipnet: 166.84.0.0/16(-3.51), asn: 2033(-2.81), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 18:57:29 -0000 On 2019-11-02 02:45, Victor Sudakov wrote: > I'm a big fan of awk, awk is in the base system and should be able to do > it, right? > > $ hd trees.txt > 00000000 66 69 72 0a 6f 61 6b 0a 63 65 64 00 61 72 0a 62 |fir.oak.ced.ar.b| > 00000010 69 72 63 68 0a 70 61 6c 6d 0a |irch.palm.| > 0000001a > $ > > Note the ascii null embedded in the word "cedar" > > $ awk '/\x66\x69/{print $0}' trees.txt > fir > > So far so good. But with the ascii nul it behaves in an unexpected way: > > $ awk '/\x00/{print $0}' trees.txt > fir > oak > ced > birch > palm > $ Looks like it has the same problem that I guess grep does: it takes that NUL as the end of a C string, so the regexp becomes a null string (zero length), which matches everything. From owner-freebsd-questions@freebsd.org Sat Nov 2 21:14:56 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9504B1656E1 for ; Sat, 2 Nov 2019 21:14:56 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 475Bf711h7z4DBS for ; Sat, 2 Nov 2019 21:14:54 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 53BB34E684; Sat, 2 Nov 2019 14:14:48 -0700 (PDT) From: "Ronald F. Guilmette" To: freebsd-questions@freebsd.org Subject: sort is broken MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7667.1572729288.1@segfault.tristatelogic.com> Date: Sat, 02 Nov 2019 14:14:48 -0700 Message-ID: <7668.1572729288@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 475Bf711h7z4DBS X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-5.17 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[tristatelogic.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; IP_SCORE(-2.87)[ip: (-7.55), ipnet: 69.62.128.0/17(-3.77), asn: 14051(-3.00), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 21:14:56 -0000 Not a question, just an expression of grief and deep dismay. It is a sad day when even very fundamental tools, used in billions of scripts, such as /usr/bin/sort turn up broken. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241679 Regards, rfg P.S. I just checked and the problem does not afflict the sort utility provided with Ubuntu Linux. From owner-freebsd-questions@freebsd.org Sat Nov 2 22:05:38 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 75F701675FE for ; Sat, 2 Nov 2019 22:05:38 +0000 (UTC) (envelope-from freebsd.mtoth@queldor.net) Received: from queldor.net (mail.queldor.net [209.6.82.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 475Cmd3Vqnz4Gyh for ; Sat, 2 Nov 2019 22:05:37 +0000 (UTC) (envelope-from freebsd.mtoth@queldor.net) Received: from c-73-159-162-16.hsd1.ma.comcast.net ([73.159.162.16] helo=michaels-MacBook-Pro.local) by queldor.net with esmtpa (Exim 4.92.2 (FreeBSD)) (envelope-from ) id 1iR1Wa-0001zY-35; Sat, 02 Nov 2019 18:05:36 -0400 Subject: Re: sort is broken To: freebsd-questions@freebsd.org, "Ronald F. Guilmette" References: <7668.1572729288@segfault.tristatelogic.com> From: Michael Toth Message-ID: Date: Sat, 2 Nov 2019 18:05:35 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <7668.1572729288@segfault.tristatelogic.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Trace: U2FsdGVkX18DMEGwxSA0UOHM9Omw3vkTdRKQHBp9HWTc6qXKA+jzx7HSodVGSrkZdvy+1mc1RiE= X-Rspamd-Queue-Id: 475Cmd3Vqnz4Gyh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd.mtoth@queldor.net designates 209.6.82.251 as permitted sender) smtp.mailfrom=freebsd.mtoth@queldor.net X-Spamd-Result: default: False [-2.31 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[16.162.159.73.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[queldor.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; IP_SCORE(-0.01)[country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6079, ipnet:209.6.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 22:05:38 -0000 On 11/2/19 5:14 PM, Ronald F. Guilmette wrote: > Not a question, just an expression of grief and deep dismay. > > It is a sad day when even very fundamental tools, used in billions > of scripts, such as /usr/bin/sort turn up broken. > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241679 > > Regards, > rfg > root@q4:/ # sort a zürich.email root@q4:/ # sort < a zürich.email root@q4:/ # uname -a FreeBSD q4.queldor.net 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC amd64 root@q4:/ # cat a zürich.email root@q4:/ # Seems to be fine on my 12.0 > > P.S. I just checked and the problem does not afflict the sort > utility provided with Ubuntu Linux. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-questions@freebsd.org Sat Nov 2 22:11:39 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 35C78167992 for ; Sat, 2 Nov 2019 22:11:39 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 475CvZ3XYCz4HZt for ; Sat, 2 Nov 2019 22:11:37 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 6BCC84E684; Sat, 2 Nov 2019 15:11:37 -0700 (PDT) From: "Ronald F. Guilmette" To: Michael Toth cc: freebsd-questions@freebsd.org Subject: Re: sort is broken In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <8220.1572732697.1@segfault.tristatelogic.com> Content-Transfer-Encoding: quoted-printable Date: Sat, 02 Nov 2019 15:11:37 -0700 Message-ID: <8221.1572732697@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 475CvZ3XYCz4HZt X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-5.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[tristatelogic.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; IP_SCORE(-2.89)[ip: (-7.59), ipnet: 69.62.128.0/17(-3.79), asn: 14051(-3.02), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 22:11:39 -0000 In message , you wrote: > > > >On 11/2/19 5:14 PM, Ronald F. Guilmette wrote: >> Not a question, just an expression of grief and deep dismay. >> = >> It is a sad day when even very fundamental tools, used in billions >> of scripts, such as /usr/bin/sort turn up broken. >> = >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241679 >> = >> Regards, >> rfg >> = > >root@q4:/ # sort a >z=C3=BCrich.email >root@q4:/ # sort < a >z=C3=BCrich.email >root@q4:/ # uname -a >FreeBSD q4.queldor.net 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC = >amd64 >root@q4:/ # cat a >z=C3=BCrich.email >root@q4:/ # > >Seems to be fine on my 12.0 Well, I guess it's just me then... % uname -a FreeBSD segfault.tristatelogic.com 12.0-RELEASE FreeBSD 12.0-RELEASE r3416= 66 GENERIC amd64 % sort --version 2.3-FreeBSD What version of sort do you have? From owner-freebsd-questions@freebsd.org Sat Nov 2 22:34:47 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 22D2A17880A for ; Sat, 2 Nov 2019 22:34:47 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from vie01a-dmta-at50-1.mx.upcmail.net (vie01a-dmta-at50-1.mx.upcmail.net [62.179.121.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 475DQG3mc4z4Jcg for ; Sat, 2 Nov 2019 22:34:46 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from [172.31.216.41] (helo=vie01a-pemc-psmtp-at50) by vie01a-dmta-at50.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1iR1tJ-0004Xw-F0 for freebsd-questions@freebsd.org; Sat, 02 Nov 2019 23:29:05 +0100 Received: from x61.lan ([85.126.97.210]) by vie01a-pemc-psmtp-at50 with SMTP @ mailcloud.upcmail.net id MAV42100v4YLlkt0BAV5LC; Sat, 02 Nov 2019 23:29:05 +0100 X-SourceIP: 85.126.97.210 X-CNFS-Analysis: v=2.2 cv=O6RJhF1W c=1 sm=2 tr=0 cx=a_idp_f a=/Ac8Q0O/YFE5LOLfUiYZVw==:117 a=/Ac8Q0O/YFE5LOLfUiYZVw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=MzsqzRwlAAAA:8 a=6I5d2MoRAAAA:8 a=hKNOJcEOAAAA:8 a=Lx8Bpjh-HcW9fOScTxcA:9 a=QEXdDO2ut3YA:10 a=S6bYQHMK6qnkfE3nmWQM:22 a=IjZwj45LgO3ly-622nXo:22 a=XzhKbxqxvhA9PZRCS47t:22 From: "Dr. Nikolaus Klepp" To: freebsd-questions@freebsd.org Subject: Re: sort is broken Date: Sat, 2 Nov 2019 23:29:10 +0100 User-Agent: KMail/1.9.10 References: <8221.1572732697@segfault.tristatelogic.com> In-Reply-To: <8221.1572732697@segfault.tristatelogic.com> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201911022329.10843.dr.klepp@gmx.at> X-Rspamd-Queue-Id: 475DQG3mc4z4Jcg X-Spamd-Bar: +++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of dr.klepp@gmx.at does not designate 62.179.121.136 as permitted sender) smtp.mailfrom=dr.klepp@gmx.at X-Spamd-Result: default: False [7.79 / 15.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmx.at]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[gmx.at]; NEURAL_SPAM_MEDIUM(0.99)[0.993,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; MID_CONTAINS_FROM(1.00)[]; FROM_NAME_HAS_TITLE(1.00)[dr]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ipnet: 62.179.0.0/17(1.47), asn: 6830(3.75), country: AT(-0.10)]; FORGED_MUA_KMAIL_MSGID(3.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[136.121.179.62.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.at]; ASN(0.00)[asn:6830, ipnet:62.179.0.0/17, country:AT]; MIME_TRACE(0.00)[0:+]; GREYLIST(0.00)[pass,body]; FROM_EQ_ENVFROM(0.00)[] X-Spam: Yes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 22:34:47 -0000 Anno domini 2019 Sat, 02 Nov 15:11:37 -0700 Ronald F. Guilmette scripsit: > In message , you wrote: >=20 > > > > > > > >On 11/2/19 5:14 PM, Ronald F. Guilmette wrote: > >> Not a question, just an expression of grief and deep dismay. > >>=20 > >> It is a sad day when even very fundamental tools, used in billions > >> of scripts, such as /usr/bin/sort turn up broken. > >>=20 > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241679 > >>=20 > >> Regards, > >> rfg > >>=20 > > > >root@q4:/ # sort a > >z=C3=BCrich.email > >root@q4:/ # sort < a > >z=C3=BCrich.email > >root@q4:/ # uname -a > >FreeBSD q4.queldor.net 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC=20 > >amd64 > >root@q4:/ # cat a > >z=C3=BCrich.email > >root@q4:/ # > > > >Seems to be fine on my 12.0 >=20 > Well, I guess it's just me then... >=20 > % uname -a > FreeBSD segfault.tristatelogic.com 12.0-RELEASE FreeBSD 12.0-RELEASE r341= 666 GENERIC amd64 > % sort --version > 2.3-FreeBSD >=20 >=20 > What version of sort do you have? I remember that this sort of thing is around since at least 11.0. The probl= em occurs, when you have UFT-8 encoding set as default, but the input data = is iso 8859-1. Some characters of iso 8859-1 (=C3=A4=C3=B6=C3=BC...) are no= t valid in UTF-8. Nik > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >=20 =2D-=20 Please do not email me anything that you are not comfortable also sharing w= ith the NSA, CIA ... From owner-freebsd-questions@freebsd.org Sat Nov 2 23:35:39 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EB8DE17A750 for ; Sat, 2 Nov 2019 23:35:39 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 475FmV6jBGz4M5K for ; Sat, 2 Nov 2019 23:35:38 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 59187 invoked from network); 2 Nov 2019 23:35:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=e72d.5dbe12c3.k1911; i=printer-iecc.com@submit.iecc.com; bh=+nBxngT48eNzQwjRkEbJFzvQhyuRoZSnJqSgMjRrezM=; b=jeFnF+gyRUjPcK4h8ooy++HkLqBb9lZrqh7mhlPMEFQ05WAD69c0Dqm2w7oqtnrjfx6wG1T+GMUkcR4rmQJ/5W7ZJT9NwJEynTB9LdLfdKeR95pmUg/UbbICZuMXrnC84rFufUO2HqZP4IbmkFe5kkMPG0pFDbLciBgB/e8j6Hrg8TeXlgUOsN4eLklCUaC+qFh3zEOVILgIj0ZadvnGCKc8i10I7u0NRiaYLgbyMc37oolCCbNp+gjcol8ST9KY Received: from ary.local ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPSA (TLS1.2 ECDHE-RSA AES-256-GCM AEAD, printer@iecc.com) via TCP6; 02 Nov 2019 23:35:30 -0000 Received: by ary.local (Postfix, from userid 501) id CFE66E4728E; Sat, 2 Nov 2019 19:35:28 -0400 (EDT) Date: 2 Nov 2019 19:35:28 -0400 Message-Id: <20191102233528.CFE66E4728E@ary.local> From: "John Levine" To: freebsd-questions@freebsd.org Cc: rfg@tristatelogic.com Subject: Re: sort is broken In-Reply-To: <7668.1572729288@segfault.tristatelogic.com> Organization: Taughannock Networks X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-Rspamd-Queue-Id: 475FmV6jBGz4M5K X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iecc.com header.s=e72d.5dbe12c3.k1911 header.b=jeFnF+gy; dmarc=pass (policy=none) header.from=iecc.com; spf=pass (mx1.freebsd.org: domain of johnl@iecc.com designates 2001:470:1f07:1126:0:43:6f73:7461 as permitted sender) smtp.mailfrom=johnl@iecc.com X-Spamd-Result: default: False [-6.13 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[iecc.com:s=e72d.5dbe12c3.k1911]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[iecc.com.dwl.dnswl.org : 127.0.4.2]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f07:1126::/64]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[iecc.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[iecc.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.63)[ipnet: 2001:470::/32(-4.61), asn: 6939(-3.47), country: US(-0.05)]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2019 23:35:40 -0000 In article <7668.1572729288@segfault.tristatelogic.com> you write: >Not a question, just an expression of grief and deep dismay. > >It is a sad day when even very fundamental tools, used in billions >of scripts, such as /usr/bin/sort turn up broken. > >https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241679 I tried it on 11.3 and 12.0 and it works fine. What's in your environment, particularly what's LC_ALL set to? R's, John