Univention Bugzilla – Bug 35823
Provide stylus as package
Last modified: 2014-11-26 06:55:06 CET
For the UMC build process, we need the CSS preprocessor Stylus. The UMC theme is written using stylus. It would be good to be able to automatically download dependencies/updates using npm.
I already committed an initial package such that the build process is possible for UMC.
r53506: Added Makefile and dependencies Failed build Package: stylus Version: 0.0.0-2.3.201409100841 Branch: ucs_4.0-0 I: cleaning the build env I: removing directory /var/build/temp/tmp.We45OjFEEs/pbuilder/4368 and its subdirectories rmdir: failed to remove `/var/build/temp/tmp.We45OjFEEs/pbuilder/4368/var/run/shm': Device or resource busy rmdir: failed to remove `/var/build/temp/tmp.We45OjFEEs/pbuilder/4368/var/run': Directory not empty rmdir: failed to remove `/var/build/temp/tmp.We45OjFEEs/pbuilder/4368/var': Directory not empty rmdir: failed to remove `/var/build/temp/tmp.We45OjFEEs/pbuilder/4368': Directory not empty --> pbuilder failed!
(In reply to Alexander Kramer from comment #2) From the logfiles: The following packages have unmet dependencies: pbuilder-satisfydepends-dummy : Depends: npm which is a virtual package. Probably npm has to be built first!
Successful build Package: stylus Version: 0.0.0-9.10.201409101306 Branch: ucs_4.0-0 r53535 Adapted the link for more information http://stackoverflow.com/questions/22099098/npm-self-signed-cert-in-chain-on-azure r53532 Added a workaround to prevent “SELF_SIGNED_CERT_IN_CHAIN” error r53515 Adapted some copyright information r53515 use cp -r instead of mv in the Makefile
I installed the package from omar, stylus -h works fine.
stylus does not need to depend on npm. npm is only required as build dependency.
Please make the following adjustments: * Replace the wrapper script bin/stylus with a symbolic link to /usr/share/node-stylus/bin/stylus * Remove the folder node-stylus from the SVN * User a fixed version number in the Makefile: npm install stylus@VERSION → will install a specific version AFAIK npm view stylus versions → shows all available versions
r 53591 Adapted the .install and .postint files r 5390 Removed directories and dependency, added symlink and version number Successful build Package: stylus Version: 0.0.0-11.12.201409110947 Branch: ucs_4.0-0
Tested the package from omar, works fine. even the deinstallation removed the symlink.
Please replace the postinst script with a debian/stylus.links file, as currently, the symlink will persist when removing the package. I adapted the version number to reflect the upstream version.
Move all unfinished MS1 and MS2 bugs to RC.
r54994 As requested I replace the .postint with a .link-file. Now the symlink will be removed with the package - tested it on my vm. Package: stylus Version: 0.48.1-2.15.201410280851 Branch: ucs_4.0-0
Everything looks good → VERIFIED Changelog not required as this is only a package needed as build dependency for UMC.
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".