[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Build a sort-of-systemd-dependent package on kfreebsd





On 08/11/16 15:40, Christian Seiler wrote:
However, my need is to actually *remove* some files from e. g.,
debian/install since they are not built on kfreebsd. How could I do
this?

cat > debian/$FOO.install <<EOF
#!/usr/bin/dh-exec
some/file /usr/bin
some/other/file /usr/lib/somewhere
[linux-any] some/systemd/foo.service /lib/systemd/system
EOF
chmod +x debian/$FOO.install

The file some/systemd/foo.service will only be installed on Linux
platforms.

OK, got it. Thanks!

That said, if you're using dh-systemd, that shouldn't be necessary.

I'm using dh_systemd_enable...

dh-systemd is a noop on kfreebsd-* and hurd-i386. Also, I just
checked and noticed that I am installing the systemd service in my
packages also on FreeBSD/Hurd so far, and it doesn't FTBFS. I
should probably drop it there (because it's useless), but other
than a tiny amount of disk space it doesn't hurt either. (Obviously
an init script is also present, but not exclusively for non-Linux
ports.)

If it was just the systemd files... I used them as an example. There are also some utilities which depends on systemd.

If your package FTBFS, there is probably something else going on
on non-Linux platforms. What is the exact error you're experiencing?

There is no FTBS since the package has a systemd dependency which makes the package unbuildable on freebsd. First step is t get rid of that on non-linux platfroms, but this is not that hard.


Cheers!

--alec


Reply to: