pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: pkg/44348: wipe-2.2.0 pkgsrc patch



The following reply was made to PR pkg/44348; it has been noted by GNATS.

From: "Tony Young" <rofflwaffls%gmail.com@localhost>
To: <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: RE: pkg/44348: wipe-2.2.0 pkgsrc patch
Date: Mon, 10 Jan 2011 08:18:00 +1300

 This is a multipart message in MIME format.
 
 ------=_NextPart_000_0155_01CBB09E.E7C1CBF0
 Content-Type: text/plain;
        charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 > -----Original Message-----
 > From: OBATA Akio [mailto:obache%netbsd.org@localhost]
 > Sent: Monday, 10 January 2011 1:25 a.m.
 > To: pkg-manager%netbsd.org@localhost; gnats-admin%netbsd.org@localhost;
 pkgsrc-bugs%netbsd.org@localhost;
 > rofflwaffls%gmail.com@localhost
 > Subject: Re: pkg/44348: wipe-2.2.0 pkgsrc patch
 > 
 > The following reply was made to PR pkg/44348; it has been noted by GNATS.
 > 
 > From: "OBATA Akio" <obache%netbsd.org@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc:
 > Subject: Re: pkg/44348: wipe-2.2.0 pkgsrc patch
 > Date: Sun, 09 Jan 2011 21:24:45 +0900
 > 
 >  On Sun, 09 Jan 2011 06:25:00 +0900, <rofflwaffls%gmail.com@localhost> wrote:
 > 
 >  >> Description:
 >  > wipe assumes DragonFlyBSD's partinfo to be the standard BSD partinfo,
 > which it isn't. This patch checks if we're compiling DragonFlyBSD and adds
 > the sys/diskslice.h header that defines partinfo, as well as checks for
 > DragonFlyBSD to sidestep around struct members that don't exist.
 > 
 >  I feel those members for DragonFly are:
 >     options.sectors = pinfo.media_blocks
 >     options.sector_size = pinfo.media_blksize
 > 
 >  --
 >  OBATA Akio / obache%NetBSD.org@localhost
 > 
 
 Hi again,
 
 There's a define for SECTOR_SIZE further down which seems to take effect,
 but in retrospect, I'm not sure how well it would work. Patch attached to
 use the recommended struct members.
 
 As for the tits package, I have no idea why that happened -- I can extract
 it fine. The tarball is attached, which I've verified is working.
 
 Thanks,
 Tony
 
 ------=_NextPart_000_0155_01CBB09E.E7C1CBF0
 Content-Type: application/octet-stream;
        name="blkdev.diff"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
        filename="blkdev.diff"
 
 --- blkdev.c.orig       2011-01-10 08:05:27 +1300=0A=
 +++ blkdev.c    2011-01-10 08:11:29 +1300=0A=
 @@ -55,6 +55,10 @@=0A=
  # endif=0A=
  #endif=0A=
  =0A=
 +#ifdef __DragonFly__=0A=
 +#include <sys/diskslice.h>=0A=
 +#endif=0A=
 +=0A=
  #include "std.h"=0A=
  #include "io.h"=0A=
  #include "main.h"=0A=
 @@ -181,15 +185,19 @@=0A=
        options.sectors =3D tmp;=0A=
  #endif=0A=
  =0A=
 -#ifdef BSD_BLKDEV=0A=
 +#if defined(BSD_BLKDEV) && !defined(__DragonFly__)=0A=
        options.sectors =3D pinfo.part->p_size;=0A=
 +#elif defined(__DragonFly__)=0A=
 +      options.sectors =3D pinfo.media_blocks;=0A=
  #endif=0A=
      }=0A=
  =0A=
    if (options.sector_size =3D=3D 0)=0A=
      {=0A=
 -#ifdef BSD_BLKDEV=0A=
 +#if defined(BSD_BLKDEV) && !defined(__DragonFly__)=0A=
        options.sector_size =3D pinfo.disklab->d_secsize;=0A=
 +#elif defined(__DragonFly__)=0A=
 +      options.sector_size =3D pinfo.media_blksize;=0A=
  #else=0A=
        options.sector_size =3D SECTOR_SIZE;=0A=
  #endif=0A=
 
 ------=_NextPart_000_0155_01CBB09E.E7C1CBF0
 Content-Type: application/octet-stream;
        name="tits.tar.gz"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
        filename="tits.tar.gz"
 
 H4sIABUcKE0AA+1Ze3PaSBLff5lP0Ud8DsQ89EAIkyVnYhSHCgYfkHhTlyuVGI1AZZA4aWSHJP7u
 1zPCNtjJ+m4rdvahn3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