Bug 377648 - Ark does not show some folders in RPM
Summary: Ark does not show some folders in RPM
Status: RESOLVED UPSTREAM
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-15 15:09 UTC by Fabian Vogt
Modified: 2017-04-21 01:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example RPM (221.87 KB, application/x-rpm)
2017-03-15 15:09 UTC, Fabian Vogt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Vogt 2017-03-15 15:09:29 UTC
Created attachment 104585 [details]
Example RPM

The attached RPM shows only the packages/ subfolder under /usr/share/mime, but "rpm -qlp" shows many many more.

Might also be a bug in karchive, but I don't know how to verify that...
Comment 1 Elvis Angelaccio 2017-03-15 17:20:09 UTC
Seems to work fine here, I can also see the /etc folder and all the other /usr subfolders. What's your version of libarchive?
Comment 2 Fabian Vogt 2017-03-15 17:40:58 UTC
(In reply to Elvis Angelaccio from comment #1)
> Seems to work fine here, I can also see the /etc folder and all the other
> /usr subfolders. What's your version of libarchive?

/usr/lib64/libarchive.so.13.2.2
Comment 3 Elvis Angelaccio 2017-03-21 09:07:24 UTC
Can you attache the debug output when you open that archive? (QT_LOGGING_RULES="ark.*.debug=true" ark)
Comment 4 Christoph Feck 2017-03-31 15:19:57 UTC
If you can provide the information requested in comment #3, please add it.
Comment 5 Fabian Vogt 2017-03-31 17:41:06 UTC
(In reply to Elvis Angelaccio from comment #3)
> Can you attache the debug output when you open that archive?
> (QT_LOGGING_RULES="ark.*.debug=true" ark)

Does not look too interesting:

ark.main: Trying to open QUrl("file:///home_priv/fabian/Downloads/shared-mime-info-1.8-1.1.x86_64.rpm")
ark.part: Attempting to open archive "/home_priv/fabian/Downloads/shared-mime-info-1.8-1.1.x86_64.rpm"
ark.kerfuffle: Going to create archive "/home_priv/fabian/Downloads/shared-mime-info-1.8-1.1.x86_64.rpm"
ark.kerfuffle: Checking plugin "kerfuffle_libarchive_readonly"
ark.kerfuffle: Created read-only interface for "/home_priv/fabian/Downloads/shared-mime-info-1.8-1.1.x86_64.rpm"
ark.kerfuffle: Created read-write interface for "/home_priv/fabian/Downloads/shared-mime-info-1.8-1.1.x86_64.rpm"
ark.libarchive: Initializing libarchive plugin
ark.libarchive: Loaded libarchive read-only plugin
ark.kerfuffle: Successfully loaded plugin "kerfuffle_libarchive_readonly"
ark.kerfuffle: Created archive instance
ark.kerfuffle: LoadJob created
ark.libarchive: Listing archive contents
ark.libarchive: Detected compression filter: lzma
ark.libarchive: Detected format for first entry: ASCII cpio (SVR4 with no CRC)
ark.main: Entering application loop
ark.part: Showing columns:  (0, 1, 10)
ark.part: Trailing slash appended to entry: QVariant(QString, "usr/share/doc/packages/shared-mime-info/")
ark.kerfuffle: Job finished, result: true , time: 64 ms

(In reply to Christoph Feck from comment #4)
> If you can provide the information requested in comment #3, please add it.

Hm, somehow I did not get a mail for the reply...
Comment 6 Elvis Angelaccio 2017-04-05 15:18:21 UTC
What if you open the archive with file-roller?
Comment 7 Fabian Vogt 2017-04-05 15:21:52 UTC
(In reply to Elvis Angelaccio from comment #6)
> What if you open the archive with file-roller?

What is that? The gnome app? I do not have that installed here and I don't want to.
Comment 8 Elvis Angelaccio 2017-04-05 15:29:46 UTC
Yes it's the gnome archiver. I asked you to try because they also use libarchive for rpm files and that would tell us whether the bug is in ark or in libarchive. (fwiw, if I open it with file-roller it shows all the folders, as does ark).
Comment 9 Fabian Vogt 2017-04-05 17:08:13 UTC
(In reply to Elvis Angelaccio from comment #8)
> Yes it's the gnome archiver. I asked you to try because they also use
> libarchive for rpm files and that would tell us whether the bug is in ark or
> in libarchive. (fwiw, if I open it with file-roller it shows all the
> folders, as does ark).

Ok, tried it: Same issue. So it's in libarchive and there's nothing ark can do, right?
Comment 10 Elvis Angelaccio 2017-04-05 17:11:43 UTC
(In reply to Fabian Vogt from comment #9)
> (In reply to Elvis Angelaccio from comment #8)
> > Yes it's the gnome archiver. I asked you to try because they also use
> > libarchive for rpm files and that would tell us whether the bug is in ark or
> > in libarchive. (fwiw, if I open it with file-roller it shows all the
> > folders, as does ark).
> 
> Ok, tried it: Same issue. So it's in libarchive and there's nothing ark can
> do, right?

Unfortunately yes. Try to report it upstream at https://github.com/libarchive/libarchive (and maybe link this report there)
Comment 11 Fabian Vogt 2017-04-05 17:28:33 UTC
(In reply to Elvis Angelaccio from comment #10)
> (In reply to Fabian Vogt from comment #9)
> > (In reply to Elvis Angelaccio from comment #8)
> > > Yes it's the gnome archiver. I asked you to try because they also use
> > > libarchive for rpm files and that would tell us whether the bug is in ark or
> > > in libarchive. (fwiw, if I open it with file-roller it shows all the
> > > folders, as does ark).
> > 
> > Ok, tried it: Same issue. So it's in libarchive and there's nothing ark can
> > do, right?
> 
> Unfortunately yes. Try to report it upstream at
> https://github.com/libarchive/libarchive (and maybe link this report there)

Ok: https://github.com/libarchive/libarchive/issues/899
Comment 12 Elvis Angelaccio 2017-04-05 17:35:16 UTC
(In reply to Fabian Vogt from comment #11)

> Ok: https://github.com/libarchive/libarchive/issues/899

Oh wait, I don't see `/usr/share/mime/multipart/` either. So even though I get more folders than you, still they are just a subset of the total list of files...