Date: Fri, 24 Jan 2025 11:32:13 +0200 From: Sulev-Madis Silber <freebsd-current-freebsd-org111@ketas.si.pri.ee> To: freebsd-current@freebsd.org Subject: Re: /usr/src and /usr/ports not git directories ? Message-ID: <BF43B966-DE37-4335-9DEB-D5EE4F8D9F64@ketas.si.pri.ee> In-Reply-To: <20250123225513.ioRMw6A5@steffen%sdaoden.eu> References: <Z5AQ1GcwX_MZw69G@www.zefox.net> <CANCZdfoHUsZusqMg_gWN5mB9P3xByGv_GfELi9Dd63CHto1igw@mail.gmail.com> <3782b90b-850f-4435-8b6d-bdb83753daea@app.fastmail.com> <CANCZdfruU=GR5DFWL7RQA4_yjh2-NHOB669wsOSL1DzZ3Fs7%2BQ@mail.gmail.com> <Z5Ehmzd4tp-Xf8Q8@cell.glebi.us> <CAFYkXj=nwjK%2BBnKg%2B0vkyeMu8XaLErCVe8Xr1g3%2BDOaOpeCBXA@mail.gmail.com> <CANCZdfq%2BTAW7v-1H71HSY=pFuO2FDkzAU04q_O-6SjTBdSFgSg@mail.gmail.com> <20250123074050.d9e331172e6b2f9dbc8b8dfd@dec.sakura.ne.jp> <20250123074932.170b7959bca443a934599a9c@dec.sakura.ne.jp> <20250123053721.KDVDBu1z@steffen%sdaoden.eu> <Z5JKUxhYER-5mNBU@mail.gmail.com> <20250123225513.ioRMw6A5@steffen%sdaoden.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
------JA8FLK1MYCCRPEB3QNTRTNPOVETWO2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable longer analysis, of why src would be, imho, still shipped, is here: so yeah, i hope src and ports don't disappear from releases completely bec= ause i have number or cases where that would be good, including offline by = accident, offline by design in high security environment, natural disasters= , ((global thermo)nuclear) war or just plain old complete software abadonem= ent of whole fbsd project in far future=2E i hope the last one is only reas= on=2E i'll also exclude sci-fi scenarios here i just peeked into v1=2E0 iso i found=2E imagine, there's src! that src can be still obtained from (our) git, i checked, but what if it s= uddenly can't it's probably not the first time when everyone thought to have piece of so= ftware / code until noone had it anymore=2E if you sprinkle the src around = the world like this, there are much less chance it completely disappearing for a fun, i also have kept my stash of distfiles of last 10+ years or tot= al 23y of using fbsd=2E it's only 50g of packed sources and includes most o= f server and desktop things=2E distcache exists but what if it won't=2E btw= i'm curious how large it is? there have been whole big tv stations who for intentional or unintentional= reasons lost their archive and had to resort on obtaining it from lucky ho= me taper remember you don't really need to install the src=2Etxz at all=2E you can = just pkg install git or ports install it and pull it down from network if i= t's there still it doesn't seem to save space either and we have minis for it while there, can we have maxi-memstick too? in addition of hybrid iso=2E a= s this could allow quick image modification if one couldn't be arsed to bui= ld their own at the time they eg want to quickly sideload something like ht= tp://ketas=2Esi=2Epri=2Eee/misc/installer-addon-utils-root-bin-si=2Esh into= installer so i hope end result is just src maybe getting git bootstrap and not getti= ng completely removed but yeah, it's weird how src is in git but base has no git=2E somehow we e= nded up with good tool but with wrong license and now it can't be in base b= ecause of it=2E if basically noone devs, why is compiler in base then? btw = removing that would be weird too and would create all sorts of chicken end = egg issues hopefully this all resolves into my favorite solution, still have src/port= s ---begin--- #!/bin/sh -Cefu # # Copyright (c) 2024 Sulev-Madis Silber <ketas@si=2Epri=2Eee> # All rights reserved=2E # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1=2E Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer=2E # 2=2E Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution= =2E # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPO= SE # ARE DISCLAIMED=2E IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABL= E # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTI= AL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRI= CT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WA= Y # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE=2E # set -Cefu ###################################################################### keymap=3Dee wall_cmos_clock=3D1 timezone=3DEurope/Tallinn ping=3Dexample=2Ecom ntp_servers=3D'ntp ntp=2Esi=2Epri=2Eee' ###################################################################### _mount_unionfs() { local dst=3D"$1" =09 local src=3D"/tmp/unionfs$dst" =09 =09 if [ ! -d "$src" ] then mkdir -p "$src" fi =09 =09 if [ ! -d "$dst" ] then mkdir -p "$dst" fi =09 =09 if ! mount -t unionfs | fgrep -q "$dst" then mount_unionfs -o noatime "$src" "$dst" fi } if [ "$keymap" ] then kbdcontrol -r fast -l "$keymap" fi if [ ! -f /tmp/tmp-mount-done ] then echo =09 =09 mount -t tmpfs tmpfs /tmp =09 =09 service cleartmp start =09 mkdir /tmp/bsdinstall_etc =09 touch /tmp/bsdinstall_log =09 =09 touch /tmp/tmp-mount-done fi for dst in /etc /root /usr/local /var/cache/pkg /var/db/pkg do _mount_unionfs "$dst" done if [ "$wall_cmos_clock" ] then if [ ! -f /etc/wall_cmos_clock ] then touch /etc/wall_cmos_clock fi fi if [ "$timezone" ] then if [ ! -f /etc/localtime ] then tzsetup "$timezone" fi fi if ! pgrep -q adjkerntz then service adjkerntz start fi for if in `ifconfig -l` do if [ "$if" =3D lo0 ] then continue fi =09 =09 ifconfig "$if" inet6 -ifdisabled accept_rtadv up =09 =09 if ! service dhclient status "$if" > /dev/null then echo =09 =09 service dhclient forcestart "$if" fi done if ! pgrep -q rtsold then rtsold -am fi if [ "$ping" ] then echo =09 =09 for af in 4 6 do if ping "-${af}oq" "$ping" > /dev/null then echo "v$af ok" else echo "v$af fail" fi done fi if [ "$ntp_servers" ] then if [ ! -f /tmp/ntpdate-run-done ] then echo =09 =09 ntpdate $ntp_servers =09 =09 touch /tmp/ntpdate-run-done fi fi if ! service ntpd onestatus > /dev/null then echo =09 =09 service ntpd onestart fi if [ "$ntp_servers" ] then echo =09 =09 if [ -f /tmp/ntpdate-run-done ] then ntpdate -q $ntp_servers fi fi echo date echo for kld in coretemp amdtemp do if [ -f "/boot/kernel/$kld=2Eko" ] then kldload -n "$kld" fi done sysctl -a | grep '[0-9]C$' | egrep -v '(_(CRT|PSV)|\=2Etjmax)' if sysctl -a | fgrep -q battery then echo =09 =09 acpiconf -i 0 | grep -v ':[[:space:]]*$' fi echo ---end--- ------JA8FLK1MYCCRPEB3QNTRTNPOVETWO2 Content-Type: text/plain; name=installer-addon-utils-root-bin-si.txt Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=installer-addon-utils-root-bin-si.txt; size=3579 IyEvYmluL3NoIC1DZWZ1CiMKIyBDb3B5cmlnaHQgKGMpIDIwMjQgIFN1bGV2LU1hZGlzIFNpbGJl ciA8a2V0YXNAc2kucHJpLmVlPgojIEFsbCByaWdodHMgcmVzZXJ2ZWQuCiMKIyBSZWRpc3RyaWJ1 dGlvbiBhbmQgdXNlIGluIHNvdXJjZSBhbmQgYmluYXJ5IGZvcm1zLCB3aXRoIG9yIHdpdGhvdXQK IyBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQgdGhhdCB0aGUgZm9sbG93aW5n IGNvbmRpdGlvbnMKIyBhcmUgbWV0OgojIDEuIFJlZGlzdHJpYnV0aW9ucyBvZiBzb3VyY2UgY29k ZSBtdXN0IHJldGFpbiB0aGUgYWJvdmUgY29weXJpZ2h0CiMgICAgbm90aWNlLCB0aGlzIGxpc3Qg b2YgY29uZGl0aW9ucyBhbmQgdGhlIGZvbGxvd2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