date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,282,094,234,000 |
Is it possible to specify the dependency of another library that is within a specific range of versions?
Like:
Depends: Lib (<= 4) -- dependency of a library that has version less or equal to 4
Depends: Lib (>= 2) -- dependency of a library that has version more or equal to 2
But could we combine them? So that ... |
I didn't test it but as comma is equal to an and this could work:
Depends: Lib (<= 4), Lib (>= 2)
| Specifying a dependency of a version greater than N and less than M |
1,282,094,234,000 |
I am looking for a succinct howto on the basics.
|
The ubuntu packaging guide is a good introduction. The rest you can learn by studying existing packages, and reading manuals (CDBS, and of course Debian Policy). However, as directhex said, it depends a lot on the kind of package you work on.
For RPM, I liked the Mandriva wiki, and some Fedora RPM Guide and Guidelines... | Where are some good guides for making packages (deb, rpm, etc)? |
1,526,491,902,000 |
I'd like to embed checksum information into file, that I transfer.
It's tar.gz or tar.xz file and I can only transfer one file to remote side.
How do you recommend I embed checksum information?
I want checksum of whole archive, not it's contents (I'd like to check it's integrity "before" unpacking).
I know I could pac... |
cat file.gz file.gz.sig > transfer_me.signed
Then, on the remote host, you split out the appended checksum using
tail -c length_of_the_checksum_info transfer_me.signed > file.gz.sig
head -c -length_of_the_checksum_info transfer_me.signed > file.gz
Note the minus in the second command. The length depends on the type ... | Appending checksum information to file |
1,526,491,902,000 |
Which distros support RPMs? Which distros support DEB packages? What other distros and package formats exists? Here is what I think I know, but am interested in getting a more precise answer:
RPM - Redhat, Fedora, CentOS, SUSE
DEB - Debian, Ubuntu,
Pacman - Arch
tar.gz - all, depends on what is in the compressed ... |
There's a list of Linux Package Formats on wikipedia here and a list of common package management systems here.
| What are the different software packaging formats and which distributions support them as part of base install? |
1,526,491,902,000 |
Since RPM 4.7, there has been the ability to specify that a file in an RPM package should be installed with capabilities set (via %caps).
Is there a similar feature for Debian packages?
|
Sadly, no. There isn't a way to make dpkg use file capabilities, and apparently nobody has ever asked, though the library itself is available.
I skimmed through the Debian Policy Manual, and there isn't a single entry that reference this feature. That said, you can use dh_override_install (if you use debhelper), pre/p... | Can capabilities be specified in Debian packages? |
1,526,491,902,000 |
If I install a binary with non-standard prefix, e.g. /opt/bin/foo, which needs some static files from /opt/share/foo, how does it find them? Using back references relative to the executable (../share/foo)? Hardcoded at compile time?
What's the idiomatic way for an application to handle variable installation prefix? Sh... |
It's common to hard-code such references at compile time, and perhaps provide a command line option or environment variable to override the compile-time default. Often the program just remembers the location of one configuration file (typically under /etc) where any compile-time defaults can be overridden. This approa... | How do idiomatic Unix programs detect what prefix they are installed under? |
1,526,491,902,000 |
Is there a way to predict when the next release will be out? I read somewhere that it has to do with number of bugs remaining in the testing branch. Could someone please explain how this works and when the next release will happen based on what variables?
|
See Debian Release Management; for Debian 9, it stated:
As always, Debian 9 “Stretch” will be released “when it’s ready”.
and that’s the general rule for all releases.
The planned release date for Debian 9, June 17 2017, was announced on May 26 of that year. The planned release date for Debian 10, July 6 2019, was a... | How can we predict when the next Debian release will be out? |
1,526,491,902,000 |
When I run fpm with --rpm-sign I get the following error,
rpm: /usr/bin/rpmsign: No such file or directory
I am using CentOS
|
This error occurs because the utility rpmsign is something you have to install. The package you want is rpm-sign
You'll want to do
yum install rpm-sign
| fpm: rpm: /usr/bin/rpmsign: No such file or directory |
1,526,491,902,000 |
I created a very simple C project and want to build a debian package from it.
Manually building the C project via the Makefile works as expected, it build the binary and can be installed in /usr/local/bin. When trying to build a debian packages however it fails with
dh_usrlocal: error: debian/myhelloworld/usr/local/bi... |
Packages aren’t allowed to ship files in /usr/local, only directories, and this is enforced by dh_usrlocal.
The best fix is to follow Debian conventions and install in /usr:
override_dh_auto_install:
dh_auto_install -- prefix=/usr/bin
If you really want to install to /usr/local/bin, override dh_usrlocal inste... | Building debian package fails when destination is /usr/local/bin |
1,526,491,902,000 |
I'm thinking about properly Debianizing a package, which contains two parts in one upstream tarball/git branch:
Userspace binaries and libraries, version 1.5.0 (foobard binary package)
Kernel module, version 0.8.5 (foobar-dkms)
The problem is that versions differ. Is there any sane and correct way to build two diffe... |
The version of a binary package in Debian is determined by dpkg-gencontrol, which generates the final control file which ends up in the binary package. The -v option specifies the version number; by default the version number is taken from debian/changelog, but that can be overridden.
There are a few examples of this ... | Two differently-versioned binary Debian packages from one source |
1,526,491,902,000 |
I currently don't have wire internet access in the PC I'm trying to install arch to, but my other PC (win7) can access the internet just fine. I tried downloading the b43 package from the AUR and copy it with a pendrive but when I run makepkg -s --asroot it goes and tries to download the source from "http://www.lwfing... |
Copy the file to the same dir as PKGBUILD and then add its filename to the source array.
Otherwise I'd suggest you just look at the build procedure in the PKGBUILD file and then build it manually. After you get internet access, you can simply reinstall it to get the package tracked.
| How to install b43-firmware on arch without internet access? |
1,526,491,902,000 |
I'm using a Raspberry Pi 2 Model B running the latest Raspbian Stretch Lite 2018-11-13.
I built a program that communicates with a LoRa chip (SX1276) using SPI, gets some data from a temperature sensor and prints the temperature on the screen.
My program consists of only one executable (apart from wiringpi library).
I... |
change '/usr/bin/something' to '/directory/path/to/deployed/executable' below:
$ cat /etc/systemd/system/something.service
[Unit]
Description = Something Service
After = network.target
[Service]
ExecStart = /usr/bin/something
[Install]
WantedBy = multi-user.target
$ systemctl daemon-reload
$ systemctl enable somet... | creating a .deb package and autorun it |
1,526,491,902,000 |
I am trying to build a debian package against Debian stretch. The debian/rules file is this:
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_build:
mvn clean package
When I build it using pbuilder-buildpackage I get this build error:
mvn -e clean package
[INFO] Error stacktraces are turned on.
[ERROR] ... |
Debian packages can’t rely on a home directory during builds. This is enforced in pbuilder with the /nonexistent home.
To fix this, you need to supply the appropriate options to Maven so that it places its repository in /tmp. But really, instead of doing that, you should build-depend on maven-debian-helper and let dh ... | Getting "Could not create local repository" error when building Debian package |
1,526,491,902,000 |
We're building our package for Debian Jessie with sbuild, and so far it's working great.
There's just one detail though: we'd like to take one of the build dependencies from the Jessie backports archive.
I can't figure out how to configure the chroot to pull that package (and only that package) from backports, though.... |
I found a way, thanks to @bigon on IRC.
At runtime, I now pass the following options to the sbuild command in addition to the ones I already had:
$ sbuild ... --build-dep-resolver=aptitude --extra-repository="deb http://deb.debian.org/debian jessie-backports main" ...
The --extra-repository will add the Jessie backpo... | Building with sbuild and backports |
1,526,491,902,000 |
I was trying to build a simple Debian package,
I did these steps with user root:
First, I downloaded the upstream tarball, then:
$ mv hithere-1.0.tar.gz hithere_1.0.orig.tar.gz
Then:
$ tar xf hithere_1.0.orig.tar.gz
After that:
$ cd hithere-1.0
$ dch --create -v 1.0-1 --package hithere
$ cd debian/
$ rm *.e... |
The message is just saying that dpkg-buildpackage command failed. If you read the messages you will notice where's the problem right away:
dpkg-source: error: syntax error in hithere-1.0/debian/control at line 15:
block lacks the 'Package' field
dpkg-buildpackage: error: dpkg-source --before-build hithere-1.0 gave err... | what does "dpkg-buildpackage -rfakeroot -d -us -uc -S failed" mean? |
1,526,491,902,000 |
How can I produce an installer for a set of source codes for a specific application in Linux? Also, what are the actions happening when one installs software in Linux?
|
As there's more than one Linux distro, there's also more than one package management solution. I think that creating an app installer depends more on the target audience than on the target system.
If you plan to produce an installer for confirmed Linux users, then a source tarball will suffice.
If you target desktop ... | How can produce an "installer" in Linux? |
1,526,491,902,000 |
According to the Debian package maintainer script documentation, the pre-install script can be called with either the install or the upgrade first argument:
The preinst script may be called in the following ways:
new-preinst install
new-preinst install old-version new-version
new-preinst upgrade old-version new-vers... |
This is explained in the “details” section:
if the package is already fully installed, preinst is called with upgrade and the old and new versions;
if the package was previously installed, and still has its configuration files (it is in “Config-Files” state, i.e. it shows up as rc in dpkg -l’s output), preinst is cal... | Package maintainer pre-inst script `install` vs `upgrade` |
1,526,491,902,000 |
I want to build a tar file as regular (non-root) user with some prepared binaries and configuration files like this;
etc/binaries.conf
usr/bin/binary1
usr/bin/binary2
that are mean to be extracted into the file system under the / directory.
Like a traditional software package .deb, .rpm etc but I need to be "package ... |
The extraction is what determines the ownership, not the creation of the archive. You can see that by looking at the archive's table of contents, e.,g.,
tar tvf dist.tar
If creating the file as regular user
tar --owner 0 --group 0 dist.tar dist
do the magic
| Create, as a regular user, a tar with files owned by root |
1,526,491,902,000 |
I need instructions on how to do repackage a .deb package.
Situation:
I have a .deb package for an application with no source. I need to modify a Description field, save the file change and repackage back into a .deb package.
Is there a step by step on how to do that?
|
You need to modify the control file. This is the process:
dpkg-deb -x foo.deb tmpdir
dpkg-deb --control foo.deb tmpdir/DEBIAN
nano tmpdir/DEBIAN/control
dpkg -b tmpdir modified.deb
| Repackaging a Debian package |
1,526,491,902,000 |
I try to build a single package from source using dpkg-buildpackage.
At some point dh_auto_install is invoked and run make install DESTDIR=/somewhere/debian/package-name
Then dh_install is invoked but only search in . or debian/tmp but not in debian/package-name !
And I get something like:
dh_install: Cannot find (any... |
I’m guessing your source package builds a single binary package; i.e., your debian/control has a single Package: stanza. In such situations, dh_auto_install installs files to debian/package, and the assumption then is that that is sufficient, i.e. all the files you need to install end up in the right place under debia... | Why dh_auto_install and dh_install are not using same directory? |
1,526,491,902,000 |
I have been looking (in https://db.debian.org/machines.cgi) for a service or list of Debian packages without upstream (parent project).
Because I think there are a lot of deb packages which are alive in Debian but are dead outside.
|
The Ultimate Debian Database has an upstream version query which you can use to list all packages who either don’t have a watch file (to track upstream releases) or whose watch file results in an empty value (because upstream has gone, or an error occurred):
curl https://udd.debian.org/cgi-bin/upstream-status.json.cgi... | In Debian, is there a list of packages with dead parent project? |
1,526,491,902,000 |
I have a Git repository with these branches:
debian
master
pristine-tar
upstream
I do not have an upstream tar ball. Can I create an upstream tarball from the Git repository I have? If so, how?
|
You can use pristine-tar to reconstruct the tarball.
List the available tarballs with
pristine-tar list
then reconstruct the tarball you want with
pristine-tar checkout foo.tar.gz
(replacing foo.tar.gz as appropriate).
| How to create upstream tarball from Git repository of Debian package |
1,526,491,902,000 |
How do you add a package to the official Debian APT repository? For example lets say I have a peice of software called quicktxtedit ,and I have a DEB file for it, and I want to add it to the offical repository for everyone. How would I do that?
|
There are a number of steps involved in submitting your project to be added to Debian's archives. There are two main things you need to do.
Get your software into suitable shape for Debian. Debian is quite demanding
about what software is allowed in its archives. This includes:
a) making sure your license terms are ... | Adding my software to Debian |
1,526,491,902,000 |
I wanted to know how to add packages to the Linux kernel and then package it to a ISO or CD for friends. Thanks in advance and please don't point me to LFS - Linux From Scratch!
|
Most of the distros can be used as a base and then customizations can be applied to this base, and written to an ISO.
Fedora
Fedora offers what's called a a "spin" or "respin". You can check them out here on the spins website:
http://spins.fedoraproject.org/
It's pretty straight-forward to "roll your own" versions o... | How can I create my own distro and include a custom kernel & packages? [closed] |
1,526,491,902,000 |
I am marked as the Debian maintainer of a package. I no longer wish to be the maintainer of this project. I thought I had gone through the process of abandoning the package, but it looks like I haven't. It has been years since I did any Debian packaging, and so I need help to follow the instructions posted in the Debi... |
Table of contents:
Report a bug to Debian wnpp
Update the Maintainer field on the package
Part one: Reporting a bug to Debian wnpp
You can report a bug against the package, saying that the package is orphaned now, and asking for adoption. Hopefully, one of the Debian maintainers will see the bug report and will do t... | Step by step instructions to abandon a Debian package and no longer be its maintainer |
1,526,491,902,000 |
I'm trying to add a 'postinst' script to my debian package to clean up something a previous version may have left behind.
I've simply created a 'postinst' file in the debian/ directory, but the file is not present in the .deb file.
The permissions:
-rwxrwxr-x 1 kp kp 354 Sep 16 20:00 postinst*
The content:
#!/bin/sh
... |
You need to copy the postinst file (and other similar files) to the package staging directory. If you use dh_make, this is performed by dh_installdeb, which is of course included in dh install. If you're doing everything manually. copy the file to debian/tmp/DEBIAN/ where debian/tmp is the staging directory.
| How do I add a postinst file to my debian package? |
1,526,491,902,000 |
I'm running Debian sid and want to use TeX Live from CTAN. So I didn't install the Debian texlive-packages, but created a virtual local package with equivs. You can find the control file below:
Section: misc
Priority: optional
Standards-Version: 3.9.4
Package: texlive-local
Version: 2014-1
Maintainer: Jens Kubieziel ... |
The reason for the message is that, prior to Debian 8, versioned provides weren’t supported. texlive-latex-base has versioned dependencies on a number of packages provided by your texlive-local package, but because those packages are provided, they can’t (couldn’t) satisfy the versioned dependencies.
Since dpkg 1.17.1... | Why is the Provides field in the local Debian package ignored (DepCompareOp)? |
1,526,491,902,000 |
I'm trying to create an rpm package with a dependency on java 11; however, it seems like the openjdk and Oracle java 11 packages don't provide any overlapping java virtual packages.
OpenJDK Java 11 provides:
$ repoquery --provides java-11-openjdk
java-11 = 1:11.0.2.7-0.el7_6
java-11-openjdk = 1:11.0.2.7-0.el7_6
java-1... |
So, as you pointed out, the best would be if both packages could be made to have a common "Provides".
Since this is probably not within your reach, another option is to create a pseudo RPM as a proxy for the Oracle Java 11 RPM.
Name: java-11-oracle (for example)
Provides: java-11 or any other relevant value from the ... | How to depend on java 11 so it can be satisfied by openjdk or by Oracle java 11 packages? |
1,526,491,902,000 |
All other software packages are lower case, so why NetworkManager upper case?
|
From Red Hat Magazine: Introducing NetworkManager :
Words with the creator
NetworkManager creator and developer Dan Williams took time out of his hectically busy schedule to answer some questions.
What's with those StudlyCaps, anyway?
Well, coming from a Classic Mac OS background, in which everything was StudlyCaps, ... | Why is NetworkManager package name upper case? |
1,526,491,902,000 |
Is there some place which has the collection of all the latest Linux utilities (something like filehippo.com for Windows utilities)?
I know I can use various download utilities similar to yum, each of which would have their own repositories.
I am wondering if there is any repository for Linux maintained anywhere that ... |
It would vary by distro. For example:
Ubuntu has Ubuntu Packages
Gentoo has Gentoo Packages
Arch has Arch Package Database and AUR
Fedora has Fedora Package Database
| Is there a Linux utilities repository online accessible from a web browser? |
1,526,491,902,000 |
How are binary packages (rpm, deb, etc) created for binutils, gcc and other packages that link to different libs depending on what exists on the host system?
In the LFS project, to isolate the new system from the host, cross compilation is faked by using a different target-triplet for the new system (here). This preve... |
I may be mistaken but I think the answer (often) is that they are not isolated from the host system.
How are binary packages (rpm, deb, etc) created for binutils, gcc and other packages that link to different libs depending on what exists on the host system?
They don't. rpm, deb etc specify the dependencies, includ... | How are binary packages isolated from host system? |
1,526,491,902,000 |
As a follow up on this question, what if I am not interested in having these debug features - how do I simply prevent these build-id files (debug info packages?) from being installed ? Ultimately I do not care (at least for the near future) about supporting debugging at clients. On the other hand, I need to overcome t... |
--excludepath=/usr/lib/.build-id is a clean workaround, yes. As far as I’m aware, losing “debug capabilities” is the only drawback; files skipped by this option won’t even cause rpm --verify to fail. However, losing “debug capabilities” has consequences beyond limiting the ability to get useful output of gdb; for exa... | If I do not care about debug support in red hat packages, what are the drawbacks of turning build-id support off in the specs file? |
1,526,491,902,000 |
I am packaging my first debian project, and I have things 100% worked out with gnu-make (anything is possible here, for me, and so my difficulties right now are exclusively in navigating the dpkg/debuild system).
I have, right now, just some dummy compilations in place with the following rules file and compatibility:... |
If you want to ship symlinks in your package, I would recommend using dh_link. The easiest way to do that is to list the symlinks you want in debian/links (or debian/package.links if your source package builds multiple binary packages):
opt/package/bin/foo usr/bin/foo
opt/package/bin/bar usr/bin/bar
Debian packages a... | Dpkg Debuild dh_helper: How to symlink binaries installed in /opt/package to /usr/local/bin? |
1,526,491,902,000 |
tl;dr:
We build an RPM package that automatically detect dependencies (no Requires in .spec file). How can I remove dependencies from this RPM package.
Long story:->
I'm shipping the dynamic libraries along with the binary but RPMs automatic dependencies mechanism obviously lists that shipped libraries also as depende... |
I you don't want rpm to process these dependencies automatically; you can use:
AutoReqProv: no
However, I have multiple time packaged myself binaries and the libraries they depend on; rpm has never caused me any trouble in that way; maybe your way of packaging is not optimal?
For further reading on the automatic dep... | Modify RPM package to remove dependencies |
1,526,491,902,000 |
The dh_usrlocal manpage sounds a bit cryptic to me:
It finds subdirectories of usr/local in the package build directory, and
removes them, replacing them with maintainer script snippets (unless -n is
used) to create the directories at install time, and remove them when the
package is removed, in a manner compli... |
The purpose is to aid with policy compliance by that package. According to Debian policy (and, IIRC, the Filesystem Hierarchy Standard or FHS), official Debian packages are not permitted to own files or directories under /usr/local - that directory tree belongs to the local system administrator.
From https://www.debi... | What does dh_usrlocal actually do |
1,526,491,902,000 |
Usecase
The package gnome-core depends on gnome-shell-extensions >=3.14. I'd like to remove gnome-shell-extensions but to satisfy the dependency, I have to replace it with a dummy package. I'm using equivs for this to create a replacement dummy package for gnome-shell-extensions.
My equivs control file is as follows... |
You should now be able to use versioned Provides::
Provides: gnome-shell-extensions (= 3.14.2-1)
This is supported since dpkg 1.17.11, so since Debian 8 (Jessie). Debian Policy hasn’t been updated to take this possibility into account yet, so it still claims two things which are no longer correct:
Provides: can’t ha... | Debian control file "Provides" does not satisfy dependency |
1,526,491,902,000 |
What is the difference between .changes and .dsc file?
Debian Policy says about required field set, but misses the essence and the meaning on the whole. Why have two (actually there are three) when you can have the only one?
Can this .changes file be derived from .dsc (or vice versa)?
What is the transformation proces... |
The Debian source control file .dsc is one of the three files which is part of a Debian package source. The other two are the original upstream source tarball, which typically is of the form *.orig.tar.gz, and a diff file, which may be a file like *.diff.gz (old style), or debian.tar.gz (3.0 (quilt) source format).
I... | Difference between .changes and .dsc files when manually updating a package? |
1,526,491,902,000 |
I was thinking about trying to package Matlab (a proprietary piece of software) for Arch Linux by creating a PKGBUILD to handle installation, dependencies, and conflicts. With the standard Matlab Linux installer it places everything in a local directory and does not require many external packages.
That said, it provi... |
I try to maintain the PHP App Engine package on AUR and I'm installing it in /opt which was where you should put a self-contained Matlab package (in something like /opt/matlab) and sym-link the executable back to /usr/bin and other stuff back to /usr/share/applications and what not.
I would take a look at a few other ... | Repackaging proprietary software |
1,392,715,368,000 |
There is a lot of software which is released as shell installers, for example:
Netbeans
Mathematica
Bazel (it also provide deb and tar.gz, but .sh is popular)
Nvidia Graphics Driver
and so on.
This way to install software is convenient and universal.
Is there a tool (like NSYS and Inno Setup in Windows to generate .... |
I’m not sure about installers being particularly convenient (compared to distributions’ native packages). However there is a tool which does what you’re looking for, MojoSetup, which produces a single shell script containing the archive to be installed and the installer itself.
| Is there .sh installer (software archive is append to .sh flat text file) generating tools for unix? |
1,392,715,368,000 |
I'm currently building a large project that contains sources written in few languages such as C,C++ & Python. I recently managed to (painfuly) handle autotools to make a proper install. Next step is to create .deb because our project is meant to run on debian stretch.
I tried several ways to do this but i can't get it... |
Downloading things from the internet is something a Debian package build is not supposed to be doing. If you use some 'build in clean chroot' helper, it may not even be able to do so. However, plain dpkg-buildpackage should be able to do so. If your autotools build system does the right thing, then nothing should be n... | Problems packing a .deb from autotools. (checkinstall, debhelper, ...) |
1,392,715,368,000 |
I am trying to make a debian package from a Qt application relying on OpenCV.
What I did so far:
I set up an Ubuntu in a Virtualbox
I installed the neccessary software to compile and run the application (Qt related things, ffmpeg, codecs, OpenCV etc.)
I successfully compiled and ran the application
I created a GPG ke... |
If the shared library you depend upon is installed in /usr/local/lib rather than /usr/lib (or similar) then I suspect it's not part of any package managed by the dpkg package manager. dh_shlibdeps wants to build a complete list of all of the things that your new package will have to depend on, but in this case one of ... | How to add shared library dependencies to debian/control? |
1,392,715,368,000 |
Problem:
I'm trying to create a DEB package from my own sources.
Everything is fine except handling the dependencies.
As I understand, the most genuine way to mark the dependencies is to list them in the Depends section of the control file. My application requires two packages (aapt and zipalign) which are present onl... |
Provide (in addition to your main package) separate packages aapt and zipalign. Make sure they have ~ in their version (like this: zipalign-21-4~kefir1.deb). Then put them in your repository togheter with your main package which has Depends: aapt, zipalign (I use easy reprepro for hosting my repository, it's not hard)... | Packaging deb: how to handle potentially missing dependencies |
1,392,715,368,000 |
I have created a .deb package that copies files to the /opt/MyAppName directory. However, it does not appear in the Applications list, and I am unsure how to make that happen.
How do I make my app appear in this list? I would like to have this appear here for all users who use install the .deb when I publish it.
|
You have to create a your_application.desktop file and then copy to /usr/share/applications/. Following is a sample .desktop file, I recently used to create sublime_text.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and... | How do I get my app to appear in the Applications list? |
1,392,715,368,000 |
Edit:
Updated full debian/rules and debian/control file
I am working on a web project which need to build two debian packages for different deployment server. The main differences is the limitation of depends in debian/control file. So I wrote below:
Source: web-app
Section: non-free/web
Priority: optional
Maintainer:... |
First of all, your syntax is wrong, and will result in a command line like...
dh_gencontrol -- -Vdist:Depends=""php7.0, php7.0-opcache, ...""
rather than (what you would want):
dh_gencontrol -- -Vdist:depends="php7.0, php7.0-opcache, ..."
this is because make doesn't do quoting, and you quote the data in the variabl... | Substvars Doesn't Work Correctly |
1,392,715,368,000 |
I am building my first PKGBUILD.
The package I want to build is from a git repo. I've read the wiki guidelines but the CVS page is not very complete... When I makepkg, the procces seem to go straight, but in some point, it gets stuck. I don't know how to proceed.
# Maintainer: Tomas Sironi <sironitomas at gmail dot c... |
Firstly pkgdesc which is short for package description should be filled out. Next, you don't need to have empty array's.
pkgname=mutter-meego-git
pkgver=20101015
pkgrel=1
pkgdesc="what mutter meego does"
arch=('i686' 'x86_64')
url="http://git.gitorious.org/meego-netbook-ux/mutter-meego/" # was not a correct uri
licens... | Building PKGBUILD |
1,392,715,368,000 |
I am developing a Rust application and I want to provide packages for Debian. I have something similar to this configuration under debian/controls
Source: com.github.yourname.yourrepo
Section: x11
Priority: extra
Maintainer: Someone
Build-Depends: cargo,
debhelper (>= 9),
libgtk-3-dev,
... |
No, there is no way to enforce a build- (or other) dependency which isn’t a Debian binary package. All the dependency, conflict etc. fields declare relationships between packages.
You can cheat by using equivs to create fake packages, if you want to use your own cargo instead of the packaged one, but then you won’t be... | Debian Build-Depends on non-package binary |
1,392,715,368,000 |
Suppose I have a debian package housing as follows:
project_pkg/
.git
project_0.0-1/
debian/
install
...
project (git submodule with tagged commit)
With the following install file:
// .../debian/install
#!/usr/bin/env bash
find $(pwd)/project/path/to/binaries -type f -executable -printf... |
dh_install takes paths relative to the current directory, which is generally the top-level directory of the package. In your case that’s project_0.0-1, so your find invocations should output project/path/to/....
Yes, that would work too. I know I recommended dh_install, but the first rule of debhelper remains that it... | Dpkg dh_install: copy files from the build directory rather than the debian/tmp dir? |
1,392,715,368,000 |
I'm trying to build OpenSSH 7.9p1 from source, but I can't find a way to delete (or not include), for instance, ssh-agent, ssh-keygen, scp, sftp, sshd, etc. – of course, assuming none of those are required for the ssh command to work.
Ideally I would only need the client: the ssh command, but again, I'm not sure what ... |
Yes, you can do this with the default build system provided.
If you look at the Makefile that is generated by running the provided ./configure script, you should see that the default (first) target is
TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-... | Build OpenSSH client only |
1,392,715,368,000 |
I have two Python scripts, and I need to package them into a Debian package. I have tried quite a few things with some success. For example, I made a setup.py and then used python-stdeb to create a package (which - if I recall properly - did not work very well), and I also made my own package from scratch with a struc... |
One fast and easy way could be to use alien, it convert .tar to .deb:
tar czf pkg-name.tgz usr/
fakeroot alien -d pkg-name.tgz
Else use the old way, I use a Makefile like that:
all: deb
deb:
mkdir -p tmp/usr/bin tmp/DEBIAN tmp/etc tmp/usr/share/man/man5
find tmp -type d | xargs chmod 755
cp some.conf tmp... | Make debian package to install python |
1,392,715,368,000 |
I'm creating a deb-file and enumerating the files and paths I need to have in the package using the install file. It looks like
dir1/* path1
dir2/* path2
...
But in a result deb-file there are no hidden files from dir1 and dir2. It looks like * doesn't match hidden files.
How could I match them apart from specifying ... |
The globs used by dh_install are perl globs, which are modeled after csh globs. These do not match hidden files by default. In order to get all files, including hidden files, you will need to use two globs. Here is an example:
dir1/.* path1
dir1/* path1
Update: It has been pointed out in comments to this answer that ... | Creating deb file: hidden files specification by `install` file |
1,392,715,368,000 |
I try and build my package for Ubuntu but I can't understand the error. I get this
debuild -S -sa
dpkg-buildpackage -rfakeroot -d -us -uc -S -sa
dpkg-buildpackage: source package opsh
dpkg-buildpackage: source version 0.1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Niklas Ro... |
The error is
dpkg-source: info: local changes detected, the modified files are:
opsh/src/check.t
That means that opsh/src/check.t doesn’t match the contents of opsh_0.1.orig.tar.gz. In Debian packages, any changes to a file outside the debian directory must be reversible. Since you’re using “3.0 (quilt)” packaging, ... | Fail to build for Ubuntu |
1,392,715,368,000 |
I am using Fedora's Copr service to build a package with Non Numeric Release according to specifications at Packaging: Naming Guidelines.
Right now there are two successfully built packages:
paper-icon-theme 1.0-1.20151202git954bb77
paper-icon-theme 1.0-1.20151202gited30409
Of these two the 1st one is more recen... |
In short, yes it is because of your package names.
More specifically, the problem relates to the N-V-R string, which is the name, version, and release. The sort algorithm is rather complicated, but it looks for the package with the highest value of version-release, and that is deemed to be the most recent package. Be... | RPM Package naming |
1,392,715,368,000 |
I have some really old systems (like prehistoric in gentoo timescale) and I would like make binary packages there, but I do not have all the sources for normal compilation, as it was deleted from web many years ago.
Is there way to make binary packages from what I have already installed (even at the risk of changed co... |
The quickpkg command that comes with portage can take a package atom that corresponds to an installed package and generate a binary package for it. For example:
$ sudo quickpkg sys-devel/gcc
* Building package for sys-devel/gcc-5.4.0-r3 ... [ ok ]
* Packages now in '/usr/portage/packages':
... | Gentoo - how make binary packages from allready installed packages |
1,392,715,368,000 |
I have already seen Easily unpack DEB, edit postinst, and repack DEB - however, that one doesn't explain how to properly change the .deb version number if I want to do some changes the original .deb file.
I'm on Ubuntu 14.04, and let's take hostapd for an example:
$ mkdir /tmp/debtest
$ cd /tmp/debtest/
$ apt-get down... |
The version is defined in the binary control file, which is extracted in DEBIAN/control when using dpkg-deb -R. Look for a Version: field:
Version: 1:2.5.2+v2.4-3+b1
This is where you'd edit the version number for your new package. (You can optionally add a changelog entry to the changelog in usr/share/doc/hostapd/ch... | Easily unpack deb, repack deb with new version |
1,392,715,368,000 |
I'm thinking about organization of open source packages across different distributions, and one of the issues that might arise is that different distributions decide to assign a different package name to the same thing, or to have a package with the same name that refers to one thing in one distro and something comple... |
docker
Ubuntu 15.04:
$ lsb_release -rd
Description: Ubuntu 15.04
Release: 15.04
$ apt-cache show docker
Package: docker
...
Description-en: System tray for KDE3/GNOME2 docklet applications
Docker is a docking application (WindowMaker dock app) which acts as a system
tray for any desktop environment, allowing ... | Example of a package that has the same name in two different distros but refers to unrelated upstream projects for each? |
1,392,715,368,000 |
Install fine. Works fine. Next day the logo and apps menu entry is gone. Doesn't seem to matter what I do. On installation, GDebi refused to install the package, and crashed instead, so I used dpkg -i.
As for the logo and apps menu entry, I suppose I'll just have to glue it in place. Sorry Firefox.
I install the late... |
I've heard the same complaints from several people who tried to use recent development builds of Google Chrome. You probably should use a more stable version of it (or use the Chromium browser provided in the Ubuntu repositories, which is the open source version of Google Chrome). Or otherwise you can wait until Goo... | dpkg and google-chrome don't get along with gnome |
1,392,715,368,000 |
I've been learning about Linux package management recently (https://superuser.com/questions/393681/how-to-find-out-which-versions-of-a-package-can-i-install-on-apt, https://askubuntu.com/questions/340530/how-can-i-check-the-available-version-of-a-package-in-the-repositories, Why do different Linux distros have differe... |
Constantine A.B.’s answer alludes to it without going into detail; rmadison is the tool you’re looking for.
Install the devscripts package:
$ sudo apt install --no-install-recommends devscripts wget
(devscripts has a lot of optional dependencies, hence the explicit --no-install-recommends; rmadison needs wget, which ... | Is it possible to query versions of APT packages from not-my-current release without editing sources.list? |
1,392,715,368,000 |
I'm trying to get a binary compiled on Ubuntu to run on CentOS 7 (both 64bit, one host, the other vm).
So far I've copied the binary with all the shared libs. I no longer get the missing library error but a nice ld SIGSEGV
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5d67681 in ?? ()
Missing separat... |
I would suggest not doing this. It's generally easier to build binaries for the different distros within that distro's package building process. On CentOS, that would be making use of rpmbuild.
Since you're dealing with VMs it would be much more trivial to setup a CentOS 7 VM + build tools and then do the package con... | Running ubuntu binary on CentOS with all shared libs installed results in ld SIGSEGV |
1,392,715,368,000 |
I've found an outdated PKGBUILD on AUR. The source URL that it references doesn't exist anymore. It can easily be fixed by incrementing a version number.
What is the proper way of solving this? I've already left a comment, but should I also flag the package as out-of-date? Should I send the fixed PKGBUILD somewhere?
|
You're on the right track... from the ArchWiki:
For starters, you can flag packages out-of-date. If it stays
out-of-date for an extended period of time, the best thing to do is
email the maintainer. If there is no response from the maintainer
after two weeks, you could send mail to the aur-general mailing list
... | What to do about an outdated, but easily fixed, PKGBUILD in AUR? |
1,392,715,368,000 |
Scripts to create debian package exist and work. I have to modify them.
In new specific case there may be some optional files which I want to include to package.
If I add them to package.install, then I fail as only those file don't exist.
If I don't add them to package.install, then they will never be included to pac... |
With most packaging tools in Debian, the contents of the a package package end up being whatever is in debian/package when dpkg-deb is run. You can place files there in whichever way you want, you don’t have to rely on dh_install (which is the tool which processes .install files).
Thus:
override_dh_install:
dh... | Debian package with optional files |
1,392,715,368,000 |
I am trying to build a bleeding-edge package (with new upstream versions packaged within hours) for Vim on Debian 7/8 and Ubuntu 12.04/14.04./16.04, the problem I keep running into is that Ubuntu 12.04 is having issues related to Python 3, so I would like to remove the python3 dependency for Ubuntu 12.04 and remove th... |
There is no way of changing build-dependencies during a build, for the very simple reason than package builds first download the build-dependencies, then run the build. If the build decides to change the build-dependencies, it's too late. The only modifiers you can use for build-dependencies are architecture specifier... | How to add dependencies to a Debian control and dsc file and configure options to a rules file that depends on the distro in question? |
1,392,715,368,000 |
I am currently making a deb package with a collection of plain programs (e.g. shell scripts, python code, etc) and binaries (C code compiled with gcc). In order to meet the guidelines for package creation, I need to have a source package with the source code for the binaries. Because there is only one binary in my pac... |
First of all it's a very wide topic.You can use dpkg-buildpackge to build the source package from the sources.Because you explicitly mentioned that how your debian packaging should be, I am just going to write about it.
You should have a debian directory inside your source folder.
rules file inside the debian directo... | How to create source deb for package with binaries and non-binaries? |
1,392,715,368,000 |
I would like to package my software (in C) into a .deb file, but I encounter some difficulties. It would be nice if someone could give me a hand.
Let the source code be the following toy example:
#include <stdio.h>
#include <stdlib.h>
#include <lbfgs.h>
int main(void)
{
printf("liblbfgs will be used here!\n");
... |
What if I have not installed liblbfgs before? What should I do to be able to build my code correctly?
In order for build tools to notice that kind of dependencies, you need to specify it in the Build-Depends field of the debian/control file.
What would be a meaningful Makefile for my purposes? Could you suggest me ... | Debian packaging with dependency (from the scratch) |
1,392,715,368,000 |
I have been trying to build .deb packages for Debian from Python modules. After going through Debian's LibraryStyleGuide for Python, Pybuild and An Overview of Packaging for Python, I decided I am better off with something that streamlines the process for me. I found stdeb to be a popular choice. I tried building stde... |
The error is
Cant locate Debian/Debhelper/Sequence/python3.pm in @INC
To fix this, you need to install dh-python:
sudo apt install dh-python
| Build debian package using stdeb |
1,392,715,368,000 |
According to a RPM documentation/guide (http://ftp.rpm.org/max-rpm/ch-rpm-subpack.html) one can use subpackages to build multiple RPM packages with a single SPEC file. In the mentioned link the packages foo, foo-server, foo-client and bazlib are built and packaged.
In the example, the SPEC file has a base/parent packa... |
As far as the binary RPMs are concerned, the main package and its subpackages are equal. I can think of a couple of reasons subpackages are called that: they are described as “variants” of the main package, inheriting many fields from it (although they can be overridden), and even taking their name from it by default... | Build RPM subpackages without a base package |
1,392,715,368,000 |
I manage an apt repository, for package PACKAGE, which has dependency (DEPENDENCY<<1.2).
Both PACKAGE and DEPENDENCY are available in my repository.
We just released a version of DEPENDENCY (version 4.0.0), and now installing the same PACKAGE on a completely clean machine fails with the error:
The following packages ... |
APT doesn’t resolve versions of packages based on requirements, but rather based on availability (and priorities). Put another way, it is really designed to work with coherent repositories, i.e. repositories with single versions of packages, where all related packages can be installed with the versions in the reposito... | APT complains of broken/unmet dependencies for my package, but they are available in my repository. How to fix? |
1,392,715,368,000 |
I maintain a native Debian package which installs an application and an initial SQLite database. I expect the application to edit the database.
How do I prevent upgrades from replacing the database?
I thought conffiles would be the solution, but the Debian's maintainer guide says:
If your program uses configuration ... |
If you’re really talking about shipping a database, and not the configuration files to access a database, the answer is somewhat in the problem statement: a database isn’t a configuration file.
The best alternative (in my opinion) is to install the database in maintainer scripts, not directly as an installed file in t... | Debian conffiles alternative |
1,502,866,885,000 |
I'm testing a new locale-all package for my system, which comes with the drawback that the source is the gigantic glibc package. I'm estimating at least 1 hour for it to build, when the package I need is not even architecture dependent. Is there a way to build only that package or at very least only the arch-indep pac... |
Use dpkg-buildpackage -A (thanks, @WouterVerhelst)
-A Specifies a binary-only build, limited to architecture independent packages. Passed to dpkg-genchanges.
Also try dpkg-buildpackage -T binary-indep
-T target - Calls debian/rules target after having setup the build environment and stops the package build pr... | How to build a specific package from a Debian source package? |
1,502,866,885,000 |
I'm using debian to do most of my coding work, and I was doing a homework project that required a certain version of gcc to compile the program I was working on.
I downloaded the gcc source and compiled/installed it, but forgot to change any options, so I think it installed it to the default location, which in my cas... |
You could possibly get a list of the files that were installed when you compiled gcc by using make's -n or --dry-run option - e.g. running make -n install in the gcc source directory, and redirecting output to a file.
With a bit of post-processing (e.g. with sed), that should give you a list of files that you can dele... | Self complied version of GCC overwriting package installed version [duplicate] |
1,502,866,885,000 |
I'm trying to create a Debian package that doesn't delete an empty directory after it's purged. Specifically, I'm creating my own package containing some CA certificates I trust.
I'm following Debian's suggested method of installing the certificates to /usr/local/share/ca-certificates. The problem I'm running in to i... |
Add postrm script:
#!/bin/sh
set -e
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
# Recreate the /usr/local/share/ca-certificates directory, since we are
# ignoring Debian Policy by intentionally installing here. Removal of
# ca-certificates-local removes this ... | Creating a Debian package that does not remove directories after it's purged |
1,502,866,885,000 |
I have been recently trying to package a small Python utility to put on my PPA and I've almost got it to work, but I'm having problems in making the package install the binary (a chmod +x Python script) under /usr/bin. Instead it installs under /. I have this directory structure -> http://db.tt/0KhIYQL.
My package Mak... |
The problem is in the cp $(TARGET) $(DESTDIR) invocation: this will
copy the file textrevise under directory $(DESTDIR), i.e. skips
the /usr/bin prefix. You need to preserve the directory structure,
so for instance:
install:
# ensure the destination directory exists
mkdir -p $(DESTDIR)/usr/bin
# copy the ... | Debian package issue: files are installing into '/' |
1,502,866,885,000 |
For a little something I made (that used to be a word-of-mouth thing only and that's interesting to just a very narrow, and usually non-technical, user base), I'd like to be able to provide a .deb file for easier installation.
The something doesn't have any actual files that it needs to install in the system. Instead ... |
One reasonable way of going about this is as follows:
divert all the files you modify, so that dpkg no longer replaces them, but instead installs them with a different name;
make your Rakefile do its work using the newly-named files instead of the originals, reading the newly-named files and writing the originals;
in... | Way to have a Debian package reinstall when dependency updates? |
1,502,866,885,000 |
If I am applying yum install -y --security and a package is updated; how is the package "marked" as a security update?
For example, lets say I have a package blah that I maintain, its current version is 1.18.3. If I build a new package as 1.18.4 is it automatically a "security" package? If not, how/where is the docume... |
yum does this via yum-security(8) plugin which is part of yum (no need install it separately) for CentOS 7 (official RHEL docs).
When you produce yum update ... --security yum download repository meta info updates in /var/lib/<arch>/<repo>. Each package in meta info file (organised as xml file) contains type field in... | How are RPM packages marked as "security" updates? |
1,502,866,885,000 |
I'm working on a piece of software that needs to compile against a very modern version of glib, but also needs to run on Ubuntu 11.10 (which doesn't come with that version). My first thought was to just backport and replace glib, since the versions are theoretically compatible, but it causes some problems (most notica... |
I would suggest installing the new version of glib under /usr/local/lib or /usr/local/lib64 and then utilizing the LD_LIBRARY_PATH environment variable, like you mentioned above.
In fact that appears to be the default location. From the output of ./configure --help in glib-2.33.8:
By default, `make install' will inst... | Compiling against a newer version of glib? |
1,502,866,885,000 |
I'm new to RPM packaging and I got stuck for quite a long time and cannot find root cause of the problem. I'm not quite sure I fully understand the concept of BuildRoot in the spec file.
My RPM packaging happens in my home dir: /home/virtual/rpmbuild.
I'm trying to package a java application located in /home/virtual/r... |
Background - rpmbuild setup
How did you create your rpmbuild directory? Did you use a tool such as rpmdev-setuptree? I always recommend newcomers start out by using this package, rpmdevtools.
Example
To start I have no bulid area, as user saml.
$ ls -la | grep -E "rpmbuild|\.rpm"
$
Then install the package rpmdevtool... | Error while trying to create RPM for java app |
1,502,866,885,000 |
I would like to know what's the difference between
package-name-1.0-0~201~ubuntu14.04.1
package-name-1.0+r201~daily~ubuntu14.04.1
I am guessing that one of them is a pre-release version but I am not sure.
Any help is appreciated.
|
The ~ character sorts to "less than nothing". I.e. package-name-1.0-0~201~ubuntu14.04.1 will be upgraded to package-name-1.0-0~201; so the '~ubuntu14.04.1` part indicates a prerelease.
When comparing the two versions you show, both are actually prerelease versions.
To find out what version dpkg actually considers to b... | decoding a debian package name (Version,Release) |
1,502,866,885,000 |
I am new in Funtoo/Gentoo. Where do I start learning how to create my own "packages"?
For example, I have done the following to get the source code of Bespin, a Style for Qt4, derived from the Style for the Oxygen project and compile it:
svn checkout svn://svn.code.sf.net/p/cloudcity/code/ cloudcity-code
cd cloudcity... |
Ebuilds are the right way to package an application in Gentoo. There are also eclasses which are collection of code used in ebuilds that automate procedures and makes your life easier.
If you want to learn more about packaging and development in Gentoo, there is a full development manual where you can find everything ... | How to package software in Funtoo/Gentoo? |
1,502,866,885,000 |
I'm trying to find what is the syntax of conffiles.
I'm creating several packages using a single rules file and if I put the configuration files into conffiles I get an error when building the packages (since the files are only present in two of the 9 packages).
|
Using debhelper, you can name the conffile file after the package name, just like with the install files. An example file name would be "mypackage.conffiles". With debhelper, any file that does not follow the "maypackage.myfile" format applies to all binary packages from the source.
The conffiles file is described in ... | conffiles syntax |
1,502,866,885,000 |
I have a Flatpak manifest I'm submitting to Flathub, but I'd also like to build a .flatpak package file that I can redistribute myself. How can I go about doing this? I don't find anything in flatpak-builder's command reference, and searching hasn't been fruitful either. To be clear, I don't expect the Flatpak to cont... |
This is referred to as "single-file bundles" in Flatpak's documentation, and the way you go about creating them is somewhat involved.
First, you need to build the Flatpak with flatpak-builder:
$ flatpak-builder build/ <path/to/manifest>
You may have to add --force-clean if build/ already exists.
After that, you need ... | How do I build a .flatpak package file from a Flatpak manifest? |
1,502,866,885,000 |
I am able to build Debian package make using following procedure:
apt-get source make
cd make-*
dpkg-buildpackage --build=binary --no-sign
But as soon as I make any change to the code, even changing one character in a string, then the build fails during the tests:
1 Test in 1 Category Failed (See .diff* files in work... |
Ideally, you’d update the test suite to take your changes into account.
It is however possible to avoid the test suite altogether, using a standardized build option:
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc
| building Debian package fails after even a minor change to code |
1,502,866,885,000 |
I'm learning how to create RPMs for my own packages. Normally I can do everything while logged into my own account but instructions on making RPMs always seem to want you to use some other account.
One tutorial I followed utilized rpm-build and rpmdevtools. The rpmdev-setuptree, for example, creates a directory rpmbui... |
The general principle when packaging is that you should not make any assumptions about the system that aren't declared in the packaging configuration. This includes a lot of things: the packages needed for building, the packages needed for execution, the accounts (user or group) needed, the permissions needed, etc. Ot... | Why is the procedure for building RPMs so isolated? |
1,502,866,885,000 |
I want to notify user about important details when package is installed. I've looked at https://www.debian.org/doc/debian-policy/ch-controlfields.html#list-of-fields but don't see anything fit for that purpose. Is there any way to do this?
|
It seems to me that this is covered earlier in that document, in Prompting in maintainer scripts, with:
Package maintainer scripts may prompt the user if necessary. Prompting must be done by communicating through a program, such as debconf, which conforms to the Debian Configuration Management Specification, version ... | How to print message to the user on package installation? |
1,502,866,885,000 |
After a security warning about FreeRadius, I am trying to build the FreeRadius 3.0.15 installation .deb files for Debian 9/Stretch for placing in my local repository.
I actually also need that version for a RadSec project and a couple of other bug fixes.
I build them using the following instructions:
git clone https... |
libjson-c2 does not exist in Debian 9; doing an:
$apt-cache search libjson-c
libjson-c3 - JSON manipulation library - shared library
It is fairly evident it is now called libjson-c3; so I replaced in the debian control file of the project at freeradius-server/debian/control at line 10, libjson-c2 for libjson-c3
10 ... | Building debs for FreeRadius 3.0.15 |
1,502,866,885,000 |
I recently learned that Debian based distros essentially have a fixed collection of communal dependencies and libraries which any application installed through a package manager is required to use.
Contrast this against say, Windows, where I believe each application typically provides its own dependencies - and ther... |
So my question is, if the upstream developers created their software
with the intention to distribute a large monolithic install complete
with bundled dependencies, do the APT package maintainers need to
rewrite the source so that the software uses the communal collection
of dependencies rather than the local... | Does packaging an application for APT involve pointing the application to use the APT communal dependencies? |
1,502,866,885,000 |
I got 2 repos locally. One is a copy of Squeeze and another is a custom one, and is managed by reprepro. Are there ready-made tools that would generate a list of duplicate packages between the two?
|
Silly me, I've been seating on a script that makes this far faster and easier:
#!/usr/bin/python3
import os
import gzip
import apt_pkg
repo1 = "~/.repo_local/dists/cache/main/binary-i386/Packages.gz"
repo1 = os.path.expanduser(repo1)
repo1 = apt_pkg.TagFile(gzip.open(repo1, "rb"))
repo1 = dict([(pkg["Package"], pkg[... | How to display duplicates between 2 repositories |
1,502,866,885,000 |
I'm finishing off a small command-line BASIC interpreter for Unix. It currently consists of a dozen sources and headers, a makefile, test files and an Xcode project for working on the Mac. This is my first pure-CLI project.
Releasing an app on iOS is well documented, there are checklists of items you need to submit - ... |
Debian has a “How to be a good upstream guide”, which contains lots of useful tips even if you’re not actually working on a package for Debian or any other distribution. The main considerations are:
ship pristine source code, ideally with no build artifacts
don’t include third-party dependencies
choose a license, and... | From program to complete project, what does a "real" Unix app require? |
1,502,866,885,000 |
What is the max width in characters of a debian changelog file?
I thought it is 80 columns, but I can't find where I had read that.
I didn't find the answer in these references (unless I missed it)...
Debian Manuals
Debian Policy
Please include a reference if you have one?
|
This is checked by lintian:
The given line of the latest changelog entry is over 80 columns. Such changelog entries may look poor in terminal windows and mail messages and be annoying to read. Please wrap changelog entries at 80 columns or less where possible.
I don’t know whether it’s documented anywhere else.
| Debian changelog file width? |
1,502,866,885,000 |
Fedora packages libtool as 64-bits:
# rpm -qi libtool |grep ^Arch
Architecture: x86_64
However, a superficial look at the package contents doesn’t show any obvious
arch specific binaries:
# rpm -ql libtool |xargs file
/usr/bin/libtool: a /usr/bin/sh script, ASCII text executable, with very lo... |
The libtool script itself embeds its default host and build architectures, so it is different on each architecture it’s built for.
At least two other variables in libtool are architecture-dependent:
the library search path;
the linker command (it specifies the target format).
The rest of libtool is architecture-inde... | What is architecture specific about libtool? |
1,502,866,885,000 |
I want to bundle Java application into a .deb package. Inside it is a jar launched with a java -jar $path/app.jar script. I need to specify in the package dependencies that it will require JRE >= 11. I've tried 2 options:
Depends: java11-runtime - here the package will be uninstallable because it depends on a virtual... |
I suggest using a versioned dependency on default-jre:
Depends: default-jre (>= 2:1.11) | java11-runtime
If your package doesn’t need the Java GUI packages, it should depend on the -headless variants instead.
| Set minimal JRE version to deb package dependency |
1,502,866,885,000 |
I want to create a .deb package of PHP 7.1 for Debian with the PHP modules I want.
Here the steps I have followed.
Downloading PHP sources
wget http://fr2.php.net/get/php-7.1.7.tar.bz2/from/this/mirror
tar xvf mirror
mv mirror php_7.1.7.orig.tar.bz2
cd php-7.1.7/
Here I can compile PHP 7.1, no problem. If I want to... |
I would have used the existing Debian PHP 7.1 package instead...
Anyway, to answer your question, your packaging process as described is valid. To answer properly we’d need to see your debian/control and debian/rules files in detail, but the error you’re seeing is easy to fix: the PHP source doesn’t use DESTDIR, it ne... | Creating a .deb package for PHP 7.1 |
1,502,866,885,000 |
I have a package I like to build locally. Some of the files in the package are to be installed on a system where a given user is created first. Those files should be owned by that user.
For example, say I have a user "foo" on my server and I create a package with a file such as /usr/share/foo/protected.file which has ... |
Technically, you can construct your package in any way you want. As far as .deb files are concerned, all that’s expected in the final stage of package construction is that debian/rules binary leaves a valid .deb file with the right name in the parent directory. So you could override dh_builddeb to create the tarball w... | Is it possible to setup a user while building a Debian package even when that user does not exist on the build system? |
1,687,753,520,000 |
While running pacman -Syu
After "(8/8) checking package integrity"
I'm facing the following issue with these packages:
error: 7-zip: signature from "TNE <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/7-zip-23.01-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do y... |
I've got some help on Linux.Chat Discord server, and Theros (the user that help me) found a way to solve this issue:
"looks like your after 0xd6c9442437365605
thats from ubuntus keyserver
https://keyserver.ubuntu.com/pks/lookup?search=tne%40garudalinux.org&fingerprint=on&op=index
though considering that garuda uses ch... | Signature from "TNE <[email protected]>" is unknown trust - Invalid or Corrupted package |
1,687,753,520,000 |
I have a debian package which contains configuration for systemd-networkd e.g. I configure my interface IP.
That only makes sense if systemd-networkd is running.
Because of that I want to ensure that the service is enabled and running.
But putting this in postinst feels wrong:
systemctl enable systemd-networkd
systemc... |
There is normally nothing wrong with using systemctl enable in postinst on services deployed by your package. Many Debian packages use deb-systemd-helper instead which takes care of a few details (like respecting vendor preset and explicitly disabled or masked service).
systemd-networkd.service is deployed by systemd... | How to start a 3rdparty systemd service from a debian package |
1,687,753,520,000 |
I want to download all (recursive) build dependencies to be able to build apt (debian) package from source. However, when I apt-get install path/*.debs with debs that I got by apt build-dep --download-only --assume-yes <package> apt finds additional packages to be installed and fails, even with --no-install-recommends... |
Build dependencies are set by the package maintainer with a Build-Depends: (and sometimes Build-Depends-Indep:) settings in the debian/control file of the source package.
Depends, Recommends, and Suggestions are needed when a package is installed (or about to be installed), so that data is in the Packages file. Buil... | How does apt keep track of BUILD (source) dependencies? |
1,687,753,520,000 |
I'm packaging the software, which depends on a particular version of a library shipped in the official Debian distribution. The software also has a bundled sources of the library.
Is there any way to describe this in the debian/control file that for Debian versions older than 10, I don't need to specify anything, but ... |
There’s no provision for this: the expectation is that source packages (including debian/control) are uploaded to a specific distribution and release, with build instructions, including build dependencies, which work in that distribution.
In some circumstances it is possible to modify debian/control on the fly, from d... | Conditional dependencies in `debian/control` file |
1,687,753,520,000 |
Currently Alpine packages Perl, however that version of Perl is built with the wrong options for my needs. So I want to package a new version Perl built with different configuration/build options.
Is there a mechanism to say that my Perl should conflict with the upstream Perl? I'm reading the Wiki, "Creating an Alpine... |
The way to specify that a package is conflicting in an APKBUILD is by adding the package name prefixed with a '!' to depends (see the APKBUILD reference).
depends=".. !perl"
What you also might want to do is add a provides option:
provides="perl=$pkgver-r$pkgrel"
This makes sure that any packages that depend on perl... | How can I make an Alpine package conflict with another Alpine package? |
1,687,753,520,000 |
rpmlint output:
E: use-tmp-in-%postun
Spec file:
%postun
rm -r /var/aci /tmp/aci_tmp 2> /dev/null
Also, I cant remove package
How I can remove directory in /tmp after or before uninstalling this package?
|
always try to avoid %post and %postun scripts if possible. You could make those aci files or folders belong to your package.
let's suppose for the sake of the example that /var/aci is a folder and /tmp/aci_tmp is a file. Then you could just:
%install
mkdir -p $PPM_BUILD_ROOT/var/aci
%files
/var/aci
%ghost /var/aci/* ... | Rpmlint "use-tmp-in-%postun" error |
1,687,753,520,000 |
I have a single upstream source package using cmake and I'd like to package it as two binary debian packages.
$ tree proj
proj/
├── app1.c
├── app2.c
└── CMakeLists.txt
Upstream's CMakeLists.txt was already written with this in mind. They use the COMPONENTS argument of install
$ cat proj/CMakeLists.txt
include(GnuIn... |
A standard debhelper debain/rules file might look like this (buildsystem automatically detects cmake in newer compat levels).
%:
dh $@ # --buildsystem=cmake <-- older compat levels may need this
This will effectively run make install DESTDIR=debian/tmp. But that puts everything into one destination, requ... | Packaging CMake components for Debian |
1,687,753,520,000 |
I know that in Debian you have a watch file which diffs the pristine version of a package with a release upstream (using regexp) and telling if there is a new package release. How are changelogs done. Are they imported manually or is there some dh (debhelper) magic which automates most of the work, something like diff... |
Upstream changelogs aren’t imported specifically, they are handled as a file in the upstream source code. There is a debhelper helper, dh_installchangelogs, which handles Debian-specific changelogs and upstream changelogs. Package maintainers don’t have to use this of course, theyways handle changelogs in other ways.
... | How are upstream changelogs pulled and shared in Debian? |
1,687,753,520,000 |
I like the way Debian gives various changelogs. For instance for most packages it has
changelog.gz, the upstream changelog giving details of the differences between any two versions or at times even point versions. Nowadays usually distilled from $ git shortlog or whatever equivalent command in whatever VCS is being ... |
Debian wasn’t the first distribution to separate the changelogs, but it might have been the first to maintain per-package changelogs.
Changelogs for software have existed for a long time (they’re a fairly obvious variant of lab notebooks or engineering logs). Early Linux distributions kept their own changelogs in a si... | Was Debian the first distribution to distinguish upstream and packaging changelogs? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.