Debian package naming

If none of the more specific forums is the right place to ask

Debian package naming

Postby tovis » 2019-08-08 10:11

I have a quite old multifunction printer HP LaserJet 1100A. Using Debian 10 packages it's printing, but I've lost scanning function. After struggling turns on, that hplip package does not enable parallel port interface (they disable it for several years ago).
I was decided to download Debian source package, modify debian/rules file (add one row "--enable-pp-build". Using local-apt-repository package I was managed to install modify packages (exclude that I was put on head of sources.list my local "repository"). With this I was managed to install hplip packages and dependencies. The scanning function is working.

What to do about updates? Is it enough to put on "hold" hplip packages? May be better idea to rename them?
I was not found a good description how to doit. My goal is to get different name for hole package, to avoid updates.
Skype: tovis01
User avatar
tovis
 
Posts: 24
Joined: 2005-11-06 13:59
Location: Hungary

Re: Debian package naming

Postby ruwolf » 2019-08-08 22:03

Very good question (I need it, too), very hard to find answer on the Web.
wiki.debian.org: apt-src wrote:After compiling, aptitude will probably try and upgrade your custom package with the standard Debian ones, obliterating your changes! Two ways to maintain the same package version are creating a diversion with dpkg-divert or by having aptitude hold the package.
BTW: ServerFault.com: apt - Renaming debian package
User avatar
ruwolf
 
Posts: 392
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7

Re: Debian package naming

Postby stevepusser » 2019-08-09 01:47

One easy way is to add an epoch to your version in the debian/changelog so that it's always higher than the Debian one.

Debian: hplip (3.19.6-1)

Yours with an epoch: hplip (1:3.19.6-1)
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11231
Joined: 2009-10-06 05:53

Re: Debian package naming

Postby Head_on_a_Stick » 2019-08-09 08:43

Might be best to use the same revision number with a tilde added to make sure the package still gets updated for security issues, you can always modify the package again afterwards.

See deb-version(7).

To change the version use
Code: Select all
dch -v $version

Replace $version with the actual numbers you want to use. Remember to set DEBFULLNAME & DEBEMAIL appropriately to stop lintian complaining.
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10599
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to General Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable