pd-pkg-tools

Hans-Christoph Steiner hans at at.or.at
Sat Dec 4 17:38:27 UTC 2010


On Dec 3, 2010, at 9:05 AM, IOhannes zmölnig wrote:

> On 12/03/2010 02:42 PM, Felipe Sateler wrote:
>> 2010/12/3 IOhannes zmölnig <zmoelnig at iem.at>:
>>> hi all,
>>>
>>> based on previous suggestion i started to create a (debian native)
>>> package "pd-pkg-tools", which should make packaging of pd- 
>>> libraries easier.
>>
>> Great!
>
> cool
>>
>> I would welcome it.
>
> cool
>
>>> might have done all the DONTs (e.g. i still have no real clue what  
>>> is
>>> supposed to go into "class" and what should go into "rules")
>>
>> I think this should go into rules, but Jonas can give a more  
>> informed answer.
>
> i was hoping for jonas to say something on this :-)
>>
>>>
>>> so far i have packaged one very simple pd-library with it, and the
>>> debian/rules file boils down to 3 lines (without the boiler-plate).
>>>
>>> this package (pd-syslog) is currently also on github
>>> https://github.com/umlaeute/pd-syslog
>>> since i was unsure about it's hard dependency on pd-pkg-tools.
>>>
>>> comments please
>>
>> The documentation is a bit wrong: The pd Depends is not handled yet.
>
> is it not?...
>
>>
>> Maybe the Depends should be expanded to a new substvar?
>
> that was my original idea.
> then i discovered that cdbs can already do it, and so i just hooked to
> that: "cdbs:Depends" should get updated to depend on "pd" (if you
> included  .../pd.mk) or "puredata" (if you included .../puredata.mk)
>
> at least this seems to work with the pd-syslog example.
>
>
> however, i'm quite open to go back to "pd:Depends" as well...
>
>>
>> Wild wishlist... would it be possible to detect if the installed pd
>> patches/objects use another library? So that the appropriate depends
>> are added?
>
> oh, you mean not binary dependencies (as are generated by
> dpkg-shlibdeps), but simply if an object.pd references [pddp/link] it
> would automatically depend on pd-pddp?
>
> that would be a cool feature indeed, though not easily done.


I think to make it 100% accurate would be difficult, but to make it  
95% accurate would be pretty easy with some regexps.  Basically search  
*.pd for these patterns:


^#X obj [0-9]+ [0-9]+ declare.*-lib \([a-zA-Z0-9~_-]+\)
^#X obj [0-9]+ [0-9]+ import \([a-zA-Z0-9~_-]+\)
^#X obj [0-9]+ [0-9]+ \([a-zA-Z0-9~_-]+\)/\S+

Those are quick guesses to illustrate the idea, but that's the basics.

.hc



----------------------------------------------------------------------------

"Free software means you control what your computer does. Non-free  
software means someone else controls that, and to some extent controls  
you." - Richard M. Stallman





More information about the pkg-multimedia-maintainers mailing list