Re: Re: Help with patching PackageKit for *BSD

2012-10-01 Thread armadefu...@yahoo.com
Agreed. Good advice.Sent from my Verizon Wireless 4G LTE Smartphone. From : Michael TautschnigSubject : Re: Help with patching PackageKit for *BSD > IIRC a process group will make the maintainence easier.
> You may want to check negative values in kill(2).
> 
[...]

Yes, but if going this route make sure you set up your own process group -
otherwise you might be killing your parent as well.

Best,
Michael



Re: Help with patching PackageKit for *BSD

2012-10-01 Thread Michael Tautschnig
> IIRC a process group will make the maintainence easier.
> You may want to check negative values in kill(2).
> 
[...]

Yes, but if going this route make sure you set up your own process group -
otherwise you might be killing your parent as well.

Best,
Michael



pgpWik4D8FAKA.pgp
Description: PGP signature


Re: Help with patching PackageKit for *BSD

2012-10-01 Thread Joe Gunn
IIRC a process group will make the maintainence easier.
You may want to check negative values in kill(2).

Michael Tautschnig  wrote:

>> Hi!
>> I don't think this is the right place to request this help, but I
>> don't know a better one at time... (RFH seems to be too "big")
>> The problem is the following: PackageKit (Debian package
>> "src:packagekit") recently became Linux-specific by accident, and I
>> need someone who knows *BSD/portable-programming better than I do to
>> make it compile on *BSD again.
>> The problem is this code:
>> http://gitorious.org/packagekit/packagekit/blobs/master/lib/packagekit-glib2/pk-spawn-polkit-agent.c
>> On *BSD I get:
>> pk-spawn-polkit-agent.c:24:23: fatal error: sys/prctl.h: No such file
>> or directory
>> compilation terminated.
>> make[5]: *** [libpackagekit_glib2_la-pk-spawn-polkit-agent.lo] Error 1
>> 
>[...]
>
>Well, the use of prctl is inherently unportable. So instead of having the 
>forked
>agent set up a signal in case of death of the parent, install a proper signal
>handler right in the parent's code that kills all forked agents (so keep a
>container containing all agent pids) upon reception of a signal.
>
>Hope this helps,
>Michael
>


Re: Help with patching PackageKit for *BSD

2012-10-01 Thread Michael Tautschnig
> Hi!
> I don't think this is the right place to request this help, but I
> don't know a better one at time... (RFH seems to be too "big")
> The problem is the following: PackageKit (Debian package
> "src:packagekit") recently became Linux-specific by accident, and I
> need someone who knows *BSD/portable-programming better than I do to
> make it compile on *BSD again.
> The problem is this code:
> http://gitorious.org/packagekit/packagekit/blobs/master/lib/packagekit-glib2/pk-spawn-polkit-agent.c
> On *BSD I get:
> pk-spawn-polkit-agent.c:24:23: fatal error: sys/prctl.h: No such file
> or directory
> compilation terminated.
> make[5]: *** [libpackagekit_glib2_la-pk-spawn-polkit-agent.lo] Error 1
> 
[...]

Well, the use of prctl is inherently unportable. So instead of having the forked
agent set up a signal in case of death of the parent, install a proper signal
handler right in the parent's code that kills all forked agents (so keep a
container containing all agent pids) upon reception of a signal.

Hope this helps,
Michael



pgpltAR8Xk7q0.pgp
Description: PGP signature


Re: Help with patching PackageKit for *BSD

2012-10-01 Thread Nathan Owens
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It looks like it is missing a package that provides prctl.h

On 10/01/2012 05:05 PM, Matthias Klumpp wrote:
> Hi! I don't think this is the right place to request this help, but
> I don't know a better one at time... (RFH seems to be too "big") 
> The problem is the following: PackageKit (Debian package 
> "src:packagekit") recently became Linux-specific by accident, and
> I need someone who knows *BSD/portable-programming better than I do
> to make it compile on *BSD again. The problem is this code: 
> http://gitorious.org/packagekit/packagekit/blobs/master/lib/packagekit-glib2/pk-spawn-polkit-agent.c
>
> 
On *BSD I get:
> pk-spawn-polkit-agent.c:24:23: fatal error: sys/prctl.h: No such
> file or directory compilation terminated. make[5]: ***
> [libpackagekit_glib2_la-pk-spawn-polkit-agent.lo] Error 1
> 
> But I don't know how to solve this otherwise. Hints and patches 
> welcome! this is really the only issue which blocks PK on kFreeBSD
> at time. Many thanks for any help! Regards, Matthias
> 
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQahf3AAoJEHzljSty6h46ixkP/0cM165XcA75pkJZKmIhgwJq
VGSfXmEBuQOfE+aEjGWDB9E8oQaQAzfyaxRU+4IiKWPf5NwdRr8pztnY4zDBYth4
7IMbSw2EdzQk+sTy415MBTLcp6IX0pA5ItXa1Xm2OwgFg+5v53L5RY3tP365diE8
GaBSjRJ1xpe1JKz9KHk5ezP3EOto8bHonza2Q4ygA+1QI9U7LBHBFZFeoQ5JrO/C
NwDmOk7jZ2pjRWeQXvmDRUALJMHD+xjrvopYxmdHJFk/leTiXQK8wzfGngU0doLJ
d1oxZupf1TCJgjGcsFvNSGbu86cwEVytPrnbWVbfIE5EFP30C4MYzGQEPZk/XB9e
KrJSSt2KGL3C4w/SupAibhFxUC20kCO8FGwXvBZsCqAgT4EFSNLxi1z7RiPfNM+B
pbrUyzECyFyRa11Ke6d9IpvGakY3TVmUbXuxNnzv72cr5BPtzTTxQ98xjgY9Fa9t
nwMnbQndGHTGKS8nHudiOxE9lIZHDqUTSGRrZUn58j8kBpefi4Xpp7T2lrqKrR7H
SH/eO6qTzbgcjlG+a/bCC+GH6k48igho5BJELIpHfwOVdQoWiX4gM+LZM9vIev+x
FMJCFNXWerT5ooCSVaFZN1U2KFvsZ/IeHtu+oIiHIdz/T9cSnxSAOrg9jdq90qRG
Bwft1kkbGkU7ZE0HHoU/
=NJMH
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/506a17fe.9000...@gmx.us



Help with patching PackageKit for *BSD

2012-10-01 Thread Matthias Klumpp
Hi!
I don't think this is the right place to request this help, but I
don't know a better one at time... (RFH seems to be too "big")
The problem is the following: PackageKit (Debian package
"src:packagekit") recently became Linux-specific by accident, and I
need someone who knows *BSD/portable-programming better than I do to
make it compile on *BSD again.
The problem is this code:
http://gitorious.org/packagekit/packagekit/blobs/master/lib/packagekit-glib2/pk-spawn-polkit-agent.c
On *BSD I get:
pk-spawn-polkit-agent.c:24:23: fatal error: sys/prctl.h: No such file
or directory
compilation terminated.
make[5]: *** [libpackagekit_glib2_la-pk-spawn-polkit-agent.lo] Error 1

But I don't know how to solve this otherwise. Hints and patches
welcome! this is really the only issue which blocks PK on kFreeBSD at
time.
Many thanks for any help!
Regards,
   Matthias


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAKNHny_T=X=xoreuMOVaqG5-rh2eon=x-gv-afclowbmngf...@mail.gmail.com