sm-lib-apt-tools - samba holds support
Lat
Status: Interested
Joined: 11 Apr 2008
Posts: 29
Reply Quote
To h2 or anyone else that works close with this library.

I'd like to have samba in the auto holds, so I come out with this patch.
Note: This patch doesn't apply clear with the official sm-lib-apt-tools. This is from a custom made one.

Taking as base smxi 1.22.11 r1498:
:: Code ::
--- sugholds.sh 2009-10-24 08:33:48.000000000 -0400
+++ sugholds.sh2        2009-10-24 08:56:20.000000000 -0400
@@ -332,6 +332,10 @@
 "
                        packageGroup='OpenOffice.org'
                        ;;
+               samba)
+                       packages="$( package_tester '(samba|samba-common|samba-common-bin|libsmbclient|smbclient|smbfs)' )" #samba-doc 2:3.4.2-1
+                       packageGroup='Samba'
+                       ;;
                sun-java)
                        packages="$( package_tester '(sun-java6-bin|sun-java6-jre|sun-java6-plugin)' )"
                        packageGroup='Sun Java'
@@ -391,7 +395,7 @@
                                # shorter version number strings for less picky package groups
                                # I'm adding in the + test to handle those beta versions and some other odd
                                # syntaxes: 2.8.4+2.8.4-1;
-                               gimp|gnome-1|gnome-2|gnome-3|gnome-ruby|gnome-vfs|hplip|vegastrike|xfc4|xpdf)
+                               gimp|gnome-1|gnome-2|gnome-3|gnome-ruby|gnome-vfs|hplip|samba|vegastrike|xfc4|xpdf)
                                        tempOne=$( check_package_status "$package" | cut -d '-' -f 1 | cut -d '+' -f 1 | cut -d '~' -f 1 )
                                        ;;
                                # special case to avoid 0.11.3-7+b1 / 0.11.3-7 type cases. sun java: 6-14-1
@@ -461,6 +465,7 @@
        advanced_broken_dependency_handler 'hplip'
        advanced_broken_dependency_handler 'kde-workspace'
        advanced_broken_dependency_handler 'ooo'
+       advanced_broken_dependency_handler 'samba'
        advanced_broken_dependency_handler 'sun-java'
        advanced_broken_dependency_handler 'transmission'
        advanced_broken_dependency_handler 'vegastrike'

My concern is if "samba" should be added in the "2.8.4+2.8.4-1" group or not.

Thank you
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4127
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
3.4
3.4-1
3.4-1+beta4

which one has experience shown to be the breaking point in sid currently?

let's start with 3.4-1 style remembering that debian has no consistent rules about version numbers and dependencies, and neither do maintainers of specific package groups, which makes it fully trial and error, but I think going for 3.4-1 probably is a fine place to start.
Back to top
Lat
Status: Interested
Joined: 11 Apr 2008
Posts: 29
Reply Quote
Thank you for adding samba
The correct format is 3.4.2-1
Back to top
Display posts from previous:   

All times are GMT - 8 Hours