Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165347 - net-libs/libetpan-0.49: automagic dep on liblockfile
Summary: net-libs/libetpan-0.49: automagic dep on liblockfile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andrej Kacian (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-04 21:56 UTC by TGL
Modified: 2007-09-02 21:49 UTC (History)
1 user (show)

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


Attachments
files/libetpan-0.49-configure_liblockfile.patch (libetpan-0.49-configure_liblockfile.patch,642 bytes, patch)
2007-02-04 21:57 UTC, TGL
Details | Diff
libetpan-0.49-ebuild--IUSE_liblockfile.patch (libetpan-0.49-ebuild--IUSE_liblockfile.patch,1.24 KB, patch)
2007-02-04 21:57 UTC, TGL
Details | Diff
libetpan-0.52-ebuild--IUSE_liblockfile.patch (libetpan-0.52-ebuild--IUSE_liblockfile.patch,766 bytes, patch)
2007-09-02 17:12 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2007-02-04 21:56:27 UTC
net-libs/libetpan links to liblockfile.so when it's available, despite it not being an explicit dep in the ebuild.  Because of that, "emerge depclean" may break libetpan and dependent packages (claws-mail, etc.).

The attached patches fix that by adding an option to the configure script, and a local USE flag to the ebuild.  I suggest something like "net-libs/libetpan:liblockfile - Use liblockfile for locking mailboxes" for the use.local.desc of this flag.  Also, i will submit the configure.in patch upstream.
Comment 1 TGL 2007-02-04 21:57:06 UTC
Created attachment 109175 [details, diff]
files/libetpan-0.49-configure_liblockfile.patch
Comment 2 TGL 2007-02-04 21:57:31 UTC
Created attachment 109177 [details, diff]
libetpan-0.49-ebuild--IUSE_liblockfile.patch
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2007-02-04 22:08:42 UTC
The patch is not acceptable, since it doesn't allow libetpan to *not* use liblockfile. Current libetpan is able to work without liblockfile.
Comment 4 TGL 2007-02-04 22:28:35 UTC
(In reply to comment #3)
> The patch is not acceptable, since it doesn't allow libetpan to *not* use
> liblockfile. 
> 

Well, maybe i'm missing something obvious, but i don't see why.  If you don't set the liblockfile USE flag, then you'll give --disable-lockfile to ./configure, thus get $enable_lockfile=no and skip the AC_CHECK_LIB block, meaning you won't use liblockfile.
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2007-02-05 01:01:57 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > The patch is not acceptable, since it doesn't allow libetpan to *not* use
> > liblockfile. 
> > 
> 
> Well, maybe i'm missing something obvious, but i don't see why.  If you don't
> set the liblockfile USE flag, then you'll give --disable-lockfile to
> ./configure, thus get $enable_lockfile=no and skip the AC_CHECK_LIB block,
> meaning you won't use liblockfile.
> 

Ah, sorry, I was too quick in my judgment - I misunderstood the logic of your if statement.

Anyway, let's wait for libetpan upstream decision. Hoa is usually quick. I'll as k him about this tomorrow on IRC.
Comment 6 TGL 2007-02-05 06:58:22 UTC
(In reply to comment #5)
> Ah, sorry, I was too quick in my judgment - I misunderstood the logic of your
> if statement.

Ah, ok, no problem.

> Anyway, let's wait for libetpan upstream decision. Hoa is usually quick.

Seems so, yes.  He has already answered me that he is in vacation, and will merge the patch when he's back.  But we can wait for his actual commit to be sure, there's no hurry.
Comment 7 TGL 2007-09-02 17:11:11 UTC
Depclean has just reminded me this bug report by unmerging liblockfile again.  

Hoa has merged my patch in April, so the configure option is available in versions 0.50 and above.

Coud you add the corresponding USE flag in the 0.52 ebuild?

Thanks.
Comment 8 TGL 2007-09-02 17:12:09 UTC
Created attachment 129848 [details, diff]
libetpan-0.52-ebuild--IUSE_liblockfile.patch
Comment 9 Andrej Kacian (RETIRED) gentoo-dev 2007-09-02 21:49:11 UTC
Fixed in 0.52-r1, thanks.