From nobody Wed Jan 15 04:37:07 2025 X-Original-To: freebsd-ports@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 4YXtWX6H4Nz5ktgw for ; Wed, 15 Jan 2025 04:37:12 +0000 (UTC) (envelope-from childers@redwoodhodling.com) Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YXtWW4ZfVz3rh2 for ; Wed, 15 Jan 2025 04:37:11 +0000 (UTC) (envelope-from childers@redwoodhodling.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of childers@redwoodhodling.com designates 35.89.44.35 as permitted sender) smtp.mailfrom=childers@redwoodhodling.com; dmarc=none Received: from eig-obgw-6002a.ext.cloudfilter.net ([10.0.30.222]) by cmsmtp with ESMTPS id XtUHt1A9jYpSZXv9SttXZJ; Wed, 15 Jan 2025 04:37:10 +0000 Received: from box5299.bluehost.com ([162.241.225.231]) by cmsmtp with ESMTPS id Xv9Rt6NHXhlR2Xv9RtPwwy; Wed, 15 Jan 2025 04:37:09 +0000 X-Authority-Analysis: v=2.4 cv=M/WGKDws c=1 sm=1 tr=0 ts=67873b75 a=j8cmhGSwDXHfk78weSC6XQ==:117 a=j8cmhGSwDXHfk78weSC6XQ==:17 a=VdSt8ZQiCzkA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=eUuctjIZAAAA:8 a=VvrjSflXAAAA:8 a=KX0nfaAeAAAA:8 a=rZfKVWG4DLsZQoNU93EA:9 a=QEXdDO2ut3YA:10 a=Mnep2BrAMoFzZHJfEb0A:9 a=UbB1caO1_BirIr6b:21 a=_W_S_7VecoQA:10 a=lqcHg5cX4UMA:10 a=adBXg73jgRksZmCzc6C1:22 a=Zl9oNd86wV1WjAEH9lSW:22 a=6Ks3-QTXuPnkUkD0NeVI:22 Received: from syn-097-084-087-058.res.spectrum.com ([97.84.87.58]:21312 helo=[10.0.0.20]) by box5299.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1tXv9Q-004JWb-2E; Tue, 14 Jan 2025 21:37:08 -0700 Content-Type: multipart/alternative; boundary="------------QUT7VvSRCwCXcFIgm5f0UEJG" Message-ID: <352dfe48-9a5e-4204-a854-e3cb0b3889aa@redwoodhodling.com> Date: Wed, 15 Jan 2025 04:37:07 +0000 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: FreeBSD 14.2; Thunderbird 128.6; Chromium, Iridium, etc To: Tomoaki AOKI Cc: freebsd-ports@FreeBSD.org References: <9d21e261-e943-44df-8f84-8c2cb3ca81f8@redwoodhodling.com> <20250111132434.6d0e06c9f3b39e7a52e8f354@dec.sakura.ne.jp> Content-Language: en-US From: Richard Childers In-Reply-To: <20250111132434.6d0e06c9f3b39e7a52e8f354@dec.sakura.ne.jp> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5299.bluehost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - redwoodhodling.com X-BWhitelist: no X-Source-IP: 97.84.87.58 X-Source-L: No X-Exim-ID: 1tXv9Q-004JWb-2E X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: syn-097-084-087-058.res.spectrum.com ([10.0.0.20]) [97.84.87.58]:21312 X-Source-Auth: childers@redwoodhodling.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZGh6Y3ZybXk7ZGh6Y3ZybXk7Ym94NTI5OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfPmyw/c15ravmz0wTvRApPFUoQ++W2oZYRES7C6+J44IhfIlD4WwpXOgBwh/Dvbl34oQ6ImOxUFDYrxV2I+FH4vzO+HKGN0ZSaqx/E0aSjJsLk+rUR1/ l31Rh2GV///0Sh1bCi9EwnRJnUYsdwsoEaNyE7w5Zd8ouyocQYfwGehEAHuzqMXfYudKmFOWyhaCFV4uspk8x6xSnV4XW+ovu5IvjEvqMlbjy4Ihkgx+n3ZB X-Spamd-Result: default: False [-1.64 / 15.00]; NEURAL_HAM_MEDIUM(-0.96)[-0.958]; NEURAL_SPAM_SHORT(0.40)[0.405]; RWL_MAILSPIKE_EXCELLENT(-0.40)[35.89.44.35:from]; NEURAL_HAM_LONG(-0.39)[-0.390]; R_SPF_ALLOW(-0.20)[+ip4:35.89.44.32/29]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCPT_COUNT_TWO(0.00)[2]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:16509, ipnet:35.80.0.0/12, country:US]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[35.89.44.35:from]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_X_SOURCE(0.00)[]; R_DKIM_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[redwoodhodling.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_X_ANTIABUSE(0.00)[] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4YXtWW4ZfVz3rh2 This is a multi-part message in MIME format. --------------QUT7VvSRCwCXcFIgm5f0UEJG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit "Is there a symlink /usr/home pointing to /home?" Waxing philosophic on /home ... Back in 1986 I was working at GE Calma supporting a lab full of diverse UNIX servers - Apollo, Silicon Graphics, Power/64 with six CPUs (yes, in 1986) and also a Sequent (another multiprocessor platform running UNIX), a few Sun servers and about 30 Sun workstations. This was the time of the Sun 2, based on the 68010. The Sun 3 (based on the 68020) was brand new. NFS was brand new. There were few naming conventions for mount points. / and /usr could be relied upon to exist as separate partitions. But different UNIX releases placed home directories in different locations. I opted to place home directories in their own dedicated partition on the hard drive because the requirements of users were different from those of the operating system and because I did not want the users' disk space requirements to interfere with the operating system's disk space requirements. It made disk space calculations and partition sizing easier if I placed home directories in their own dedicated partition. It made backup to tape easier. It made restoring data from tape after a crash easier, too. And it made NFS easier. I mentioned this at classes and seminars I attended and the idea caught on. GE Calma was literally across the freeway from Sun Microsystems' manufacturing facility, in Milpitas, and so they were one of Sun's very first customers. I had previously seen a Sun 1, at another job in San Francisco, but that was before Sun Microsystems had written a graphic user interface ('Suntools', now lost in the mists of time, not even Wikipedia has heard of Suntools or OpenWindows or that other GUI that was supposed to run Postscript but never got off the ground, lol) and at the time the Sun 1 was just a curiosity - "look, we ported 4.1 BSD to the 68000, is that cool or what?". GE Calma was playing with X v10.4, at the time, if you wonder - Calma built giant computer workstations that were used to design things like dams and hydroelectric projects and nuclear reactors and provided customers with the ability to do walkthroughs, but it was all in wireframe and Calma wanted to add texture) and I think I got a copy of X v11.0 from The Well, in Sausalito, where I knew someone who was willing to cut me a tape - those were the good old days. Obviously the factors are not the same and ZFS changes things but, still, it's funny to see /home has migrated back to /usr/home. It is a natural misunderstanding of the acronym 'usr', which refers not so much to the users of the operating system as it did to the separation between privileged executables located in the root filesystem which were a prerequisite to booting into single user mode, and those executables which formed part of the larger ecosystem of the operating system when it reached multiuser, at which time /usr was mounted and made accessible and the systems administrator could finally heave a big sigh of relief and tell everyone the computer was back up. In response to the situation I encountered with FreeBSD 14.2 ... I gave some thought to creating a link in /usr/home but that would only perpetuate a broken situation; links don't belong in /etc/passwd, IMHO, unless you are running NFS and have multiple NFS servers providing home directories and have to cobble together a shared namespace ... but that is the topic of another post. Also ... if I don't know the true cause of the problem, then how can I say that I have fixed it? Diving to the root of the problem gave me a greater understanding of Thunderbird, Chromium, and its derivatives. I try to resist the urge to go for the quick fix until I am sure it is also the best solution to the problem. Recreating /usr/home would just kick the problem down the road but I would still have to deal with it some day. After 40 years of troubleshooting, my credo is "eschew dependencies". Keep it simple. I guess we all have to define "simple" for ourselves. My assumption is the FreeBSD team had a good reason to get rid of /usr/home; they had come to the same conclusion I had reached a few decades before. I'm not fanatical about it; I recall evaluating the Nokia FW-1, back around 1999 or 2000, at Hambrecht & Quist, LLC - the FW-1 was based on FreeBSD 3.x, I think, and the developers had taken the unusual step of mounting all filesystems but /var as read-only, so that home directories were, by necessity, located in /var/home. That sort of makes sense, for that particular application, where there is only one login, and that, an administrator - we assume he or she won't be downloading large files that interfere with the other functions of the /var filesystem. Carry on, comrades, FreeBSD 14.2 screams like the race car it is, and I am very impressed. Regards, ~richard ===== On 1/11/25 04:24, Tomoaki AOKI wrote: > On Sat, 11 Jan 2025 02:17:20 +0000 > Richard Childers wrote: > >> Dear folks, >> >> >> I just upgraded from 13.3 to 14.2. Maybe I missed the memo; but moving >> home directories from /usr/home back to /home broke Thunderbird, it >> couldn't find my folders. >> >> >> (When I say 'upgrade', I mean 'install an up-to-date version of FreeBSD >> on a different laptop, install up-to-date applications, rsync my home >> directory to the new install, then make the jump'. Not freebsd-update(8).) >> >> >> The fix is to edit these two text files: >> >> >> /home/LOGIN/.thunderbird/????????.default/folderCache.json >> >> /home/LOGIN/.thunderbird/????????.default/prefs.js >> >> >> ... where '????????' represents 8 >> Thunderbird-assigned-at-the-time-of-account-creation random ASCII >> characters that seem to represent a unique ID. >> >> >> If you've done this a few times your files may be quite old and contain >> references to accounts that you no longer use but a global >> search-and-replace should not damage these definitions either as if they >> still exist their paths will need to be updated as well, and if the >> folders no longer exist then you may safely engage in some housekeeping >> and delete those other lines. >> >> >> Here's hoping it helps those of us with not much hair to spare to avoid >> ripping out what is left, in frustration, after an upgrade. >> >> >> The output from 'pkg add -y thunderbird' is pretty sparse - less then >> ten lines. Not complaining but that might be a good place to put hints >> for administrators overseeing the upgrade - it's not done until the >> users can read and write email. >> >> >> 'thunderbird --help' refers to something called a "Migration Manager" >> but I could find no documentation on this from the command line; >> Thunderbird has no online UNIX manual page, alas. >> >> >> You may also find Chromium to be uncooperative; if it was running when >> you did your rsync, then you will have to remove the following file >> before it will start on the new machine: >> >> >> % rm -f .config/chromium/SingletonLock >> >> >> You may as well remove them all: >> >> >> % rm -f .config/chromium/Singleton* >> >> >> You might even want to do this: >> >> >> % rm -f .config/*/Singleton* >> >> >> ... that will fix Iridium and ungoogled-chromium, too. >> >> >> Regards, >> >> >> ~richard >> >> >> ===== >> >> >> More info:https://www.redwoodhodling.com/Exhibits/ >> >> See, also:https://www.redwoodlinux.com/RaspiLab/ >> >> See, also: >> https://www.gofundme.com/f/support-innovative-raspberry-pi-classroom-project > Is there a symlink /usr/home pointing to /home? > If not, creating it could usually workaround the problem. > > As I disliked previous default (/usr/home), I habitally create /home as > a directory (mount point) and created symlink /usr/home pointing to it > manually on installation (not using installer, though) for > copatibilities. > > *I've created a dedicated partition for /home before I've switched to > Root on ZFS, and now creating a dedicated dataset for /home. > So /home is a mountpoint anyway for me. > --------------QUT7VvSRCwCXcFIgm5f0UEJG Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

"Is there a symlink /usr/home pointing to /home?"


Waxing philosophic on /home ...


Back in 1986 I was working at GE Calma supporting a lab full of diverse UNIX servers - Apollo, Silicon Graphics, Power/64 with six CPUs (yes, in 1986) and also a Sequent (another multiprocessor platform running UNIX), a few Sun servers and about 30 Sun workstations.


This was the time of the Sun 2, based on the 68010. The Sun 3 (based on the 68020) was brand new. NFS was brand new. There were few naming conventions for mount points. / and /usr could be relied upon to exist as separate partitions. But different UNIX releases placed home directories in different locations.


I opted to place home directories in their own dedicated partition on the hard drive because the requirements of users were different from those of the operating system and because I did not want the users' disk space requirements to interfere with the operating system's disk space requirements. It made disk space calculations and partition sizing easier if I placed home directories in their own dedicated partition. It made backup to tape easier. It made restoring data from tape after a crash easier, too. And it made NFS easier.


I mentioned this at classes and seminars I attended and the idea caught on. GE Calma was literally across the freeway from Sun Microsystems' manufacturing facility, in Milpitas, and so they were one of Sun's very first customers. I had previously seen a Sun 1, at another job in San Francisco, but that was before Sun Microsystems had written a graphic user interface ('Suntools', now lost in the mists of time, not even Wikipedia has heard of Suntools or OpenWindows or that other GUI that was supposed to run Postscript but never got off the ground, lol) and at the time the Sun 1 was just a curiosity - "look, we ported 4.1 BSD to the 68000, is that cool or what?".


GE Calma was playing with X v10.4, at the time, if you wonder - Calma built giant computer workstations that were used to design things like dams and hydroelectric projects and nuclear reactors and provided customers with the ability to do walkthroughs, but it was all in wireframe and Calma wanted to add texture) and I think I got a copy of X v11.0 from The Well, in Sausalito, where I knew someone who was willing to cut me a tape - those were the good old days.


Obviously the factors are not the same and ZFS changes things but, still, it's funny to see /home has migrated back to /usr/home. It is a natural misunderstanding of the acronym 'usr', which refers not so much to the users of the operating system as it did to the separation between privileged executables located in the root filesystem which were a prerequisite to booting into single user mode, and those executables which formed part of the larger ecosystem of the operating system when it reached multiuser, at which time /usr was mounted and made accessible and the systems administrator could finally heave a big sigh of relief and tell everyone the computer was back up.


In response to the situation I encountered with FreeBSD 14.2 ... I gave some thought to creating a link in /usr/home but that would only perpetuate a broken situation; links don't belong in /etc/passwd, IMHO, unless you are running NFS and have multiple NFS servers providing home directories and have to cobble together a shared namespace ... but that is the topic of another post.


Also ... if I don't know the true cause of the problem, then how can I say that I have fixed it? Diving to the root of the problem gave me a greater understanding of Thunderbird, Chromium, and its derivatives. I try to resist the urge to go for the quick fix until I am sure it is also the best solution to the problem. Recreating /usr/home would just kick the problem down the road but I would still have to deal with it some day.


After 40 years of troubleshooting, my credo is "eschew dependencies". Keep it simple. I guess we all have to define "simple" for ourselves. My assumption is the FreeBSD team had a good reason to get rid of /usr/home; they had come to the same conclusion I had reached a few decades before.


I'm not fanatical about it; I recall evaluating the Nokia FW-1, back around 1999 or 2000, at Hambrecht & Quist, LLC - the FW-1 was based on FreeBSD 3.x, I think, and the developers had taken the unusual step of mounting all filesystems but /var as read-only, so that home directories were, by necessity, located in /var/home. That sort of makes sense, for that particular application, where there is only one login, and that, an administrator - we assume he or she won't be downloading large files that interfere with the other functions of the /var filesystem.


Carry on, comrades, FreeBSD 14.2 screams like the race car it is, and I am very impressed.


Regards,


~richard


=====

On 1/11/25 04:24, Tomoaki AOKI wrote:
On Sat, 11 Jan 2025 02:17:20 +0000
Richard Childers <childers@redwoodhodling.com> wrote:

Dear folks,


I just upgraded from 13.3 to 14.2. Maybe I missed the memo; but moving 
home directories from /usr/home back to /home broke Thunderbird, it 
couldn't find my folders.


(When I say 'upgrade', I mean 'install an up-to-date version of FreeBSD 
on a different laptop, install up-to-date applications, rsync my home 
directory to the new install, then make the jump'. Not freebsd-update(8).)


The fix is to edit these two text files:


/home/LOGIN/.thunderbird/????????.default/folderCache.json

/home/LOGIN/.thunderbird/????????.default/prefs.js


... where '????????' represents 8 
Thunderbird-assigned-at-the-time-of-account-creation random ASCII 
characters that seem to represent a unique ID.


If you've done this a few times your files may be quite old and contain 
references to accounts that you no longer use but a global 
search-and-replace should not damage these definitions either as if they 
still exist their paths will need to be updated as well, and if the 
folders no longer exist then you may safely engage in some housekeeping 
and delete those other lines.


Here's hoping it helps those of us with not much hair to spare to avoid 
ripping out what is left, in frustration, after an upgrade.


The output from 'pkg add -y thunderbird' is pretty sparse - less then 
ten lines. Not complaining but that might be a good place to put hints 
for administrators overseeing the upgrade - it's not done until the 
users can read and write email.


'thunderbird --help' refers to something called a "Migration Manager" 
but I could find no documentation on this from the command line; 
Thunderbird has no online UNIX manual page, alas.


You may also find Chromium to be uncooperative; if it was running when 
you did your rsync, then you will have to remove the following file 
before it will start on the new machine:


% rm -f .config/chromium/SingletonLock


You may as well remove them all:


% rm -f .config/chromium/Singleton*


You might even want to do this:


% rm -f .config/*/Singleton*


... that will fix Iridium and ungoogled-chromium, too.


Regards,


~richard


=====


More info: https://www.redwoodhodling.com/Exhibits/

See, also: https://www.redwoodlinux.com/RaspiLab/

See, also: 
https://www.gofundme.com/f/support-innovative-raspberry-pi-classroom-project 
Is there a symlink /usr/home pointing to /home?
If not, creating it could usually workaround the problem.

As I disliked previous default (/usr/home), I habitally create /home as
a directory (mount point) and created symlink /usr/home pointing to it
manually on installation (not using installer, though) for
copatibilities.

 *I've created a dedicated partition for /home before I've switched to
  Root on ZFS, and now creating a dedicated dataset for /home.
  So /home is a mountpoint anyway for me.

--------------QUT7VvSRCwCXcFIgm5f0UEJG--