:: [Dng] Re-compiling nginx without an…
Top Page
Delete this message
Reply to this message
Author: Anto
Date:  
To: dng
Subject: [Dng] Re-compiling nginx without anything related to systemd
Hello Everybody,

I managed to re-compile nginx 1.6.2-5 from Debian jessie repository, and
it seems to be installed and running fine. What I did is basically just
removing everything that I thought to be related to systemd. But I am
not really sure if I did that properly. I would really appreciate your
feedbacks on this. Please have a look on the diff output below.

Kind regards,

Anto
----

diff -ru nginx-1.6.2_original/debian/control nginx-1.6.2/debian/control
--- nginx-1.6.2_original/debian/control    2014-12-01 12:12:00.000000000 
+0100
+++ nginx-1.6.2/debian/control    2015-03-01 13:28:41.000000000 +0100
@@ -10,7 +10,6 @@
             Christos Trochalakis <yatiohi@???>
  Build-Depends: autotools-dev,
                 debhelper (>= 9),
-               dh-systemd (>= 1.5),
                 dpkg-dev (>= 1.15.5),
                 libexpat-dev,
                 libgd2-dev | libgd2-noxpm-dev,
diff -ru 
nginx-1.6.2_original/debian/modules/nginx-http-push/tests/examine_coredump.sh 
nginx-1.6.2/debian/modules/nginx-http-push/tests/examine_coredump.sh
--- 
nginx-1.6.2_original/debian/modules/nginx-http-push/tests/examine_coredump.sh 
2014-12-01 12:12:00.000000000 +0100
+++ nginx-1.6.2/debian/modules/nginx-http-push/tests/examine_coredump.sh 
2015-03-01 13:22:27.000000000 +0100
@@ -12,6 +12,5 @@


echo "saving coredump for $target at $dump"

-sudo systemd-coredumpctl dump $target > $dump
kdbg ./nginx "$dump" 2>/dev/null
# rm "$dump" #keep it around for now
diff -ru
nginx-1.6.2_original/debian/modules/nginx-http-push/tests/nginx-pushmodule/PKGBUILD
nginx-1.6.2/debian/modules/nginx-http-push/tests/nginx-pushmodule/PKGBUILD
---
nginx-1.6.2_original/debian/modules/nginx-http-push/tests/nginx-pushmodule/PKGBUILD
2014-12-01 12:12:00.000000000 +0100
+++
nginx-1.6.2/debian/modules/nginx-http-push/tests/nginx-pushmodule/PKGBUILD
2015-03-01 13:23:17.000000000 +0100
@@ -147,7 +147,6 @@

    #install -D -m644 "${srcdir}/nginx.logrotate" 
"${pkgdir}/etc/logrotate.d/${_pkgname}" #no default logrotate.
    install -D -m644 "${srcdir}/nginx.conf" "${pkgdir}/etc/conf.d/nginx"
-  install -D -m644 "${srcdir}/nginx.service" 
"${pkgdir}/lib/systemd/system/nginx.service"
    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/nginx/LICENSE"
    if [[ -z $NGINX_VERYOLDVERSION ]]; then
      install -D -m644 "man/nginx.8" "${pkgdir}/usr/share/man/man8/nginx.8"
diff: 
nginx-1.6.2_original/debian/modules/nginx-http-push/tests/nginx-pushmodule/pushmodule: 
recursive directory loop
Only in nginx-1.6.2_original/debian: nginx-common.nginx.service
diff -ru nginx-1.6.2_original/debian/rules nginx-1.6.2/debian/rules
--- nginx-1.6.2_original/debian/rules    2014-12-01 12:12:00.000000000 +0100
+++ nginx-1.6.2/debian/rules    2015-03-01 13:25:36.000000000 +0100
@@ -113,7 +113,7 @@
--add-module=$(MODULESDIR)/ngx_http_substitutions_filter_module


  %:
-    dh $@ --with systemd
+    dh $@


  override_dh_auto_configure: $(foreach 
flavour,$(FLAVOURS),config.arch.$(flavour))
  override_dh_auto_build:     $(foreach 
flavour,$(FLAVOURS),build.arch.$(flavour))
@@ -124,9 +124,6 @@
  override_dh_installinit:
      dh_installinit --no-restart-on-upgrade --no-start --name=nginx


-override_dh_systemd_enable:
-    dh_systemd_enable --name=nginx
-
  override_dh_installlogrotate:
      dh_installlogrotate --package nginx-common --name=nginx