Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Oct 2020 09:43:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 250008] net-mgmt/ocsinventory-server: update to 2.8
Message-ID:  <bug-250008-7788-aHClQOz67N@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-250008-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-250008-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250008

--- Comment #3 from Fernando Apestegu=C3=ADa <fernape@FreeBSD.org> ---
patch -p3 -E < ../../250008.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: net-mgmt/ocsinventory-server/Makefile
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- net-mgmt/ocsinventory-server/Makefile      (revision 550687)
|+++ net-mgmt/ocsinventory-server/Makefile      (working copy)
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 1 with fuzz 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: net-mgmt/ocsinventory-server/distinfo
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- net-mgmt/ocsinventory-server/distinfo      (revision 550687)
|+++ net-mgmt/ocsinventory-server/distinfo      (working copy)
--------------------------
Patching file distinfo using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: net-mgmt/ocsinventory-server/pkg-plist
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- net-mgmt/ocsinventory-server/pkg-plist     (revision 550687)
|+++ net-mgmt/ocsinventory-server/pkg-plist     (working copy)
--------------------------
Patching file pkg-plist using Plan A...
Hunk #1 succeeded at 21.
Hunk #2 succeeded at 46.
Hunk #3 succeeded at 63.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: net-mgmt/ocsinventory-ocsreports/Makefile
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- net-mgmt/ocsinventory-ocsreports/Makefile  (revision 550687)
|+++ net-mgmt/ocsinventory-ocsreports/Makefile  (working copy)
--------------------------
Patching file Makefile using Plan A...
Hunk #1 failed at 1.
Hunk #2 failed at 32.
2 out of 2 hunks failed--saving rejects to Makefile.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: net-mgmt/ocsinventory-ocsreports/distinfo
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- net-mgmt/ocsinventory-ocsreports/distinfo  (revision 550687)
|+++ net-mgmt/ocsinventory-ocsreports/distinfo  (working copy)
--------------------------
Patching file distinfo using Plan A...
Hunk #1 failed at 1.
1 out of 1 hunks failed--saving rejects to distinfo.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: net-mgmt/ocsinventory-ocsreports/files/dbconfig.inc.php.sample
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- net-mgmt/ocsinventory-ocsreports/files/dbconfig.inc.php.sample=20=20=
=20=20
(nonexistent)
|+++ net-mgmt/ocsinventory-ocsreports/files/dbconfig.inc.php.sample=20=20=
=20=20
(working copy)
--------------------------
(Creating file dbconfig.inc.php.sample...)
Patching file dbconfig.inc.php.sample using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|Property changes on:
net-mgmt/ocsinventory-ocsreports/files/dbconfig.inc.php.sample
|___________________________________________________________________
|Added: svn:eol-style
|## -0,0 +1 ##
|+native
|\ No newline at end of property
|Added: svn:mime-type
|## -0,0 +1 ##
|+text/plain
|\ No newline at end of property
|Index: net-mgmt/ocsinventory-ocsreports/pkg-plist
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- net-mgmt/ocsinventory-ocsreports/pkg-plist (revision 550687)
|+++ net-mgmt/ocsinventory-ocsreports/pkg-plist (working copy)
--------------------------
Patching file pkg-plist using Plan A...
Hunk #1 failed at 15.
Hunk #2 failed at 30.
Hunk #3 failed at 46.
Hunk #4 failed at 72.
No such line 276 in input file, ignoring
Hunk #5 failed at 288.
Hunk #6 failed at 357.
Hunk #7 failed at 399.
Hunk #8 failed at 416.
Hunk #9 failed at 462.
Hunk #10 failed at 507.
Hunk #11 failed at 529.
Hunk #12 failed at 632.
Hunk #13 failed at 655.
13 out of 13 hunks failed--saving rejects to pkg-plist.rej
done

See this. I just updated my tree. In the Makefile, only this two lines use
INSTALL_DATA:

fernape@beastie:~/FreeBSD-repos/ports/head/net-mgmt/ocsinventory-server$ gr=
ep
INSTALL_DATA Makefile
        ${INSTALL_DATA} ${WRKSRC}/etc/ocsinventory/ocsinventory-${F}.conf
${STAGEDIR}${ETCDIR}/ocsinventory-${F}.conf.sample
        ${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/INSTALL
${STAGEDIR}${DOCSDIR}/

fernape@beastie:~/FreeBSD-repos/ports/head/net-mgmt/ocsinventory-server$ gr=
ep
INSTALL_DATA /tmp/250008/250008.patch
-       ${INSTALL_DATA} ${WRKSRC}/dbconfig.inc.php
${STAGEDIR}${WWWDIR}/dbconfig.inc.php.sample
+       ${INSTALL_DATA} ${FILESDIR}/dbconfig.inc.php.sample
${STAGEDIR}${WWWDIR}/dbconfig.inc.php.sample
        ${INSTALL_DATA} ${WRKSRC}/backend/require/cas.config.php
${STAGEDIR}${WWWDIR}/backend/require/cas.config.php.sample
        ${INSTALL_DATA} ${WRKDIR}/apache.conf
${STAGEDIR}${ETCDIR}/ocsreports.inc.sample

yet the patch is trying to delete a line like this one:

-       ${INSTALL_DATA} ${WRKSRC}/dbconfig.inc.php
${STAGEDIR}${WWWDIR}/dbconfig.inc.php.sample

that I don't see anywhere...

I can only see references to that here:

fernape@beastie:~/FreeBSD-repos/ports/head/net-mgmt$ grep -R dbconfig.inc.p=
hp *
ocsinventory-ocsreports/files/pkg-message.in:* edit %%WWWDIR%%/dbconfig.inc=
.php
ocsinventory-ocsreports/Makefile:       (cd ${WRKSRC} && ${COPYTREE_SHARE} .
${STAGEDIR}${WWWDIR} "! -name dbconfig.inc.php ! -name cas.config.php")
ocsinventory-ocsreports/Makefile:       ${INSTALL_DATA}
${WRKSRC}/dbconfig.inc.php ${STAGEDIR}${WWWDIR}/dbconfig.inc.php.sample
ocsinventory-ocsreports/pkg-plist:@sample %%WWWDIR%%/dbconfig.inc.php.sample

not in ocsinventory-server.

What am I missing?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250008-7788-aHClQOz67N>