www.digitalmars.com         C & C++   DMDScript  

D - Debian packaging of DMD - dmd-debian.tar.gz

reply scott_dmd scott.tranzoa.net writes:
Attached is a Debian packaging structure for the current distribution of DMD.

Uncompressing it into the "dmd" directory and then running the standard Debian
package building tools against it (dpkg-buildpackage -rfakeroot) will result in
redistributable and cleanly installable/uninstallable Debian packages.

DMD's license states I cannot redistribute my packages, so I hope that people
who are interested can take this and use it. I know I held back from using D
because there wasn't a clean install method for my operating system.

I fully authorize this package being integrated into the main DMD distribution,
if Walter wants to do that.

I am not an active reader of the D newsgroup, so I won't see any responses
unless they are e-mailed to me.

Scott.
begin 0644 dmd-debian.tar.gz
M'XL(`"M1 C\``^U:ZW/;N!'WU^"OV":9.?M.[X?5J)=,94E)V)%D5Y23YE,&
M(B$)#4FP`!E'Z?1_[RY(RE)>;C)GWS7ACL<B0>QB <5O'R!]L90\JA_=)C4:
MG5:OV\7?1K/7;>S_%G34Z/4ZC4ZWT6DWCQK-9ONT<P3=6]4JI]0D7`,<&4\E
MR1?ZW?3\_Y3\S/[S\6`T'==&]NZW'J/1;#1..YW/VK_;[.7V[YRVFMC>;'=:
M[2-H_-:*?(I^=/N'/JR4ALSRK'I`C"TVTH`O3:+E,DVDBD"M8"37,N$!3+DV
M/\%0A;$,A+9BDHV`$5QHM=8\#&6TA F/UBE?"^:I*.$R,L"#`%;(84!&7I#Z
MPH<KF6PLK](H.T+9M?<R/AQXI=+(![S`?NQ*+&,4>LTHWGDB+A2D!J-2[0E(
MM!#7FDU'L-*H1U5$?HTQJ%;!);O"7"U1->3^U=KY-2[+7^U5+=$\>J]X+1+)
MDPI,550!.(5S+X%6H]&&5K/?.NVW'T&UT6LTV.]MSJ^F'/_>!LTD`K6^C3%N
MPG^KV2GPW^RAXT?\M]J]$O]W083_XT:MUZXV3R"-<#&6 ? +I'HM(F_[.%!7
M"!/X&9Q()A)Q.1>!X$9\`WC ^P//=T`%_M&)\]O:WC?A'SU` ?]&BZZ;K2X^
M+O%_!]0I4?=#4XY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M>^)X#][4(^*:$T
MVUR[\1IV?3:[A-UY$A73/<(<%=64O_U-B2T\1_1AOOD`+B.$#M4_6>5%556J
M(TKMW J])#<:HN]"J9CU*YW`Z/GK%^/Y&5:,CYN8KX[=!2;:\! >' \OYWAY
M4B\.M#%`.#,7D^/):TRAG\T'4^Q&=096(HP^1EK)M0T<N\LJ/ MC]L%]G]WS
M-Z^Q]DG09;)[B4J]S4<\C"TIKO7!_A2->S<?#0.?$GO`[:'7BSX8/;_6"BO1
M>SI$:^WS?*06];=B +%\ZKF*7Q"[XZF^R93,.>D5`6/W'AY_L*PG4`TQNP,D
MVD6X\#72 ^X?'N<6.JF+Q*NS>^A5%=P?/9T,GKF/JT[]X'RY'F\4FOP^/'GR
M">9"[N=40`>SIP(4M">EV.<W"U#+?[:X";]= )^&,0KY2 'Y*F+>0L?PV6K4
M^(<"Z#&[Y\50U?!I,MK+U_*3:W"]X(1`FY!A`7V=2U7IO("2)()E]J$>)B0(
M0E2=ZVWV.-]'.T0] )>8>?"W JK$C3V(4>`K0KPO5CP-DMIG1OOB6-3SPZ&^
MN'7S3KOOV<SA'E:>V;\O7GNS!WN-!S>8:F3WF+B\L:ST26(.+8SZE$?8FY5\
MA_XOS&[(>68)Z,'H8IE)H"<X[>PA?6B555\9J]\U:2[&SINX\N7HP[X)8&^-
M6.WB^?GL5;%4&8`_USF_+A;TVFW\\=*3DFZ9BG")P+BU,6Y\_]O:??]QVNC:
M[[]:K?+[CSNA_!5&+7F7,'JY\GOK4U)))9544DDEE51222655%)))9544DDE
9E51222655%)))954TK?1?P$\]WC.`%```)54
`
end
Oct 06 2003
parent reply Charles Hixson <charleshixsn earthlink.net> writes:
scott_dmd scott.tranzoa.net wrote:
 Attached is a Debian packaging structure for the current distribution of DMD.
 
 Uncompressing it into the "dmd" directory and then running the standard Debian
 package building tools against it (dpkg-buildpackage -rfakeroot) will result in
 redistributable and cleanly installable/uninstallable Debian packages.
 
 DMD's license states I cannot redistribute my packages, so I hope that people
 who are interested can take this and use it. I know I held back from using D
 because there wasn't a clean install method for my operating system.
 
 I fully authorize this package being integrated into the main DMD distribution,
 if Walter wants to do that.
 
 I am not an active reader of the D newsgroup, so I won't see any responses
 unless they are e-mailed to me.
 
 Scott.
FWIW: I have D installed on a Debian system via the released form, but a *.deb install would have been a lot easier. OTOH, I tend to run from the testing tree, not the unstable tree, so I'm not sure I would have seen it even if it had been on the main Debian site. Probably for a language in the current state of D (rapid development, no stable release) the best choice is either the current approach or to set up a location from which *.deb files and be downloaded. For D the best choice would probably be an install script. (FWIW, I installed D most recently under /usr/local/dmd.) The install script could handle such things as ensuing that the install directory was in the path, that the binaries were marked executable, and that phobos.a was copied to /usr/lib/phobos.a. I have at times forgotten each of those steps.
Oct 07 2003
parent Scott Robinson <scott tranzoa.net> writes:
On Tue, 07 Oct 2003 16:54:06 -0700, Charles Hixson wrote:
 FWIW:
 I have D installed on a Debian system via the released form, but a 
 *.deb install would have been a lot easier.  OTOH, I tend to run 
 from the testing tree, not the unstable tree, so I'm not sure I 
 would have seen it even if it had been on the main Debian site.
 
 Probably for a language in the current state of D (rapid 
 development, no stable release) the best choice is either the 
 current approach or to set up a location from which *.deb files and 
 be downloaded.  For D the best choice would probably be an install 
 script.  (FWIW, I installed D most recently under /usr/local/dmd.) 
 The install script could handle such things as ensuing that the 
 install directory was in the path, that the binaries were marked 
 executable, and that phobos.a was copied to /usr/lib/phobos.a.  I 
 have at times forgotten each of those steps.
I'm not an official Debian developer. As such, I cannot add my DMD package to the main distribution. This package works in the sense of a install script - for Debian users. 1) cd dmd 2) tar -zxf ~/<path>/dmd-debian.tar.gz 3) dpkg-buildpackage -rfakeroot 4) dpkg -i ../dmd_0.73-1_i386.deb DMD is now properly placed within your Debian file system, available to all users, and easily removed. I would offer an apt source, but the license included with DMD explicitly prohibits doing anything like that. Scott.
Oct 08 2003