From nobody Mon Dec 4 18:24:30 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SkTXn45ksz53WG2 for ; Mon, 4 Dec 2023 16:25:13 +0000 (UTC) (envelope-from dr3mro@gmail.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SkTXm6S4Gz3CPf for ; Mon, 4 Dec 2023 16:25:12 +0000 (UTC) (envelope-from dr3mro@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=U2Mirqdp; spf=pass (mx1.freebsd.org: domain of dr3mro@gmail.com designates 2a00:1450:4864:20::536 as permitted sender) smtp.mailfrom=dr3mro@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-54bfa9b3ffaso5985730a12.1 for ; Mon, 04 Dec 2023 08:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701707110; x=1702311910; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=+mcur68Q+92EY/+9M+gsOouoBb96qPh3LlmSPQOAHNw=; b=U2MirqdphT6NqGVtWPnA7A37zv/L6naemBaSLJhuf0innnXNa1E+7t/BB6XKTvbSX/ RYC4O7bNDzPVIAEA670udJqVWh4Jo6gSp9MRHDL70YilkU0sLKyLX1bu2crBmfJv0ZnO dyvxo+DDuwV+JbtnWsLe7O7Cg0r96OTnrt1oPiFv7GdE0HSYiZoMV2o/jrQxejq/s/9N l2JCsTrkTODETtjOU1Re6dRQ07HgQPf4+VnaP1gWfs/S3Z4cEmjU62nkGO1yJ2E3dj5J mMLGA654SecsaCCucyCoWZpYBoHsBt3R/tDWKnDjI8BNgG8VeqXxmemPlmXRWxOfjDC0 NpsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701707110; x=1702311910; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+mcur68Q+92EY/+9M+gsOouoBb96qPh3LlmSPQOAHNw=; b=SbxvCwMRvoMgFcs1d3LEyW0dSsQ0y4oa357xoBOuDlN+Q5NOBB087pUh/OgYgSYDAG aNBKP9aAUgFQb0mlDtxR4MvRw1PeWVxpEeearZ2SK9KUJxF2RghX/9BRme5K8SN5/Yb5 42tYeijufY546GHMzqeAZz8CoI0Y9jwG5HvYzkBerT/Z6UE8QieEZCN0nqW6evB8z8Vh o5EITpdScDkRiGW+ov1Zn+guhgRz9rGuyt3tiFMh8NlzzwnsqVmxOfMcg9lXzC1ptH5H FRo+b7nvFp40DvA6ra+XhVruRC+SRVh8CNa9QVvttm8/1H2DnzsnyuRf6kTfGmkl+m3D V98A== X-Gm-Message-State: AOJu0Yyv6L5YdicKmAjarxlZbnWphnl5fUgsd5Prnf+ZjMAde0E2yM9I ejxSc+PoLinb3x+FnS8fngxZOXva+cztARlxTalPxUIdMP4= X-Google-Smtp-Source: AGHT+IEF4T6LPz7sQLKRGq6qd0FlBk7kv6ZBxgFeFoCLqHZOZf5v+2Hk9MdoG4FrC+p7ML3hDgZgwzvgMMDebgK9fj8= X-Received: by 2002:a17:906:3f0a:b0:a19:a1ba:8cb1 with SMTP id c10-20020a1709063f0a00b00a19a1ba8cb1mr3185198ejj.79.1701707110283; Mon, 04 Dec 2023 08:25:10 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: "Dr. Amr Osman" Date: Mon, 4 Dec 2023 20:24:30 +0200 Message-ID: Subject: devd lid close event To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-1.57 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_NAME_HAS_TITLE(1.00)[dr]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_SPAM_SHORT(0.43)[0.434]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::536:from]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org] X-Rspamd-Queue-Id: 4SkTXm6S4Gz3CPf X-Spamd-Bar: - Hello, I have freeBSD 14 on Thinkpad x270, I just did do a fresh install and installed dwm and slock the issue is I want to make laptop lock screen whenever I close the lid here is my /usr/local/etc/devd/lid.conf ``` notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; match "notify" "0x00"; action "/usr/local/bin/slock"; }; ``` here is my /var/run/devd.pipe when I close the lid ``` !system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x00 !system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x00 !system=ACPI subsystem=Suspend type=\ notify=0x03 !system=IFNET subsystem=wlan0 type=LINK_DOWN ``` what am I doing wrong? Thank You Dr. Amr Osman From nobody Mon Dec 4 17:46:24 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SkWM31xJsz53c2p for ; Mon, 4 Dec 2023 17:46:55 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SkWM26Nfcz3KGR for ; Mon, 4 Dec 2023 17:46:54 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Authentication-Results: mx1.freebsd.org; none Date: Mon, 04 Dec 2023 18:46:24 +0100 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: "Dr. Amr Osman" Cc: freebsd-hackers@freebsd.org Subject: Re: devd lid close event Message-ID: <20231204174624.ZCilZWAd@steffen%sdaoden.eu> In-Reply-To: References: User-Agent: s-nail v14.9.24-573-g7d89a8210a OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15987, ipnet:217.144.128.0/20, country:DE] X-Rspamd-Queue-Id: 4SkWM26Nfcz3KGR List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Dr. Amr Osman wrote in : |Hello, |I have freeBSD 14 on Thinkpad x270, |I just did do a fresh install and installed dwm and slock |the issue is I want to make laptop lock screen whenever I close the lid | |here is my /usr/local/etc/devd/lid.conf |``` |notify 10 { | match "system" "ACPI"; | match "subsystem" "Lid"; | match "notify" "0x00"; | action "/usr/local/bin/slock"; |}; | |``` |here is my /var/run/devd.pipe when I close the lid | |``` |!system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x00 !system=ACPI |subsystem=Lid type=\_SB_.LID_ notify=0x00 !system=ACPI |subsystem=Suspend type=\ notify=0x03 !system=IFNET subsystem=wlan0 |type=LINK_DOWN |``` | |what am I doing wrong? At minimum slock needs the $DISPLAY to connect to, eg :0. devd does not run within the X session, so no chance. Also the above runs slock as root, not the user who actually owns the X display. For the very same use case, on linux, i use if command -v X >/dev/null 2>&1 && command -v slock >/dev/null 2>&1; then had_z= for p in $(pgrep X); do ^ use pgrep to find all X instances uid=$(awk '/^Uid:/{print $2}' < /proc/$p/status) disp=$(sed -Ee 's/^.*DISPLAY=:([[:digit:]]+).*$/\1/' < /proc/$p/environ) [ -z "$disp" ] && disp=$(xargs -0 printf '%s\n' < /proc/$p/cmdline | awk '/^:[[:digit:]]+/{sub(":", ""); print}') ^ unfortunately non-portable approach to find out user id and actual display of _this_ X instance if [ -z "$disp" ]; then [ -n "$had_z" ] && continue had_z=y disp=0 elif [ $disp = 0 ]; then [ -n "$had_z" ] && continue had_z=y fi act "DISPLAY=:$disp $SUPER -u $uid slock /dev/null 2>&1 &" ^ and here we lock that display for the given user. $SUPER is doas(1) in this case, but was sudo(1) in the past (and could be super(1) like ~20 years ago if that could be find anywhere on the internet). done fi |Thank You |Dr. Amr Osman Ciao. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | | Only in December: lightful Dubai COP28 Narendra Modi quote: | A small part of humanity has ruthlessly exploited nature. | But the entire humanity is bearing the cost of it, | especially the inhabitants of the Global South. | The selfishness of a few will lead the world into darkness, | not just for themselves but for the entire world. From nobody Mon Dec 4 19:24:11 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SkYWM1XgXz52jpF for ; Mon, 4 Dec 2023 19:24:15 +0000 (UTC) (envelope-from freebsd@ny-central.org) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2060.outbound.protection.outlook.com [40.107.6.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SkYWL6190z3Yf3 for ; Mon, 4 Dec 2023 19:24:14 +0000 (UTC) (envelope-from freebsd@ny-central.org) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C4i3lATnt9dO/KJJCDkCHwZn8DnRl1q3xTA3V8h5YqPybEgLQXHVhwcLvw6LpYLeu1CH9sA21LtjJhc3soJm3AL9tm68dgefqws2SLI6eJwRvR2nuytAYeUOJWxUEfFM/Yxp1YHjn4MKiQ0K8esPT/ZPkqHPdJRgG9nHxdjV0iNQ6Aqjc3TjkcnhKWXXxFhRERTZblHZc/XY5jhrSv1+Ci58IpsQFgDqCkjs8C+61zvjx6OWHVcBcbZF7ctpBIiUmMFSk4AqZxKlpdAI+zFLy3JkaFH1EBsIQQr0nhu6AOjvEW1G5a8cwsKUU+mh+7041hRXRDFSLvx2BBGYZus1NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RNyhtZe0y+6LQaGHbm9/XrqZ6A8HzhsYXXGnIQ/T1Ng=; b=lrO6VagG2EOieZjyd/W4ZBAEKEx5HZpro1saS2A9mgOw4Wt3ZB1kxEJK40V0rDeEgsruOcz8EhedXjBatVvTEEfRfSdJCI69EjwKsBSsq7dwH4y29jWvX7MuZOFZeZxSHeNCTn5W6AtQgYxLg3qlXWw8EC/Ne8HHz8t0H5wuOtY4OXsIGPH006IinyQ+/0SxnhY5+rPz/y9EeN5YJIrygGasi6ULG3nkBxBBYxVX6VtcYY1NjoWdhTzxWrLfQgoMNr7AsxYg41dcZiXLxF+0mt3AROvzltyUAMwhM9GR1idEOq+XYX6iYEq6rx7XLxjX/Wu9mwT369vvFjZ1kWB71w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ny-central.org; dmarc=pass action=none header.from=ny-central.org; dkim=pass header.d=ny-central.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ny-central.org; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RNyhtZe0y+6LQaGHbm9/XrqZ6A8HzhsYXXGnIQ/T1Ng=; b=Ih90Wcbt92hCtRKASEB5pvvFndt8k2LX9Z8nc/MVWEB2ER6Eq+bg0bf85zw03s5TwQ6UpY5ciTxtIEZ0xjVZaTrONv8ZSOwFigctXqc+TYKXBhNOobkyQ3hroeobAymHfDhZMGv+HJ0lkY805e93koFakFBRXzQ9meVeLnHY4b4= Received: from PAXPR08MB6766.eurprd08.prod.outlook.com (2603:10a6:102:136::18) by AS4PR08MB7832.eurprd08.prod.outlook.com (2603:10a6:20b:51c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 19:24:11 +0000 Received: from PAXPR08MB6766.eurprd08.prod.outlook.com ([fe80::9b1b:b43b:6d6b:b136]) by PAXPR08MB6766.eurprd08.prod.outlook.com ([fe80::9b1b:b43b:6d6b:b136%4]) with mapi id 15.20.7046.033; Mon, 4 Dec 2023 19:24:11 +0000 From: Christian Moerz To: "Dr. Amr Osman" , "freebsd-hackers@freebsd.org" Subject: Re: devd lid close event Thread-Topic: devd lid close event Thread-Index: AQHaJs56CFGk81zBfUKexxBvyZKo8rCZgN2A Date: Mon, 4 Dec 2023 19:24:11 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAXPR08MB6766:EE_|AS4PR08MB7832:EE_ x-ms-office365-filtering-correlation-id: ea5d917b-1654-4ce5-2e1f-08dbf4fe982a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2l+V4et1IylYlT/NyibNaiAZqPI9zFnItLAuzrWx+QST2J8KPMuFL75sxUINatcEX39xLOMTtlGZq4AOUsUYwPbrBYN251Y6z0yPSxeOVxcLicBKAfJBwUavQwFVnnMDwV/2LibV2Y7FJsRKSXSzyIQPHaep+zgCWfXXtSoWqY3Or/riZHCdTBkvxSUpXw/BdJjpSRn44PJVsyRxdwHOZ607md0wpbkZw7UsZrLqDcoNtL8GYkWRg9vEoNvfqvO79nxaLFufkQZzYIFWNsKbGxjvkNNqEMoISlaxHwiCdm4YQ5sczIQsY5cbWwkZcq3WvSFuusZX9ZAAh73SAyjHcuSvXAVVLklEI3rWRaKo0G528ldZN4lTaY1b73r61GJl0Na8kXsFrd042mMjRG7FV69b6hBPe6L3oaY8cu2Xl4SrQ4l6bEZ8s3C2uOfaLfMqviUo5d3cerTlkzXEn9U0/71kmPEpgfF7ZERarsI01oP/tAQ8mC1D4mZ3rMeFxVrpUJRccSPjOgKvpJcuTXsB7KVqnEWOxnNN9ln/w3jo3Hb53dXc04KIPhL3aM6/47So3SXLr60UFz12XJsvi8Avvjr70C2+FBDH6R52AZgYgCwRdfDP/WSJmmSx6Uxi9Chh x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR08MB6766.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39830400003)(346002)(366004)(136003)(396003)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(478600001)(26005)(83380400001)(7696005)(71200400001)(6506007)(9686003)(53546011)(316002)(110136005)(66476007)(66446008)(64756008)(76116006)(66946007)(66556008)(3480700007)(122000001)(38100700002)(55016003)(5660300002)(52536014)(86362001)(8936002)(8676002)(2906002)(41300700001)(33656002)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?E0IxJnIWHLZZm7G8cl+LivCElTP0artOiXnZU1tPjaHXe7YCOzwGp6nVIGHP?= =?us-ascii?Q?SZMzyzxONbTiZmkVC03n25OlxdM336csMhDLP/yud9f47YeCZbArK6jCUdcq?= =?us-ascii?Q?VadYb84kMI9SFyLzkrem/uPHIhsCLUDrdcc39R1fZldccO8ss9U7NFjPk0g0?= =?us-ascii?Q?gNy5h+ddcCfl1xg9Ff5yH4KH1Y7/v52ZkaJONCKMmECKJu39iL8qu6te2Qed?= =?us-ascii?Q?SOXvAAtezC5dzzyZncmwsSGtQvkJXkbc/NzGguyWK/fvBa8K9OeRQKFbxfH5?= =?us-ascii?Q?zTWk6amT+Zq8nJi10NneazzgqNgyJbYHZCBNx0KyDsepbLs5lOJrIFEtx8FF?= =?us-ascii?Q?d+2NMC5t12/7h5l/OsJ0zl3GlPgDgC0ROVvKehhAy/+j8E/AQj9X+c8Ycp/C?= =?us-ascii?Q?TiaVkZC9eQZrtW8VxdUKc25czepdSC7ATvMCUXef3sfKzTpNXjhN5e224m1a?= =?us-ascii?Q?EK8i6s42NcUXW/XYz09G2NdcH6wlHgpgc6dsJAJ33ku7e4ax8x3FQclJgXMP?= =?us-ascii?Q?riu+DAaLQ9kSa4exPSkhB9ygiyy/hrHrN7bWwxWSSEwFXjOzsACUDzuvYpMi?= =?us-ascii?Q?dskPD493FLUlrAUmo9+MU7i7aqZDDX9YG8rL1YYpQpGRV58RitctucA2Atfi?= =?us-ascii?Q?Up6UG5Bqnu2Rlh0EASKoJYYSmdYFFhYEseuAcW8J6C67QM/NKn6xn09NHgK0?= =?us-ascii?Q?UkxZgerG6/AtxzSJwRK66hYbHs6NyWrCr+AU1XBiTGKgi8eh+UgzAvu/xTil?= =?us-ascii?Q?HyC3glGbq/YQn8xiPQ2mgYvvNAg1KxIN3/nAvzc4VlNS7Q9b6DtuyHaRZjwa?= =?us-ascii?Q?otd9Gaxh8amRF7urBe4SsvB7qAI5Qy1UEBww6rj/g/DrYMUHSi8pVEq8W74j?= =?us-ascii?Q?xF0wsPNtCfCN9N7q0XfCamY2+BnJDPSciYfO7Sp1PeuZ8OFJ+uaK9GLTAPwv?= =?us-ascii?Q?qZIQfgZMF0pU8k88kBc0Za3hwZZQgLnMfYeEsyDZS27mK+OPEcStpkKAhhn5?= =?us-ascii?Q?+JLLrw0VzqLclrurodiGGZ5wcrPw8dDPqsilpP2u9kDtGSXqV0fTWGYJ97zM?= =?us-ascii?Q?6Sy5LixbB+DUAzwjOx4v1EZca6bP+kko20RRSFAAf3VddjegWYLrVE2rZ/KW?= =?us-ascii?Q?5eMGcydzHvz4SOaRJIkgGBSJRwAK/u4AYL9d5zfqdGlWDVN7sUz9nNk559oD?= =?us-ascii?Q?JW5V/Axml+K9BP463O6YUxxU4MTVyCOoryt160x8umLSvyq3PUwchmEuUXeG?= =?us-ascii?Q?0Jo4pkZz0IUg9g5v1/0WxSa87ZqA0fO1rsw7OMdog5AIoX/xkd30hKdxLhkB?= =?us-ascii?Q?NurPdE4UuK2uPmWa1gdUGg6Eh3/Cu5uY4DUkS3ZJuKkg2nSgRAI71DDGaHDx?= =?us-ascii?Q?3IBrt3bprv7kL6OWm6YIb0DCd/Uw14IBxltLi/JH0N22gLEZ9v3qEB1OrH5m?= =?us-ascii?Q?yl/w0yTDyqollfEMiDNk9Loa7BJWXasq+Abp6Veqv1M5WjufQfUyojntY7VQ?= =?us-ascii?Q?TatkbqAHWdSlm/NiAxLPPigXUvcQ/BAMtCLvKvpthJoKqHffcQl3Ck6EyuTO?= =?us-ascii?Q?2z4kjrbw7mWzh64qaRP81Lg+FxQ6k5Z9qEBCoDHcesoJxhNRdz6bUV9rPCz8?= =?us-ascii?Q?qg=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PAXPR08MB6766B7D13322DE8A0F1545B99486APAXPR08MB6766eurp_" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: ny-central.org X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6766.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea5d917b-1654-4ce5-2e1f-08dbf4fe982a X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2023 19:24:11.4608 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 96573e63-211a-4cdb-be46-e3a366908d60 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4XKfin4ufK5WAnDJLqyUpnoyiwtDhiDpg4SzZxbonWDwEA4W1bP9alF/Nv8Rp8sQ1cRDuqvzKj3nqWnvWatw/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7832 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US] X-Rspamd-Queue-Id: 4SkYWL6190z3Yf3 --_000_PAXPR08MB6766B7D13322DE8A0F1545B99486APAXPR08MB6766eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Not sure - doesn't this run slock under root? It's not going to have any DI= SPLAY variable set, I assume? Chris ________________________________ From: owner-freebsd-hackers@freebsd.org = on behalf of Dr. Amr Osman Sent: Monday, December 4, 2023 7:24:30 PM To: freebsd-hackers@freebsd.org Subject: devd lid close event Hello, I have freeBSD 14 on Thinkpad x270, I just did do a fresh install and installed dwm and slock the issue is I want to make laptop lock screen whenever I close the lid here is my /usr/local/etc/devd/lid.conf ``` notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; match "notify" "0x00"; action "/usr/local/bin/slock"; }; ``` here is my /var/run/devd.pipe when I close the lid ``` !system=3DACPI subsystem=3DLid type=3D\_SB_.LID_ notify=3D0x00 !system=3DAC= PI subsystem=3DLid type=3D\_SB_.LID_ notify=3D0x00 !system=3DACPI subsystem=3DSuspend type=3D\ notify=3D0x03 !system=3DIFNET subsystem=3Dwlan= 0 type=3DLINK_DOWN ``` what am I doing wrong? Thank You Dr. Amr Osman --_000_PAXPR08MB6766B7D13322DE8A0F1545B99486APAXPR08MB6766eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Not sure - doesn't this run slock under root? It's not go= ing to have any DISPLAY variable set, I assume?

Chris


From: owner-freebsd-hackers= @freebsd.org <owner-freebsd-hackers@freebsd.org> on behalf of Dr. Amr= Osman <dr3mro@gmail.com>
Sent: Monday, December 4, 2023 7:24:30 PM
To: freebsd-hackers@freebsd.org <freebsd-hackers@freebsd.org><= br> Subject: devd lid close event
 
Hello,
I have freeBSD 14 on Thinkpad x270,
I just did do a fresh install and installed dwm and slock
the issue is I want to make laptop lock screen whenever I close the lid

here is my /usr/local/etc/devd/lid.conf
```
notify 10 {
    match "system"     &n= bsp;  "ACPI";
    match "subsystem"    "Lid&= quot;;
    match "notify"     &n= bsp;  "0x00";
    action "/usr/local/bin/slock";
};

```
here is my /var/run/devd.pipe when I close the lid

```
!system=3DACPI subsystem=3DLid type=3D\_SB_.LID_ notify=3D0x00 !system=3DAC= PI
subsystem=3DLid type=3D\_SB_.LID_ notify=3D0x00 !system=3DACPI
subsystem=3DSuspend type=3D\ notify=3D0x03 !system=3DIFNET subsystem=3Dwlan= 0
type=3DLINK_DOWN
```

what am I doing wrong?

Thank You
Dr. Amr Osman

--_000_PAXPR08MB6766B7D13322DE8A0F1545B99486APAXPR08MB6766eurp_-- From nobody Mon Dec 4 20:15:11 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SkZfB0BmXz52mDC for ; Mon, 4 Dec 2023 20:15:14 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SkZf92Knsz3f2d for ; Mon, 4 Dec 2023 20:15:13 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of steffen@sdaoden.eu designates 217.144.132.164 as permitted sender) smtp.mailfrom=steffen@sdaoden.eu; dmarc=none Date: Mon, 04 Dec 2023 21:15:11 +0100 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: freebsd-hackers@freebsd.org Subject: Fwd: Re: devd lid close event Message-ID: <20231204201511.u5fSPsTx@steffen%sdaoden.eu> User-Agent: s-nail v14.9.24-573-g7d89a8210a OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. X-Spamd-Result: default: False [-1.27 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_SPAM_SHORT(0.99)[0.988]; NEURAL_HAM_MEDIUM(-0.96)[-0.957]; R_SPF_ALLOW(-0.20)[+a:c]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[sdaoden.eu]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:15987, ipnet:217.144.128.0/20, country:DE] X-Rspamd-Queue-Id: 4SkZf92Knsz3f2d X-Spamd-Bar: - List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org --- Forwarded from Steffen Nurpmeso --- Date: Mon, 04 Dec 2023 21:04:14 +0100 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: "Dr. Amr Osman" Subject: Re: devd lid close event Message-ID: <20231204200414.4PxUD8iy@steffen%sdaoden.eu> Dr. Amr Osman wrote in : |The issue now is that is activates twice, as the devd notify happens twice |Tried pgrep the slock but it always launches slock twice Well for one (i have no freebsd around to truly test this) it might be necessary to background the thing in order not to block. (This is what i need to do on Linux, for example i now do volume() { ( cd / /root/bin/volume.sh "$1" ) /dev/null 2>&1 & } so that i neither have a CWD in a path of a mounted volume that may go away upon LID close etc. Also, due to a bug, i got piles of dozens / hundreds of jobs in the queue, which can only be avoided by moving the ACPI job to the background, aka by daemonizing it. (That it then is reparented to init/process 1 is something i still have to think about.)) And second, if all else fails, you may need to enwrap it in a shell script, maybe even with file locking. (flock(1).) Ie, my zzz.sh does in the main path # Neutralize $PWD to avoid umount(8) etc problems cd / if [ -f /run/.zzz.run ]; then logger -s -t /root/bin/zzz.sh "recursively invoked" exit 0 fi : > /run/.zzz.run trap 'rm -f /run/.zzz.*' EXIT trap 'trap "" HUP INT QUIT TERM; exit 1' HUP INT QUIT TERM down_stuff down_check down_main [ $# -eq 0 ] && once= || once=y while :; do [ -n "$once" ] && lid_is_open && break once=y down_off lid_exists || break sleep $SLEEP & wait $! done # Sleep a bit to let it settle ( sleep .5 ) >/dev/null 2>&1 up_main sleep 1 up_stuff Ciao, --steffen -- End forward <20231204200414.4PxUD8iy@steffen%sdaoden.eu> --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | | Only in December: lightful Dubai COP28 Narendra Modi quote: | A small part of humanity has ruthlessly exploited nature. | But the entire humanity is bearing the cost of it, | especially the inhabitants of the Global South. | The selfishness of a few will lead the world into darkness, | not just for themselves but for the entire world. From nobody Wed Dec 6 17:09:59 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SlkRy5c47z53hZh for ; Wed, 6 Dec 2023 17:10:22 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SlkRy3MgSz4ZDf for ; Wed, 6 Dec 2023 17:10:22 +0000 (UTC) (envelope-from farhan@farhan.codes) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm3 header.b=qFObJ0Fz; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=fFrgQBFn; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 64.147.123.21 as permitted sender) smtp.mailfrom=farhan@farhan.codes; dmarc=none Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9E9463200B13 for ; Wed, 6 Dec 2023 12:10:21 -0500 (EST) Received: from imap45 ([10.202.2.95]) by compute5.internal (MEProxy); Wed, 06 Dec 2023 12:10:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1701882621; x=1701969021; bh=nRLeLb9bkL1F1Ttqa8hW5qRpg 5e0h4cMoEueDusy+Xs=; b=qFObJ0FzPO7KPoOwdapGEE9AkEcOKBs1iC3qrIbZf ycv/iFeqZwOexFhueXeqV4DXd6JXXqpat7JXfileh8IBXQz9VfFaaBK/lVHkIzQM pF7Fxbk73kNlYikHt/mxkmrcdc+AT/Hj0/3hc8FC8a4DgeeOUyRWxf2tf1JA1lXS Rdkm9XHEFCw0m771dYe7wXXMheDFnMlD/bHOg0s2ZTx+gjrneQpDmEcqESFJGU/W SMjIE//GsmCy1gmuQa2byJFUzLCBUFHxzcQJ5KSGsyoT1LnRXCMQFuwMoM5V0jSI jBkCpJa1lfyL1ntukLUTgqtEvtv6kT8RZsVSPLrF9z9IA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701882621; x=1701969021; bh=nRLeLb9bkL1F1Ttqa8hW5qRpg5e0h4cMoEu eDusy+Xs=; b=fFrgQBFnzzT68WCeGEuUikNAIDJ//cKj7XwR+AwTuBP3hbyg+/h T+/PXLAUDgCRuS0UcWs5IF1rcqJ9x4WBiiaZE7/OPf/BS3OErqnessMfr5MEytH1 Byl57vO4M2eGyidgh7PvDILAZKYGSQp918W6giKPL+b3vHkthmO+dYz77Tf7d+Vy kAknP3PcgN3HsV8wzpI57ADdNXWq07cjD2+QIbUNzh3gZU61TC09EdiPXgzcoely aXZx06bJxn2YNYT2D3ThNYjVjFbQ1XL9oxpRiI9MD4q7DC2AtQMjKRqq+6GcKHcX 0agzfgK73cZKp78cmYDEFOSk/CMMjl0uQ7Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudektddguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtre dtreertdenucfhrhhomhepfdfhrghrhhgrnhcumfhhrghnfdcuoehfrghrhhgrnhesfhgr rhhhrghnrdgtohguvghsqeenucggtffrrghtthgvrhhnpeevveetgeegheeiueegkeejge dvueduheevjefhiedtudejieevhedvtdfhkeeggfenucffohhmrghinhepfhgrrhhhrghn rdgtohguvghsnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepfhgrrhhhrghnsehfrghrhhgrnhdrtghouggvsh X-ME-Proxy: Feedback-ID: i61914458:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C6D76272007B; Wed, 6 Dec 2023 12:10:20 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: <1fc31593-a274-4dc7-a4a5-ec2af0cb392a@app.fastmail.com> Date: Wed, 06 Dec 2023 12:09:59 -0500 From: "Farhan Khan" To: freebsd-hackers@freebsd.org Subject: Build src tree in Develop/Debug mode Content-Type: text/plain X-Spamd-Result: default: False [-4.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RWL_MAILSPIKE_EXCELLENT(-0.40)[64.147.123.21:from]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21:c]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm3,messagingengine.com:s=fm1]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.21:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[farhan.codes]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4SlkRy3MgSz4ZDf X-Spamd-Bar: ---- Hi all, Is there a build-in-debug-mode flag I can run when building the kernel (or world)? I was tinkering through the build system and saw that the optimization is hardcoded to -O2 and objcopy strips debugging symbols. This means even with "CFLAGS+=-g -O0 -fno-inline-functions" in my /etc/make.conf I am still losing symbols and sometimes getting unwanted optimizations. The result is that `kgdb` often does not know what line a crash took place in. Is there an option to disable all optimizations, optimizations and symbol stripping? If not, IMO, this would be a good candidate for an option to add. I briefly wrote about this a few years back: https://blog.farhan.codes/2018/08/16/including-optimized-out-kernel-symbols-in-dtrace-on-freebsd/ Thanks! -- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE From nobody Thu Dec 7 01:01:17 2023 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Slwvm4hWNz53HsH for ; Thu, 7 Dec 2023 01:01:40 +0000 (UTC) (envelope-from dan@langille.org) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Slwvl6L4Kz4RjK for ; Thu, 7 Dec 2023 01:01:39 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm1 header.b=Sgn9SMH4; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=X1zoZGUM; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 64.147.123.19 as permitted sender) smtp.mailfrom=dan@langille.org; dmarc=pass (policy=none) header.from=langille.org Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 892273200A24 for ; Wed, 6 Dec 2023 20:01:38 -0500 (EST) Received: from imap42 ([10.202.2.92]) by compute7.internal (MEProxy); Wed, 06 Dec 2023 20:01:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701910898; x=1701997298; bh=9R dgt1Qf02gqdG/HvMzjnXRDB1JdgQEfEW2OF2C0ZZE=; b=Sgn9SMH47b4OpEiekw PY+tnQoJ5d2PyDwOLrEN/LkyL+BCjeyPcWNfKgLQ/RrKs2EMoW7jLflwmLWB1H7E +OomLIq8BEWKQcNdiwUeE0DrGhvRnRqBtbsJJydSmr/MYRnf++fG92xErTxdOvMl xUyZVn+H83hXQRJA5NE410NTQnH+RaoCW0+gPiKCDWvaJX4aYshNXCvoUna6YdVv QWvv2+xa4Fg4q/eytKYarnVQ+wz5srlu3CxR0ySCpP3vmwXTTO1WjLV5nBnbo3ls WdSP6LHS6O1DUNSytYwjDqj/8WbG+HLZvrX4bnuypxrCbGF8ntgIkM5BdJ+W6MzV 9Dkw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701910898; x=1701997298; bh=9Rdgt1Qf02gqd G/HvMzjnXRDB1JdgQEfEW2OF2C0ZZE=; b=X1zoZGUMxpgHtqFErdgnI+7pUJF92 QTFmHw7XEGeDY/q4Nhu35oIekwLO2cHV2upOR7bpObpjuEFrqXIX5kdXhUZ+HEhB EOu5vZT6XRnlW25XDYBKA9S0R76brKiGcmsQ7scFxaQlvA4eNPqQqTzFLazbMlV5 6UoMaKU0pHI3e63JIRto5akYx10NaSgSMgLrBoAAqSPqz5FHvn1wD65HKq/NO1ny bZ1dnxV9WEHful5FC34xJAmensWQPuMRf6AUgZDlKVoz4SNXKsMpC20N+b90wWL2 fmsvCR6CbJK9FFCMLSne1J99rjny/mAbCLMonMXm3MCDbKZfj1/xFoVYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekuddgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfffgrnhcunfgrnhhgihhllhgvfdcuoegurghnsehlrghn ghhilhhlvgdrohhrgheqnecuggftrfgrthhtvghrnhepteefjefhtdelveduiefgffektd eihefhtdejlefftdehlefghfeugfefkefgffeknecuffhomhgrihhnpehfrhgvvggsshgu rdhorhhgpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegurghnsehlrghnghhilhhlvgdrohhrgh X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id AFB52BC007C; Wed, 6 Dec 2023 20:01:37 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: <8634fd2e-6c8f-4d37-99e2-56f4febd74d9@app.fastmail.com> In-Reply-To: <090b5b29-50bd-470a-905b-b9c2016a5189@www.fastmail.com> References: <090b5b29-50bd-470a-905b-b9c2016a5189@www.fastmail.com> Date: Wed, 06 Dec 2023 20:01:17 -0500 From: "Dan Langille" To: hackers@FreeBSD.org Subject: Re: list of valid ABI combinations Content-Type: text/plain X-Spamd-Result: default: False [-5.49 / 15.00]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; RWL_MAILSPIKE_EXCELLENT(-0.40)[64.147.123.19:from]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm1,messagingengine.com:s=fm1]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.19]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.19:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[hackers@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; FREEFALL_USER(0.00)[dan]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4Slwvl6L4Kz4RjK X-Spamd-Bar: ----- On Thu, Apr 9, 2020, at 11:01 AM, Dan Langille wrote: > Hello, > > I'm looking to add package support to FreshPorts - so you can know if a > package exists for a given ABI (e.g. FreeBSD:12:amd64). > > The goal, write a script which does something like this: > > for abi in $ABIS > do > fetch -o abi. packagesite.txz > https://pkg.freebsd.org/$abi/latest/packagesite.txz > # parse the file, updating the database > done > > Is there a list of current valid ABI combinations. > > I see a list at https://pkg.freebsd.org/ - is this manually maintained? > > While my goal is to have FreshPorts require minimal intervention, I > suppose new ABI combinations do not come along frequently and could be > maintained manually. It does not seem like a huge task. > > More details here: https://github.com/FreshPorts/freshports/issues/142 I see I have been trying to figure this out for a few years. Does anyone have any ideas as to where this might be determined? -- Dan Langille dan@langille.org From nobody Thu Dec 7 01:31:17 2023 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SlxZD6rKYz53L8R for ; Thu, 7 Dec 2023 01:31:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SlxZD38jHz4WGg for ; Thu, 7 Dec 2023 01:31:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40c09dfd82aso6345395e9.0 for ; Wed, 06 Dec 2023 17:31:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1701912690; x=1702517490; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pPp0CbptEfYyjqOjK0+k6CuFM4AgXUqBgcsD5Z2ySvs=; b=WRTewuQYs/ejQ0rsygeI0S7KOm9lVx81keQe/RsIfMd8mDtIy9T/KFvPQ3Ll3YgJG5 XRtN1l9KpNC4GdCLKklFdIc/uECpTcXuo36aFLUJZgOtniqXxjwQoDtLvLgKHr5HC3hf ruq4p4kpqa8nKDwPFVwPTH5XrYRfy/hpsXH+0FsAt3OWWt310kWnmgE0cp+FJdd7Hp9a EK7bEW+sXbCzIGqEaIhWDq3aR8fvDLHTp7mu2EnTyCmBrUz2/UVxDko9HVdh+k9xQ3Jc 4owacBBTsol1nUGOeO6XkZeCG7FpPgqkKYDQ7RvJLRgZeVDPMx4RRgThMzOq25iOoI8s c9bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701912690; x=1702517490; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pPp0CbptEfYyjqOjK0+k6CuFM4AgXUqBgcsD5Z2ySvs=; b=hArnk88CYeWEa+UV4jBi4gOMABa2fMalAVS47xCseWVN3RVreCpomG1GcV9pwORLHA We3CSjDZS9/TV9BJTaDtFNDpYACR5x8wFBkjHvTWuG6Ut8Wpf0O3Pmh0EV/Pgw85gHmJ 9Yqm+sOpTHRz9xuImEdp17mZpTIF4QLjY4UxKBkeYgdZA29m37sN/JJStqAgmxTzbuOd 2ln3ih7jJrAS9bCZHccBA8Da38gBhXdaKwm5McTy8bqHsRqa+9jRXeHwSjcvEYLz2ksJ v5kU5VHfxvfIcnEvwo66FzDsvptA8OlZNwVhzoUvEJpt41ABwZwIKIG4iiq3N/i9NsNe w4hg== X-Gm-Message-State: AOJu0YwL6Lahw/Fn4daQmkISSfvSHAFYTVz2sip0Bxd04/QGUAOhs4El JNDwHNDHnj5igYdE2TvpehthYR/qm3Q3GPNhE+NJ1GkOtzVkj+el X-Google-Smtp-Source: AGHT+IG5ObSZfKpRU4oVwEszA2DzdFwuupdEE9FIx5Omppb1g/JvuNTqwO6Ay8lyKMDS2KEU8KRr1JVM+WbMWcae3Ac= X-Received: by 2002:a1c:7706:0:b0:40b:5e21:dd31 with SMTP id t6-20020a1c7706000000b0040b5e21dd31mr1245504wmi.95.1701912689501; Wed, 06 Dec 2023 17:31:29 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: <090b5b29-50bd-470a-905b-b9c2016a5189@www.fastmail.com> <8634fd2e-6c8f-4d37-99e2-56f4febd74d9@app.fastmail.com> In-Reply-To: <8634fd2e-6c8f-4d37-99e2-56f4febd74d9@app.fastmail.com> From: Warner Losh Date: Wed, 6 Dec 2023 18:31:17 -0700 Message-ID: Subject: Re: list of valid ABI combinations To: Dan Langille Cc: "freebsd-hackers@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000004c015f060be16d65" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SlxZD38jHz4WGg --0000000000004c015f060be16d65 Content-Type: text/plain; charset="UTF-8" On Wed, Dec 6, 2023, 6:01 PM Dan Langille wrote: > On Thu, Apr 9, 2020, at 11:01 AM, Dan Langille wrote: > > Hello, > > > > I'm looking to add package support to FreshPorts - so you can know if a > > package exists for a given ABI (e.g. FreeBSD:12:amd64). > > > > The goal, write a script which does something like this: > > > > for abi in $ABIS > > do > > fetch -o abi. packagesite.txz > > https://pkg.freebsd.org/$abi/latest/packagesite.txz > > # parse the file, updating the database > > done > > > > Is there a list of current valid ABI combinations. > > > > I see a list at https://pkg.freebsd.org/ - is this manually maintained? > > > > While my goal is to have FreshPorts require minimal intervention, I > > suppose new ABI combinations do not come along frequently and could be > > maintained manually. It does not seem like a huge task. > > > > More details here: https://github.com/FreshPorts/freshports/issues/142 > > I see I have been trying to figure this out for a few years. > > Does anyone have any ideas as to where this might be determined? > It should be just the list of valid MACHINE_ARCH (make targets can give you a variation of this list). If you compute the cross product of that list and the supported branches {12,13,14;15} you will know what you can try. However, you need to know the current package builders. It's a subset of branches and abis, but since it's just the packages this should give you a matrix after you fetch. Warner -- > Dan Langille > dan@langille.org > > --0000000000004c015f060be16d65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Dec 6, 2023, 6:01 PM Dan Langille <dan@langille.org> wrote:
On Thu, Apr 9, 2020, at 11:01 AM, Dan Langille wr= ote:
> Hello,
>
> I'm looking to add package support to FreshPorts - so you can know= if a
> package exists for a given ABI (e.g. FreeBSD:12:amd64).
>
> The goal, write a script which does something like this:
>
>=C2=A0 =C2=A0for abi in $ABIS
>=C2=A0 =C2=A0do
>=C2=A0 =C2=A0 =C2=A0fetch -o abi. packagesite.txz
> https://pkg.freebsd.org/$abi/late= st/packagesite.txz
>=C2=A0 =C2=A0 =C2=A0# parse the file, updating the database
>=C2=A0 =C2=A0done
>
> Is there a list of current valid ABI combinations.
>
> I see a list at https://pkg.freebsd.org/ - is this manua= lly maintained?
>
> While my goal is to have FreshPorts require minimal intervention, I > suppose new ABI combinations do not come along frequently and could be=
> maintained manually. It does not seem like a huge task.
>
> More details here: https://github= .com/FreshPorts/freshports/issues/142

I see I have been trying to figure this out for a few years.

Does anyone have any ideas as to where this might be determined?

It should b= e just the list of valid MACHINE_ARCH (make targets can give you a variatio= n of this list). If you compute the cross product of that list and the supp= orted branches {12,13,14;15} you will know what you can try. However, you n= eed to know the current package builders. It's a subset of branches and= abis, but since it's just the packages this should give you a matrix a= fter you fetch.

Warner

--
=C2=A0 Dan Langille
=C2=A0 dan@langille.org

--0000000000004c015f060be16d65-- From nobody Thu Dec 7 02:17:14 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Slyb32ZpXz53PK7 for ; Thu, 7 Dec 2023 02:17:19 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Slyb31wHPz4Ztn; Thu, 7 Dec 2023 02:17:19 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701915439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Adq0TleVVD6HWeFHSvDAqHs4g2EXRGnjVUN2DbNnrhk=; b=QEtUltxYa4TLntiKnBWj7WzjcKZGcLPW6XFwBaVGwq4isf+/yfnIPfGSRF0cr4o+5xVWD2 zoZQUnhT8zM4aNn7gpelQxtTLwFsUoCFppC1j0wI/8wGCcYdtJWFQL3PnB3We5unRamsNj aKogfKGodEoDLEnKz/SOh0soZ/zNyTogJ25cgkfjqdanBAccgpK4RsQUexUgwbyn9FIrwJ Ls2uP90GSwuC/VL0hGi/tHEPQn11yNhyaJ5D5Cr7N2M489T2fjMRFKykjikRMX9WAB3hFe OTueYztPDuuRAwKkfTaHElXQNhafs8rpvikHSiIVGLiUTOH0jhbNEHtZyhOtBA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701915439; a=rsa-sha256; cv=none; b=ilwWp660c2wgF+H/qmDDBUHUWU3mSOBxSTiLl6C/9sF6BiX+SXmL7LufnV85PjxqGnPZxi oZ/97vMDLDzPDsCNPdsk/TUB+A8l6qxi25MpS+gnVrpwWPIRE02Tssbu8dB81DXDUC7Sq/ N7Pl6U+6IN2dwB7xb7R1I70utzDJfPFwB/bh5GZEDR3Ho1QSGvpCaJh0NwkREmS/rl0kuv tbDUEQv6tJTD08sowvbaaTtRb0t+eKYkb1gap119K4dC4WtovuUWsI8H3uDBRIai40xrQP HoFjyossUbK3KsaB6hMh92M6Cs8iB1T5j8X5v7Cim+6wOPB3AE3oHRvfejsOsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701915439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Adq0TleVVD6HWeFHSvDAqHs4g2EXRGnjVUN2DbNnrhk=; b=Qg1G94pajBugsnCvOMQt74jKdis6Dk19YIcXV8SukWGFT+oRBL8wSKOtSFaWpC61anYW8Y KQ2nfXSmOjFXSpu4a3Yq5dJBVq+XX7puAeimEOdEi84ukl4fqERWY7zFPt9lM/XPvhZQ6g pI+IjlNofkpEYCdkCFaPCi5rzk0QEGgzjyQQF7dnIkb6hx6zT8F2M/1UnvW6ixtHNSjbFY ZxrS9cRo1V+PPkQY27qQOHyflqgo2s1lC2lc27ZJ1+y20a2Ntx6AauSLEC2hEKZAMti9ue al8NU52X34MITnTMbqjz6nknXgoJk9EyyoUbWb/CZcsF6QFSysEwK9E+ArrECw== Received: from smtpclient.apple (unknown [112.66.190.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Slyb22gh2z1MX5; Thu, 7 Dec 2023 02:17:18 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: Build src tree in Develop/Debug mode From: Zhenlei Huang In-Reply-To: <1fc31593-a274-4dc7-a4a5-ec2af0cb392a@app.fastmail.com> Date: Thu, 7 Dec 2023 10:17:14 +0800 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <847F2A9D-AE5F-4BFC-85CD-51900A9218EA@FreeBSD.org> References: <1fc31593-a274-4dc7-a4a5-ec2af0cb392a@app.fastmail.com> To: Farhan Khan X-Mailer: Apple Mail (2.3696.120.41.1.4) > On Dec 7, 2023, at 1:09 AM, Farhan Khan wrote: >=20 > Hi all, >=20 > Is there a build-in-debug-mode flag I can run when building the kernel = (or world)? >=20 > I was tinkering through the build system and saw that the optimization = is hardcoded to -O2 and objcopy strips debugging symbols. This means = even with "CFLAGS+=3D-g -O0 -fno-inline-functions" in my /etc/make.conf = I am still losing symbols and sometimes getting unwanted optimizations. = The result is that `kgdb` often does not know what line a crash took = place in. >=20 > Is there an option to disable all optimizations, optimizations and = symbol stripping? If not, IMO, this would be a good candidate for an = option to add. There's an option COPTFLAGS. You can try=20 ``` $ setenv COPTFLAGS -O0 $ make buildkernel KERNCONF=3DGENERIC ``` >=20 > I briefly wrote about this a few years back: = https://blog.farhan.codes/2018/08/16/including-optimized-out-kernel-symbol= s-in-dtrace-on-freebsd/ >=20 > Thanks! > -- > Farhan Khan > PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE >=20 >=20 Best regards, Zhenlei From nobody Thu Dec 7 03:39:22 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sm0Q16h1Bz53V6l for ; Thu, 7 Dec 2023 03:39:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sm0Q03Ybsz3Fqg for ; Thu, 7 Dec 2023 03:39:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=ADkfjdHN; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701920374; bh=35BOHSPgyJftA4M/F08wbRkQrJ5WlWKNOTIscFwDHCQ=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=ADkfjdHNby2JIDn0YOfQw4TfJOEmnXy5twdW+rtTj4aNEc50GfxO4U9Z6DUpmdk/f29f9exHJMvfDClfit/fXXQu5wcnyfN0Ias28ILLEz1htEk7k9bawSSZeOmeMVq7IflbD/WJ4UyCeefdTarycnzycZESSUIWFOnyJEll25u/edf9E/DHovAAa9p0sGHY/m9i/zlYmhNQbiXGjAc0/jd78oA7AfJnOYyay4Av5NwqqZeHVEwPsT4fFW7MhYhFCO6+HnwrZ8/WFb9kKmqrwaYOVxTUaODCU3atEQ9rZ57W081TvJF7Blhyoa1X92RAucbJVi8zv7YLRoA4lqSZ8w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701920374; bh=EEfC4EMDpz5NSzMnFLIWn34VWKCjtB/tvZqc+FqM3pk=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=XvtuvJ6jtq7mqGuR3p4G7lru+8mQVyp4TBkL113ruke6+owF+jM5Zt5JP1MA95yJ5LHasBt//ePy6mkHi+1+ipW8G+X4RGCNuiKPcljSoMoZGo7wixsx1XBDI2jfOIRVpJAYfJHgMxqa6Q0/fDZwMUP499XGVFWgk0YTjgiWfjhLGGFemOsq+2DoUR7jZ52ZTEO8+J3Q2Y1yDbspWzbgWSFGTyFa0Z1R0MDSmngKgIENh2KfXBdPqMmo0umO/B2ONGGptmCQt6PjK0i/xCVRxP3aWbmivLU0K/riDrhWwlR3j0BXYViQM+Ea1OXgcwB2nOpsVMYAO7vwo00KUsZDoA== X-YMail-OSG: xpisSkcVM1njXYxHIG06zih8FMb1VD.8eplDsi.7yzeaT_GQuyu8S4ioOueBT7_ gliAtPtuPcR_nJkLXeGQJfEsATZ7U6NaheNNPbO6ipsZCsNC9uwwdVkifFE1ZnU4RVe.2C5k1Hot Aso6ekJ5t96kHDmpkRtwusIBpBi3nVyM6S_9lNYiKoMQUEaaFcpQhaKbQPJeQFbZ6Aa1KVHqUT29 i1mjWRt5Bzv.7xhDm.UYdYjwdHDIjG1ipKssSCJsl1b4UyJeZ1r5t6q7uG3LAq46cDS16GdSXfjf j7tbAGCbJnqq1Q0ZDIILvbP3rT4bxjE1r9mIumCNA9u6mSdSKIJhiIvbwllw7jbUAVBt45w5ltOa Oishon29t_I2.J1rBK_ILAkNbF7ac9EAgTayP6DWCE8i5KqKA7WfT9QrleuETPMBnJmPAiw2570e esTckj2m9G..hyj1KI3BJ.4fwSiZuXIMSZOnlGrxcHB0f5eF7ydFTiXsBonNUu9sHM7M8CgGJpQV eaQN5YXkp.eV2RcaHbnHgsFT519cdcZx0oMwBA3ep4z.Aeo9MUcaReK2yrUhbc0itbAuPoyq_lc3 Fgh6Z_CU4OEu_.hrMr03HI2bLBl781.k84Zi4fQxXRjOQXErLFp0gsBzJk7ho9ldF6Zz3ITHtPc7 w641OKPatnf9RYBGDtlc1aIQhbuaDdfTFPXMmmpDsthb1rQRYEF6j6i3RIa9vTmvN8XA0ybmCdrx 3L194SMTO_QUNaZPhreqOC3vvKHtQB.DwmhBa6mNNyra057j5nU_N1pBfhPVHXAcqEEsKqSwPSl8 a1HcbKiQrUvx1npz55R68V6c5Z4zpKkAkhYGP_Ezo8sHZf2Y1GWl7FPaikWC0SbfMmpc7xfQ41g_ .Gv_qpAXcsFQd9bv2XD86HHEfiGwjL60I5XASRQdJyxM2vkb2vpfK0HSPVEW6KBKXWErLkshawm7 f_yZ5MlcM9rxkS8qd3hRHhC_JVZq7HPXs5ebC9nYFFJ2SnWNFORPVQyfZl4LOJcdCFi9kxdew0DG szIKI0ZFv76ntTiKwQYSq_q5QuFys0zVh1FIf_37oZXTsp4FHblp3Zv_BWrQMVTKbT23SP5gp1eI _1.IyWme37RrPBT4J1MhjcQxxkOQxDMNg9yfJNXeNs4nv_ty9tbF8Z7UskdRQLZYM.OvUDNJrzzD JRxr62_wlR86cHFzqT95asXn8wP.U8LCQwLCEF.Q6tKjdomp1U4.YmmbhvsCtIkNGqTSBsP6sLMV V1_O.2fEKxEw8fJWn0j60fcqUdFdKlkn5.25KqAxf8bbRylIi_kpP96amKy2vaIYK1Psjg06HE0I hQFRnUU.LPs5iKv4xfy1lw6Di9LpjOzs5FTsT.hKKFqhr1mjMBJQmlxTZAIihNtpJKy52Fd5Incv frYJV4ppYqL4YZqGPubd2q39JGOxQQmEZMGoTEjFUWpswV60eK08eJVEck7pcFr.fEPZUnDyoLAR 4TFy4lsbuCLiJ.AhBVgQSgLkl5U4EYPRLxllP99mYyAcX7j5xP2snPH2xq3en8abBg9oO7PPWvdY k3.Q8VzcYHaY4Jbd7K7ezNKEU9RIMEsvDNzR7cx59jR3W1nQDDPeBd5ZCdNY_vrKB3J1j.9Dx..C jklDiKE4UUbat7Gh8V9P80EULMIe35aMs6KLJ4YzAUR7_QULOxwh3xxiU_l3rT0mNSiQj7UdIOP9 oLULa1j1pDgR7w9vQLY3ZtW5sHbmVdWhRB4KzX3AqETPPQM9dP.FXU9RJkuBEf3w.8Oj3pwQL2mH F_18nFqW2jQDAp095AvDVPnvIowG_h.XH5sjC80cfW5DoNj2rCorBerl9xA0GDcIEJjTlL_vctG9 sKZKhNFDiWEvsw.GJTPmzaqSZ._tDIQjs_38YrFHh3njjH6rHzemBMzL7aea5RgsToZPN7omiFDr L88SkuXDKjUR2upxPiG2BlmqfQb2r4DEMYRBsPwIl79KfJJiaa9hOUvzWGXnvAdzxET13rUkhe9d u.S66nbOpTfPFqYHDpOY2jrTzEAYJfZ6XPnbwGAwrwfiVK1h7AtacXgbnLbVCzq9KNXeAqGLAtgF AjSHYHlHLuR0QgM4FMmx57lWKM.O64B89OljJ.pDjQDSqQ1Bu9jvTJk4t3DD5R0f6cCczkv.BeVC Z902KhjqaEtKFjfujXVx1uM1Z0ABJVGtb.f9yZ0mhjWrSswSUY1RMl9vs9k_SdhKIB6uQeB1jmfY ELa1sAE8KjlmoizVBClwQ.E3PyOasWV5VhvIIxhKwYthMHBO7KeBD1blG7k0VnpmQuxyPpfAROco - X-Sonic-MF: X-Sonic-ID: 3dbdaba4-c2d2-4858-8eeb-b5fe3186c9f2 Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Thu, 7 Dec 2023 03:39:34 +0000 Received: by hermes--production-gq1-64499dfdcc-pz4mv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fe2496266fb6ff43ac5518c2c62a870a; Thu, 07 Dec 2023 03:39:33 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: RE: Build src tree in Develop/Debug mode Message-Id: <1FEF98E4-B739-4F0E-9237-3A7F083CF86D@yahoo.com> Date: Wed, 6 Dec 2023 19:39:22 -0800 To: farhan@farhan.codes, FreeBSD Hackers X-Mailer: Apple Mail (2.3774.200.91.1.1) References: <1FEF98E4-B739-4F0E-9237-3A7F083CF86D.ref@yahoo.com> X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.147:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.66.147:from]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Sm0Q03Ybsz3Fqg X-Spamd-Bar: --- Farhan Khan wrote on Date: Wed, 06 Dec 2023 17:09:59 UTC : > Is there a build-in-debug-mode flag I can run when building the kernel = (or world)? >=20 > I was tinkering through the build system and saw that the optimization = is hardcoded to -O2 and objcopy strips debugging symbols. This means = even with "CFLAGS+=3D-g -O0 -fno-inline-functions" in my /etc/make.conf = I am still losing symbols and sometimes getting unwanted optimizations. = The result is that `kgdb` often does not know what line a crash took = place in. >=20 > Is there an option to disable all optimizations, optimizations and = symbol stripping? If not, IMO, this would be a good candidate for an = option to add. >=20 > I briefly wrote about this a few years back: = https://blog.farhan.codes/2018/08/16/including-optimized-out-kernel-symbol= s-in-dtrace-on-freebsd/ References to get you started for where to look about various controls relative to how debug builds are handled and where(/if) debug information is placed . . . man src.conf reports : WITHOUT_ASSERT_DEBUG Compile programs and libraries without the assert(3) = checks. . . . WITHOUT_DEBUG_FILES Avoid building or installing standalone debug files for = each executable binary and shared library. . . . WITHOUT_SPLIT_KERNEL_DEBUG Do not build standalone kernel debug files. Debug data (if enabled by the kernel configuration file) will be included = in the kernel and modules. When set, it enforces these options: WITHOUT_KERNEL_SYMBOLS . . . Also : WITHOUT_KERNEL_SYMBOLS Do not install standalone kernel debug symbol files. This = option has no effect at build time. . . . man make.conf reports : BUILDING THE KERNEL . . . COPTFLAGS (str) Controls the compiler settings when building = the kernel. Optimization levels above [-O (-O2, ...)] = are not guaranteed to work. . . . BUILDING THE WORLD . . . WANT_FORCE_OPTIMIZATION_DOWNGRADE (int) Causes the system compiler to be built such = that it forces high optimization levels to a lower one. = cc(1) -O2 and above is known to trigger known optimizer bugs at various times. The value assigned is the highest optimization value used. . . . share/mk/bsd.README : STRIP The flag passed to the install program to cause the = binary to be stripped. This is to be used when building your own install script so that the entire system can be made stripped/not-stripped using a single nob. sys/conf/NOTES : . . . # # The `makeoptions' parameter allows variables to be passed to the # generated Makefile in the build area. # # CONF_CFLAGS gives some extra compiler flags that are added to = ${CFLAGS} # after most other flags. Here we use it to inhibit use of non-optimal # gcc built-in functions (e.g., memcmp). # # DEBUG happens to be magic. # The following is equivalent to 'config -g KERNELNAME' and creates # 'kernel.debug' compiled with -g debugging as well as a normal # 'kernel'. Use 'make install.debug' to install the debug kernel # but that isn't normally necessary as the debug symbols are not loaded # by the kernel and are not useful there anyway. # # KERNEL can be overridden so that you can change the default name of = your # kernel. # # MODULES_OVERRIDE can be used to limit modules built to a specific = list. # makeoptions CONF_CFLAGS=3D-fno-builtin #Don't allow use of memcmp, = etc. #makeoptions DEBUG=3D-g #Build kernel with gdb(1) = debug symbols . . . share/mk/bsd.sys.mk : # Additional flags passed in CFLAGS and CXXFLAGS when MK_DEBUG_FILES is # enabled. DEBUG_FILES_CFLAGS?=3D -g -gz=3Dzlib share/mk/bsd.lib.mk : .if defined(DEBUG_FLAGS) CFLAGS+=3D ${DEBUG_FLAGS} .if ${MK_CTF} !=3D "no" && ${DEBUG_FLAGS:M-g} !=3D "" CTFFLAGS+=3D -g .endif .else STRIP?=3D -s .endif . . . .if ${MK_DEBUG_FILES} !=3D "no" && empty(DEBUG_FLAGS:M-g) && \ empty(DEBUG_FLAGS:M-gdwarf*) .if !${COMPILER_FEATURES:Mcompressed-debug} CFLAGS+=3D ${DEBUG_FILES_CFLAGS:N-gz*} CXXFLAGS+=3D ${DEBUG_FILES_CFLAGS:N-gz*} .else CFLAGS+=3D ${DEBUG_FILES_CFLAGS} CXXFLAGS+=3D ${DEBUG_FILES_CFLAGS} .endif CTFFLAGS+=3D -g .endif share/mk/bsd.prog.mk : .if defined(DEBUG_FLAGS) CFLAGS+=3D${DEBUG_FLAGS} CXXFLAGS+=3D${DEBUG_FLAGS} .if ${MK_CTF} !=3D "no" && ${DEBUG_FLAGS:M-g} !=3D "" CTFFLAGS+=3D -g .endif .endif =20 . . . .if ${MK_DEBUG_FILES} !=3D "no" && empty(DEBUG_FLAGS:M-g) && \ empty(DEBUG_FLAGS:M-gdwarf-*) .if !${COMPILER_FEATURES:Mcompressed-debug} CFLAGS+=3D ${DEBUG_FILES_CFLAGS:N-gz*} .else CFLAGS+=3D ${DEBUG_FILES_CFLAGS} .endif CTFFLAGS+=3D -g .endif . . . .if !defined(DEBUG_FLAGS) STRIP?=3D -s .endif . . . share/mk/bsd.own.mk : # Common variables .if !defined(DEBUG_FLAGS) STRIP?=3D -s .endif It may be that all this is familar. If so: Sorry for the noise. =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Thu Dec 7 13:22:28 2023 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SmFM24wmyz52ygb for ; Thu, 7 Dec 2023 13:22:54 +0000 (UTC) (envelope-from dan@langille.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmFM24VDZz3Yrn for ; Thu, 7 Dec 2023 13:22:54 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; none Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 747115C00A8; Thu, 7 Dec 2023 08:22:54 -0500 (EST) Received: from imap42 ([10.202.2.92]) by compute7.internal (MEProxy); Thu, 07 Dec 2023 08:22:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701955374; x=1702041774; bh=Nb qDOQymmO54lV85Kfib2flDXIdTanGBiaBQSWCDsq4=; b=b17pdbYCElFiPhwwWM WSbzACM0VNfAAUIQ5hyJhPdeMMwhhi91nkKtGuW6yU6oEW21IjueTMByuGT5N3y4 rRcceDxseztEnCzqOkf9VSq68UYfWhXmCw9EK5R5gy2cr2pZzXB5NyZ54LIExC50 3mKqf+VlkSfjIu7KuQOYzDhYIhYvObhrf0w+y9z7AJg4fmYtrEpLOfndQ27wKZfE 2YYfRjpkDpaiKr4OM3/5do0qfqi0YGf86tzjYc5dEiGiDUe49y6zNkXqweZDsMnA qLlAWeHtnx9063t0wizzTPAaxydKpquzltxpCE6tIu2VNiaROVnOe2hGzBnCTU+8 V7wg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701955374; x=1702041774; bh=NbqDOQymmO54l V85Kfib2flDXIdTanGBiaBQSWCDsq4=; b=OytihndGvm5OT2k7h/VjXkv+MWHmH R7lVw7IjijDG+nTr6t+g5aF8BEEY3wT/swUptAfI/17iNV0EBmdIM1pu7uky9yBb 2+erwOKi7lJfg5m0d6GbJ0Mcf1Ghsy83zS0Km7G2feaOUai3QpG7SDnngiGp4mg7 DKlWTVOBQznCehXuqW4ZD9TfxtEb/iojQkQTRQ6EhlxjtNc64uUNBxTgr8ZEhhiL dowxE2fD9QneZmR3e4HvqHDpfxfABfR3LjEaN/wLW+DzGxnQdum39Tb48fcAw+QQ sEhWOGjDu4goA4TLk6IoBIMIa0740Bp+U7D1Exm40Ui3s7ASZitiHlI0A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekvddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvvefutgesrg dtreerreertdenucfhrhhomhepfdffrghnucfnrghnghhilhhlvgdfuceouggrnheslhgr nhhgihhllhgvrdhorhhgqeenucggtffrrghtthgvrhhnpeegjeevtdelgfdugfeitdfgff evtedugeejvedthfevjefgieeiveeffeduieejgfenucffohhmrghinhepfhhrvggvsghs ugdrohhrghdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepuggrnheslhgrnhhgihhllhgvrdhorhhg X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 21B43BC007C; Thu, 7 Dec 2023 08:22:54 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: <66557d4f-6392-4260-b72f-613354380d55@app.fastmail.com> In-Reply-To: References: <090b5b29-50bd-470a-905b-b9c2016a5189@www.fastmail.com> <8634fd2e-6c8f-4d37-99e2-56f4febd74d9@app.fastmail.com> Date: Thu, 07 Dec 2023 08:22:28 -0500 From: "Dan Langille" To: "Warner Losh" Cc: "freebsd-hackers@freebsd.org" Subject: Re: list of valid ABI combinations Content-Type: multipart/alternative; boundary=b9fde86793824a63a697ff31ed42c672 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SmFM24VDZz3Yrn --b9fde86793824a63a697ff31ed42c672 Content-Type: text/plain On Wed, Dec 6, 2023, at 8:31 PM, Warner Losh wrote: > > > On Wed, Dec 6, 2023, 6:01 PM Dan Langille wrote: >> On Thu, Apr 9, 2020, at 11:01 AM, Dan Langille wrote: >> > Hello, >> > >> > I'm looking to add package support to FreshPorts - so you can know if a >> > package exists for a given ABI (e.g. FreeBSD:12:amd64). >> > >> > The goal, write a script which does something like this: >> > >> > for abi in $ABIS >> > do >> > fetch -o abi. packagesite.txz >> > https://pkg.freebsd.org/$abi/latest/packagesite.txz >> > # parse the file, updating the database >> > done >> > >> > Is there a list of current valid ABI combinations. >> > >> > I see a list at https://pkg.freebsd.org/ - is this manually maintained? >> > >> > While my goal is to have FreshPorts require minimal intervention, I >> > suppose new ABI combinations do not come along frequently and could be >> > maintained manually. It does not seem like a huge task. >> > >> > More details here: https://github.com/FreshPorts/freshports/issues/142 >> >> I see I have been trying to figure this out for a few years. >> >> Does anyone have any ideas as to where this might be determined? > > It should be just the list of valid MACHINE_ARCH (make targets can give you a variation of this list). For those following along at home: [13:18 mydev dan ~/src/freebsd/src] % make targets Supported TARGET/TARGET_ARCH pairs for world and kernel targets amd64/amd64 arm/armv7 arm64/aarch64 i386/i386 powerpc/powerpc powerpc/powerpc64 powerpc/powerpc64le riscv/riscv64 > If you compute the cross product of that list and the supported branches {12,13,14;15} you will know what you can try. Is that list hosted somewhere I can script a fetch? I'm going to guess no. Granted, that list changes infrequently too. > However, you need to know the current package builders. It's a subset of branches and abis, but since it's just the packages this should give you a matrix after you fetch. My goal is to automatically maintain this table, from which FreshPorts fetches package information: freshports.dev=# select * from abi order by name; id | name | active ----+----------------------+-------- 9 | FreeBSD:12:aarch64 | t 1 | FreeBSD:12:amd64 | t 15 | FreeBSD:12:armv6 | t 16 | FreeBSD:12:armv7 | t 8 | FreeBSD:12:i386 | t 18 | FreeBSD:12:mips64 | t 19 | FreeBSD:12:powerpc64 | t 2 | FreeBSD:13:aarch64 | t 11 | FreeBSD:13:amd64 | t 20 | FreeBSD:13:armv6 | t 21 | FreeBSD:13:armv7 | t 10 | FreeBSD:13:i386 | t 23 | FreeBSD:13:mips64 | t 24 | FreeBSD:13:powerpc64 | t 34 | FreeBSD:13:riscv64 | t 26 | FreeBSD:14:aarch64 | t 27 | FreeBSD:14:amd64 | t 28 | FreeBSD:14:armv6 | t 29 | FreeBSD:14:armv7 | t 30 | FreeBSD:14:i386 | t 32 | FreeBSD:14:mips64 | t 33 | FreeBSD:14:powerpc64 | t 35 | FreeBSD:14:riscv64 | t 54 | FreeBSD:15:aarch64 | t 47 | FreeBSD:15:amd64 | t 48 | FreeBSD:15:armv6 | t 49 | FreeBSD:15:armv7 | t 50 | FreeBSD:15:i386 | t 51 | FreeBSD:15:mips64 | t 52 | FreeBSD:15:powerpc64 | t 53 | FreeBSD:15:riscv64 | t (31 rows) freshports.dev=# Thank you. :) -- Dan Langille dan@langille.org --b9fde86793824a63a697ff31ed42c672 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Wed, Dec 6, = 2023, at 8:31 PM, Warner Losh wrote:


On Wed, Dec 6, 2023, 6:01 PM Dan Langille <dan@langille.org> wrote:
On Thu, Apr 9, = 2020, at 11:01 AM, Dan Langille wrote:
> Hello,
>
> I'm looking to add package support to = FreshPorts - so you can know if a
> package exists fo= r a given ABI (e.g. FreeBSD:12:amd64).
>
> The goal, write a script which does something like this:
>
>   for abi in $ABIS
>   do
>     fetch -o = abi. packagesite.txz
> https://pkg.freebsd.org/$abi/latest/packagesite.txz
>     # parse the file, updating the database<= br>
>   done
>
= > Is there a list of current valid ABI combinations.
&= gt;
> I see a list at https://pkg.freebsd= .org/ - is this manually maintained?
>
> While my goal is to have FreshPorts require minimal interventio= n, I
> suppose new ABI combinations do not come along= frequently and could be
> maintained manually. It do= es not seem like a huge task.
>

= I see I have been trying to figure this out for a few years.

Does anyone have any ideas as to where this might be= determined?

It should be just the list of valid MACHINE_ARCH (m= ake targets can give you a variation of this list).

For those following along at home:
=

[13:18 mydev dan ~/src/freebsd/src] % make targets
Supported TARGET/TARGET_ARCH pairs for world and kernel tar= gets
    amd64/amd64
 &n= bsp;  arm/armv7
    arm64/aarch64
<= /div>
    i386/i386
    = powerpc/powerpc
    powerpc/powerpc64
    powerpc/powerpc64le
 &nbs= p;  riscv/riscv64


If you compute the cross product= of that list and the supported branches {12,13,14;15} you will know wha= t you can try.

I= s that list hosted somewhere I can script a fetch? I'm going to guess no= . Granted, that list changes infrequently too.

<= blockquote type=3D"cite" id=3D"qt" style=3D"">
However, you need to kn= ow the current package builders. It's a subset of branches and abis, but= since it's just the packages this should give you a matrix after you fe= tch.

My goal is to automa= tically maintain this table, from which FreshPorts fetches package infor= mation:

freshports.dev=3D# select * from abi order by name;
=
id |         name &nbs= p;       | active 
----= +----------------------+--------
  9 | FreeBSD:12:aar= ch64   | t
  1 | FreeBSD:12:amd64 &nbs= p;   | t
15 | FreeBSD:12:armv6   =   | t
16 | FreeBSD:12:armv7     |= t
  8 | FreeBSD:12:i386     = ; | t
18 | FreeBSD:12:mips64    | t
19 | FreeBSD:12:powerpc64 | t
  2 | FreeBSD:13= :aarch64   | t
11 | FreeBSD:13:amd64  =    | t
20 | FreeBSD:13:armv6   &n= bsp; | t
21 | FreeBSD:13:armv7     | t=
10 | FreeBSD:13:i386      | t
23 | FreeBSD:13:mips64    | t
2= 4 | FreeBSD:13:powerpc64 | t
34 | FreeBSD:13:riscv64 =   | t
26 | FreeBSD:14:aarch64   | t
27 | FreeBSD:14:amd64     | t
2= 8 | FreeBSD:14:armv6     | t
29 | Free= BSD:14:armv7     | t
30 | FreeBSD:14:i= 386      | t
32 | FreeBSD:14:mips= 64    | t
33 | FreeBSD:14:powerpc64 | t
=
35 | FreeBSD:14:riscv64   | t
54 | Fr= eeBSD:15:aarch64   | t
47 | FreeBSD:15:amd64&nbs= p;    | t
48 | FreeBSD:15:armv6  =    | t
49 | FreeBSD:15:armv7   &n= bsp; | t
50 | FreeBSD:15:i386     = ; | t
51 | FreeBSD:15:mips64    | t
52 | FreeBSD:15:powerpc64 | t
53 | FreeBSD:15:riscv= 64   | t
(31 rows)

= freshports.dev=3D# 

Thank you. :)

--
  Dan Langille
=
  dan@langille.org


--b9fde86793824a63a697ff31ed42c672-- From nobody Thu Dec 7 14:07:19 2023 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SmGLb3rM8z532t4 for ; Thu, 7 Dec 2023 14:07:35 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from erza.lautre.net (erza.lautre.net [80.67.160.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lautre.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmGLb0dfCz3f7K for ; Thu, 7 Dec 2023 14:07:35 +0000 (UTC) (envelope-from thierry@pompo.net) Authentication-Results: mx1.freebsd.org; none Received: from graf.pompo.net (graf.pompo.net [82.66.0.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by erza.lautre.net (Postfix) with ESMTPSA id CD0A4E9B09; Thu, 7 Dec 2023 15:07:20 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id C57856E2B4E; Thu, 7 Dec 2023 15:07:19 +0100 (CET) Date: Thu, 7 Dec 2023 15:07:19 +0100 From: Thierry Thomas To: Dan Langille Cc: Warner Losh , "freebsd-hackers@freebsd.org" Subject: Re: list of valid ABI combinations Message-ID: References: <090b5b29-50bd-470a-905b-b9c2016a5189@www.fastmail.com> <8634fd2e-6c8f-4d37-99e2-56f4febd74d9@app.fastmail.com> <66557d4f-6392-4260-b72f-613354380d55@app.fastmail.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y0y8i+LUt9wCwc43" Content-Disposition: inline In-Reply-To: <66557d4f-6392-4260-b72f-613354380d55@app.fastmail.com> X-Operating-System: FreeBSD 13.2-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc;y=\ipKMNm<1J>lv@PP~7Z<.tKjAnXLs: X-PGP: 0xF1C516B3C8359753 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SmGLb0dfCz3f7K --y0y8i+LUt9wCwc43 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le jeu. 7 d=E9c. 23 =E0 14:22:28 +0100, Dan Langille =E9crivait=A0: > freshports.dev=3D# select * from abi order by name; > id | name | active=20 > ----+----------------------+-------- > 9 | FreeBSD:12:aarch64 | t Antoine told me recently that packages are not built for FreeBSD:12:aarch64/latest since 2018, only quarterly is active. Regards. --=20 Th. Thomas. --y0y8i+LUt9wCwc43 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJlcdGUXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdTv9gP/iVhs+1TVQH5Wjdk7HXTcyGJ n99aH0u1Ux5lkri+UKSuM9LIRS7hTclmC8HA1Z0wOAOGRABPb0h4PE4Xs8j99A6p sz2qMOhTpZGZfKhERVQflm20B6AvvSbajZbVgnyN1EgECiXI2FzGRoQTTfnJzRzi yBh+6EIpnzoG2XqmALLphMCoKCy0+0P4OlaonONqgdQZy5c/j2vpeYU0ddkYxhhU vnOXAtPDfraPCylFPmf46ewEzi7l4ibtyKhotXxA57eHeja5ajQ/mkRXTZaUPf/x wy09Hny1C5Fw4FwqQ22FTpQX4g77a23fi4m6ML37zxO6KcghhwU4aNOwZ/oVcH3+ mOCYyaGig9zI6E2eWJTXSxIdi+JTCsqB7zc8EnE4tkJamWi3zGIvJ0IKHgL94hw+ t7/9Dzq8QbWLQct+sU6WBljRrgTChUXsBvRtT/01wod3qrDe6XS1nkoncsy5kVQ2 6V2ArF78Qf5tnoAp7STOilzRH+qvXlUuOQsrXklXwpGnCQQRt5nwxV0yqvTxGvha /u4OV4wfKuL3u2dx4nMmjVjQusLDUu52viTivo7913qPObf6vMYt6MdIJtRGicAs xZGUHkgu//Zg9zmtT/TsRKVz7JQiCL8k3T/ludGabyCZyaYJGwj2fdUyRQHKc384 vwKuv8HgzIq7hX7a9IaQ =Zpn7 -----END PGP SIGNATURE----- --y0y8i+LUt9wCwc43-- From nobody Thu Dec 7 15:03:33 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SmHbZ3XHbz5376Z for ; Thu, 7 Dec 2023 15:03:54 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-55.consmr.mail.gq1.yahoo.com (sonic308-55.consmr.mail.gq1.yahoo.com [98.137.68.31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmHbY0M48z4JcN for ; Thu, 7 Dec 2023 15:03:52 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=KIt7Ao9z; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701961430; bh=1V5kr+Y3W7BpHb5w+fwcROlYsfHeVdPbiI5YMcdAVEU=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=KIt7Ao9zPoWUBW97vSqRo5bYHBVtqDyrjxUjsQBIfcfKgMt2gqWXsfCrp7UnVdf6f2ASCOHmHsP/+K+6dKVtvi5f/xRElJecLa9bWBGnj6jzyFt2HfwZkASE9Me817z44vXCN0iKKT111MyKGsANHKZFuZ5oq+6MuAIQqngzXx8Jku5UfaVrZYG21edyEZUrw7Qq6LQeJDxXrPdEtqVuDq48T4yIS1z+wvRfIBZCRAolTyUmJBHET+QdXt6M9V2xCy6Tv2F/8gAcSGgHRXNyVPluqfvphUArnzYqIIM3EML0FYTCElY7vW7zGJHRNo0c5K4KVc/n5d04seVCNMbdbw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701961430; bh=nZgJJ06NEgf/K2NoEhPBzEP0Q6650xL1nHFNp9xFhgn=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=qK84DsFrVyUHLozTPWWKFZmAwgoPaBTqcEVtkR13GoqEFoVX08XGJgYu111KhP4z+ahc9SbwVJLSFROuws+fLSqPCUB/sWhhZ7bENt9N//6syBrYmH6xfexftqmt4TEqR9TfulG772sCyAKV3a8Bs9jy2yiBPLa7t2tJ2zTGP9V0JfmieCeUn/0Rko3860JhpMAtYszSKRlfinsh1+2C2uYBwxG865Vk8bwcdLizOFyXG4U2UHo8bKO8FzIns41UoLKUtDRP2ICFrY7da/XiPxVKKS3iP+EtXwHPJpxIOZJgDdgaunV2OTkHwuGF/DYoLF3g7zn4APEQG8Hn3dtNwA== X-YMail-OSG: I05Wol0VM1kw6vtdjTJgvtaLRkg8B__ySow7kIhl5eceZIGAq.j1TIRGtbVoyws n3DJF7QUsJwhdLs6taFVVLby5W68fab05SQW32ifu2fL5LiKPGqtU8v.Bj5Q6iw.3clMvGb9XYe_ CgZ4emRsd.BBC0Dpw5HJSA5lt6GJH4iGYbPLSgqm9WZpI5zNu9p1I4Vy9hzTLyfSvxG9MZ7viKnb 0Y2pmVTbcLWfozuyb6dN6lO.9LpZx_UO_ItvCQ6e8UHH5IkimDFn0md3kns5a6WQv7W9g1dhlul2 Hpnyz7KFojNmoqu1bnhyvGN2AcUQf4z.pO0i9hfGKwXuBdMYVs4_x0fr4lLBTRnZBHhLKJsIPLud yZnyMajTBf9bGIltsGUjuq.ojwWdMs9kQ7gtLzarB.cs5BJCg6cwvOATS0fIjecEuClF9GIPkJQx H1oa.8PQJ.Qi_GzKJSovyH.qJd_H2Mi6G9OsjhT4pXE2gSZxaJlli1Dy22Xd3AWQ5Q5HeCqMbfJL KXFPlpOUhTRFEnZ8Ek.qdAylJ9jALagdS7zVJsSsjkUirpcOqiRH_cT_lyJhF8nKyKMOj2JXNcNG lScMuupDlmi4IFpO6TGn0wxsymK6K5hEo56fJBGFbHmSwC0xyz4Y22l_Hxvlf5voypYxodehgQqR W2LMzgkCEXHqbFB5VnPr_qGxmFkuNtS.FHHbV8QEdJJCyQch9J.DhG_BdVpIbsqUUtD4xA9eWDxK QSSXjJDOxHA08Q6wS0cFWNRMm_gUHXad3edmj7kFgRj_eWvWA9mhXS7JGxya_ZVkRp2NiMKGjJtL ZLW8IcY03oCOERjTyVpFeV4GzGjB08iS_qCdc_yaRq104o6ipiVWqfqi.Oj_XGGYfKugFD9ip0Vs TQ7g6Duz.Ip7I8QacnLroZeV8H7z2UMznWhMJwe3hwph0QFmvdfsvnswJGncrexURMfBccBrhvga uRBKc9t5x6fx7H8e3_OQZTcJBu_DVpLf4JP80xPdVGTE5gYbmI0WV04RCM7TTqkFnXJrduda5v_F _cHkhFf9wtKF479Bbfc5s54tLs60PG95pbjTuBX9FVHzTNUWyFXMhdhH234QgdCkXtJy1JqhA_mw 80NVpDJHCLAB9RqwsrvbLAKInONMU1tUiZfEA6X5nVBC7zghO2zhWxoAVt06O1AJCacsEJdXJwj_ cVLLqREfXa4WCtkb1Hr9.gDNrrq9w1joMeF963XkWucWtM2FsKIMFNCWlZaGHmyMkqHH4yNURXqa xLtywh5lS6gTOHWgaEPnb1daT5soJjFuBAkBre3L7IqQZi4eSv_vRka7_t4PLZAVSnX7KoUN0qz4 axjWbqIm6eEYhTTEuHezjg0pLfOFqWOZkhWtHwDPMhHQesJOPsmZIdyr.vGBIgevRkw2IKNO4Sr9 iQUA.OEQOEhyxKRzG2ULdi25WUMCDZECS_UC.hM87o7L_MVZe7dyFWQkbGr4BkRDZsoyHiYH3Ya9 9DI3gKvnP2dog1woVM6p_SENeyozPLGGfc8xARPtSVrrDkwqqkV0wZshOwbYa01pLQud4NMqVs3R czxCoFnLQCbMjIKp7YqpA_H5zajYJxj3gvLuVUzJxHSShEwTyci.lBgsv.xyIyBskFjUFMDfyRB. OGmaWi3WJ2.y1cRrasExf60wRIIGhu3bR9RQoyHBTZG.UzdLjU_w99KkrZwMqn0mzNtlXz9AZVAP v19upiRD2EXR77e5yFgUuvRLujEU4sikygLRfkT3YWVEKQo93kOMzexbSQ5NV5s.PIlRt9t7CX2T 5e9zmOXVEG7nGB0KQZ7jsBaDrFj.wkkmWMIPLjNsH52Yeroo_.uSODdWFnNsW40W3l2UlidkfP38 CpCsXc6rxsJhlLcmGvHcjeqSAdXiPesesXK3qKiD1_VWSIsZ2KUyd._tSzcDsKmxMN_d6MDQa6Zv 2OjrpGD2BbV6YF_ti7OC2qi9S7nGU8V9TCQOqSLeAlUFOd5oWF30iILcM6HYWRXk4XNfw60UFz_J mqfE5SldM8Ir7BQTY8Ffv0kg5iIP683oTyjloM2xykwlpdwhNUsmI8ycBYfgdtc5o4Ds2AARh783 D8YmC8CbMA8IxQZ56B34Yju_kQtXB71l4Du370tlZr5j7p9mPzgL0lb2f55197UKN33761DTBJpF M8eZ37UMh.TmiXXdwMks9CX9HsSvHVanbztdESCPyXlE7iEriK2UGTFufudX82R754uBAF5mOokN eKrIUOPJTAIynhXAUV3OP29JCmRqfx5fDUnWkG_GF3bxu2b1jYOtB.TdHFMy7En21PfhWc.pxVH8 zjg-- X-Sonic-MF: X-Sonic-ID: ec4fe37a-bed6-429e-91e9-11bd93762223 Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Thu, 7 Dec 2023 15:03:50 +0000 Received: by hermes--production-gq1-64499dfdcc-kw5dn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 645a3a97eb73b0d33b06d9698ed46da5; Thu, 07 Dec 2023 15:03:44 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: list of valid ABI combinations Message-Id: <6BD2CBAF-7ADC-4ADC-B8F0-1280FECEC155@yahoo.com> Date: Thu, 7 Dec 2023 07:03:33 -0800 To: dan@langille.org, FreeBSD Hackers X-Mailer: Apple Mail (2.3774.200.91.1.1) References: <6BD2CBAF-7ADC-4ADC-B8F0-1280FECEC155.ref@yahoo.com> X-Spamd-Result: default: False [-3.47 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.966]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.31:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.31:from]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SmHbY0M48z4JcN X-Spamd-Bar: --- Dan Langille wrote on Date: Thu, 07 Dec 2023 13:22:28 UTC : > . . . > My goal is to automatically maintain this table, from which FreshPorts = fetches package information: >=20 > freshports.dev=3D# select * from abi order by name; > id | name | active=20 > ----+----------------------+-------- > 9 | FreeBSD:12:aarch64 | t > 1 | FreeBSD:12:amd64 | t > 15 | FreeBSD:12:armv6 | t > 16 | FreeBSD:12:armv7 | t > 8 | FreeBSD:12:i386 | t > 18 | FreeBSD:12:mips64 | t > 19 | FreeBSD:12:powerpc64 | t > 2 | FreeBSD:13:aarch64 | t > 11 | FreeBSD:13:amd64 | t > 20 | FreeBSD:13:armv6 | t > 21 | FreeBSD:13:armv7 | t > 10 | FreeBSD:13:i386 | t > 23 | FreeBSD:13:mips64 | t > 24 | FreeBSD:13:powerpc64 | t > 34 | FreeBSD:13:riscv64 | t > 26 | FreeBSD:14:aarch64 | t > 27 | FreeBSD:14:amd64 | t > 28 | FreeBSD:14:armv6 | t > 29 | FreeBSD:14:armv7 | t > 30 | FreeBSD:14:i386 | t > 32 | FreeBSD:14:mips64 | t > 33 | FreeBSD:14:powerpc64 | t > 35 | FreeBSD:14:riscv64 | t > 54 | FreeBSD:15:aarch64 | t > 47 | FreeBSD:15:amd64 | t > 48 | FreeBSD:15:armv6 | t > 49 | FreeBSD:15:armv7 | t > 50 | FreeBSD:15:i386 | t > 51 | FreeBSD:15:mips64 | t > 52 | FreeBSD:15:powerpc64 | t > 53 | FreeBSD:15:riscv64 | t > (31 rows) > . . . The name list in the middle (/bin/sh context): # fetch https://pkg.freebsd.org/index.html index.html 3606 B 103 MBps = 00s # grep FreeBSD: index.html | sed -e 's@.*\(FreeBSD:[^ <]*\).*@\1@' | = sort FreeBSD:12:aarch64 FreeBSD:12:amd64 FreeBSD:12:armv6 FreeBSD:12:armv7 FreeBSD:12:i386 FreeBSD:13:aarch64 FreeBSD:13:amd64 FreeBSD:13:armv6 FreeBSD:13:armv7 FreeBSD:13:i386 FreeBSD:13:powerpc FreeBSD:13:powerpc64 FreeBSD:13:powerpc64le FreeBSD:14:aarch64 FreeBSD:14:amd64 FreeBSD:14:armv6 FreeBSD:14:armv7 FreeBSD:14:i386 FreeBSD:14:powerpc FreeBSD:14:powerpc64 FreeBSD:14:powerpc64le FreeBSD:15:aarch64 FreeBSD:15:amd64 FreeBSD:15:armv6 FreeBSD:15:armv7 FreeBSD:15:i386 FreeBSD:15:powerpc FreeBSD:15:powerpc64 FreeBSD:15:powerpc64le There might be issues at times with https://pkg.freebsd.org/index.html = not being in sync. As far as I can tell, that page is manually maintained. Hopefully this can help. I've no clue about the id column as the list changes, for example when the FreeBSD:12:* disappear sometime after the end of the year. =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Thu Dec 7 17:44:32 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SmM9N1X0nz53LZd for ; Thu, 7 Dec 2023 17:44:56 +0000 (UTC) (envelope-from dan@langille.org) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmM9M6xS9z4bGm for ; Thu, 7 Dec 2023 17:44:55 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; none Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id D5E6A5C0112; Thu, 7 Dec 2023 12:44:54 -0500 (EST) Received: from imap42 ([10.202.2.92]) by compute7.internal (MEProxy); Thu, 07 Dec 2023 12:44:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701971094; x=1702057494; bh=Vd CwcgedSoE+ePLtlA44dPfe88HHcVHBCVUaRoyf4AQ=; b=Ty+h755No09k3Lxq50 QpuCtiRGRSFj7CvdHenRxS/GZug8aSBvozNMtZpWiLI8sYgfqmY5MpoqJAJ+0UV5 GWTNZnvV4l/D0IK1lehzOlTx+LkVfMIGOhhslANUuimC95efIlUB2+ZG8aj1+poH fiW7oUmMEPNSWo5bhNGyqRZ6AWH0nAGBpxGbiE1Sbo8fto6RUTrfwXmONAEJ8HSn HYLexDWZ5F8D+3N31rD1rZp4UjsbBPMIQofmkm5leFafsEKoU+cWpMPcChj6NM6l iE/7UnLurQ6m0c4Y7P7trxRjreUMhrdfHtTW2m8HeE8TOCbHZr3KWmPQBWhhBbHn fuNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701971094; x=1702057494; bh=VdCwcgedSoE+e PLtlA44dPfe88HHcVHBCVUaRoyf4AQ=; b=lJRp+txTDUZC+ifyusSoqrUZc8a4X ZF9kR1lg8146KKvxKnqxgq2W8KH7KqILn14raVXMNZz+FStf4nr1od49u2etB/3m qyE1l06DLOUrpHrgeAXw9kyQeVM1TuTk729bMXeJWHAmDvi3JW5v/yCZRv4dDhJy CxzPF+K0FbLcnVzFDqqHFa7SFp4euHhWnKyXaVS+ogsRkAqQCR5/QAszNn5UH9gh 8U5crhL2TD5Q64dAFu9OeubdPF6L6F1tLrYr4DJTPXhpXvHkPwF+YgbmpT/pvmOS UQe/CG29qyvhVvDifSdOL2pl/A8KpFifFCumwPGgoRJ9dUndod6nGsETA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudekfedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdffrghn ucfnrghnghhilhhlvgdfuceouggrnheslhgrnhhgihhllhgvrdhorhhgqeenucggtffrrg htthgvrhhnpeekteejleduffeguddutdffjeekgfffjeefjeefteeuudeuudeljeeivdfg vedvfeenucffohhmrghinhepuggrnhgprghtpghlrghnghhilhhlvgdrohhrghdpfhhrvg gvsghsugdrohhrghdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepuggrnheslhgrnhhgihhllhgvrdhorhhg X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 923AABC007E; Thu, 7 Dec 2023 12:44:54 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: In-Reply-To: <6BD2CBAF-7ADC-4ADC-B8F0-1280FECEC155@yahoo.com> References: <6BD2CBAF-7ADC-4ADC-B8F0-1280FECEC155.ref@yahoo.com> <6BD2CBAF-7ADC-4ADC-B8F0-1280FECEC155@yahoo.com> Date: Thu, 07 Dec 2023 12:44:32 -0500 From: "Dan Langille" To: "Mark Millard" , "FreeBSD Hackers" Subject: Re: list of valid ABI combinations Content-Type: text/plain X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SmM9M6xS9z4bGm On Thu, Dec 7, 2023, at 10:03 AM, Mark Millard wrote: > Dan Langille wrote on > Date: Thu, 07 Dec 2023 13:22:28 UTC : > >> . . . >> My goal is to automatically maintain this table, from which FreshPorts fetches package information: >> >> freshports.dev=# select * from abi order by name; >> id | name | active >> ----+----------------------+-------- >> 9 | FreeBSD:12:aarch64 | t >> 1 | FreeBSD:12:amd64 | t >> 15 | FreeBSD:12:armv6 | t >> 16 | FreeBSD:12:armv7 | t >> 8 | FreeBSD:12:i386 | t >> 18 | FreeBSD:12:mips64 | t >> 19 | FreeBSD:12:powerpc64 | t >> 2 | FreeBSD:13:aarch64 | t >> 11 | FreeBSD:13:amd64 | t >> 20 | FreeBSD:13:armv6 | t >> 21 | FreeBSD:13:armv7 | t >> 10 | FreeBSD:13:i386 | t >> 23 | FreeBSD:13:mips64 | t >> 24 | FreeBSD:13:powerpc64 | t >> 34 | FreeBSD:13:riscv64 | t >> 26 | FreeBSD:14:aarch64 | t >> 27 | FreeBSD:14:amd64 | t >> 28 | FreeBSD:14:armv6 | t >> 29 | FreeBSD:14:armv7 | t >> 30 | FreeBSD:14:i386 | t >> 32 | FreeBSD:14:mips64 | t >> 33 | FreeBSD:14:powerpc64 | t >> 35 | FreeBSD:14:riscv64 | t >> 54 | FreeBSD:15:aarch64 | t >> 47 | FreeBSD:15:amd64 | t >> 48 | FreeBSD:15:armv6 | t >> 49 | FreeBSD:15:armv7 | t >> 50 | FreeBSD:15:i386 | t >> 51 | FreeBSD:15:mips64 | t >> 52 | FreeBSD:15:powerpc64 | t >> 53 | FreeBSD:15:riscv64 | t >> (31 rows) >> . . . > > The name list in the middle (/bin/sh context): > > # fetch https://pkg.freebsd.org/index.html > index.html 3606 B 103 MBps 00s > > # grep FreeBSD: index.html | sed -e 's@.*\(FreeBSD:[^ <]*\).*@\1@' | sort > FreeBSD:12:aarch64 > FreeBSD:12:amd64 > FreeBSD:12:armv6 > FreeBSD:12:armv7 > FreeBSD:12:i386 > FreeBSD:13:aarch64 > FreeBSD:13:amd64 > FreeBSD:13:armv6 > FreeBSD:13:armv7 > FreeBSD:13:i386 > FreeBSD:13:powerpc > FreeBSD:13:powerpc64 > FreeBSD:13:powerpc64le > FreeBSD:14:aarch64 > FreeBSD:14:amd64 > FreeBSD:14:armv6 > FreeBSD:14:armv7 > FreeBSD:14:i386 > FreeBSD:14:powerpc > FreeBSD:14:powerpc64 > FreeBSD:14:powerpc64le > FreeBSD:15:aarch64 > FreeBSD:15:amd64 > FreeBSD:15:armv6 > FreeBSD:15:armv7 > FreeBSD:15:i386 > FreeBSD:15:powerpc > FreeBSD:15:powerpc64 > FreeBSD:15:powerpc64le > > There might be issues at times with https://pkg.freebsd.org/index.html not > being in sync. As far as I can tell, that page is manually maintained. > > Hopefully this can help. I think it's fantastic. I've added it to https://github.com/FreshPorts/freshports/issues/505 > I've no clue about the id column as the list changes, for example > when the FreeBSD:12:* disappear sometime after the end of the year. No worries about database issues. Those I can resolve. It's what you did that I can't often find an easy solution. Thank you. -- Dan Langille dan@langille.org From nobody Sat Dec 9 17:48:56 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Snb9N6njvz54LNj for ; Sat, 9 Dec 2023 17:49:12 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-24.consmr.mail.gq1.yahoo.com (sonic304-24.consmr.mail.gq1.yahoo.com [98.137.68.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Snb9M6KZcz4LQF for ; Sat, 9 Dec 2023 17:49:11 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=VYi4pTcY; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.205 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702144149; bh=nq9K5Ge1PHaJSl07L1r8pbT8El+hSjpfIDXNTWhBSaA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=VYi4pTcYzVqewqnyX88pBJj8OcU7IYb66ytHFCGV+2Pa5RDrpAhUmzylUGtvN1ppkZoEr41WzPmORhKpJYG4NWfBGoddM1kKUGa+eDv12Ge/968p1EPxhmvg505du2qVvhgiWebipQSj/cT/+Y309OiXJ7SPoYF+kM4vQdssgwRpHAS3KMQ+Dwb316Rykh8kYTFGpCvPOSnLuseFbW5MtXnwyD60dsmeT9zWk6saccrhk+p+8v4Qub183nRseq0S2p6n+2EAMIJL80VQMe5Pw54QJEC8KphSdFNFsrW+ZU7KnvDCb4WxC9XAF61drALl0wJZdoqtm1TbYdfQaKgpsg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702144149; bh=2WE0cJAsTQnOaHXCvb+TSSc0x+4zmLYwmKSBvQbR/2V=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=E0kStwI+DUA3ZlafAOKhgRzIkHgNWXtAStEN2L7tdXH00dEfHzsCkO94d/ixQEdc6wcugFZH8MUlALl8KWgmJoHHxGeGfeaJy39JVuBndHNov9CIDM7cKaSFzTdVInC0ven44Y8ffj7UuAZdFOD3Q95gr9Znx3MaqBG8Gpnb2h2Mu0EGH0rLvBaHvy++JpAu2CP4k7ojCe55GbOo48thz9FsUdLIcLrPPcjP4OsGrA/EhVUgZIOhS0i1MszpikalVMWu339EqPT5h4tXD8sZ9xSm/Sq6QaCns4RYdJC5eK4+0MY5MZQNUKjxSaqsPzuvK5jTJKnqbvb1uly8Ls5uDQ== X-YMail-OSG: .bzGr.QVM1kZ30l4K8rCZmBF854BB0EYZJgKtI__x9flQDmni0YzlSSpK0a1rIY jJ_B1MzdscDySENcjnkrSSejFnmvWtB.G5kMsvHq.1.uS89ZOPIy_IXfy5YkWgU0V_RKX5tDzM0H 8RV4xgHM9OG4v.h_4YTGdQKUHRaKD9adh.LF1jPhFi4QV9XIsj5WiFDk4uMLwtf5Fz8dXynCsoX0 s95v3.ZcM1WfjPxqEwvDco75nfKDaCuFBq7wjPOB88lYagc1pQiaNSdGbgr7Y0tv6PVSmInOpdso LtG9vADW0NTcuX0WsphQTLnflo_hYwaOVak_O4hH0fZ.BKp2TLJVyrPz2rj55sURmOwRNiq.6F.L Osyjv3IHQNAt_CnFDyUEomE0B1qZZjLud20s0Io3RzblxRkVrJL9YbW5HWGvuOA1BKhko6KKAcqi AamqmjRYafHkmCoOEFHmsRpxW22UvdEiqLt1sptyGu1JbIfiHSBlepZEBrNlgbgDljgYAikBzWxC IjZKTkYyiLUNAWxDZY3HPCFddoAFP2hLyAVY5AeNZmhd2NQUBUu5BObzGq4DoPvGyxPGlTU.HdTh 0nX8KbDpP1cfos9oIyDwJJ1dVLEI_OdSs9Oabidu6Cky8l609Yle6DxW0dil8wMBoZ7OKR2VFQVx YkCM_VZfIAwfDEorwkfysxmhcQVPkNFb05xcw1Wx5PN3eirtN6rvNGHT5uYsnIObLXLRliVGNB2o LcVbwffKKnOTjWKOqxJLFOwWxQSeXzkKpPIKU5aN8J2BvfnHVfVM7R8mFFtNRGnYpp4sIRLB2Jd3 IGH1GC8XF6U2ZqLB9o1GTNhJ.GlDm.3kGtiyT__K3jIpXadHwZCCPk.tTuCy2u9kpN8vXEP5OUsl lThGPZ99z54cSZAv9Ejs1pg6gXhlzi.5rASxQFcZZGVqhvAwI.W2wyh5np097JbAUjlxSmkwdTIT Fv38z3zMbZ9F3MBPtSnIr6yIRlxVTb_1jxGDGcUeW2ZFgZxZvJ5YCuZniPW1IbLLqfd6tmktdM05 ZNa45Lu5wsFF7oNaIPSg_f4PGNfqfE33DkYDesrh7l3gKy7kXm.T300_XQQMbLlwV.Vxw87hO47c FxBjjBJsRcKUYOUUclo03p9dzaEK996uZP0_ycdOnDtjIrTC8nolamWFQSZigTO9HI5TrZgm_ZLW T0nwVERg_46BllxApGatRnBvILiuM.sPlfQeF5AQykrwpPK0hhx8hc9fRnYyffwRiYMEr6jXjUvs B_8a3.v6hIhhsM.WWeXJkckCARxx4lgFabCJC.tS_N3Mr44zKAUct8u0Nl3qG8_69o7.PNrDIU8E F0DyFLgi_HF32bVHWKwFib1MHGj0_5wCEC0fIiBwWNNSw148KiS5jQmiNO6XXxtvT3kVOE2hn5V0 EKs34_vfyD9cDI.Owg5A1TPSwB2uAN3HNBAD8HVSHUXMCh3HkXMyePcttSjqR8Pj8.CiasVAX6LK 3h7EQkzdaUXk4CGWusyoxPVUt_smZS8apVm0bZ_z_1IDWQYjhAbpYcIeKgpS6USGSX_10NY4i2ry q334iCB6.HMy1GwG7rZu0NgRkGNZPvmVNFNCVf0jvPt4DmgOihqIpdtNq6e6.gCF7C_46CN21BeC rLovvteGIgywauIQC4a91DEaDinIFeP4UtNWELv01j79yNpYUGVq1wI5vq60v44Eo6F96Bu6pWuE mhdLaDf2BqCkzKrFJm0fnI2aM5O02qGTJiEeOB7l2XHIuHYj7rs_6kb.484ZqG7Y7Afe3rfDi62s jQfcV.9n3i2l.VhEPEtOeugfNu7uRZHcvhg.O8gAhcXmkKpZ86pdmzF8nksK.n.P_okYfDATrdQr PLWF_zaDHLqsfwmnfx3wWo1Jy87VQM.6ct0tB2pMU7e1xWXlxCQw3cXbnkLBka8lOr6YqXX36Mo7 7fuEWRNoHz_mk4dyU_YE8gi0Za2pcQAP0YpwiwtTNDnqNIOqDsA7SY4Dl3B.QOBJ4NNEtfQaGAyw tWpbIztCBPsc2VxPtMsiBTQDXUjXSqsAAVFKwlmtbs4jIakJTKxlE5IXpzokK.ubsoPMS4_tzJ72 rqgOgXEgZuaP4U2WbOn7Mu.sZqg_i5C72o05UpWQl65hbx.O.ZZktJlmDloD1qvdZK5Q3ThbRh3i 5EOVp2NZOmv1eSEkRoljwRcEGkrzl8f0nZVUrTQz8vHriw7R7fs8uXqUcVxsdMsJ4wneOuFbp7O3 aukyzv8LOF6BaJwjtz95dyJr2w55Va6.2j_PQKJvP3K6H60rjMNM7WYUMSZJdSiIwFQdebKeih2A - X-Sonic-MF: X-Sonic-ID: 42af22fe-f29a-4ad2-9af4-d03d400f52f5 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sat, 9 Dec 2023 17:49:09 +0000 Received: by hermes--production-gq1-64499dfdcc-tj9c5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8c699e712694f90c2634af19ee00e639; Sat, 09 Dec 2023 17:49:07 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: list of valid ABI combinations From: Mark Millard In-Reply-To: Date: Sat, 9 Dec 2023 09:48:56 -0800 Cc: FreeBSD Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: <6BD2CBAF-7ADC-4ADC-B8F0-1280FECEC155.ref@yahoo.com> <6BD2CBAF-7ADC-4ADC-B8F0-1280FECEC155@yahoo.com> To: Dan Langille X-Mailer: Apple Mail (2.3774.200.91.1.1) X-Spamd-Result: default: False [-3.43 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.93)[-0.932]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.205:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.205:from]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Snb9M6KZcz4LQF X-Spamd-Bar: --- On Dec 7, 2023, at 09:44, Dan Langille wrote: > On Thu, Dec 7, 2023, at 10:03 AM, Mark Millard wrote: >> Dan Langille wrote on >> Date: Thu, 07 Dec 2023 13:22:28 UTC : >>=20 >>> . . . >>> My goal is to automatically maintain this table, from which = FreshPorts fetches package information: >>>=20 >>> freshports.dev=3D# select * from abi order by name; >>> id | name | active=20 >>> ----+----------------------+-------- >>> 9 | FreeBSD:12:aarch64 | t >>> 1 | FreeBSD:12:amd64 | t >>> 15 | FreeBSD:12:armv6 | t >>> 16 | FreeBSD:12:armv7 | t >>> 8 | FreeBSD:12:i386 | t >>> 18 | FreeBSD:12:mips64 | t >>> 19 | FreeBSD:12:powerpc64 | t >>> 2 | FreeBSD:13:aarch64 | t >>> 11 | FreeBSD:13:amd64 | t >>> 20 | FreeBSD:13:armv6 | t >>> 21 | FreeBSD:13:armv7 | t >>> 10 | FreeBSD:13:i386 | t >>> 23 | FreeBSD:13:mips64 | t >>> 24 | FreeBSD:13:powerpc64 | t >>> 34 | FreeBSD:13:riscv64 | t >>> 26 | FreeBSD:14:aarch64 | t >>> 27 | FreeBSD:14:amd64 | t >>> 28 | FreeBSD:14:armv6 | t >>> 29 | FreeBSD:14:armv7 | t >>> 30 | FreeBSD:14:i386 | t >>> 32 | FreeBSD:14:mips64 | t >>> 33 | FreeBSD:14:powerpc64 | t >>> 35 | FreeBSD:14:riscv64 | t >>> 54 | FreeBSD:15:aarch64 | t >>> 47 | FreeBSD:15:amd64 | t >>> 48 | FreeBSD:15:armv6 | t >>> 49 | FreeBSD:15:armv7 | t >>> 50 | FreeBSD:15:i386 | t >>> 51 | FreeBSD:15:mips64 | t >>> 52 | FreeBSD:15:powerpc64 | t >>> 53 | FreeBSD:15:riscv64 | t >>> (31 rows) >>> . . . >>=20 >> The name list in the middle (/bin/sh context): >>=20 >> # fetch https://pkg.freebsd.org/index.html >> index.html 3606 B 103 = MBps 00s >>=20 >> # grep FreeBSD: index.html | sed -e 's@.*\(FreeBSD:[^ <]*\).*@\1@' | = sort >> FreeBSD:12:aarch64 >> FreeBSD:12:amd64 >> FreeBSD:12:armv6 >> FreeBSD:12:armv7 >> FreeBSD:12:i386 >> FreeBSD:13:aarch64 >> FreeBSD:13:amd64 >> FreeBSD:13:armv6 >> FreeBSD:13:armv7 >> FreeBSD:13:i386 >> FreeBSD:13:powerpc >> FreeBSD:13:powerpc64 >> FreeBSD:13:powerpc64le >> FreeBSD:14:aarch64 >> FreeBSD:14:amd64 >> FreeBSD:14:armv6 >> FreeBSD:14:armv7 >> FreeBSD:14:i386 >> FreeBSD:14:powerpc >> FreeBSD:14:powerpc64 >> FreeBSD:14:powerpc64le >> FreeBSD:15:aarch64 >> FreeBSD:15:amd64 >> FreeBSD:15:armv6 >> FreeBSD:15:armv7 >> FreeBSD:15:i386 >> FreeBSD:15:powerpc >> FreeBSD:15:powerpc64 >> FreeBSD:15:powerpc64le >>=20 >> There might be issues at times with = https://pkg.freebsd.org/index.html not >> being in sync. As far as I can tell, that page is manually = maintained. >>=20 >> Hopefully this can help. >=20 > I think it's fantastic. I've added it to = https://github.com/FreshPorts/freshports/issues/505 >=20 >> I've no clue about the id column as the list changes, for example >> when the FreeBSD:12:* disappear sometime after the end of the year. >=20 > No worries about database issues. Those I can resolve. It's what you = did that I can't often find an easy solution. I'll note that tier 3 and unsupported are subject to (possibly) = temporary removal of ports-package files as a matter of resource management. Such would be unlikely to lead to removal from: https://pkg.freebsd.org/index.html during that temporary time. See: https://lists.freebsd.org/archives/freebsd-git/2023-December/000217.html for an example that started yesterday for: FreeBSD:14:armv6 It was for helping deal with running low on some mirrors' free storage space until FreeBSD:12:* files are generally removed after the end of the year. Note: https://lists.freebsd.org/archives/freebsd-git/2023-December/000218.html is about possibly doing similarly with the FreeBSD:15:powerpc = package-base files as well, for the same reason. I do not know if they would actually do such package-base removals. =3D=3D=3D Mark Millard marklmi at yahoo.com