Skip to content

Allow bootstrapping on 10.14.5 w/ perl 5.18.4 #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 10, 2019
Merged

Conversation

nieder
Copy link
Member

@nieder nieder commented May 24, 2019

No description provided.

@nieder nieder requested a review from a team May 24, 2019 10:43
@nieder nieder added the Bootstrap Issues affecting bootstrap label May 24, 2019
@nieder
Copy link
Member Author

nieder commented May 26, 2019

bb608f2 and 4be81e2 are needed for bootstrapping.

e13ad45 is necessary, but I'm not sure sufficient , to create a new dist for 10.14.5.

@akhansen
Copy link
Member

Seems sensible to me.

@akhansen
Copy link
Member

akhansen commented May 26, 2019

Bootstrap worked for me (10.14.5/Xcode 10.2)

Fionna:fink hansen$ /tmp/sw/bin/fink list perl
Scanning package description files..........
Information about 319 packages read in 1 seconds.
p perl5184-core [virtual package]
p perlio-eol-pm51 [virtual package]
p perlobjcbridge- [virtual package]
i system-perl 5.18.4-1 [virtual package representing perl]
p system-perl5184 [virtual package]

@mrvacbob
Copy link
Member

mrvacbob commented Jun 2, 2019

I tried bootstrapping on 10.14.6 with this and get a failure:

/sw/bin/fink -y install gettext-bin libgettext8-dev libiconv-dev libncurses5
Use 'fink reinstall fink' to switch distributions
from 10.14.5 to 10.14.
'install' operation not permitted.
### execution of /tmp/fink.4nAiX failed, exit code 29
phase compiling: dpkg-1.10.21-1248 failed

@nieder
Copy link
Member Author

nieder commented Jun 2, 2019

@mrvacbob was this a fresh bootstrap, or an update of an existing install?

@mrvacbob
Copy link
Member

mrvacbob commented Jun 2, 2019

This is a fresh bootstrap from the nieder-5.18.4-bootstrap branch on 18G29g.

@nieder
Copy link
Member Author

nieder commented Jun 3, 2019

What does 10.14.6 report with uname -a ?

@mrvacbob
Copy link
Member

mrvacbob commented Jun 3, 2019

Darwin asimac.local 18.6.0 Darwin Kernel Version 18.6.0: Tue May 7 22:54:55 PDT 2019; root:xnu-4903.270.19.100.1~2/RELEASE_X86_64 x86_64

@akhansen
Copy link
Member

akhansen commented Jun 3, 2019

@mrvacbob, @nieder, that's probably due to what @PovlAbrahamsen noted above, because when the tests fail they fall through to 10.14 instead of 10.14.5.

@nieder
Copy link
Member Author

nieder commented Jun 4, 2019

648179b should take care of unreleased versions accidentally falling back to Dist: 10.14 and not 10.14.5.

However, I think line 260 in Engine.pm needs to be tweaked because I think I hardcoded it to only work as intended when 10.14.5 (distribution field) == 10.14.5 (os version). And I don't know enough perl to grok the versions correctly as version numbers and not as strings or decimals.

@akhansen
Copy link
Member

akhansen commented Jun 4, 2019

version->parse() is what is used to convert the strings/decimals into version strings.

@nieder
Copy link
Member Author

nieder commented Jun 5, 2019

That conditional is driving me nuts.
Don't do an upgrade if

  1. $osversion == $distribution (<=10.14 and presumably 10.15 coming up if Apple returns to form), or
  2. if $distribution == 10.14.5, then check if $osversion_long == $distribution.

(2) is meant to catch macOS 10.14.[67...], where $distribution = 10.14.5, but $osversion_long != 10.14.5. And the leading if for (2) is because we normally don't want to compare against $osversion_long, except in the 10.14.5 case.

Does this make sense?

@nieder
Copy link
Member Author

nieder commented Jun 9, 2019

To update, this worked for me as a both a fresh install (./bootstrap) on 10.14.5 and just tested an upgrade from 0.44.1 (./inject) on 10.14.5.

Not tested on 10.14.6 but I think the pseudocode in m previous comment should work if someone could help with the actual perl code.

@akhansen
Copy link
Member

akhansen commented Jun 9, 2019

I looked at this a bit, but I haven't gotten to the point of actual code yet--I've been doing paid job stuff over the weekend.

Changes to Engine.pm to allow upgrades to 10.14.5 distribution
@nieder
Copy link
Member Author

nieder commented Jun 21, 2019

To install this work in progress Fink on a fresh Mac with 10.14.5

@akhansen
Copy link
Member

Where are we at on this?

@nieder
Copy link
Member Author

nieder commented Jun 23, 2019

I've tested fresh installs on 10.14.5 and .6beta and updates from a previous 10.14.4 setup. Other people on the mailing lists have also reported success.

@sclint13
Copy link

Hey, I have been trying to download Fink to my Mac on 10.14.5 using the zip from nieder, but I keep getting an error with my dpkg files. I have attached the latest log from running bootstrap. I also tried fink selfupdate but it fails saying

Scanning package description files..........
Information about 10640 packages read in 16 seconds.
The following 3 packages will be installed or updated:
dpkg dpkg-base-files tar
Setting runtime build-lock...
dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-dpkg-1.10.21-1246 /sw/src/fink.build
Can't exec "dpkg-deb": No such file or directory

execution of dpkg-deb failed, exit code -1

Failed: can't create package fink-buildlock-dpkg-1.10.21-1246

It says this whether I use git or rsync. I've tried searching the Mailing List but I thought I may have better luck on here in case it is something to do with nieder's compilation?
Bootstrap.txt

@PovlAbrahamsen
Copy link
Contributor

@sclint13, the issue isn't with this patch, but with a separate copy of libz, which you appear to have installed in /usr/local/lib. This seems to be throwing off the linker, preventing it from linking to the system-installed libz in /usr/lib.

gcc -L/sw/lib -framework CoreFoundation -o dpkg-deb build.o extract.o info.o main.o ../lib/libdpkg.a ../optlib/libopt.a -lz -lintl
ld: warning: ignoring file /usr/local/lib/libz.a, file was built for archive which is not the architecture being linked (x86_64): /usr/local/lib/libz.a

Copy link
Member

@akhansen akhansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine by me.

@nieder
Copy link
Member Author

nieder commented Jul 5, 2019

Sorry, I pushed a couple more changes. I think I'm done doing that.

@nieder nieder merged commit 0c4d2ec into master Jul 10, 2019
@jaokiro
Copy link

jaokiro commented Jul 31, 2019

I am a beginner to coding and was trying to install fink on a Mac OS 10.14.5 where I stumbled on the Perl error. I therefore used https://github.com/fink/fink/archive/nieder-5.18.4-bootstrap.zip and the installation was complete. However, when trying to launch fink, I get this error:

_You should now have a working Fink installation in '/sw'. You still need package descriptions if you want
to compile packages yourself. You can get them by running either of the commands: 'fink selfupdate-rsync',
to update via rsync (generally preferred); or 'fink selfupdate-svn', to update via svn (more likely to work
through a firewall). You should also run 'sudo xcodebuild -license' and accept the Xcode license, since
some packages will require this.

Run '. /sw/bin/init.sh' to set up this terminal session environment to use Fink. To make the software
installed by Fink available in all of your future terminal shells, add '. /sw/bin/init.sh' to the init
script '.profile' or '.bash_profile' in your home directory. The program /sw/bin/pathsetup.sh can help with
this. Enjoy.

Jareds-MacBook-Pro:fink-nieder-5.18.4-bootstrap jaredokiro$ /sw/bin/init.sh
-bash: /sw/bin/init.sh: Permission denied
Jareds-MacBook-Pro:fink-nieder-5.18.4-bootstrap jaredokiro$ cd
Jareds-MacBook-Pro:~ jaredokiro$ /sw/bin/init.sh
-bash: /sw/bin/init.sh: Permission denied
Jareds-MacBook-Pro:~ jaredokiro$

Kindly assist. Thanks._

@PovlAbrahamsen
Copy link
Contributor

Run '. /sw/bin/init.sh' to set up this terminal session environment to use Fink. To make the software
installed by Fink available in all of your future terminal shells, add '. /sw/bin/init.sh' to the init
script '.profile' or '.bash_profile' in your home directory. The program /sw/bin/pathsetup.sh can help with
this. Enjoy.

Jareds-MacBook-Pro:fink-nieder-5.18.4-bootstrap jaredokiro$ /sw/bin/init.sh
-bash: /sw/bin/init.sh: Permission denied
Jareds-MacBook-Pro:fink-nieder-5.18.4-bootstrap jaredokiro$ cd
Jareds-MacBook-Pro:~ jaredokiro$ /sw/bin/init.sh
-bash: /sw/bin/init.sh: Permission denied

You need to run ". /sw/bin/init.sh" - note the period and space before "/sw/bin/init.sh".
Or, alternatively, run /sw/bin/pathsetup.sh (without a period and space) to set up your computer to use Fink.

@jaokiro
Copy link

jaokiro commented Jul 31, 2019

Thanks. It works now:)

@peytondh
Copy link

Not all seems perfect, as shown by trying to install package:
"molmol 2k.2.0-1056 Molecular graphics display program"

So..., as pasted from the terminal under tcsh:
% fink install molmol
Information about 10644 packages read in 1 seconds.
Can't resolve dependency "texi2html" for package "autoconf2.6-2.69-6" (no matching
packages/versions found)
Exiting with failure.

@akhansen
Copy link
Member

@peytondh that's an independent issue.

@peytondh
Copy link

akhansen:
Sure, but it seems that there are multiple such definition files missing after a self-update. So a lot of installs can't be done. These were not missing in earlier versions.

@akhansen
Copy link
Member

My point is that those have nothing to do with the fink code itself. Those are covered in the Fink distribution repository (fink/fink-distributions). Basically, nothing that goes on here in this repository will address that.

@peytondh
Copy link

Thanks, and forgive my ignorance about devision of responsibilities. I just wanted to let people know about the issue, so that the right people could address it.

@nieder
Copy link
Member Author

nieder commented Aug 1, 2019

@peytondh Package changes for 10.14.5 are tracked in fink/fink-distributions#423

@peytondh
Copy link

peytondh commented Aug 3, 2019

Confirmed. Works.

Thanks to all!

@nieder nieder deleted the nieder-5.18.4-bootstrap branch August 7, 2019 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bootstrap Issues affecting bootstrap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants