Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926157 - net-misc/minidlna branding, lto IUSE addition
Summary: net-misc/minidlna branding, lto IUSE addition
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-04 11:52 UTC by David Carlos Manuelda
Modified: 2024-04-19 06:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
minidlna-1.3.3-r1.ebuild (minidlna-1.3.3-r1.ebuild,2.06 KB, application/vnd.gentoo.ebuild)
2024-03-04 21:08 UTC, David Carlos Manuelda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2024-03-04 11:52:58 UTC
Currently, net-misc/minidlna contains a gentoo patch to change the original icon and images to Gentoo logos unconditionally.

I suggest adopting the IUSE branding like other packages (like ie app-office/libreoffice) to apply the patch conditionally and thus enabling user patches which also modify branding stuff to be sourced from original version rather than Gentoo's modified version

Reproducible: Always
Comment 1 David Carlos Manuelda 2024-03-04 12:21:35 UTC
Aditionally, LTO is supported conditionally into its configure script so it can be added as another IUSE.
Comment 2 David Carlos Manuelda 2024-03-04 21:08:43 UTC
Created attachment 886710 [details]
minidlna-1.3.3-r1.ebuild

Proposed ebuild with changes:

* Conditionally download and apply branding patch
* Conditionally enable LTO based on IUSE
* Clean empty test function
Comment 3 Eli Schwartz gentoo-dev 2024-03-05 06:28:54 UTC
Gentoo recently removed all IUSE for lto, the general recommendation now is to rely on enabling LTO via *FLAGS inside make.conf.

In cases where the build system needs to take specific care when enabling LTO, you can use tc-is-lto to detect whether the user has enabled LTO, and filter-lto to force LTO off.

In this case specifically it looks like the --enable-lto flag just decides whether to update:

CFLAGS="$CFLAGS -flto"

so I think the best course of action here is to do nothing.
Comment 4 David Carlos Manuelda 2024-04-19 06:21:18 UTC
(In reply to Eli Schwartz from comment #3)
> Gentoo recently removed all IUSE for lto, the general recommendation now is
> to rely on enabling LTO via *FLAGS inside make.conf.
> 
> In cases where the build system needs to take specific care when enabling
> LTO, you can use tc-is-lto to detect whether the user has enabled LTO, and
> filter-lto to force LTO off.
> 
> In this case specifically it looks like the --enable-lto flag just decides
> whether to update:
> 
> CFLAGS="$CFLAGS -flto"
> 
> so I think the best course of action here is to do nothing.

Thanks for the hint!

So what about the other branding IUSE proposal?