Summary: | dev-util/astyle-3.0.1: does not respect CXX | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michał Górny <mgorny> |
Component: | Current packages | Assignee: | zlg (RETIRED) <zlg> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
astyle-3.0.1-CXX.patch
astyle-3.0.1-CXX-r1.patch |
Description
Michał Górny
![]() ![]() ![]() ![]() Created attachment 477508 [details, diff]
astyle-3.0.1-CXX.patch
It appears upstream ships a Makefile that sets CXX on its own, and the prior maintainer didn't catch it. Attached is a quick patch extending the sed call in src_prepare. Does it solve the problem correctly?
Can't you just pass CXX to make instead of doing awful seds? Created attachment 477582 [details, diff]
astyle-3.0.1-CXX-r1.patch
New patch passes CXX directly via emake argument. Is this what you meant? If so I can go ahead and push it.
Yes, that looks correct. Note that I haven't tested it though but it should be trivial for you to reproduce. Pushed to gentoo.git: commit afde8cea96633a7b9a9c95fa444b7277f04ab11b Author: Daniel Campbell <zlg@gentoo.org> Date: Fri Jun 23 12:38:09 2017 -0700 dev-util/astyle: Respect CXX wrt bug 622068 Thanks to mgorny for finding the issue. Gentoo-Bug: 622068 Gentoo-Bug-URL: https://bugs.gentoo.org/622068 Package-Manager: Portage-2.3.6, Repoman-2.3.2 |