Opened 17 years ago

Closed 9 years ago

#12060 closed enhancement (wontfix)

RFE: gcc42 info pages

Reported by: jochen@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: petrrr
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 (2)

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

Download all attachments as: .zip

Change History (13)

comment:1 Changed 17 years ago by markd@…

Cc: mww@… added

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

comment:2 Changed 17 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?

comment:3 Changed 17 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 17 years ago by jochen@…

Attachment: gcc42-info.diff added

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

comment:4 Changed 17 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?

comment:5 Changed 17 years ago by jochen@…

Cc: jochen@macports.org; macports-dev@macports.org,mww@macports.orgjochen@macports.org,macports-dev@macports.org,mww@macports.org

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

comment:6 Changed 17 years ago by nox@…

Cc: macports-dev@… removed
Priority: ExpectedNormal
Version: 1.4.42

Changed 16 years ago by jochen@…

Attachment: info-Portfile.diff added

comment:7 Changed 16 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.

comment:8 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

comment:9 Changed 15 years ago by jmroot (Joshua Root)

Cc: jochen@… mww@… removed
Keywords: haspatch added; gcc manual info removed
Port: gcc42 added

comment:10 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:11 Changed 9 years ago by petrrr

Resolution: wontfix
Status: newclosed

gcc42 was removed in r131452, so this becomes irrelevant. Closing!

Note: See TracTickets for help on using tickets.