New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12060 (new enhancement)

Opened 5 years ago

Last modified 3 years ago

RFE: gcc42 info pages

Reported by: jochen@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: gcc42

Description

The GCC manual, i.e. the info pages, should be installed with the package. The man-pages contain only rudimentary information in the compiler usage.

Maybe this could be done as a variant, although I think the info-page manuals should always be installed along the compilers themselves.

Attachments

gcc42-info.diff Download (2.0 KB) - added by jochen@… 5 years ago.
Patch for Portfile to install info pages and add them to dir file
info-Portfile.diff Download (2.0 KB) - added by jochen@… 4 years ago.

Change History

Changed 5 years ago by markd@…

  • cc mww@… added

Maintainer should be cc's also since Trac doesn't do that automatically right now.

Changed 5 years ago by jochen@…

Ok, attached is an (yet untested) patch, that does not explicitly remove the info pages. Why was this done in the first place?

Changed 5 years ago by jochen@…

Okay, the attached patch to the Portfile does indeed (tested) install the info pages and add entries to the info directory file if not present. This is the behavior I'd expect from the port. If there is any reason not to install the info pages, it should be documented and the info pages should then be available as a variant at least, IMHO.

Changed 5 years ago by jochen@…

Patch for Portfile to install info pages and add them to dir file

Changed 5 years ago by mww@…

there is one problem left:

system "install-info ${prefix}/share/info/cpp.info ${prefix}/share/info/dir"

will install cpp.info, which should really be named cpp-mp-4.2.info

Is it safe to just rename the files?

Changed 5 years ago by jochen@…

  • cc jochen@…, macports-dev@… added; jochen@… removed

No, it is not really "safe".

The best would be to patch the sources: In the .texi file the header has an entry for the .info file name:

@setfilename cpp.info

which should be changed to

@setfilename cpp-mp-4.2.info

This needs to be done before generating the info files, obviously.


===============================================


Alternatively the .info file can be patched, where this code

INFO-DIR-SECTION GNU Packages
START-INFO-DIR-ENTRY
* Cpp: (cpp).            The C Preprocessor.
END-INFO-DIR-ENTRY

has to be changed to the following, I believe:

INFO-DIR-SECTION GNU Packages
START-INFO-DIR-ENTRY
* Cpp: (cpp-mp-4.2).            The C Preprocessor.
END-INFO-DIR-ENTRY

Changed 5 years ago by nox@…

  • cc macports-dev@… removed
  • priority changed from Expected to Normal
  • version 1.4.42 deleted

Changed 4 years ago by jochen@…

Changed 4 years ago by jochen@…

Okay, this is what I come up with (patch attached as info-Portfile.diff): Create an info variant which installs the info pages. This is what I have used for a while now (changed in my local svn workig copy).

This is not as good as the real solution described above, but at least givs info pages for the once that explicitely request it. f course that should not be done for multiple gcc-ports.

Changed 3 years ago by anonymous

  • milestone Port Enhancements deleted

Milestone Port Enhancements deleted

Changed 3 years ago by jmr@…

  • cc jochen@…, mww@… removed
  • keywords haspatch added; gcc; manual; info removed
  • port set to gcc42
Note: See TracTickets for help on using tickets.