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
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. 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: apt - Renaming debian package
User avatar
Posts: 427
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: 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
Posts: 11891
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.
Black Lives Matter

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

Return to General Questions

Who is online

Users browsing this forum: No registered users and 14 guests