Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

DEB package development - a practical tip

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
User avatar
graemev2
Posts: 95
Joined: 2019-01-08 17:28
Has thanked: 2 times

DEB package development - a practical tip

#1 Post by graemev2 »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: DEB package development - a practical tip

#2 Post by Head_on_a_Stick »

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).
deadbang

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: DEB package development - a practical tip

#3 Post by cds60601 »

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

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: DEB package development - a practical tip

#4 Post by arzgi »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: DEB package development - a practical tip

#5 Post by Head_on_a_Stick »

cds60601 wrote:What is the preferred DE/WM used in Testing to develop/maintain packages?
TTY ftw! :mrgreen:
deadbang

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: DEB package development - a practical tip

#6 Post by cds60601 »

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
Supercalifragilisticexpialidocious

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: DEB package development - a practical tip

#7 Post by stevepusser »

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
MX Linux packager and developer

User avatar
graemev2
Posts: 95
Joined: 2019-01-08 17:28
Has thanked: 2 times

Re: DEB package development - a practical tip

#8 Post by graemev2 »

I have now built a full package ( Apache commons daemon ...a digression from what I want/need to build) I'll probably have some follow up questions . In terms of tools , I did it all inside Emacs. I used to take great delight in my shell history having only one command in it ... emacs, then logout.

Post Reply