[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#960742: RFS: lazpaint/7.1.3 ITP -- add LazPaint to Debian




On Sat, May 16, 2020 at 11:28:34AM +0200, Johann ELSASS wrote:
> Hello Tobias,
> 
> Thanks for your reply. I came up with the following.
> 
> First install "lazarus-package" as it is required to compile.
> 
> Then the source package would consist of the following:
> - in bgrabitmap subdir extract https://github.com/bgrabitmap/bgrabitmap/archive/master.zip
> - in bgracontrols subdir extract https://github.com/bgrabitmap/bgracontrols/archive/master.zip
> - in lazpaint subdir extract https://github.com/bgrabitmap/lazpaint/archive/master.zip
> - in the base dir add make.sh (provided as attachment of this mail)
> 
> Running it compiles and creates the Deb package in lazpaint/lazpaint/release/debian/
> 
> Am I getting closer?

I fear there you need to check the packaging mechanics in Debian …
E.g you can't have manual steps. Your (Debian) source package needs to have all the instructions
to make a Debian package. The instructions are in the debian/ directory of a source package…

Maybe those resource will be of help for an introdcution to Debian packageing:
- https://mentors.debian.net/intro-maintainers/ (esp. the linked resources)
- https://wiki.debian.org/Packaging/Intro
- https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf

In shorter words, you need to produce a source package where you can simply say
"dpkg-buildpackage" and this command generates a *.deb.

The second problem: You cannot download external resources while building a package.
So you need to have (IIUC) bgrabitmap, bgracontrols already as Debian package
and "Build-Depend" (an entry in debian/control) to retrieve them.

There should be lazarus based packages already in Debian. Maybe look at those packages
ddrescueview, doublecmd, dozzaqueux, mricron, optgeo, transgui, vmg, winff*
For that, do a apt-source $package to get the source and take a look at it. Maybe it helps to get started…
(As said, it is the debian directory that is most important.) 

-- 
tobi

(* disclaimer: only a quick grep over sources, I did not check details / suitability)



> 
> -- 
>   Johann ELSASS
>   circular@operamail.com
> 
> On Sat, May 16, 2020, at 8:29 AM, Tobias Frost wrote:
> > Control: tags -1 wontfix
> > 
> > Hi Johann,
> > 
> > thanks for your interest to contribute to Debian!
> > However, it's unfortunatly not that straight forward… See below for 
> > info and resources!
> > 
> > On Sat, May 16, 2020 at 08:04:00AM +0200, Johann ELSASS wrote:
> > > Package: sponsorship-requests
> > > Severity: wishlist
> > > 
> > > Dear mentors,
> > > 
> > > I am looking for a sponsor for my package "lazpaint":
> > > 
> > >  * Package name    : lazpaint
> > >    Version         : 7.1.3
> > >    Upstream Author : Johann ELSASS <circular@operamail.com>
> > >  * URL             : https://github.com/bgrabitmap/lazpaint/releases
> > >  * License         : GPL3
> > >  * Vcs             : https://github.com/bgrabitmap/lazpaint/tree/master/lazpaint/release/debian
> > >    Section         : Graphics App
> > > 
> > > I don't understand very well what I am supposed to write in here. 
> > > 
> > > What I can say is that I build the debian package for 32-bit and 64-bit using the binary produced by the dev environment Lazarus and that I put it into the package using the bash script in lazpaint/release/debian folder.
> > 
> > You need to compile lazpaint _while_ creating the debian package, it is 
> > not acceptable to pre-compile it and then
> > "just" copy the resulting binary into it.
> > 
> > I'm not a Pascal guy, there should be a few examples in the Debian 
> > archives which might gives you hints how to do it:
> > codesearch.debian.net on lazarus in debian/control might give you hints 
> > where to look for examples:
> > https://codesearch.debian.net/search?q=lazarus+path%3Adebian%2Fcontrol&literal=1&perpkg=1
> > 
> > Beside that, please read this resource as starting point:
> > https://mentors.debian.net/intro-maintainers
> > As you are also upstream, you might also want to read: 
> > https://wiki.debian.org/UpstreamGuide
> > 
> > Cheers,
> > tobi
> > 
> > (marking as wont fix for now -- that means that it cannot be sponsored 
> > that way and avoids
> > that other people spend uncessary time on this bug report. Remove the 
> > tag when you are ready with
> > a package that compiles from source.)
> >  
> > > To access further information about this package, please visit the following URL:
> > > 
> > >   https://github.com/bgrabitmap/lazpaint
> > > 
> > > Regards,
> > > 
> > > --
> > >   Johann
> > > 
> >


Reply to: