Bug 32782 - unable to build univention-management-console-frontend-doc
unable to build univention-management-console-frontend-doc
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.2
Other Linux
: P5 minor (vote)
: UCS 3.2
Assigned To: Florian Best
Lukas Walter
: interim-3
Depends on:
Blocks: 32959
  Show dependency treegraph
 
Reported: 2013-10-01 16:29 CEST by Felix Botner
Modified: 2013-11-19 06:42 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2013-10-01 16:29:33 CEST
(1)

cd univention-dojo && patch -p0 < ../Selection.patch
patching file dgrid/Selection.js
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file dgrid/Selection.js.rej
make[1]: *** [univention-dojo] Fehler 1
make[1]: Leaving directory `/opt/univention-management-console-frontend-doc'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Fehler 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2

(2)

Processing module https:/www.piwik.univention.de/piwik.js (30.52M used / 53.99M RSS)
ERR: umc/app.js:843:71 Error: ENOENT, no such file or directory '/opt/univention-management-console-frontend-doc/univention-dojo/umc/modules/undefined.js'
    at Object.fs.openSync (fs.js:338:18)
    at Object.fs.readFileSync (fs.js:182:15)
    at new File (/opt/univention-management-console-frontend-doc/js-doc-parse/lib/File.js:60:10)
    at Function.Module.get (/opt/univention-management-console-frontend-doc/js-doc-parse/lib/Module.js:53:28)
    at null.<anonymous> (/opt/univention-management-console-frontend-doc/js-doc-parse/lib/callHandler/amd.js:141:24)
    at lang.extend.match (/opt/univention-management-console-frontend-doc/js-doc-parse/dojo/AdapterRegistry.js:82:21)
    at Object.readers.CallExpression (/opt/univention-management-console-frontend-doc/js-doc-parse/lib/esprimaParser.js:359:29)
    at read (/opt/univention-management-console-frontend-doc/js-doc-parse/lib/esprimaParser.js:239:28)
    at Object.ExpressionStatement (/opt/univention-management-console-frontend-doc/js-doc-parse/lib/esprimaParser.js:28:11)
    at read (/opt/univention-management-console-frontend-doc/js-doc-parse/lib/esprimaParser.js:239:28)
make[1]: *** [data] Fehler 1
make[1]: Leaving directory `/opt/univention-management-console-frontend-doc'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Fehler 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2

(3)

...
Comment 1 Florian Best univentionstaff 2013-10-09 15:14:29 CEST
fixed:

removed Selection.js patch (is now integrated in dojo).
added umc/modules/undefined.js
removed dojox from build list because it requires dojo internal build directory

univention-management-console-frontend-doc (7.0.0-1)
Comment 2 Florian Best univentionstaff 2013-10-21 12:45:52 CEST
interim version - no changelog required
Comment 3 Lukas Walter univentionstaff 2013-10-21 14:51:27 CEST
There is another error:

Processing module umc/piwik (30.59M used / 53.97M RSS)
Processing module https:/www.piwik.univention.de/piwik.js (31.06M used / 53.98M RSS)
Processing module umc/modules/undefined (31.59M used / 53.98M RSS)
ERR: umc/app.js:1651:60 Error: ENOENT, no such file or directory '/root/univention-management-console-frontend-doc/univention-dojo/umc/modules/udm/LicenseImportDialog.js'
    at Object.fs.openSync (fs.js:338:18)
    at Object.fs.readFileSync (fs.js:182:15)
    at new File (/root/univention-management-console-frontend-doc/js-doc-parse/lib/File.js:60:10)
    at Function.Module.get (/root/univention-management-console-frontend-doc/js-doc-parse/lib/Module.js:53:28)
    at null.<anonymous> (/root/univention-management-console-frontend-doc/js-doc-parse/lib/callHandler/amd.js:141:24)
    at lang.extend.match (/root/univention-management-console-frontend-doc/js-doc-parse/dojo/AdapterRegistry.js:82:21)
    at Object.readers.CallExpression (/root/univention-management-console-frontend-doc/js-doc-parse/lib/esprimaParser.js:359:29)
    at read (/root/univention-management-console-frontend-doc/js-doc-parse/lib/esprimaParser.js:239:28)
    at Object.ExpressionStatement (/root/univention-management-console-frontend-doc/js-doc-parse/lib/esprimaParser.js:28:11)
    at read (/root/univention-management-console-frontend-doc/js-doc-parse/lib/esprimaParser.js:239:28)
make[1]: *** [data] Fehler 1
make[1]: Leaving directory `/root/univention-management-console-frontend-doc'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Fehler 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2
Comment 4 Florian Best univentionstaff 2013-10-21 15:44:12 CEST
(In reply to Lukas Walter from comment #3)
> There is another error:
In Bug #32389 a new external requirement to udm/licenseImportDialog has been added.
fixed in univention-management-console-frontend-doc (7.0.1-1)
Comment 5 Lukas Walter univentionstaff 2013-10-22 14:57:05 CEST
make[1]: Entering directory `/root/univention-management-console-frontend-doc'
make[1]: Warning: File `Makefile' has modification time 1,1e+06 s in the future
#creating details.xml and tree.json
install -m755 -d 'data/1.8'
cd js-doc-parse && \
		git apply < ../js-doc-parse.patch && \
		./parse.sh ../univention-dojo/umc ../univention-dojo/dojo ../univention-dojo/dijit ../univention-dojo/dgrid # ../univention-dojo/dojox FIXME: dojox produces errors because "build" directory does not exists
error: patch failed: config.js:28
error: config.js: patch does not apply
error: patch failed: lib/processor/dojodoc.js:218
error: lib/processor/dojodoc.js: patch does not apply
make[1]: *** [data] Fehler 1
make[1]: Leaving directory `/root/univention-management-console-frontend-doc'
dh_auto_install: make -j1 install DESTDIR=/root/univention-management-console-frontend-doc/debian/tmp returned exit code 2
make: *** [binary] Fehler 29
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules binary war 2
Comment 6 Florian Best univentionstaff 2013-10-22 15:32:23 CEST
(In reply to Lukas Walter from comment #5)
> error: patch failed: config.js:28
> error: config.js: patch does not apply
> error: patch failed: lib/processor/dojodoc.js:218
> error: lib/processor/dojodoc.js: patch does not apply

"make clean" ;)
Comment 7 Lukas Walter univentionstaff 2013-10-22 15:49:03 CEST
(In reply to Florian Best from comment #6)
> (In reply to Lukas Walter from comment #5)
> > error: patch failed: config.js:28
> > error: config.js: patch does not apply
> > error: patch failed: lib/processor/dojodoc.js:218
> > error: lib/processor/dojodoc.js: patch does not apply
> 
> "make clean" ;)

Build try was made from clean directory
Comment 8 Florian Best univentionstaff 2013-10-22 16:23:18 CEST
(In reply to Lukas Walter from comment #7)
> (In reply to Florian Best from comment #6)
> > (In reply to Lukas Walter from comment #5)
> > > error: patch failed: config.js:28
> > > error: config.js: patch does not apply
> > > error: patch failed: lib/processor/dojodoc.js:218
> > > error: lib/processor/dojodoc.js: patch does not apply
> > 
> > "make clean" ;)
> 
> Build try was made from clean directory
It works in our buildsystem:

Successful build
Package: univention-management-console-frontend-doc
Version: 7.0.1-1.40.201310221513

I opened Bug #32959.
I looked at your VM and it seems that dpkg-buildpackage calls 'make data' twice. The already applied patch fails to apply then. I dunno why this happens.
Comment 9 Lukas Walter univentionstaff 2013-10-24 15:13:54 CEST
OK, I've read the build mail.
Comment 10 Stefan Gohmann univentionstaff 2013-11-19 06:42:48 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

If this error occurs again, please use "Clone This Bug".