RPM

smart, a very useful package manager that can outsmart urpmi

Bug #1037195 reported by Jeff Johnson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Mandriva
Fix Released
Wishlist

Bug Description

Tracking bug

Tags: smart
Revision history for this message
In , Greb (greb) wrote :

Hi can you add rpm Smart Package Manager 1.4
pleased?
thanks advance

Revision history for this message
In , Dvgevers (dvgevers) wrote :

I support the request. Smart is very useful and sometimes outsmarts urpmi.

Btw the Mandriva package does not install on Mageia, but the fc15 package does.

Revision history for this message
In , Dvgevers (dvgevers) wrote :

I believe the version change is not as per (my understanding of) policy: fix in Cauldron has highest prio and will lead sooner to fix - also in any affected official releases.

Revision history for this message
In , Marja11 (marja11) wrote :

@ greb greb
@ Dick

PLease put the upstream link to the package in the URL: field

Revision history for this message
In , Dvgevers (dvgevers) wrote :

Done

Revision history for this message
In , Dvgevers (dvgevers) wrote :

Marja: Shouldn't it be for Cauldron?

Revision history for this message
In , Marja11 (marja11) wrote :

@ Dick

Thx, you're right :)

Setting version to cauldron, because package request will be usually be solved for cauldron only and then of course be available in next stable release.

Revision history for this message
In , Pierre-malo-denielou (pierre-malo-denielou) wrote :

The Mandriva package builds fine, but when used I get errors such as: ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/distrib/cauldron/x86_64/media/tainted/release/deadbeef-0.5.2-0.beta1.1.mga2.tainted.x86_64.rpm: Unexpected size (expected 1791222, got 1792166)

If someone can try as well and tell me what is happening, maybe we can work on importing smart.

Revision history for this message
In , fraterlinux (frateraec) wrote :

I compiled in Mageia 2 x86_64 from the source package smart-1.4.1-3.src.rpm and it is working fine, I have not had problems. This is an important option to those who have problems with URPMI to downgrade package. It is better integrated with URPMI that PackageKit!
It is important for mageia's users to have a good option as SMART.

Revision history for this message
In , fraterlinux (frateraec) wrote :

Malo Deniélou,

I reportei is the bug
https://bugs.launchpad.net/smart/+bug/1036679
Please report there that you have the same problem.

Revision history for this message
In , fraterlinux (frateraec) wrote :

Malo Deniélou,

I did several tests. I uninstalled the version 1.4.1 without deleting the directory /var/lib/smart/ and installed version 1.3.1 through source code smart-1.3.tar.bz2 with the command # python setup.py install and everything is working perfectly! Or the bug is in version 1.4.1 or in various patches for mandriva.
I suggest making a new SPEC for 1.3.1 version especially for Mageia that work very well. :D

Revision history for this message
In , Jeff Johnson (n3npq) wrote :
Revision history for this message
In , fraterlinux (frateraec) wrote :

Maybe a bug with genhdlist2? Mageia servers the size of files is wrong?
http://svnweb.mageia.org/soft?view=revision&revision=3111

Changed in mandriva:
importance: Unknown → Wishlist
status: Unknown → Confirmed
Revision history for this message
In , fraterlinux (frateraec) wrote :

Suggestion of Anders F Björklund (afb):

Comment the line 61 of the file ~/smart-1.4.1/smart/backends/rpm/synthesis.py

61 # def getSize(self, url):
62 return self._info.get("filesize")

Revision history for this message
In , fraterlinux (frateraec) wrote :

A better solution that must be used while there is no correction of Mageia repositories:

I just commented the lines below of ~/smart-1.4.1/smart/cache.py and everything worked as expected!

205# if lsize != size:
206# raise Error, _("Unexpected size (expected %d, got %d)") % \
207# (size, lsize)

Revision history for this message
In , Pierre-malo-denielou (pierre-malo-denielou) wrote :

I imported smart in Cauldron. Please test and report if it works as expected.

Revision history for this message
In , fraterlinux (frateraec) wrote :

I use Mageia 2, and it didn't work the Cauldron packages. I needed to recompile in order to test the package and contribute indirectly:
$ rpmbuild --rebuild smart-1.4.1-4.mga3.src.rpm

So far the only problem is that for smart-applet work needed to add to the symlink below:
# ln -s /usr/bin/consolehelper /usr/bin/console-helper

Who uses the Cauldron please test the Smart for best result.

Revision history for this message
In , fraterlinux (frateraec) wrote :

Malo Deniélou,

Here is the error. No error occurred to you? unexpected Size

error: failed to download packages:
error: ftp://ftp.blogdrake.net/mageia/mageia2/free/x86_64/tovid-0.34rev3450-1bdk.mga2.x86_64.rpm: unexpected Size (expected 312828, got 312844)
Writing the cache ...

I looked at the compiled packages and NOT found commented the lines below of ~/smart-1.4.1/smart/cache.py

205# if lsize != size:
206# raise Error, _("Unexpected size (expected %d, got %d)") % \
207# (size, lsize)

In the cauldron are installing new packages with Smart?

Changed in mandriva:
status: Confirmed → In Progress
Revision history for this message
In , fraterlinux (frateraec) wrote :

Someone test the Smart in the Cauldron that should work without the need of comment the lines seen the bug resolution below:

https://bugs.mageia.org/show_bug.cgi?id=7074#c1

Revision history for this message
In , Dvgevers (dvgevers) wrote :

This is derived from the Mandriva version and does not work in Mageia. The fc version should be used: that works alright.

Revision history for this message
In , fraterlinux (frateraec) wrote :

The Smart FC version is not suitable for not having automatic integration with URPMI repositories. The Mandriva version is perfectly. The only obstacle is the bug 7074

Revision history for this message
In , Dvgevers (dvgevers) wrote :

My experience is different.

Jeff Johnson (n3npq)
tags: added: smart
Revision history for this message
In , Pierre-malo-denielou (pierre-malo-denielou) wrote :

Anderson, can you test smart on the latest beta of mageia 3, please?

Revision history for this message
In , Eeeemail (eeeemail) wrote :

Just FYI beta2 will hopefully be available this weekend

Revision history for this message
In , fraterlinux (frateraec) wrote :

Malo,

I'll download the liveCD this weekend and do various tests.

Revision history for this message
In , Manuel-mageia (manuel-mageia) wrote :

in cauldron

Changed in mandriva:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.