Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911878 - app-arch/deb2targz-1-r3 extracts data.tar.gz/ (Yes with trailing /) and fails to write file thinking its a directory
Summary: app-arch/deb2targz-1-r3 extracts data.tar.gz/ (Yes with trailing /) and fail...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-08-07 17:50 UTC by Benjamin Réveillé
Modified: 2023-08-07 18:55 UTC (History)
1 user (show)

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


Attachments
Patch so extension regexp ignores trailing '/' in section name (file_911878.txt,511 bytes, text/plain)
2023-08-07 17:50 UTC, Benjamin Réveillé
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Réveillé 2023-08-07 17:50:36 UTC
Created attachment 867346 [details]
Patch so extension regexp ignores trailing '/' in section name

Trying to install Sinology-assistant deb package (which can be found here: https://global.synologydownload.com/download/Utility/Assistant/7.0.4-50051/Ubuntu/x86_64/synology-assistant_7.0.4-50051_amd64.deb?model=DS414&bays=4&dsm_version=7.1.1&build_number=42962) I get

> deb2targz synology-assistant_7.0.4-50051_amd64.deb 
  deb2targz: converting 'synology-assistant_7.0.4-50051_amd64.deb' ...
  deb2targz: skipping section 'debian-binary/'
  deb2targz: skipping section 'control.tar.gz/'
  can't write 'synology-assistant_7.0.4-50051_amd64.tar.gz/': Is a directory at /usr/bin/deb2targz line 55.

--> So its finding a '.gz/' extension (as all sections seem t have a trialing '/' in their name...
The '/' reused in the filename (which is therefore a directory name) leads to the error.

Attached patched fixes it for me...
Comment 1 Mike Gilbert gentoo-dev 2023-08-07 17:56:17 UTC
deb2targz is a dead project upstream, and unmaintained on Gentoo.

Just use "ar x" instead.
Comment 2 Benjamin Réveillé 2023-08-07 18:55:28 UTC
(In reply to Mike Gilbert from comment #1)
> deb2targz is a dead project upstream, and unmaintained on Gentoo.
> 
> Just use "ar x" instead.

"ar x" it is then !