Giter Site home page Giter Site logo

Comments (1)

 avatar commented on August 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.