Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933241 - net-mail/gnubiff: removal
Summary: net-mail/gnubiff: removal
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2024-06-30
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED, PullRequest
Depends on:
Blocks: 562822 880267 889912 930500
  Show dependency tree
 
Reported: 2024-05-31 08:41 UTC by Arthur Zamarin
Modified: 2024-07-04 02:36 UTC (History)
4 users (show)

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


Attachments
Trivial patch to resolve LICENSE and EAPI issues (EAPI_LICENSE-patch,613 bytes, patch)
2024-07-02 16:33 UTC, Phil Stracchino (Unix Ronin)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2024-05-31 08:41:27 UTC
EAPI=6, maintainer-needed, incorrect LICENSE, fails to compile with
clang.

package list:
net-mail/gnubiff
Comment 1 Larry the Git Cow gentoo-dev 2024-05-31 08:44:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d423fdd8574b2490bc3f008180ec63c6e5d9888

commit 1d423fdd8574b2490bc3f008180ec63c6e5d9888
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-05-31 08:44:08 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-05-31 08:44:08 +0000

    net-mail/gnubiff: last-rite
    
    Bug: https://bugs.gentoo.org/933241
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 2 Phil Stracchino (Unix Ronin) 2024-06-03 16:31:39 UTC
I'm looking at this right now.  The EAPI and LICENSE are easily resolved.  I may need some help with the clang problem.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-04 02:44:22 UTC
OK, let me know if you need me
Comment 4 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2024-07-02 16:18:06 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #2)
> I'm looking at this right now.  The EAPI and LICENSE are easily resolved.  I
> may need some help with the clang problem.

Hi, 30 days window already passed. I'll give you a week extension.
Comment 5 Larry the Git Cow gentoo-dev 2024-07-02 16:19:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14f8c994b08a053132be5ecb2cc754e510da4938

commit 14f8c994b08a053132be5ecb2cc754e510da4938
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-07-02 16:18:43 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-07-02 16:18:43 +0000

    net-mail/gnubiff: extend by week last-rite
    
    Bug: https://bugs.gentoo.org/933241
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/package.mask | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Phil Stracchino (Unix Ronin) 2024-07-02 16:31:34 UTC
(In reply to Arthur Zamarin from comment #4)
> (In reply to Phil Stracchino (Unix Ronin) from comment #2)
> > I'm looking at this right now.  The EAPI and LICENSE are easily resolved.  I
> > may need some help with the clang problem.
> 
> Hi, 30 days window already passed. I'll give you a week extension.


Sorry, I've been really busy with other things.

Nobody ever contacted me back from maintainers-needed.  I have a trivial patch to resolve the LICENSE and EAPI as soon as I have a place to submit it, and I'm unable to reproduce the compilation issue, which APPEARS to be caused by naively substituting clang into CC resulting in gcc options not supported by clang being passed to clang.  I have no idea how to work around that.
Comment 7 Phil Stracchino (Unix Ronin) 2024-07-02 16:33:07 UTC
Created attachment 896809 [details, diff]
Trivial patch to resolve LICENSE and EAPI issues
Comment 8 Phil Stracchino (Unix Ronin) 2024-07-02 19:30:43 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #6)
> I have no idea how to work around
> that.

And forgot to add, "but I don't think that can fairly be said to be gnubiff's fault."
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-03 00:05:56 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #6)
> (In reply to Arthur Zamarin from comment #4)
> > (In reply to Phil Stracchino (Unix Ronin) from comment #2)
> > > I'm looking at this right now.  The EAPI and LICENSE are easily resolved.  I
> > > may need some help with the clang problem.
> > 
> > Hi, 30 days window already passed. I'll give you a week extension.
> 
> 
> Sorry, I've been really busy with other things.
> 
> Nobody ever contacted me back from maintainers-needed.

I don't think anyone looks at the mail for that. We try to look at the proxy-maint@ email but it gets buried. IRC is best.
Comment 10 Phil Stracchino (Unix Ronin) 2024-07-03 01:07:48 UTC
(In reply to Sam James from comment #9)
> (In reply to Phil Stracchino (Unix Ronin) from comment #6)
> > Nobody ever contacted me back from maintainers-needed.
> 
> I don't think anyone looks at the mail for that. We try to look at the
> proxy-maint@ email but it gets buried. IRC is best.

I wish I'd known that.  Hod do we best move forward?
Comment 11 Christopher Byrne 2024-07-03 14:24:19 UTC
I have a clang-only system and can replicate. Clang doesn't understand the option but continues anyway (with a warning).

You can just drop -export-dynamic from src/Makefile.am to fix https://bugs.gentoo.org/930500. It doesn't do anything there: Its a linker option in the compile-only phase and is ignored by gcc (clang warns you it has no effect). What the author probably MEANT was:

gnubiff_LDFLAGS      = -Wl,--export-dynamic

in src/Makefile.am, but adding it doesn't make any difference, the program complains about missing -rdynamic at runtime either way, with or without the patch, and with both gcc and clang

Also the ebuild is broken in one subtle way: epatch_apply is called AFTER eautoreconf, so user matches to the autoconf machinery have no effect.
Comment 12 Phil Stracchino (Unix Ronin) 2024-07-03 15:11:04 UTC
(In reply to Christopher Byrne from comment #11)
> I have a clang-only system and can replicate. Clang doesn't understand the
> option but continues anyway (with a warning).
> 
> You can just drop -export-dynamic from src/Makefile.am to fix
> https://bugs.gentoo.org/930500. It doesn't do anything there: Its a linker
> option in the compile-only phase and is ignored by gcc (clang warns you it
> has no effect). What the author probably MEANT was:
> 
> gnubiff_LDFLAGS      = -Wl,--export-dynamic
> 
> in src/Makefile.am, but adding it doesn't make any difference, the program
> complains about missing -rdynamic at runtime either way, with or without the
> patch, and with both gcc and clang
> 
> Also the ebuild is broken in one subtle way: epatch_apply is called AFTER
> eautoreconf, so user matches to the autoconf machinery have no effect.

Thank you for these, I will update patches.
Comment 13 Phil Stracchino (Unix Ronin) 2024-07-03 16:28:24 UTC
(In reply to Christopher Byrne from comment #11)
> I have a clang-only system and can replicate. Clang doesn't understand the
> option but continues anyway (with a warning).


Christopher, can you pull net-mail/gnubiff-2.2.17-r3.ebuild from my unofficial Gentoo overlay at https://github.com/UnixRonin/gentoo-dev-alaric and verify that it builds correctly for you?
Comment 14 Christopher Byrne 2024-07-03 16:54:19 UTC
No it does not, because src_configure does things in the wrong order. src_configure needs to apply patches first, then eapply_user (or default), then eautoreconf

Also, there is no license called GPL-3+-with-openssl-exception in Portage, so that needs to be added to your overlay.

Alsp. if its added to portage the "GPL-3+-with-openssl-exception" needs to be added to the appropriate license group (probably @GPL-COMPATIBLE).
Comment 15 Phil Stracchino (Unix Ronin) 2024-07-03 17:17:01 UTC
(In reply to Christopher Byrne from comment #14)
> No it does not, because src_configure does things in the wrong order.
> src_configure needs to apply patches first, then eapply_user (or default),
> then eautoreconf


Doh!  I did that backwards.  :p
That part is fixed, if you want to delete and re-fetch.


> Also, there is no license called GPL-3+-with-openssl-exception in Portage,
> so that needs to be added to your overlay.
> 
> Alsp. if its added to portage the "GPL-3+-with-openssl-exception" needs to
> be added to the appropriate license group (probably @GPL-COMPATIBLE).

Oh, I see, I misunderstood, a GPL-3+-with-openssl-exception LICENSE type needs to be CREATED?  Not just the license changed to an already existing type?


Sam, I'm going to need help on how to correctly handle this one.
Comment 16 Christopher Byrne 2024-07-03 17:23:43 UTC
After working around the license issue, yes, this version works.
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-03 17:45:41 UTC
You just add it as a licence into the licences/ directory (in a separate commit) and also update profiles/license_groups appropriately (it should be the same as GPL-3-with-openssl-exception).
Comment 18 Phil Stracchino (Unix Ronin) 2024-07-03 17:51:02 UTC
(In reply to Sam James from comment #17)
> You just add it as a licence into the licences/ directory (in a separate
> commit) and also update profiles/license_groups appropriately (it should be
> the same as GPL-3-with-openssl-exception).

OK, let me see if I can figure that out.  And then I'll need to know where to submit everything once it's all confirmed good.
Comment 19 Phil Stracchino (Unix Ronin) 2024-07-03 17:56:44 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #18)
> (In reply to Sam James from comment #17)
> > You just add it as a licence into the licences/ directory (in a separate
> > commit) and also update profiles/license_groups appropriately (it should be
> > the same as GPL-3-with-openssl-exception).
> 
> OK, let me see if I can figure that out.  And then I'll need to know where
> to submit everything once it's all confirmed good.

The license update ITSELF looks fairly straightforward...
Comment 20 Phil Stracchino (Unix Ronin) 2024-07-03 18:04:48 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #19)
> (In reply to Phil Stracchino (Unix Ronin) from comment #18)
> > (In reply to Sam James from comment #17)
> > > You just add it as a licence into the licences/ directory (in a separate
> > > commit) and also update profiles/license_groups appropriately (it should be
> > > the same as GPL-3-with-openssl-exception).
> > 
> > OK, let me see if I can figure that out.  And then I'll need to know where
> > to submit everything once it's all confirmed good.
> 
> The license update ITSELF looks fairly straightforward...

License created locally and added to my repo

I've followed the pattern of GPL-3+ and added the exception from GPL-3-with-openssl-exception
Comment 21 Phil Stracchino (Unix Ronin) 2024-07-03 18:09:45 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #20)
> License created locally and added to my repo
> 
> I've followed the pattern of GPL-3+ and added the exception from
> GPL-3-with-openssl-exception

Christopher, could I ask one more re-test please?
Comment 22 Christopher Byrne 2024-07-03 18:19:06 UTC
Yes, it works if I add "net-mail/gnubiff GPL-3+-with-openssl-exception" to /etc/portage/package.license/gnubiff .
Comment 23 Phil Stracchino (Unix Ronin) 2024-07-03 18:41:13 UTC
(In reply to Christopher Byrne from comment #22)
> Yes, it works if I add "net-mail/gnubiff GPL-3+-with-openssl-exception" to
> /etc/portage/package.license/gnubiff .

Right, I forgot to update license GROUPS...
Comment 24 Phil Stracchino (Unix Ronin) 2024-07-03 18:57:17 UTC
(In reply to Phil Stracchino (Unix Ronin) from comment #23)
> (In reply to Christopher Byrne from comment #22)
> > Yes, it works if I add "net-mail/gnubiff GPL-3+-with-openssl-exception" to
> > /etc/portage/package.license/gnubiff .
> 
> Right, I forgot to update license GROUPS...

OK, Sam, we have a tested-working updated ebuild and a license update.

What's my next step?
Comment 25 Christopher Byrne 2024-07-03 22:18:47 UTC
Usually the next step submit a pull request: https://wiki.gentoo.org/wiki/Creating_GitHub_Pull_Requests