Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 536618

Summary: dev-util/jenkins-bin - /etc/init.d/jenkins: make HOME directory configurable
Product: Gentoo Linux Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: UNCONFIRMED ---    
Severity: normal CC: patrick
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: jenkins ebuild patch

Description Joakim Tjernlund 2015-01-14 17:29:31 UTC
Had a look at net-misc/openntpd-5.7_p1 today and noted this:
pkg_setup() {
	export NTP_HOME="${NTP_HOME:=/var/lib/openntpd/chroot}"
	enewgroup ntp
	enewuser ntp -1 -1 "${NTP_HOME}" ntp

	# make sure user has correct HOME as flipping between
	# the standard ntp pkg and this one was possible in
	# the past
	if [[ $(egethome ntp) != ${NTP_HOME} ]]; then
		ewarn "From this version on, the homedir of the ntp user cannot be changed"
		ewarn "dynamically after the installation. For homedir different from"
		ewarn "/var/lib/openntpd/chroot set NTP_HOME in your make.conf and re-emerge."
		esethome ntp "${NTP_HOME}"
	fi
}

This could easily be transferred to jenkins too, example ebuild patch attached.

/etc/conf.d/jenkins.conf need some adjustment too, not sure
what is best. Possibly
JENKINS_HOME=$(eval ~jenkins/home)
Comment 1 Joakim Tjernlund 2015-01-14 17:30:39 UTC
Created attachment 393984 [details, diff]
jenkins ebuild patch
Comment 2 Joakim Tjernlund 2015-01-14 17:34:59 UTC
> /etc/conf.d/jenkins.conf need some adjustment too, not sure
> what is best. Possibly
> JENKINS_HOME=$(eval ~jenkins/home)

That should have been 
JENKINS_HOME="$(echo ~jenkins/home)"
Comment 3 Joakim Tjernlund 2015-01-28 15:17:14 UTC
Ping?

Works for me.

BTW, where does the dependency on dejavu fonts come from?
Comment 4 Joakim Tjernlund 2015-03-26 22:00:18 UTC
Pretty please?
Comment 5 Joakim Tjernlund 2015-05-20 18:00:01 UTC
4 months and not even a comment?
Comment 6 Joakim Tjernlund 2016-08-17 11:12:06 UTC
This is still something I need. Thank you for picking up maintenance
Comment 7 Patrice Clement gentoo-dev 2016-08-21 16:50:48 UTC
@jovica ping. What's blocking this bug? Can we move it forward?
Comment 8 Jovica Ilic 2016-08-22 19:40:21 UTC
Sorry for delay, I should resolve it soon.
Comment 9 Joakim Tjernlund 2016-10-20 17:27:43 UTC
(In reply to Jovica Ilic from comment #8)
> Sorry for delay, I should resolve it soon.

Soon has come and gone long time ago
Comment 10 Joakim Tjernlund 2016-10-27 19:24:41 UTC
Yet a new jenkins-bin added but no action w.r.t bug.

Patrik, could you please look at this, seems like Jovica Ilic is not around
anymore.
Comment 11 Joakim Tjernlund 2016-11-24 17:25:53 UTC
(In reply to Jovica Ilic from comment #8)
> Sorry for delay, I should resolve it soon.

Come on, I am getting really tired to maintain my own copy due to this bug.
Comment 12 Patrice Clement gentoo-dev 2016-11-25 23:26:49 UTC
Patrick can we move this bug report forward?
Comment 13 bdouxx 2016-12-28 12:47:54 UTC
Hi,

what about systemd?


a simple symlink between /var/lib/jenkins and your new jenkins's HOME is not satisfactory ?
Comment 14 Joakim Tjernlund 2016-12-28 12:54:00 UTC
(In reply to bdouxx from comment #13)
> Hi,
> 
> what about systemd?

What about it? What is the problem there?

> 
> 
> a simple symlink between /var/lib/jenkins and your new jenkins's HOME is not
> satisfactory ?

No
Comment 15 bdouxx 2016-12-28 21:36:56 UTC
if you change jenkins's home in ebuild file,you need to modify all files using JENKINS_HOME in :
dev-util/jenkins-bin/files/

for openrc
  jenkins-bin.confd
  jenkins-bin.init2

for systemd
  jenkins-bin.service

Not a systemd expert, and trying to resolve your bug...
If you change process for openrc , you need to change for systemd.


What is the problem with symlink?
Comment 16 Joakim Tjernlund 2016-12-29 02:40:20 UTC
(In reply to bdouxx from comment #15)
> if you change jenkins's home in ebuild file,you need to modify all files
> using JENKINS_HOME in :
> dev-util/jenkins-bin/files/
> 
> for openrc
>   jenkins-bin.confd
>   jenkins-bin.init2
> 
> for systemd
>   jenkins-bin.service
> 
> Not a systemd expert, and trying to resolve your bug...
> If you change process for openrc , you need to change for systemd.

Dunno how systemd works but I guess one could just sed -i any and all config
files and be done with it.

> 
> 
> What is the problem with symlink?

Can be on different partition, can be deleted, is harder to mange when many
jenkins computers  plus whatever I have forgotten as it was ages ago this bug was filed.

Is there any point to continue with this bug? jenkins is basically unmaintained.
Comment 17 Joakim Tjernlund 2017-09-29 18:41:16 UTC
This doesn't seem to fly so could we do something simpler like:
JENKINS_DIR ?= /var/lib/jenkins
Comment 18 Virgil Dupras (RETIRED) gentoo-dev 2018-09-29 00:31:05 UTC
Adjusting assignment to removal of proxy-maintainer.