Re: mintupdate

2013-12-19 Thread brunomaximom

Em 2013-12-15 15:34, Steven Chamberlain escreveu:

On 15/12/13 04:22, brunomaxi...@openmailbox.org wrote:

Yeah, that's unnecessary.
The program is ported now. What do you wnat? The patch or the package?


Did you patch some existing packaging to produce this?  In that case a
debdiff may be ideal.

Regards,


Hi, I have patched the mintUpdate.py from the mintupdate package.
I renamed the original deb package to mintupdate-mint* and extract it.
About the control file I don't know if it's necessary patch it, because 
the only difference between them it's necessary remove mint-mirrors 
package from de deps and add gksu or kdesudo.

The mint-common package is necessary, but it doesn't need to be ported.
This new mintupdate package can works on *all*, probably on hurd too.
Here is the link to download the package: 
http://packages.linuxmint.com/pool/main/m/mintupdate/  (I believe this 
patch works on the latest packages).

Here is the patch:

--- 
/home/dharc/Downloads/mintupdate-mint_4.5.6_all/usr/lib/linuxmint/mintUpdate/mintUpdate.py	2013-11-30 
00:08:50.0 -0200
+++ 
/home/dharc/Downloads/mintupdate_4.5.6_all/usr/lib/linuxmint/mintUpdate/mintUpdate.py	2013-12-15 
16:15:40.125823217 -0200

@@ -41,20 +41,6 @@ try:
 except Exception, detail:
 print detail

-architecture = commands.getoutput(uname -a)
-if (architecture.find(x86_64) = 0):
-import ctypes
-libc = ctypes.CDLL('libc.so.6')
-libc.prctl(15, 'mintUpdate', 0, 0, 0)
-else:
-import dl
-if os.path.exists('/lib/libc.so.6'):
-libc = dl.open('/lib/libc.so.6')
-libc.call('prctl', 15, 'mintUpdate', 0, 0, 0)
-elif os.path.exists('/lib/i386-linux-gnu/libc.so.6'):
-libc = dl.open('/lib/i386-linux-gnu/libc.so.6')
-libc.call('prctl', 15, 'mintUpdate', 0, 0, 0)
-
 # i18n
 gettext.install(mintupdate, /usr/share/linuxmint/locale)

Considering the mint programs are traditional programs, I hope the 
maintainers from traditional DE like MATE and XFCE use it as replace of 
gnome-packagekit, this is my intention. :D

What's the next step?
Please, try it by yourselves and look for errors.
Thanks


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/f760402b1d50e4c2e2671eaba7122...@openmailbox.org



Re: mintupdate

2013-12-15 Thread Steven Chamberlain
On 15/12/13 04:22, brunomaxi...@openmailbox.org wrote:
 Yeah, that's unnecessary.
 The program is ported now. What do you wnat? The patch or the package?

Did you patch some existing packaging to produce this?  In that case a
debdiff may be ideal.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52ade81a.3000...@pyro.eu.org



Re: mintupdate

2013-12-14 Thread brunomaximom

Why do you need setproctitle() when porting software from GNU/Linux?
That's a BSD-specific function.


Yeah, that's unnecessary.
The program is ported now. What do you wnat? The patch or the package?


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fe2567cd211d8c28cecf534dc04c8...@openmailbox.org



Re: mintupdate

2013-12-10 Thread Robert Millan
On 08/12/2013 00:02, brunomaxi...@openmailbox.org wrote:
 HI all, I'm trying to port mintUpdate program but I'm having trouble.
 http://pastebin.com/2qbMV8qV
 Look the line 52...FreeBSD has not prctl, and apparently the setproctitle 
 doesnt exist for us.
 Can someone confirm that?

Why do you need setproctitle() when porting software from GNU/Linux?
That's a BSD-specific function.

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52a71df5.9020...@debian.org



mintupdate

2013-12-07 Thread brunomaximom

HI all, I'm trying to port mintUpdate program but I'm having trouble.
http://pastebin.com/2qbMV8qV
Look the line 52...FreeBSD has not prctl, and apparently the 
setproctitle doesnt exist for us.

Can someone confirm that?


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/315cb321dda4bd5ba0309476094fd...@openmailbox.org