Comments (1)
There are two basic problems here. First, the reason this problem was not caught sooner is that the ON perl module build system does:
PERL=/usr/perl5/$(PERL_VERSION)/bin/perl
This would be ok if this perl were being used as a tool, but what it's actually doing is building software intended to be interpreted by $(PERL). That means this must change to use either the adjuncts or proto.strap. Since we do deliver perl and thus already have the knowledge necessary to build it, proto.strap seems more correct. So step 1 is, as ira suggested, to build a bootstrap perl and teach the ON module build system about it.
The second problem is that the ON perl build assumes that the perl from which it obtains its build-time configuration was itself built with and installed to provide configuration for building with Studio. This was historically the case but currently is not, and it is this change that directly induced the failure. That configuration is really never useful since Studio is neither used to build perl nor available on SmartOS systems. ON is the only consumer. Historically, the PerlGcc package was then intended for use by customers wishing to build perl modules who did not have Studio; however, practically speaking Studio is dead and no one should ever be building modules against the platform perl anyway.
The simplest way to correct this would seem to be to revert the gcc-specific portions of the OS-1588 change, modify illumos-extra to create a bootstrap perl, and force the ON modules to build using the bootstrap instead of whatever's on the running system. In order for this to work correctly, the bootstrap perl will need a separate configuration from the installed one -- for example, it needs to provide -I and -L options pointing at the proto area rather than the running system, but -R options pointing at the running system. There will likely be additional challenges in implementing this.
Given the hideous nature of the perl build system and the fact that this is still an incomplete fix (see OS-1828), it's apparent that perl really just needs to go away entirely. This can't happen until the last of the perl utilities in ON are eliminated. Many of the modules in ON could actually be removed, as they're not consumed by anything in ON (i.e., they aren't needed in the platform, and consumers can obtain them via CPAN or pkgsrc in zones). Unfortunately a few of them are still used by the hated intrd, so that wouldn't solve our problem.
from illumos-extra.
Related Issues (20)
- make/prefix.patch HOT 5
- ./make/prefix.patch breaks SVR4 compatibility
- Cannot copy libjoy_lzma during `gmake live` HOT 4
- incorrect link in openssh README HOT 1
- dmake issue
- update libxml2 to 2.9.2 with security patches
- import trousers
- import glib2 with dependencies for builds
- import dbus and use it with builds
- import libxslt with security update and use with builds
- Should OpenSSH relinquish file_link_any privilege ? HOT 2
- Newer coreutils would support getattrat(3c) HOT 1
- bind fails to compile
- curl certificates misconfigured in global zone HOT 3
- update ntp to ntp-4.2.8p15 from ntp-4.2.8p8 HOT 4
- /usr/lib/cpp is insufficiently pre-ANSI HOT 4
- openssh: DisableBanner patch mis-merged in 8.6 HOT 1
- pbzip2 filesize limited to 2GB HOT 2
- problems building gcc4 via smartos-live using gmake world HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from illumos-extra.