Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620162 - app-arch/zip[natspec]: option "-k" always enabled
Summary: app-arch/zip[natspec]: option "-k" always enabled
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2017-05-29 17:27 UTC by nE0sIghT
Modified: 2019-12-20 16:31 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description nE0sIghT 2017-05-29 17:27:47 UTC
Steps to reproduce:
1. cd /tmp
2. > b
3. ln -s b a
4. zip -y a

Actual results:
Archive "/tmp/" contains file b

Expected results:
Archive "/tmp/" should contains symbolic link a.

Additional info:
This error break AOSP/LineageOS build using Gentoo Linux.
Comment 1 nE0sIghT 2017-05-29 17:42:28 UTC
The reason for this issue is natspec patch.
Maybe we should drop it or add some warning about AOSP?

It's hard to track AOSP build issue to zip app.
Comment 2 SpanKY gentoo-dev 2018-06-25 19:05:13 UTC
the natspec patch exists for a reason.  lets fix it instead of just ignoring it.  the patch is pretty small, so shouldn't be too hard.
Comment 3 nE0sIghT 2018-06-25 20:41:48 UTC
> lets fix it

If it's for me - I'm not interested in fixing this patch since it is against zip specification and works around ancient use-cases.
Since this bug is ignored for year+ I assume "Base system team" is not interested in fixing this also.
Comment 4 Mike Gilbert gentoo-dev 2018-06-25 20:49:18 UTC
Would it suffice to drop the change that sets dosify = 1 by default?
Comment 5 SpanKY gentoo-dev 2018-06-25 22:10:30 UTC
(In reply to nE0sIghT from comment #3)

which is why it's behind a USE flag that isn't turned on by default.  if you don't like/need it, then i'm not sure why you turned it on in the first place.

as for it being "ancient", tell that to people who continue using these zips.  not everyone has joined the UTF8 world, and old compatibility codesets in Windows are in use.

(In reply to Mike Gilbert from comment #4)

at a glance, i think we just need to flip the defaults.
Comment 6 nE0sIghT 2019-12-20 16:31:32 UTC
> Would it suffice to drop the change that sets dosify = 1 by default?

It doesn't works.

Actually this is duplicate of: