Re: Practical Problems with distribution D projects

2014-02-26 Thread Adam D. Ruppe
On Wednesday, 26 February 2014 at 18:52:55 UTC, Assaf Gordon wrote: It might be "generally available" when you assume you're dealing with "recent" "desktop" versions of linux. I've had good luck with them on my servers too but I haven't used many of the distros. But I have had the same libc

Re: Practical Problems with distribution D projects

2014-02-26 Thread Dicebot
On Wednesday, 26 February 2014 at 17:34:45 UTC, Adam D. Ruppe wrote: Anyway, let's try the -static switch we can use to do statically linked libc on some programs. $ dmd hellod.d -c $ gcc hellod.o -o hellod -m32 -L/home/me/d/dmd2/linux/bin32/../lib32 -Xlinker --export-dynamic -l:libphobos2.a

Re: Practical Problems with distribution D projects

2014-02-26 Thread Assaf Gordon
On 02/26/2014 12:34 PM, Adam D. Ruppe wrote: On Wednesday, 26 February 2014 at 17:08:38 UTC, Assaf Gordon wrote: In my first message in this thread, I wrote (item #3), that unless I'm missing something, there is no way to build a statically linked binary with D on Linux. They really aren't fa

Re: Practical Problems with distribution D projects

2014-02-26 Thread Adam D. Ruppe
On Wednesday, 26 February 2014 at 17:08:38 UTC, Assaf Gordon wrote: In my first message in this thread, I wrote (item #3), that unless I'm missing something, there is no way to build a statically linked binary with D on Linux. They really aren't far from it out of the box: $ dmd hellod.d $ ld

Re: Practical Problems with distribution D projects

2014-02-26 Thread Adam D. Ruppe
On Tuesday, 25 February 2014 at 17:04:11 UTC, John Colvin wrote: If by "works for the end user" you mean that you go to a (different for every app) website I always thought that was the sane way to do it, different website for every app, though I loathe and despise chasing down library depend

Re: Practical Problems with distribution D projects

2014-02-26 Thread Assaf Gordon
On 02/25/2014 05:41 PM, Dicebot wrote: I see, your requirements do not match use case of a typical desktop application. This is the root cause of our different POVs - I should have explained it more clearly. My users are people who have access to Linux machines which they do not control. I c

Re: Practical Problems with distribution D projects

2014-02-25 Thread Dicebot
On Tuesday, 25 February 2014 at 16:04:56 UTC, Assaf Gordon wrote: But I think "harming the ecosystem" is a bit of a hyperbole - in an ideal world where Linux Distros contain every piece of software (and up to date version), there is indeed very little need to install from source. Apologise fo

Re: Practical Problems with distribution D projects

2014-02-25 Thread Shammah Chancellor
On 2014-02-25 16:21:24 +, Adam D. Ruppe said: On Tuesday, 25 February 2014 at 16:03:46 UTC, Artem Tarasov wrote: /usr/bin/ld: cannot find -l:libphobos2.a Weird. That might just be a config problem. The dmd.conf file has the wrong options set for the path. I ran into this problem on Ma

Re: Practical Problems with distribution D projects

2014-02-25 Thread John Colvin
On Tuesday, 25 February 2014 at 16:17:13 UTC, Adam D. Ruppe wrote: On Tuesday, 25 February 2014 at 16:04:56 UTC, Assaf Gordon wrote: Not sure what the "windows attitude" is, since I haven't developed software for windows in 12 years... The Windows attitude is expecting things to actually work

Re: Practical Problems with distribution D projects

2014-02-25 Thread Assaf Gordon
On 02/25/2014 11:17 AM, Adam D. Ruppe wrote: On Tuesday, 25 February 2014 at 16:04:56 UTC, Assaf Gordon wrote: Not sure what the "windows attitude" is, since I haven't developed software for windows in 12 years... The Windows attitude is expecting things to actually work for the end user. It

Re: Practical Problems with distribution D projects

2014-02-25 Thread Adam D. Ruppe
On Tuesday, 25 February 2014 at 16:03:46 UTC, Artem Tarasov wrote: /usr/bin/ld: cannot find -l:libphobos2.a Weird. That might just be a config problem.

Re: Practical Problems with distribution D projects

2014-02-25 Thread Adam D. Ruppe
On Tuesday, 25 February 2014 at 16:04:56 UTC, Assaf Gordon wrote: Not sure what the "windows attitude" is, since I haven't developed software for windows in 12 years... The Windows attitude is expecting things to actually work for the end user. It rarely actually works that way on linux.

Re: Practical Problems with distribution D projects

2014-02-25 Thread John Colvin
On Tuesday, 25 February 2014 at 15:06:14 UTC, Dicebot wrote: On Tuesday, 25 February 2014 at 14:51:48 UTC, Assaf Gordon wrote: My target audience is not D developers - it is unix casual users (not even developers). I want to make it the easiest for them to use my program. If it's requires more

Re: Practical Problems with distribution D projects

2014-02-25 Thread Assaf Gordon
On 02/25/2014 10:06 AM, Dicebot wrote: On Tuesday, 25 February 2014 at 14:51:48 UTC, Assaf Gordon wrote: My target audience is not D developers - it is unix casual users (not even developers). I want to make it the easiest for them to use my program. If it's requires more than the standard "conf

Re: Practical Problems with distribution D projects

2014-02-25 Thread Artem Tarasov
On Tue, Feb 25, 2014 at 7:06 PM, Adam D. Ruppe wrote: > > OR you download and run the binary zip. The instructions aren't very good, > but this is really easy. > Yes, that works great on my Mint laptop and, I guess, the majority of modern distros. But let's try your advice on CentOS 5 (and please

Re: Practical Problems with distribution D projects

2014-02-25 Thread Francesco Cattoglio
On Tuesday, 25 February 2014 at 15:31:19 UTC, Dicebot wrote: On Tuesday, 25 February 2014 at 15:24:19 UTC, Francesco Cattoglio wrote: since gdc --version output is 4.8.1, what version would it be? like 2.060 or more like 2.052? Hm, ones I see in package list are for 4.6 - are you using some s

Re: Practical Problems with distribution D projects

2014-02-25 Thread Dicebot
On Tuesday, 25 February 2014 at 15:24:19 UTC, Francesco Cattoglio wrote: since gdc --version output is 4.8.1, what version would it be? like 2.060 or more like 2.052? Hm, ones I see in package list are for 4.6 - are you using some sort of testing repo? 4.8.* can possibly be pretty new, you can

Re: Practical Problems with distribution D projects

2014-02-25 Thread Francesco Cattoglio
On Tuesday, 25 February 2014 at 15:18:06 UTC, Dicebot wrote: On Tuesday, 25 February 2014 at 15:12:08 UTC, Francesco Cattoglio wrote: On my Ubuntu laptop (standard repos as far as I remember) I have to "apt-get install gdc" to install it. I don't understand what you meant with "easy way to inst

Re: Practical Problems with distribution D projects

2014-02-25 Thread Dicebot
On Tuesday, 25 February 2014 at 15:12:08 UTC, Francesco Cattoglio wrote: On my Ubuntu laptop (standard repos as far as I remember) I have to "apt-get install gdc" to install it. I don't understand what you meant with "easy way to install". Are you talking about getting it from sources or what?

Re: Practical Problems with distribution D projects

2014-02-25 Thread Francesco Cattoglio
On Tuesday, 25 February 2014 at 14:51:48 UTC, Assaf Gordon wrote: Also, as long as DMD is not free, providing easy way to install LDC/GDC is highly desired. On my Ubuntu laptop (standard repos as far as I remember) I have to "apt-get install gdc" to install it. I don't understand what you mea

Re: Practical Problems with distribution D projects

2014-02-25 Thread Dicebot
On Tuesday, 25 February 2014 at 14:51:48 UTC, Assaf Gordon wrote: Also, as long as DMD is not free, providing easy way to install LDC/GDC is highly desired. btw, fresh LDC has recently made it to Debian sid : https://packages.debian.org/sid/ldc , thanks to Konstantinos Margaritis

Re: Practical Problems with distribution D projects

2014-02-25 Thread Dicebot
On Tuesday, 25 February 2014 at 14:51:48 UTC, Assaf Gordon wrote: My target audience is not D developers - it is unix casual users (not even developers). I want to make it the easiest for them to use my program. If it's requires more than the standard "configure && make && make install" (or the

Re: Practical Problems with distribution D projects

2014-02-25 Thread Adam D. Ruppe
On Tuesday, 25 February 2014 at 14:51:48 UTC, Assaf Gordon wrote: Either you download and install the package (deb/rpm) which is easy but requires root, or you download and compile the sources from the source zip - OR you download and run the binary zip. The instructions aren't very good, but

Re: Practical Problems with distribution D projects

2014-02-25 Thread Mike Parker
On 2/25/2014 11:52 PM, Assaf Gordon wrote: On 02/25/2014 12:09 AM, Artem Tarasov wrote: On 02/24/2014 09:09 PM, Adam D. Ruppe wrote:> On Tuesday, 25 February 2014 at 01:21:03 UTC, Assaf Gordon wrote: dmd does not require root. The install instructions about copying stuff into /etc and such a

Re: Practical Problems with distribution D projects

2014-02-25 Thread Assaf Gordon
On 02/25/2014 12:09 AM, Artem Tarasov wrote: On Tue, Feb 25, 2014 at 7:16 AM, Shammah Chancellor mailto:anonym...@coward.com>> wrote: Have you looked at having dub be your autotool? The complaint is about difficulties with installation of a compiler and rdmd, and you suggest to bring in yet ano

Re: Practical Problems with distribution D projects

2014-02-25 Thread Dicebot
For building dub and/or rdmd are de-facto standard for any D developers. You should just start from source tarball and proceed from there to finding maintainers in specific distributives, possibly being the one for distro or two. Then conform packaging rules there. Single Linux-wide binary di

Re: Practical Problems with distribution D projects

2014-02-25 Thread Théo.Bueno
On Tuesday, 25 February 2014 at 01:21:03 UTC, Assaf Gordon wrote: I couldn't find a working autotools template (only few old discussions), and so far it seems the best way is writing my own makefile (which I have). https://github.com/bioinfornatics/MakefileForD

Re: Practical Problems with distribution D projects

2014-02-24 Thread Jesse Phillips
On Tuesday, 25 February 2014 at 01:21:03 UTC, Assaf Gordon wrote: Hello, I working on a small program, which I'd like to make publicly available and easy to distribute,install and use. If you want to do distribution to developers, dub[1] is the way to go. If you want to distribute to deskt

Re: Practical Problems with distribution D projects

2014-02-24 Thread Artem Tarasov
On Tue, Feb 25, 2014 at 7:16 AM, Shammah Chancellor wrote: > Have you looked at having dub be your autotool? > The complaint is about difficulties with installation of a compiler and rdmd, and you suggest to bring in yet another dependency? My experience is the same as described, I keep a VM on

Re: Practical Problems with distribution D projects

2014-02-24 Thread Shammah Chancellor
On 2014-02-25 00:50:55 +, Assaf Gordon said: Hello, I working on a small program, which I'd like to make publicly available and easy to distribute,install and use. I'm trying to figure out the best way to distribute it. Writing D code is a lot of fun, but it looks like preparing and pac

Re: Practical Problems with distribution D projects

2014-02-24 Thread Adam D. Ruppe
On Tuesday, 25 February 2014 at 01:21:03 UTC, Assaf Gordon wrote: dmd: fine, as long as the downloadable binary version works. I tested only on multiple debians and ubuntus. But it's not free, and it requires root privileges. dmd does not require root. The install instructions about copying s

Re: Practical Problems with distribution D projects

2014-02-24 Thread FreeSlave
You can use hack in Makefile to find out whether the current platform is Windows or not. Check for SystemRoot environment variable in this way: ifdef SystemRoot SYSTEM=Windows else ifdef SYSTEMROOT SYSTEM=Windows else SYSTEM=Other endif In non-Windows case use Unix un

Re: Practical Problems with distribution D projects

2014-02-24 Thread Jakob Ovrum
On Tuesday, 25 February 2014 at 01:21:03 UTC, Assaf Gordon wrote: 1. Packaging for source-based distribution (ie a "tarball"): I couldn't find a working autotools template (only few old discussions), and so far it seems the best way is writing my own makefile (which I have). My concern is tha

Practical Problems with distribution D projects

2014-02-24 Thread Assaf Gordon
Hello, I working on a small program, which I'd like to make publicly available and easy to distribute,install and use. I'm trying to figure out the best way to distribute it. Writing D code is a lot of fun, but it looks like preparing and packaging it is not so much... So far, I'm stuck at: