Skip to content

DESTDIR support for gcc, improvements to gfortran #27016

@embray

Description

@embray

This does a few things:

  • Updates the gcc SPKG to support DESTDIR installation so that it can now be uninstalled as well

  • This includes a patch (adapted from Debian) to make gcc install libraries to ${prefix}/lib instead of ${prefix}/lib64 on Linux (this does not appear to be a problem on Cygwin, macOS, or FreeBSD that I'm aware of).

  • Additional refactoring to reduce duplication between the gcc and gfortran SPKGs: This includes the patches from gcc as the can also be relevant to gfortran.

I've tested this a good bit on Linux (being able to uninstall gcc now is nice), but it needs more testing on other platforms, particularly macOS since it's the primary case for installing this package in the first place, and involves additional workarounds.

This would also fix #26996 for the case of installing gfortran on Linux.

CC: @vbraun @dimpase @jdemeyer @Konrad127123

Component: build

Keywords: destdir gcc

Author: Erik Bray

Branch/Commit: a1d8ce9

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/27016

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions