Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640788 - ebuild-maintenance: update lingering "Gentoo-bug" tag
Summary: ebuild-maintenance: update lingering "Gentoo-bug" tag
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Devmanual (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Devmanual Team
URL: https://devmanual.gentoo.org/ebuild-m...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-12-12 03:25 UTC by Michael Orlitzky
Modified: 2018-01-03 05:08 UTC (History)
0 users

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


Attachments
0001-ebuild-maintenance-update-Gentoo-bug-tag-in-an-examp.patch (0001-ebuild-maintenance-update-Gentoo-bug-tag-in-an-examp.patch,1.48 KB, patch)
2017-12-12 03:31 UTC, Michael Orlitzky
Details | Diff
Proposed fix (v1-0001-ebuild-maintenance-remove-the-Gentoo-Bug-tag-in-t.patch,1.33 KB, patch)
2017-12-13 18:15 UTC, Göktürk Yüksek
Details | Diff
Updated proposal (v2-0001-ebuild-maintenance-remove-the-Gentoo-Bug-tag-in-t.patch,1.66 KB, patch)
2017-12-14 01:06 UTC, Göktürk Yüksek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2017-12-12 03:25:51 UTC
The "Removing a package" section still shows an example with the "Gentoo-bug" tag, that should be "Bug: <url>" instead.
Comment 1 Michael Orlitzky gentoo-dev 2017-12-12 03:31:43 UTC
Created attachment 509562 [details, diff]
0001-ebuild-maintenance-update-Gentoo-bug-tag-in-an-examp.patch
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-12-12 10:14:12 UTC
LGTM
Comment 3 Göktürk Yüksek archtester gentoo-dev 2017-12-12 23:08:27 UTC
Why not this, kensington is truly a stream of examples :)

```
commit b97eb6d43f45dfd5b739638928db22d3f3392685
Author: Michael Palimaka <kensington@gentoo.org>
Date:   Tue Oct 3 21:43:03 2017 +1100

    dev-qt/qtphonon: remove last rited package
    
    Closes: https://bugs.gentoo.org/629144
```

My original intent was that people can take the commit hash, look at what has been removed if they wanted to etc. That begs the question, Bug: vs Closes:, which one?
Comment 4 Michael Orlitzky gentoo-dev 2017-12-13 03:34:58 UTC
(In reply to Göktürk Yüksek from comment #3)
> Why not this, kensington is truly a stream of examples :)

Makes no difference to me, but then you'd have to change the paragraphs and example above it.


> That begs the question, Bug: vs Closes:, which one?

I actually gave that some thought. The list of steps says,

  5. Remove from the git tree unless the reason for removal has been fixed

  6. Remove package.mask entry

I reasoned that "Bug:" should be used for (5) while "Closes:" would happen with (6).
Comment 5 Göktürk Yüksek archtester gentoo-dev 2017-12-13 18:15:00 UTC
Created attachment 509934 [details, diff]
Proposed fix

Here's the version with the previous paragraph updated. What do you think? wrt Bug vs. Closes, I would argue the opposite. The package is removed when the ebuilds are removed, not when the mask is removed. It makes more sense if you think in reverse: after step 5, a user forcibly unmasking the package using package.unmask would still not be able to install because it's removed.
Comment 6 Michael Orlitzky gentoo-dev 2017-12-13 19:03:22 UTC
(In reply to Göktürk Yüksek from comment #5)

> wrt Bug vs. Closes, I would argue the opposite. The package is removed when
> the ebuilds are removed, not when the mask is removed. It makes more sense
> if you think in reverse: after step 5, a user forcibly unmasking the package
> using package.unmask would still not be able to install because it's removed.

I guess it depends on what the subject of the bug is. Mine are usually something like "app-cat/pkg: mask for removal." In that case, the bug is not completely resolved when the package is removed, but only after you've cleaned up (removed the mask). However in your example, the bug cited is bug 629144 -- a security vulnerability. In that case the bug could be considered resolved as soon as the package has been removed, regardless of whatever else took place.


> Here's the version with the previous paragraph updated. What do you think?

I'm happy with your version, too.
Comment 7 Göktürk Yüksek archtester gentoo-dev 2017-12-14 01:06:40 UTC
Created attachment 509972 [details, diff]
Updated proposal

I've added the following paragraph below the example:

```
Note that the choice between the Bug: and Closes: tags depends on the nature of the bug(s) associated with the removal and the individual developer workflow. See Git Commit Message Format for more info on tags.
```

Does this clarify it better?
Comment 8 Michael Orlitzky gentoo-dev 2017-12-14 18:37:32 UTC
(In reply to Göktürk Yüksek from comment #7)
> 
> Does this clarify it better?

To be honest, that extra paragraph will probably just confuse the hell out of anyone who isn't a party to this conversation. Since "Closes:" is appropriate for the bug in the example, I don't think you need to explain yourself.
Comment 9 Larry the Git Cow gentoo-dev 2018-01-03 05:08:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=74b1623b6414166c1091c08ee90f2d5a509c3da8

commit 74b1623b6414166c1091c08ee90f2d5a509c3da8
Author:     Göktürk Yüksek <gokturk@gentoo.org>
AuthorDate: 2017-12-13 18:06:09 +0000
Commit:     Göktürk Yüksek <gokturk@gentoo.org>
CommitDate: 2018-01-03 05:05:41 +0000

    ebuild-maintenance: remove the Gentoo-Bug tag in the package removal subsection
    
    Per GLEP 66, the tags Bug and Closes should be used when referring to
    bugs. The example only illustrates the use of Closes per the commit
    message.
    
    Acked-by: Michael Orlitzky <mjo@gentoo.org>
    Closes: https://bugs.gentoo.org/640788

 ebuild-maintenance/maintenance-tasks/text.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)