Bug 1426 - smart, a very useful package manager that can outsmart urpmi
Summary: smart, a very useful package manager that can outsmart urpmi
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Malo Deniélou
QA Contact:
URL: http://labix.org/smart/
Whiteboard: Mdv
Keywords:
Depends on:
Blocks: 7109
  Show dependency treegraph
 
Reported: 2011-05-25 20:41 CEST by greb greb
Modified: 2013-02-10 14:21 CET (History)
6 users (show)

See Also:
Source RPM: smart
CVE:
Status comment:


Attachments

Description greb greb 2011-05-25 20:41:51 CEST
Hi can you add rpm Smart Package Manager 1.4
pleased?
thanks advance
Comment 1 Dick Gevers 2011-06-06 19:23:46 CEST
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.

CC: (none) => dvgevers

greb greb 2011-06-08 14:58:08 CEST

Version: Cauldron => 1

Comment 2 Dick Gevers 2011-06-08 21:25:23 CEST
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.
Comment 3 Marja Van Waes 2011-10-14 20:34:58 CEST
@ greb greb
@ Dick

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

CC: (none) => marja11

Marja Van Waes 2011-10-14 20:35:11 CEST

Severity: normal => enhancement

Comment 4 Dick Gevers 2011-10-14 21:14:43 CEST
Done

URL: (none) => http://labix.org/smart/

Marja Van Waes 2011-10-14 21:26:23 CEST

Summary: rpm Smart Package Manager 1.4 missing => Smart, a very useful package manager that can outsmart urpmi

Marja Van Waes 2011-11-11 17:30:24 CET

Source RPM: (none) => smart

Comment 5 Dick Gevers 2011-11-11 17:34:39 CET
Marja: Shouldn't it be for Cauldron?
Comment 6 Marja Van Waes 2011-11-11 20:52:27 CET
@ 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.

Version: 1 => Cauldron

Marja Van Waes 2011-11-27 16:46:20 CET

Whiteboard: (none) => Mdv

Dan Joita 2012-02-25 22:10:34 CET

Summary: Smart, a very useful package manager that can outsmart urpmi => smart, a very useful package manager that can outsmart urpmi

Comment 7 Malo Deniélou 2012-03-04 03:00:30 CET
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.

CC: (none) => malo

Comment 8 Anderson Carvalho 2012-08-13 22:15:43 CEST
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.

CC: (none) => frateraec

Comment 9 Anderson Carvalho 2012-08-14 16:16:35 CEST
Malo Deniélou,
 	
I reportei is the bug
https://bugs.launchpad.net/smart/+bug/1036679
Please report there that you have the same problem.
Comment 10 Anderson Carvalho 2012-08-15 03:03:10 CEST
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
Comment 11 Jeff Johnson 2012-08-15 18:30:51 CEST
Tracked at https://bugs.launchpad.net/rpm/+bug/1037195

CC: (none) => n3npq

Comment 12 Anderson Carvalho 2012-08-15 18:45:56 CEST
Maybe a bug with genhdlist2? Mageia servers the size of files is wrong?
http://svnweb.mageia.org/soft?view=revision&revision=3111
Pascal Terjan 2012-08-15 18:53:06 CEST

CC: (none) => pterjan

Comment 13 Anderson Carvalho 2012-08-15 22:59:49 CEST
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")
Comment 14 Anderson Carvalho 2012-08-17 03:27:34 CEST
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)
Manuel Hiebel 2012-08-19 20:42:45 CEST

Blocks: (none) => 7109

Comment 15 Malo Deniélou 2012-08-26 23:08:51 CEST
I imported smart in Cauldron. Please test and report if it works as expected.
Malo Deniélou 2012-08-26 23:10:28 CEST

Status: NEW => ASSIGNED
Assignee: bugsquad => pierre-malo.denielou

Comment 16 Anderson Carvalho 2012-08-27 02:57:58 CEST
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.
Comment 17 Anderson Carvalho 2012-08-27 14:45:14 CEST
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?
Comment 18 Anderson Carvalho 2012-09-05 12:03:59 CEST
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
Comment 19 Dick Gevers 2012-09-05 17:47:38 CEST
This is derived from the Mandriva version and does not work in Mageia. The fc version should be used: that works alright.
Comment 20 Anderson Carvalho 2012-09-05 22:06:56 CEST
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
Comment 21 Dick Gevers 2012-09-05 23:46:21 CEST
My experience is different.
Comment 22 Malo Deniélou 2013-01-24 18:50:47 CET
Anderson, can you test smart on the latest beta of mageia 3, please?
Comment 23 claire robinson 2013-01-24 19:43:32 CET
Just FYI beta2 will hopefully be available this weekend
Comment 24 Anderson Carvalho 2013-01-26 17:06:15 CET
Malo,

I'll download the liveCD this weekend and do various tests.
Comment 25 Manuel Hiebel 2013-02-10 14:21:26 CET
in cauldron

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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