-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debian package for pegged #171
Comments
Hello, I'd like to have debian package for pegged, but can't find any on the
Thank you for your offer, but even if the development of Pegged is not as |
Yes, but it is as easy as changing two text files and running dpkg-buildpkg
There are several points, please correct me if i'm wrong:
|
Hi ikod, Since you are offering to do the work, I suppose you have the need for a binary distribution. Which suggests you are distributing an application that builds on Pegged, and you want to link to it dynamically, correct? Could you please expand on the way you use Pegged, because it surprises me a little that you would want to package Pegged separately, as a binary. Since Pegged is essentially a code-generating library, its value is in my eyes mostly in the development of parsers. That suggests a source distribution. The code that ends up in binary form in the parser is contained in one file Now, applications that use Pegged and are distributed as a Debian package will need the Pegged source to be built. You could argue that a Debian source package of Pegged would be desirable. But isn't it much more straight forward and generic to make dub a build-dependency and use it in the package recipe to download the appropriate version of Pegged? Pegged doesn't even need to be compiled separately, its files can just be listed as part of the compilation of the main application. This approach holds for many D libraries, I think. So testing the process and documenting it would be a nice contribution, if you are interested. Bastiaan. |
I distribute small library which use Pegged to parse user requests. I use this library both to link static binaries and to use in shebang D scripts. Right now I realised that distributing Pegged as debian package needed only in the latter case, so that I can install them in the system-wide directory like /usr/include/d/pegged and use shebang line like
And in mylib.d:
If I can do this (install Pegged files in system-wide directory) using dub, then really I do not need debian packaging. |
Thanks for clarifying. As you would need the source for shebang scripts, this would be a source distribution, not a binary package, right? Like pegged-dev. I am a dub-beginner myself, but I presume it is not meant to put its files in system directories on its own. I do think it should be possible for dpkg to use dub to fetch the files, after which dpkg can do the right thing -- so it could be part of your package. Whether that is a good idea I'm not sure, there is also the issue of package removal. Maybe this would be a bit backwards though, maybe a Pegged package is indeed more appropriate. Have you considered asking on the forum what the recommended strategy is for source distribution on Debian, and if and how dpkg and dub should be married? |
Yes, it's a subject vaster than Pegged, I'd be interested by what'd be the To answer your original question, if creating a deb package is easy, then Pegged does not depend on cutting edge features of any D compiler, so you What do you think all: maybe I should put a small explanation concerning |
That might be helpful. I haven’t used any of these though, as I am still just experimenting in the shed. I have used pegged/dev/regenerate.d a couple times, and I keep forgetting the options for rdmd so its output ends up in the right place. Would be nice to have a rule for it in the Makefile, or something. |
Thanks for your opinions, all! |
One more thing: are your users expected to define their own grammar in the rdmd script, or is the grammar given and fixed? If it is given, it might be better to generate the parser offline using asModule() and your only additional dependency would be peg.d. Then you can also consider distributing a binary version of the parser (I suppose rdmd can link, even statically), so there would be no dependency on Pegged at all --- only on your parser. You would link your application likewise. |
Nice idea, will try. |
Philippe, following to question, posted on forum -- there were not too much responces, so I'll probably prepare package and then you will decide use it or not. Thanks! |
Yes, please, that would have helped prevent #181 (at least its second part). |
On Thu, Feb 4, 2016 at 12:44 PM, ikod [email protected] wrote:
I'll include it with pleasure, thanks for your work! |
I can do that this week end. A small `build.md` file.
|
Hello, Thanks! |
Hi, my email is philippe.sigaud with gmail. Since I'm absolutely not competent in any way concerning Debian packages, I prefer to let your email as PoC, if that's OK with you. |
Hello,
I'd like to have debian package for pegged, but can't find any on the network. If you think it is worth of effors I can do all wrapping and pull request.
Thanks!
The text was updated successfully, but these errors were encountered: