buildpacket does not rely on apkg at all; buildpacket creates tarball, 
and apkg extracts it much later.

trouble is here:

         # fetch the numeric uid/gid is user- and group-names were specified
         my ($uid, $gid) = split(/\:/,$ownership);

         if (!isNumeric($uid)) {
              $uid   = getpwnam($uid);
              confess "$uid not in passwd file" unless defined($uid);
         }

         if (!isNumeric($gid)) {
              $gid   = getgrnam($gid);
              confess "$gid not in passwd file" unless defined($gid);
         }

getpwnam/getgrnam, which is used to convert string uid/gid to numeric, 
uses system passwd/group. which is an mistake.

On 29.01.2017 16:19, Erich Titl wrote:
> Hi Andrew
>
> Am 29.01.2017 um 14:33 schrieb Andrew:
>> this is not an apkg issue. it's an buildpacket issue.
>>
>
> Alledgedly buildpacket has requirements that cannot always be met, 
> because apkg cannot or does not set UID/permissions. I see this as a 
> weakness of the packaging system.
>
> cheers
>
> ET
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> leaf-devel mailing list
> leaf-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to