[LU-11575] make debs fail on debian without systemd enabled Created: 26/Oct/18  Updated: 12/Dec/19  Resolved: 04/Jan/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Upstream
Fix Version/s: Lustre 2.13.0, Lustre 2.12.4

Type: Bug Priority: Minor
Reporter: Gu Zheng (Inactive) Assignee: Gu Zheng (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-10997 Ubuntu 18 support Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

As not all debian series support systemd, for example Ubuntu 14.04.x, make debs failed with following error, because it always tries to install systemd stuff.

dh_install -p lustre-client-utils
dh_install: lustre-client-utils missing files (debian/tmp/lib/systemd/system/*), aborting
make[1]: *** [binary-lustre-client-utils] Error 2
make[1]: Leaving directory `/root/lustre'
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
make: *** [debs] Error 2



 Comments   
Comment by Gerrit Updater [ 26/Oct/18 ]

Gu Zheng (gzheng@ddn.com) uploaded a new patch: https://review.whamcloud.com/33492
Subject: LU-11575 build: install systemd stuff only for debian with systemd enabled
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2a9874e40d112ef31707321987ceac61bfbf21bf

Comment by Gerrit Updater [ 04/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33492/
Subject: LU-11575 build: install systemd stuff only for debian with systemd enabled
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 02b097440db37fe5e8054f983f8382dfa85f8e25

Comment by Peter Jones [ 04/Jan/19 ]

Landed for 2.13. What versions does this apply to? Certainly something as old as Ubuntu 14.04 is unlikely to be relevant by the time that 2.13 and newer releases come out...

Comment by Gerrit Updater [ 08/Oct/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36405
Subject: LU-11575 build: install systemd stuff only for debian with systemd enabled
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: fc5db4054ce60253a55b35075ef105217a395fb0

Comment by Gerrit Updater [ 12/Dec/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36405/
Subject: LU-11575 build: install systemd stuff only for debian with systemd enabled
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 4da97f7d7f26b49207b7c5c24e6306861188a4b7

Generated at Sat Feb 10 02:45:04 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.