Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Dec 2005 16:48:02 +0000
From:      Daniel Bye <freebsd-questions@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkgtools-to-portmanager.rb
Message-ID:  <20051203164802.GF35163@catflap.slightlystrange.org>
In-Reply-To: <200512030834.46493.ringworm01@gmail.com>
References:  <20051203152503.GC35163@catflap.slightlystrange.org> <200512030749.11241.ringworm01@gmail.com> <20051203160319.GD35163@catflap.slightlystrange.org> <200512030834.46493.ringworm01@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--R6sEYoIZpp9JErk7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Dec 03, 2005 at 08:34:45AM -0800, Michael C. Shultz wrote:
> I thank you for your effort!  Need to make sure that both formats convert=
 BTW:
>=20
> both of these should be allowed, right now only the top method works:
>=20
> 'editors/openoffice*'   =3D>      'LOCALIZED_LANG=3Den-US WITH_KDE=3D1',
> 'emulators/qemu'        =3D>      [
> 	'WITH_KQEMU=3D1',
> 	'WITH_SOMETHING=3D1',
> 	],
>=20
> -Mike

Yep, the new patch handles both - I use both formats in my pkgtools.conf
file, and the created file is correct.  For example:

MAKE_ARGS =3D {
      'www/mod_php4*' =3D> [
            'WITH_BZIP2=3Dyes',
            'WITH_CTYPE=3Dyes',
            'WITH_MYSQL=3Dyes',
            'WITH_OVERLOAD=3Dyes',
            'WITH_PCRE=3Dyes',
            'WITH_POSIX=3Dyes',
            'WITH_SESSION=3Dyes',
            'WITH_TOKENIZER=3Dyes',
            'WITH_XML=3Dyes',
            'WITH_ZLIB=3Dyes',
            'WITH_GETTEXT=3Dyes',
            'WITH_ICONV=3Dyes',
            'WITH_IMAP=3Dyes',
            'WITH_MCRYPT=3Dyes',
            'WITH_MHASH=3Dyes',
            'WITH_OPENSSL=3Dyes',
            'WITH_OPENLDAP=3Dyes',
            ],
      'textproc/ispell*' =3D> 'ISPELL_BRITISH=3Dyes',
      'mail/exim*' =3D> [
        'WITH_MYSQL=3D1',
      ],
      'net/samba*' =3D> [
        'BATCH=3Dyes',
        'WITH_UTMP=3Dyes',
        'WITH_SYSLOG=3Dyes',
        'WITHOUT_CUPS=3Dyes',
        'WITH_RECYCLE=3Dyes',
      ],
      'courier-imap*' =3D> 'WITH_MYSQL=3D1',
      'mail/courier-authlib*' =3D> 'WITH_MYSQL=3D1',
  }

converts to:

mail/courier-authlib*|WITH_MYSQL=3D1 |
courier-imap*|WITH_MYSQL=3D1 |
www/mod_php4*|WITH_BZIP2=3Dyes WITH_CTYPE=3Dyes WITH_MYSQL=3Dyes WITH_OVERL=
OAD=3Dyes WIT
H_PCRE=3Dyes WITH_POSIX=3Dyes WITH_SESSION=3Dyes WITH_TOKENIZER=3Dyes WITH_=
XML=3Dyes WITH_
ZLIB=3Dyes WITH_GETTEXT=3Dyes WITH_ICONV=3Dyes WITH_IMAP=3Dyes WITH_MCRYPT=
=3Dyes WITH_MHAS
H=3Dyes WITH_OPENSSL=3Dyes WITH_OPENLDAP=3Dyes |
net/samba*|BATCH=3Dyes WITH_UTMP=3Dyes WITH_SYSLOG=3Dyes WITHOUT_CUPS=3Dyes=
 WITH_RECYCLE
=3Dyes |
mail/exim*|WITH_MYSQL=3D1 |
textproc/ispell*|ISPELL_BRITISH=3Dyes |

I can foresee problems with this default entry in pkgtools.conf:

AFTERINSTALL =3D {
  '*' =3D> proc { |origin|
           cmd_restart_rc(origin)
  },
}


It converts to this:=20

START|/* #<Proc:0x000000000055ce70@/usr/local/etc/pkgtools.conf:378>|

And my guess would be that, as the Ruby instance that creates the file
has gone away, the address of the Proc object will be freed.  Dunno what=20
you want to do about that one.

Cheers,

Dan

--=20
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

--R6sEYoIZpp9JErk7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDkcxChvzwOpChvo8RArFiAKCY2buyRN+zRbNWQv2Ut1F6x4G2bACgvc8f
otzPT7KhgmkC/994lSmvrTo=
=zKH8
-----END PGP SIGNATURE-----

--R6sEYoIZpp9JErk7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051203164802.GF35163>