Switching to -devel On 7/27/12 6:09 AM, Alexander Hansen wrote: > On 7/27/12 2:02 AM, Martin Costabel wrote: >> On 27/07/12 00:33, Daniel Johnson wrote: >>> I just wanted to document some things I noticed during my Mountain Lion >>> upgrade. >>> >>> First, when running "fink reinstall fink", and any fink commands in fact, I >>> get a spew of dialogs telling me to get XQuartz and install it manually. >>> Not a big deal, but there are a lot of dialogs in rapid succession which is >>> mildly annoying. I gather this is from VirtPackage.pm checking for the >>> presence of x11, which happens multiple times when fink is run. Installing >>> XQuartz makes it stop. :) >>> >>> Next I got repeated messages about not being able to create the fink-bld >>> user. It seems that the Mountain Lion installer wipes out all the >>> fink-installed users. To fix this I needed to run "fink configure" and >>> select "Y" when it asks to create UIDs dynamically. Related to that, I had >>> to reinstall my previously installed passwd-* packages to get those users >>> back. >> >> Apple is, as usual, very inventive with their bugs. The problem is that >> the OS upgrade wipes out the Fink-created users, but not the groups. >> Thus there remains GID 266, which fink interprets as "ID 266 already in >> use", and it refuses to create user fink-bld with UID 266, proposes to >> create UIDs dynamically instead. You end up with fink-bld UID:600, >> GID:266. Fink could perhaps be smarter about this. >> > > It had never come up. _We_ don't remove our users/groups, and Apple > hadn't done so until now. > > Services::check_id_unused() needs to be made a bit more sophisticated, > since right now it reports failure if either the UID or GID are set. > And the only usage right now is just to check the UID. > > Unfortunately, this bug got reported after I'd already released > fink-0.34.1. >
I've just added a modification to fink's github master and branch_0_34 Services.pm which modifies Services::check_id_unused() to allow it to check just the UID or GID, as well as both: http://git.io/-Wp3kg A test case which worked for me is as follows: I removed the fink-bld user (but not group) using sudo dscl . -delete /Users/fink-bld . I then rebooted, as this was required to clear the account information out fully. After that I ran "fink selfupdate" (any operation in which packages _could_ be built will have the same effect) and fink restored my fink-bld user based on my fink.conf settings. I'd like to get some feedback on this and release it soon, since it's a better user experience if we mitigate the problem than if they have to run "fink configure". -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel