DEB package development - a practical tip

News and discussion about development of the Debian OS itself

DEB package development - a practical tip

Postby graemev2 » 2020-02-06 15:26

Just looked at:

DEB package development - few questions from newbie

I'm working my way through:

https://www.debian.org/doc/manuals/debm ... ex.en.html

I've made the "hello world" into a package and played around with the various patching techniques. I then switched to the "real project" to package and I was struck by a practical issue.

I get hold of foolib-1.0.tar.gz , I untar it and get foolib-1.0/...
I do lots of work in there and build a suitable package.

Then along comes foolib-1.1.tar.gz , I untar it and get foolib-1.1/...

Now lots of the work I did in 1.0 is applicable to 1.1, do I really create a whole new tree and start again?
Similarly, if I save all my "work" in git , then it's for the 1.0 tree and I start again with 1.1 .

Feels like an RTFM, did I miss a bit somewhere ?
User avatar
graemev2
 
Posts: 37
Joined: 2019-01-08 17:28

Re: DEB package development - a practical tip

Postby Head_on_a_Stick » 2020-02-06 15:31

I just copy the debian directory over to the new version's tree then modify it as required and use the dch command to update the changelog (helps if you have $DEBFULLNAME & $DEBEMAIL exported from ~/.profile or ~/.xsessionrc).
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12305
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: DEB package development - a practical tip

Postby cds60601 » 2020-07-08 13:59

As a general follow-up; What is the preferred DE/WM used in Testing to develop/maintain packages?
Server: Debian 10 (Pi), Workstation: Debian Sid (i3)
Laptop: Debian Sid (i3)
----------------------------------------------------------------------------------
Don't Break Debian: https://wiki.debian.org/DontBreakDebian
User avatar
cds60601
 
Posts: 193
Joined: 2017-11-25 05:58
Location: Tampa, Florida

Re: DEB package development - a practical tip

Postby arzgi » 2020-07-08 14:05

cds60601 wrote:As a general follow-up; What is the preferred DE/WM used in Testing to develop/maintain packages?


I think there is none. Well, if you are developing some DE or WM package, obviously you need those.
arzgi
 
Posts: 638
Joined: 2008-02-21 17:03
Location: Finland

Re: DEB package development - a practical tip

Postby Head_on_a_Stick » 2020-07-08 18:56

cds60601 wrote:What is the preferred DE/WM used in Testing to develop/maintain packages?

TTY ftw! :mrgreen:
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12305
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: DEB package development - a practical tip

Postby cds60601 » 2020-07-08 19:15

Head_on_a_Stick wrote:
cds60601 wrote:What is the preferred DE/WM used in Testing to develop/maintain packages?

TTY ftw! :mrgreen:
\

LOL - I suppose that would be true since its pretty much cli iirc
Server: Debian 10 (Pi), Workstation: Debian Sid (i3)
Laptop: Debian Sid (i3)
----------------------------------------------------------------------------------
Don't Break Debian: https://wiki.debian.org/DontBreakDebian
User avatar
cds60601
 
Posts: 193
Joined: 2017-11-25 05:58
Location: Tampa, Florida

Re: DEB package development - a practical tip

Postby stevepusser » 2020-07-09 03:09

For editing and managing files, use whatever apps you're most comfortable with. The DE doesn't really do much except eat up RAM that the build might require, if it's a really heavy monster like a big web browser. Otherwise, yeah, it's command line.

You can simulate HOAS's favorite old-timey terminals with cool-retro-term, now that it's in upstream Debian. Need I mention where there are Stretch and Buster backports for it? :D
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: LibreOffice 7.0.0, QMPlay2 20.07.04, Pale Moon 28.12.0, KeepassXC 2.6.0, Arqiver 0.6.0+git, Foliate 2.4.2
User avatar
stevepusser
 
Posts: 11884
Joined: 2009-10-06 05:53


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable