Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691004 - app-office/ledger: Make USE=emacs depend on app-emacs/ledger-mode
Summary: app-office/ledger: Make USE=emacs depend on app-emacs/ledger-mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Erik Mackdanz
URL:
Whiteboard:
Keywords: PATCH, REVIEWED
Depends on: 690996
Blocks: 690190
  Show dependency tree
 
Reported: 2019-07-29 15:23 UTC by Thomas Schneider
Modified: 2019-08-11 08:19 UTC (History)
3 users (show)

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


Attachments
Patch with fix (file_691004.txt,1.96 KB, patch)
2019-07-29 15:23 UTC, Thomas Schneider
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schneider 2019-07-29 15:23:59 UTC
Created attachment 584988 [details, diff]
Patch with fix

As outlined in bug #678090 and bug #690190, the Emacs mode has been split to a separate package.  I have already filed a bug report for said new package (bug #690996).  This fixes app-office/ledger to depend on that with USE=emacs.
Comment 1 Ulrich Müller gentoo-dev 2019-08-10 14:06:28 UTC
(In reply to Thomas Schneider from comment #0)
> Created attachment 584988 [details, diff] [details, diff]
> Patch with fix

<Emacs team>
Patch looks good to me. (ledger-3.1.2 no longer installs any Emacs mode, so no changes to the upstream build system are necessary.)
</Emacs team>
Comment 2 Andreas Sturmlechner gentoo-dev 2019-08-10 17:12:01 UTC
Is it customary to provide this emacs mode via USE flag? Otherwise I don't see the need for this to be in the ledger ebuild (ugly optional runtime depend).
Comment 3 Ulrich Müller gentoo-dev 2019-08-10 18:54:08 UTC
(In reply to Andreas Sturmlechner from comment #2)
> Is it customary to provide this emacs mode via USE flag? Otherwise I don't
> see the need for this to be in the ledger ebuild (ugly optional runtime
> depend).

We have several packages doing that, e.g. sys-devel/autoconf or sys-devel/gettext. Their Emacs mode is built from the same tarball, and has been split off into its own (Gentoo) package to avoid circular dependencies.

Here the situation is somewhat different, because the split-off has taken place upstream. So thinking about it again, omitting the PDEPEND may be cleaner indeed.
Comment 4 Larry the Git Cow gentoo-dev 2019-08-11 08:19:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3806c0fefbf35e780bef077eda75e4c1ae054000

commit 3806c0fefbf35e780bef077eda75e4c1ae054000
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-08-10 22:47:56 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-08-11 08:19:24 +0000

    app-office/ledger: Drop elisp-common, make reference in pkg_postinst
    
    Non-maintainer commit.
    
    Drop duplicate eapply-user that is already run by cmake-utils.
    
    Closes: https://bugs.gentoo.org/691004
    Package-Manager: Portage-2.3.71, Repoman-2.3.17
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-office/ledger/ledger-3.1.2.ebuild | 26 ++++++--------------------
 1 file changed, 6 insertions(+), 20 deletions(-)