Bug 1021625 - Some Debian Packages are doesn't "appear as packages" by rhnpush [NEEDINFO]
Summary: Some Debian Packages are doesn't "appear as packages" by rhnpush
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-debian
Version: el6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-21 16:27 UTC by Martin Juhl
Modified: 2018-11-07 07:06 UTC (History)
4 users (show)

Fixed In Version: python-debian-0.1.21-10.el6 python-debian-0.1.27-3.fc22 python-debian-0.1.27-3.fc23 python-debian-0.1.27-3.el7 python-debian-0.1.27-3.el6 python-debian-0.1.27-4.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-30 00:21:10 UTC
Type: Bug
Embargoed:
ssaammoo: needinfo?


Attachments (Terms of Use)
Fixes problems with debian packages that doesn't "appear as packages" (487 bytes, patch)
2013-11-25 15:44 UTC, Martin Juhl
no flags Details | Diff
list of packages on VM i686 (28.08 KB, text/plain)
2014-05-03 13:59 UTC, vpelagatti
no flags Details
List of packages on server x86_64 (33.81 KB, text/plain)
2014-05-03 14:00 UTC, vpelagatti
no flags Details
patch for LZMA support (470 bytes, patch)
2015-10-26 14:06 UTC, schuler.philipp
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 506861 0 None None None Never

Description Martin Juhl 2013-10-21 16:27:57 UTC
Description of problem:
Some debian/ubuntu packages are reported by rhnpush not to be a package..

I have seen this problem on quite a few packages

How reproducible:
Every time

Steps to Reproduce:
1. Download "ftp://archive.ubuntu.com/ubuntu/pool/main/a/anthy/anthy-common_9100h-16ubuntu3_all.deb"
2. run "rhnpush -c <channel name> anthy-common_9100h-16ubuntu3_all.deb

Actual results:
[root@spacewalk ~]# rhnpush -c ubuntu-13.04-new anthy-common_9100h-16ubuntu3_all.deb 
ERROR: anthy-common_9100h-16ubuntu3_all.deb: This file doesn't appear to be a package

Expected results:
Package is uploaded to spacewalk..


Additional info:

Comment 1 Martin Juhl 2013-11-25 15:44:10 UTC
Created attachment 828746 [details]
Fixes problems with debian packages that doesn't "appear as packages"

In deb-files the data.tar package is compressed with xz, rather than bz2 or gz..

This patch adds support for these packages...

Comment 2 Michael Mráka 2013-11-28 09:55:24 UTC
Hello Martin,

thanks for your patch. The patchd file is part of python-debian package so I'm reassigning the bug to its maintainers.

Thanks,
Michael

Comment 3 Miroslav Suchý 2013-11-28 10:17:52 UTC
Already tracked in Debian (which is upstream) as bug 506861.

Comment 4 Miroslav Suchý 2013-11-28 11:12:42 UTC
I add to package patch which is included in Debian BTS 506861.

Comment 5 Fedora Update System 2013-11-28 11:13:11 UTC
python-debian-0.1.21-10.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-debian-0.1.21-10.fc19

Comment 6 Fedora Update System 2013-11-28 11:14:08 UTC
python-debian-0.1.21-10.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-debian-0.1.21-10.fc20

Comment 7 Fedora Update System 2013-11-28 11:16:46 UTC
python-debian-0.1.21-10.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-debian-0.1.21-10.el6

Comment 8 Miroslav Suchý 2013-11-28 11:23:52 UTC
I wanted to build el5 package as well. But that is not possible due missing deps python-six.

Comment 9 Fedora Update System 2013-11-29 16:04:05 UTC
Package python-debian-0.1.21-10.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-debian-0.1.21-10.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-22403/python-debian-0.1.21-10.fc20
then log in and leave karma (feedback).

Comment 10 Martin Juhl 2013-12-03 14:45:55 UTC
Is it possible to test this on CentOS 6???

My test system isn't on Fedora???

Comment 11 Miroslav Suchý 2013-12-03 15:21:07 UTC
It is in EPEL6 testing as well (see #7). Just run

 su -c 'yum update --enablerepo=updates-testing python-debian"

Comment 12 Martin Juhl 2013-12-04 12:25:41 UTC
[root@mjspacewalk ~]# yum update --enablerepo=updates-testing python-debian                                                                                               
Loaded plugins: fastestmirror, versionlock
Error getting repository data for updates-testing, repository not found 


???

What to do??

Comment 13 Martin Juhl 2013-12-05 13:22:06 UTC
Hi..

Should be:

yum update --enablerepo=epel-testing python-debian

Comment 14 Martin Juhl 2013-12-06 12:19:33 UTC
Hi again..

Just figured out that this problem also exist if data.tar is packaged in lzma format...

So the line should probably be changed:

PART_EXTS = ['gz', 'bz2', 'xz']   # possible extensions

to

PART_EXTS = ['gz', 'bz2', 'xz', 'lzma']   # possible extensions

Comment 15 Miroslav Suchý 2013-12-06 12:38:51 UTC
I agree. But I hesitate to be faster than upstream. Even having that patch in Fedora before it is accepted in Debian itself is on the edge.
I'm monitoring Debian BTS 506861 and if resolution will be different from patch provided in #9 then I will reopen this BZ.

Comment 16 Martin Juhl 2013-12-06 12:51:26 UTC
Ok.. 

As far as I understand xz and lzma is basically the same... 

So for now, I will probably do my own repository, with a forked version of python-debian... 

Should I do anything (new case/bug) to prepare for the lzma??? or will you push it from here??

Comment 17 Miroslav Suchý 2013-12-06 13:07:27 UTC
Try to push on upstream. Once it land in upstream I will push it from here.

Comment 18 Fedora Update System 2013-12-10 06:10:18 UTC
python-debian-0.1.21-10.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2013-12-14 03:48:10 UTC
python-debian-0.1.21-10.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2013-12-15 20:24:02 UTC
python-debian-0.1.21-10.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Martin Juhl 2014-01-27 12:30:45 UTC
Hi..

Nothing is happening upstream??

Anything I can do to get lzma support into the CentOS/Fedora repository??

Comment 22 vpelagatti 2014-04-30 21:47:15 UTC
(In reply to Fedora Update System from comment #20)
> python-debian-0.1.21-10.el6 has been pushed to the Fedora EPEL 6 stable
> repository.  If problems still persist, please make note of it in this bug
> report.

I'm running rhnpush on Centos 6.5 x86_64 and when I try to push an Ubuntu DEB package I get the error:

ERROR: /tmp/kajongg_4.8.2-0ubuntu1_all.deb: This file doesn't appear to be a package

Using: python-debian-0.1.21-10.el6.noarch

Steps to reproduce it:
wget http://archive.ubuntu.com/ubuntu/pool/main/k/kdegames/kajongg_4.8.2-0ubuntu1_all.deb
rhnpush -c ubuntu_12_04_i686 -u vpelagatti -p XXXXXXX kajongg_4.8.2-0ubuntu1_all.deb
ERROR: kajongg_4.8.2-0ubuntu1_all.deb: This file doesn't appear to be a package


If you need any additional infomation just let me know.

Thanks

Comment 23 vpelagatti 2014-05-03 13:59:27 UTC
Created attachment 892144 [details]
list of packages on VM i686

Comment 24 vpelagatti 2014-05-03 14:00:25 UTC
Created attachment 892145 [details]
List of packages on server x86_64

Comment 25 vpelagatti 2014-05-03 14:02:50 UTC
I create a VM using CentOS 6.5 i686 and it works but it doesn't on Centos 6.5 x86_64 server.
Attachment 892144 [details] has the list of packages installed on the i686 VM and attachment 892145 [details] has the list of packages installed on the x86_64 server.

If you need any additional infomation just let me know.

Thanks

Comment 26 schuler.philipp 2014-10-16 13:44:42 UTC
(In reply to Martin Juhl from comment #21)
> Hi..
> 
> Nothing is happening upstream??
> 
> Anything I can do to get lzma support into the CentOS/Fedora repository??

Whats the staus on this? I'm also waiting for 

the "PART_EXTS = ['gz', 'xz', 'lzma']" patch to go upstream

Comment 27 schuler.philipp 2015-10-08 12:28:57 UTC
Will this ever be fixed ?

Comment 28 Miroslav Suchý 2015-10-08 14:33:50 UTC
I just rebased to 0.1.27 version, which includes that xz patch.
However it does not include support for lzma. Upstream does not include it as Debian does not have python lzma binding.
So if somebody write patch for lzma (with test) I can review it and put it in Fedora. However I do not have time to write it on my own.

Comment 29 Miroslav Suchý 2015-10-08 14:34:28 UTC
Here is the link for el6 errata:
https://bodhi.fedoraproject.org/updates/python-debian-0.1.27-2.el6

Comment 30 schuler.philipp 2015-10-09 15:23:57 UTC
@Miroslav Suchý
I'd be happy to help and do the necessary changes. However I never contributed before and would need some doc about the process.
Does such a doc exist ?

Comment 31 Miroslav Suchý 2015-10-11 11:04:55 UTC
(In reply to schuler.philipp from comment #30)
> I'd be happy to help and do the necessary changes. However I never
> contributed before and would need some doc about the process.
> Does such a doc exist ?

None specific to python-debian. Lots to writing patch in general (everywhere on internet).
Probably best start is to install python-debian, backup the file you want to modify e.g.
  cp /usr/lib/python2.7/site-packages/debian/debfile.py /usr/lib/python2.7/site-packages/debian/debfile.py.orig
then modify the debfile.py untill it works as desired and then run:
  diff -Naur /usr/lib/python2.7/site-packages/debian/debfile.py.orig /usr/lib/python2.7/site-packages/debian/debfile.py > my-patch.diff
And then post the resulting file here.

Comment 32 schuler.philipp 2015-10-15 15:02:04 UTC
(In reply to Miroslav Suchý from comment #31)

ok great. Thats obvious. I was refering to contributing directly.

Anyways..will you also push it to EPEL6 ? I can only see it for EPEL7 here https://bodhi.fedoraproject.org/updates/?packages=python-debian but also for EL6
My Spacewalk server is still running on CentOS6/EPEL6.

Which version should I base the patch on ? 0.1.27-2 or the old python-debian-0.1.21-10 ?

Comment 33 Miroslav Suchý 2015-10-15 17:32:48 UTC
(In reply to schuler.philipp from comment #32)
> Anyways..will you also push it to EPEL6 ? I can only see it for EPEL7 here
> https://bodhi.fedoraproject.org/updates/?packages=python-debian but also for
> EL6

https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-25c83db8f1

> Which version should I base the patch on ? 0.1.27-2 or the old
> python-debian-0.1.21-10 ?

On 0.1.27-2 version.

Comment 34 schuler.philipp 2015-10-26 14:06:59 UTC
Created attachment 1086524 [details]
patch for LZMA support

Comment 35 schuler.philipp 2015-10-26 14:09:24 UTC
above patch is tested on our production Spacewalk. For writing a real test for CI, please point me at the right place where tests are living

Comment 36 schuler.philipp 2016-04-14 12:40:43 UTC
(In reply to Miroslav Suchý from comment #33)
> (In reply to schuler.philipp from comment #32)
> > Anyways..will you also push it to EPEL6 ? I can only see it for EPEL7 here
> > https://bodhi.fedoraproject.org/updates/?packages=python-debian but also for
> > EL6
> 
> https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-25c83db8f1
> 
> > Which version should I base the patch on ? 0.1.27-2 or the old
> > python-debian-0.1.21-10 ?
> 
> On 0.1.27-2 version.

Could we finally get this package fixed after 2.5 yrs so we dont have to patch after installation so we can actually use it.

Its only the lzma patch missing now, I added a patch half a year ago ...

and "Fixed In Version: 	python-debian-0.1.21-10.el6" is also wrong. That only includes the "xz" patch.

Not only me but alot other people using Spacewalk with .deb packages would really appreciate a final fix !

Comment 37 Miroslav Suchý 2016-04-15 06:51:00 UTC
Your wish has been fulfilled.

Comment 38 Fedora Update System 2016-04-15 07:01:44 UTC
python-debian-0.1.27-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1c72aeb468

Comment 39 Fedora Update System 2016-04-15 07:01:49 UTC
python-debian-0.1.27-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-52620ad323

Comment 40 Fedora Update System 2016-04-15 07:01:54 UTC
python-debian-0.1.27-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-43e132028a

Comment 41 Fedora Update System 2016-04-15 07:01:58 UTC
python-debian-0.1.27-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f47b28febe

Comment 42 Fedora Update System 2016-04-15 07:02:03 UTC
python-debian-0.1.27-3.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5daac272c4

Comment 43 schuler.philipp 2016-04-15 12:41:40 UTC
(In reply to Miroslav Suchý from comment #37)
> Your wish has been fulfilled.

big thanks!

Comment 44 Fedora Update System 2016-04-15 23:22:12 UTC
python-debian-0.1.27-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-52620ad323

Comment 45 Fedora Update System 2016-04-16 20:20:30 UTC
python-debian-0.1.27-3.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5daac272c4

Comment 46 Fedora Update System 2016-04-16 20:27:24 UTC
python-debian-0.1.27-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-43e132028a

Comment 47 Fedora Update System 2016-04-22 03:26:09 UTC
python-debian-0.1.27-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1c72aeb468

Comment 48 Fedora Update System 2016-04-22 20:58:36 UTC
python-debian-0.1.27-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f47b28febe

Comment 49 Fedora Update System 2016-04-30 00:21:07 UTC
python-debian-0.1.27-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 50 Fedora Update System 2016-05-04 18:54:12 UTC
python-debian-0.1.27-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 51 Fedora Update System 2016-05-04 22:37:30 UTC
python-debian-0.1.27-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 52 Fedora Update System 2016-05-04 23:14:15 UTC
python-debian-0.1.27-3.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 53 Fedora Update System 2016-05-07 12:09:23 UTC
python-debian-0.1.27-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 54 SAMO 2018-11-06 07:21:04 UTC
the problem still exists, is there a workaround please ?

I am running below version on CentOS 7:

Name        : python-debian
Arch        : noarch
Version     : 0.1.27
Release     : 3.el7
Size        : 382 k
Repo        : installed
From repo   : epel

I see in /usr/lib/python2.7/site-packages/debian/debfile.py

DATA_PART = 'data.tar'      # w/o extension
CTRL_PART = 'control.tar'
PART_EXTS = ['gz', 'bz2', 'xz', 'lzma']  # possible extensions
INFO_PART = 'debian-binary'
MAINT_SCRIPTS = ['preinst', 'postinst', 'prerm', 'postrm', 'config']


I opened db5.3-util_5.3.28-13.1_amd64.deb package and data is in format .tzr.xz and control is .tar.gz is it the problem ?

Comment 55 Miroslav Suchý 2018-11-06 08:36:42 UTC
tzr? never heard of.
Please open a new issue - this is definitely something different.

Comment 56 SAMO 2018-11-07 07:06:13 UTC
sorry .. there was a typo, the data file is data.tar.xz


Note You need to log in before you can comment on or make changes to this bug.