Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-11 Thread Joan Moreau
Hello, 


I have read so many articles, but I do not find any clear explanation of
what I am doing wrong. 


I am running debmake / debbuild on the data I packed here :
https://grosjo.net/tb.tar.gz

Can you help ? 

Thank you very much 


On 2020-07-05 17:51, Joan Moreau wrote:

An additional question : I still do not understand why, if this is a "source" package, the source (and the Makefile) does not get included ? 

Am I missing something ? 

On 2020-07-05 17:26, Joan Moreau wrote: 

Ok, I tried to put a Makefile that import all needed packages dynamically (via "git clone" mostly) 

You may check https://github.com/grosjo/tomboy-reborn/blob/master/packages/tomboy-reborn_1.0.0-1_amd64.deb 

Thank you 

On 2020-07-05 15:53, Sudip Mukherjee wrote: 
On Sun, Jul 5, 2020 at 3:31 PM Joan Moreau  wrote: 
Hi


The lazbuild is commented because this does not work properly from console, one shall use lazarus IDE in order to compile the sources properly, and according to its architecture. 
uhhh.. Debian builds are automated and there is no human interaction,

so build using IDE will not work. It needs to be command based, so it
can be added to the script.

Thank you for the tip about DESTDIR, it seems it works now.

What do you think of https://github.com/grosjo/tomboy-reborn/releases/tag/1.0.0 ? 
I can take a look, but until you can build it without IDE, its not

going to help. :(

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-05 Thread Joan Moreau

An additional question : I still do not understand why, if this is a
"source" package, the source (and the Makefile) does not get included ? 

Am I missing something ? 


On 2020-07-05 17:26, Joan Moreau wrote:

Ok, I tried to put a Makefile that import all needed packages dynamically (via "git clone" mostly) 

You may check https://github.com/grosjo/tomboy-reborn/blob/master/packages/tomboy-reborn_1.0.0-1_amd64.deb 

Thank you 

On 2020-07-05 15:53, Sudip Mukherjee wrote: 
On Sun, Jul 5, 2020 at 3:31 PM Joan Moreau  wrote: 
Hi


The lazbuild is commented because this does not work properly from console, one shall use lazarus IDE in order to compile the sources properly, and according to its architecture. 
uhhh.. Debian builds are automated and there is no human interaction,

so build using IDE will not work. It needs to be command based, so it
can be added to the script.

Thank you for the tip about DESTDIR, it seems it works now.

What do you think of https://github.com/grosjo/tomboy-reborn/releases/tag/1.0.0 ? 
I can take a look, but until you can build it without IDE, its not

going to help. :(

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-05 Thread Joan Moreau

Ok, I tried to put a Makefile that import all needed packages
dynamically (via "git clone" mostly) 


You may check
https://github.com/grosjo/tomboy-reborn/blob/master/packages/tomboy-reborn_1.0.0-1_amd64.deb


Thank you 


On 2020-07-05 15:53, Sudip Mukherjee wrote:

On Sun, Jul 5, 2020 at 3:31 PM Joan Moreau  wrote: 


Hi

The lazbuild is commented because this does not work properly from console, one 
shall use lazarus IDE in order to compile the sources properly, and according 
to its architecture.


uhhh.. Debian builds are automated and there is no human interaction,
so build using IDE will not work. It needs to be command based, so it
can be added to the script.


Thank you for the tip about DESTDIR, it seems it works now.

What do you think of https://github.com/grosjo/tomboy-reborn/releases/tag/1.0.0 
?


I can take a look, but until you can build it without IDE, its not
going to help. :(

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-05 Thread Joan Moreau
Hi 


The lazbuild is commented because this does not work properly from
console, one shall use lazarus IDE in order to compile the sources
properly, and according to its architecture. 

Thank you for the tip about DESTDIR, it seems it works now. 


What do you think of
https://github.com/grosjo/tomboy-reborn/releases/tag/1.0.0 ? 


Thank you very much for your support

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-05 Thread Joan Moreau
I have now managed to have debmake and debuild to run without errors 

I am running it on https://grosjo.net/tomboy-reborn-1.0.0.tar.gz 


The "debuild" command does create a ".deb" file.  However the deb file
is not instalable (i.e. the compiled software is not in the archive) 


And still not sure what should be the command to generate a "source
package" (and what can it be besides the deb package and the actual
sources, available on github) 


And what are the actual (additional?) requirements to push that into
Debian ? 

Can you help ? 

Thank you very much 


JM

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-04 Thread Joan Moreau

When you say "write a proper source package ", are you referring to the
actual ".deb"  package ? or something else ?

Bottom line : What is actually needed ? I mean, in concrete terms ?
Something I can actually type on a command line ? 


On 2020-07-04 21:23, Andrey Rahmatullin wrote:

On Sat, Jul 04, 2020 at 08:39:36PM +0100, Joan Moreau wrote: 


(1) As a "software provider", what files are expected (besides the
sources, the Makefile and the binary) ? ( please kindly refer to :
https://github.com/grosjo/tomboy-reborn )

The sources and the build system to build them. Binaries should never be
shipped in the sources.


(2) As a "package maintainer" , the error below keeps poping up, so most
probably I am missing something

I have no idea what does debmake do when you already have some files in
debian/. The doc you are reading certainly doesn't expect that.


How to concretely create the ".deb" package (which tool does create the
deb format, what does it contains really )besides the theory not
describing the actual content) ), so I can pack it directly ?

You don't need to "pack the deb directly", you already have your deb from
checkinstall. On the other hand, if you want a proper package acceptable
in Debian, you shouldn't "pack the deb directly" but write a proper source
package.

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-04 Thread Joan Moreau
Hello, 

Concretely: 


(1) As a "software provider", what files are expected (besides the
sources, the Makefile and the binary) ? ( please kindly refer to :
https://github.com/grosjo/tomboy-reborn ) 


(2) As a "package maintainer" , the error below keeps poping up, so most
probably I am missing something 


How to concretely create the ".deb" package (which tool does create the
deb format, what does it contains really )besides the theory not
describing the actual content) ), so I can pack it directly ? 

Thank you very much 


On 2020-07-04 18:16, Andrey Rahmatullin wrote:

On Sat, Jul 04, 2020 at 06:06:05PM +0100, Joan Moreau wrote: 


Input file sare visibles on
https://github.com/grosjo/tomboy-reborn/tree/master/packages

You are supposed to include thesoftware source in the package, not this.
So debian/ should be in the root of the repo.


This is the exact ouptut I get (from debuild -d)

I: check_all_licenses completed for 32 files.
I: bunch_all_licenses
I: format_all_licenses
I: make debian/* template files
I: found "debian/changelog"
I: debmake -x "0" ...
I: skipping :: debian/control (file exists)
I: creating => debian/copyright
I: substituting => /usr/share/debmake/extra0/rules
I: skipping :: debian/rules (file exists)
I: substituting => /usr/share/debmake/extra0/changelog
I: skipping :: debian/changelog (file exists)

You aren't supposed to run debmake with debian/ already existing.

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-04 Thread Joan Moreau

Input file sare visibles on
https://github.com/grosjo/tomboy-reborn/tree/master/packages 

This is the exact ouptut I get (from debuild -d) 


I: check_all_licenses completed for 32 files.
I: bunch_all_licenses
I: format_all_licenses
I: make debian/* template files
I: found "debian/changelog"
I: debmake -x "0" ...
I: skipping :: debian/control (file exists)
I: creating => debian/copyright
I: substituting => /usr/share/debmake/extra0/rules
I: skipping :: debian/rules (file exists)
I: substituting => /usr/share/debmake/extra0/changelog
I: skipping :: debian/changelog (file exists)
I: run "debmake -x1" to get more template files
I: $ wrap-and-sort
dpkg-buildpackage -d -us -uc -ui
dpkg-buildpackage: info: source package tomboy-reborn
dpkg-buildpackage: info: source version 1.0.0-1
dpkg-buildpackage: info: source distribution stable
dpkg-buildpackage: info: source changed by Joan Moreau 
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean
dh: Please specify the compatibility level in debian/compat
make: *** [debian/rules:18: clean] Error 255
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess
returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -d -us -uc -ui failed 

Thank you so much 


On 2020-07-04 17:57, Joan Moreau wrote:

Is there a web page stating the steps to go through, without all this complexity ? 

similar to the Arch  : https://wiki.archlinux.org/index.php/AUR_submission_guidelines 

On 2020-07-04 17:43, Andrey Rahmatullin wrote: 
On Sat, Jul 04, 2020 at 05:38:05PM +0100, Joan Moreau wrote: Let's imagine I found it (using lazbuild most probably), then where

should I put that command ? override_dh_auto_build, assuming you use dh(1)

How to specifiy the options needed ? As usual in the command arguments.

where to put lazarus is required ? 
Build-Depends.


Following
https://www.debian.org/doc/manuals/debmake-doc/ch04.en.html#step-upstream,
I am getting the error "Please specify the compatibilitle level in
debian/compat' (meaning what should I write where ?) debmake would create that 
file for you, so I'm not sure what exactly did
you do.

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-04 Thread Joan Moreau

Is there a web page stating the steps to go through, without all this
complexity ? 


similar to the Arch  :
https://wiki.archlinux.org/index.php/AUR_submission_guidelines 


On 2020-07-04 17:43, Andrey Rahmatullin wrote:

On Sat, Jul 04, 2020 at 05:38:05PM +0100, Joan Moreau wrote: 


Let's imagine I found it (using lazbuild most probably), then where
should I put that command ?

override_dh_auto_build, assuming you use dh(1)


How to specifiy the options needed ?

As usual in the command arguments.


where to put lazarus is required ?


Build-Depends.


Following
https://www.debian.org/doc/manuals/debmake-doc/ch04.en.html#step-upstream,
I am getting the error "Please specify the compatibilitle level in
debian/compat' (meaning what should I write where ?)

debmake would create that file for you, so I'm not sure what exactly did
you do.

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-04 Thread Joan Moreau

Let's imagine I found it (using lazbuild most probably), then where
should I put that command ? 

How to specifiy the options needed ? where to put lazarus is required ? 


Following
https://www.debian.org/doc/manuals/debmake-doc/ch04.en.html#step-upstream,
I am getting the error "Please specify the compatibilitle level in
debian/compat' (meaning what should I write where ?) 


On 2020-07-04 17:07, Andrey Rahmatullin wrote:

On Sat, Jul 04, 2020 at 04:57:37PM +0100, Joan Moreau wrote: 


Hi Boyuan,

Thank you so much for your feedback.

The program is to be compiled with Lazarus
(https://packages.debian.org/buster/lazarus-ide ), this is pretty
straighforward for anyone willing to compile from source.

SHould I put "lazarus" somewhere ? where ?

You need to find out how to build the project without launching the IDE.
There are suggestions regarding that in another email.

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-04 Thread Joan Moreau
Hi Boyuan, 

Thank you so much for your feedback. 


The program is to be compiled with Lazarus
(https://packages.debian.org/buster/lazarus-ide ), this is pretty
straighforward for anyone willing to compile from source. 

SHould I put "lazarus" somewhere ? where ? 

Thank you 


On 2020-07-04 16:28, Boyuan Yang wrote:


Hi Joan,

在 2020-07-04星期六的 13:23 +0100,Joan Moreau写道: 


Hi Evangelos

Found also this page 
https://coderwall.com/p/urkybq/how-to-create-debian-package-from-source


It contains 3 files
- the binary (to go into /usr/bin)
- the icon
- the .desktop file

The sources are here : https://github.com/grosjo/tomboy-reborn

How to know the files needed, and is there "tar" or similar software
to create the ".deb" file form a files tree ?


Disclaimer -- I'm providing you with some information that you might be
missing instead of trying to push this packaging process forward.

It looks like you are in lack of 2 large pieces of knowledge that is
critical to do a proper packaging:

(1) How to act properly as a software upstream, by providing a
functioning build system that can automatically convert source code
into binaries as well as providing handy instructions to install built
binaries into the system. This kind of buildsystem is often achieved
through a build automation software and you may find a list at 
https://en.wikipedia.org/wiki/List_of_build_automation_software .


(2) How to act properly as a downstream (Debian) packager on top of
upstream build system.

These 2 parts are separated but both essential when trying to create a
good software package. The fact that you are using a non-mainstream
programming language (Pascal) further complicates the situation.

From the very beginning (part (1)), you need a proper building system
in your upstream project, https://github.com/grosjo/tomboy-reborn .
Works in part (1) has nothing to do with Debian or any specific Linux
distributions.

In your case, I do not see any build system in your source code
repository. There is a built binary file but there's no script or
instructions describing how the built binary was generated. I have
absolutely no idea how you were building the Pascal source code into
binaries. My best guess is that you are using the building function
embedded in Lazarus IDE -- which is completely unacceptable since a
working build system should be fully automated and require no graphical
IDE tool to function well. It could be a handwritten Makefile, CMake-
based solutions, Meson-based solutions or something else. Since you are
using Pascal, I do not know what proper buildsystem should I recommend.
(If you are using a mainstream programming language like C, C++, C# or
even Python or Java, the buildsystem solution is largely known:
Makefile, CMake, Meson, python-setuptools, Maven, Gradle, etc.)
However, there are several existing Pascal-written software in Debian
and other Linux distributions. It might be easier for you to see what
other Pascal projects are using and do in a similar way. There is also
a Debian Pascal Team [1 [1]] and you may get some help from team members.
Remember that in part (1) you are acting as an upstream software
developer; if necessary, you may refer to Debian's guide to upstream
software developers at [2 [2]].

[1] 
https://qa.debian.org/developer.php?email=pkg-pascal-devel%40lists.alioth.debian.org

[2] https://wiki.debian.org/UpstreamGuide

For the latter part (part (2)), you will finally act as a downstream
software packager. we can discuss it later after you have a functioning
buildsystem. It won't be difficult as long as your build system is
sane. In any case, using prebuilt binaries from upstream is
unacceptable: Debian dislikes this and holds a view that any binaries should be 
generated (automatically) from source code at _build_ time.

I hope those information could be useful to you.



Links:
--
[1]
https://qa.debian.org/developer.php?email=pkg-pascal-devel%40lists.alioth.debian.org
[2] https://wiki.debian.org/UpstreamGuide

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-04 Thread Joan Moreau
Hi Evangelos 


Found also this page
https://coderwall.com/p/urkybq/how-to-create-debian-package-from-source 


But I am not getting anywhere.

My tentative package is however extremely simple 

It contains 3 files 

- the binary (to go into /usr/bin) 

- the icon 

- the .desktop file 

The sources are here : https://github.com/grosjo/tomboy-reborn 


How to know the files needed, and is there "tar" or similar software to
create the ".deb" file form a files tree ? 

Thank you so much 

JM 


On 2020-07-01 22:31, Evangelos Ribeiro Tzaras wrote:


Hi,

I originally got started with [1 [1]], however you should probably consult the 
new
version [2 [2]]. This should hopefully help you figure things out.

[1] https://www.debian.org/doc/manuals/maint-guide/index.html
[2] https://www.debian.org/doc/devel-manuals#debmake-doc

On 7/1/20 9:20 PM, Joan Moreau wrote: Hi

I am really sorry to bother you, but I am a bit lost.

I created a .deb file (see
https://github.com/grosjo/tomboy-reborn/tree/master/packages ) so I should now
create a deb-src package, right ?

The wiki page you mentioned does not really explain how to do so. Is there a
simple, step-by-step, process described somewhere ?

THank you so much

On 2020-07-01 18:46, Andrey Rahmatullin wrote:

On Wed, Jul 01, 2020 at 05:35:21PM +0100, Joan Moreau wrote: This is not a "source 
package" as the source is in Pascal (using Lazarus
compiler package). Should I include the Pascal source also ? You need to create 
a Debian source package that can be built to produce a
Debian binary package.
It doesn't really matter what language is used or what should be contained
in the binary package. The workflow is the same.
https://wiki.debian.org/Packaging/SourcePackage


---

Evangelos Ribeiro Tzaras



Links:
--
[1] https://www.debian.org/doc/manuals/maint-guide/index.html
[2] https://www.debian.org/doc/devel-manuals#debmake-doc

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-01 Thread Joan Moreau
Hi 

I am really sorry to bother you, but I am a bit lost. 


I created a .deb file (see
https://github.com/grosjo/tomboy-reborn/tree/master/packages ) so I
should now create a deb-src package, right ? 


The wiki page you mentioned does not really explain how to do so. Is
there a simple, step-by-step, process described somewhere ? 

THank you so much 


On 2020-07-01 18:46, Andrey Rahmatullin wrote:

On Wed, Jul 01, 2020 at 05:35:21PM +0100, Joan Moreau wrote: 


This is not a "source package" as the source is in Pascal (using Lazarus
compiler package). Should I include the Pascal source also ?

You need to create a Debian source package that can be built to produce a
Debian binary package.
It doesn't really matter what language is used or what should be contained
in the binary package. The workflow is the same.
https://wiki.debian.org/Packaging/SourcePackage

Bug#964087: RFS: TomboyReborn/1.0-1 - Drop in replacement of deprecated Gnome Tomboy

2020-07-01 Thread Joan Moreau
Package: sponsorship-requests

Severity: normal [important for RC bugs, wishlist for new packages]



Dear mentors,



I am looking for a sponsor for my package "tomboy-reborn"



 * Package name: tomboy-reborn

   Version : 1.0-1

   Upstream Author : Joan Moreau 

 * URL :  https://github.com/grosjo/

 * License : GPL




It builds those binary packages:



  tomboy-reborn - A drop in replacement of legacy Gnome Tomboy, with
network sync (Owncloud/Nextcloud) fully implemented


To access further information about this package, please visit the
following URL:

https://github.com/grosjo/tomboy-reborn



Regards,



Joan Moreau