AUR Pkgbuild and Node.js
If my package needs some nodejs packages to build/run, it's preferred to install them through AUR (when provided) or just add a line
npm install -g name_of_the_package
into build() function?
Keep in mind that if the package has been already installed on the system by npm, installation from AUR will fail.
This is my pkgbuild https://aur.archlinux.org/packages/brackets/
I don't want to sound pretentious, but nodejs is a strange framework (I don't know almost anything about it), and i.e. brackets has all this build dependencies (just the build ones...)
"grunt": "0.4.1",
"jasmine-node": "1.11.0",
"grunt-jasmine-node": "0.1.0",
"grunt-cli": "0.1.9",
"phantomjs": "1.9.0-1",
"grunt-lib-phantomjs": "0.3.0",
"grunt-contrib-jshint": "0.6.0",
"grunt-contrib-watch": "0.4.3",
"grunt-contrib-jasmine": "0.4.2",
"grunt-template-jasmine-requirejs": "0.1.0",
"grunt-contrib-cssmin": "0.6.0",
"grunt-contrib-clean": "0.4.1",
"grunt-contrib-copy": "0.4.1",
"grunt-contrib-htmlmin": "0.1.3",
"grunt-contrib-less": "0.8.2",
"grunt-contrib-requirejs": "0.4.1",
"grunt-contrib-uglify": "0.2.0",
"grunt-contrib-concat": "0.3.0",
"grunt-targethtml": "0.2.6",
"grunt-usemin": "0.1.11",
"load-grunt-tasks": "0.2.0",
"q": "0.9.2",
"jshint": "2.1.4",
"xmldoc": "^0.1.2"
I don't think that a user without an AUR helper should be happy to have to install all these things, when it can just be avoided adding
npm install
inside PKGBUILD.
Similar Messages
-
Pbget: ABS and AUR PKGBUILD etc retriever
Info page: http://xyne.archlinux.ca/projects/pbget
edit: updated post with current information
pbget is a command-line tool for downloading PKGBUILDs and local source files from the Arch Linux Git interface, the AUR, and the ABS tree
Last edited by Xyne (2012-03-08 23:25:21)I now use a bash function as replacement for pbget. Probably, you are intereseted...
pbget() {
local extract
[[ "$1" = "-x" ]] && extract=1 && shift
local pkgname="${1##*/}"
if [[ "$pkgname" = "$1" ]]; then
local repos=(testing core extra community-testing community aur)
else
local repos=(${1%%/*})
fi
for repo in ${repos[@]}; do
local url
case "$repo" in
aur)
url="http://aur.archlinux.org/packages/$pkgname/$pkgname.tar.gz"
community-testing|community)
url="http://repos.archlinux.org/wsvn/community/$pkgname/repos/$repo-$(uname -m)/?op=dl&rev=0&isdir=1"
testing|core|extra)
url="http://repos.archlinux.org/wsvn/packages/$pkgname/repos/$repo-$(uname -m)/?op=dl&rev=0&isdir=1"
echo "Unknown repository. Exiting..."
return 1
esac
wget -O "$pkgname.tar.gz" "$url"
if [[ ! -s "$pkgname.tar.gz" || "$(file -bp --mime-type "$pkgname.tar.gz")" = "text/plain" ]]; then
rm -f -- "$pkgname.tar.gz"
else
break
fi
done
if [[ ! -f "$pkgname.tar.gz" ]]; then
echo "Package \`$pkgname' does not exist in the repositories. Exiting..."
return 1
fi
# extract downloaded file
if [[ -n "$extract" ]]; then
mkdir "$pkgname"
bsdtar xkf "$pkgname.tar.gz" --strip-components 1 -C "$pkgname"
rm -f -- "$pkgname.tar.gz"
cd "$pkgname"
fi
edit: I should probably give some examples how to use it:
$ pbget pacman
Will search for pacman in the following repos (testing core extra community-testing community aur) and takes the first pacman it finds. So, if there is a pacman package in testing, it would use this one.
$ pbget core/pacman
Get the PKGBUILD of the pacman package in core.
$ pbget -x core/pacman
Get the PKGBUILD of the pacman package in core, extract the tarball (and delete it) and change into the directory which contains the extracted PKGBUILD.
Last edited by xduugu (2009-10-20 00:17:24) -
Hi all,
I noticed that qbzr had become unmaintained and in fact wouldn't install via the AUR PKGBUILD file as the source download link had become obsolete.
I took ownership of the package, then downloaded, updated, targz'd and submitted the new archive. However, it still doesn't seem to be quite right.
If I download the PKGBUILD , I can now makepkg and then pacman -U without trouble. (v0.18)
However, using yaourt - yaourt gets the version info etc from the PKGBUILD file I think, as it displays the intended version correctly (0.18). However it then downloads qbzr.tzr.gz, within which is the PKGBUILD file of version (0.16).
I feel I must have missed something, but I can't figure out how when I submitted qbzr.tar.gz AUR was able to correctly extract the PKGBUILD file for display but not provide the correct qbzr.tar.gz
Perhaps there is a lag in file propagation that I have been previously unaware of?
Cheers
Last edited by thread (2010-02-08 03:28:35)thread wrote:However it then downloads qbzr.tzr.gz, within which is the PKGBUILD file of version (0.16).
there's nothing wrong with the tarball, so i'm not sure why you think it's not an issue/bug/problem/etc with yaourt..
$ wget http://aur.archlinux.org/packages/qbzr/qbzr.tar.gz
$ bsdtar xf qbzr.tar.gz
$ grep ^pkgver= qbzr/PKGBUILD
pkgver=0.18
Last edited by tdy (2010-02-05 05:04:08) -
Bauerbill: Powerpill + ABS, AUR, CPAN and Hackage support + more
info page: http://xyne.archlinux.ca/info/bauerbill
edit: the info page now contains a FAQ which you should check before posting any questions, especially questions about output
I've created a version of Powerpill with ABS and AUR support. I've wanted to do this for a while but I didn't want to step on Yaourt's toes. Recently though there has been a wave of AUR helpers so I decided that it was time to throw my own contribution into the mix.
Here's a quick feature overview:
* AUR support (downloading, full dependency resolution, building, installation)
* CPAN support (downloading, full dependency resolution, building, installation)
* Hackage support (downloading, full dependency resolution, building, installation)
* ABS support (can build all packages from source from any repo which provides the $repo.abs.tar.gz archive)
* parallelization for faster downloads (single, combined package and source downloads for upgrades with aria2c, parallel searches, parallel taurball downloads, etc)
* drops privileges to build when run as root, checks for sudo to install packages when run as non-root
* unified sync db and AUR search (bauerbill -Ss, bauerbill -Si) with support for multiple search arguments
* tracks all dependencies during build operations and cleans up makedepends when done
* PKGBUILD inspection prompt with support for viewing, editing, backup up, diffing and patching files interactively
* options to automatically patch and build specified packages
* option to trust ABS PKGBUILDs to fully automate repo package building
* option to trust specific AUR users to fully automate AUR package building
* built-in Reflector support for finding additional mirrors for downloads
* built-in PkgD support for retrieving packages over a LAN
* build-in Rebase support for selective database extraction... also displays a list of changes during each operation
Bauerbill is currently only available from the repo on my site and it depends on perl-xyne-common and perl-xyne-arch in the same repo. I rewrote large portions of the latter two while writing Bauerbill and I want to wait until the code feels stable before pushing them to [community]. Bauerbill will then get added to the AUR.
Check that you have the latest versions of my perl modules before posting any bugs. I'm actively using bauerbill right now and pushing micro-updates as soon as I find something to fix.
Last edited by Xyne (2010-02-18 14:27:56)Pank wrote:
I get the following error using standard bauerbill.conf. I am able to make mkdir and touch in tmp, which seems to be the default place for bauerbill to hang around.
> bauerbill -S emacs
error: no writable cache directory found
It's a Pacman wrapper so the default cache is /var/cache/pacman/pkg. You need to either specify a different cache using Pacman's "--cachedir <path>" option, or run it as root to gain access to the default cache. I'll try to make that message clearer, but try running "pacman -S emacs" and it will tell you that you need to be root too.
Pank wrote:PS: I use pbfetch at the moment. The one thing that all these new yaourt replacements, execept pakthur, seem to miss is default to search. i.e. yaourt emacs would list all packages containing the term "emacs". Is there a reason that yaourt-replacements don't include this feature?
Pacman doesn't default to searching. Use "bauerbill -Ss <pkg>" if you want to search.
Nezmer wrote:Does it fetch from SVN/trunk like pbget?
Nope. As the documentation states, it fetches $repo.abs.tar.gz archives. All of the official repositories contain archives of their PKGBUILDs and local source files (e.g. core.abs.tar.gz, extra.abs.tar.gz, community.abs.tar.gz, etc) that this is where Bauerbill gets the files for building repo packages. I did it this way because it enables Bauerbill to support unofficial repos that include such files. It's also much simpler than scraping the official site's html, which would be slow and place useless load on the server. -
Advanced functions,UDF's and node function
Dear all,
Can you kindly let me know about Advanced functions,UDF's and node function.Differences and Uses.
Also Let me know about the advantages,Disadvantages of Graphical,XSLT,Java,ABAP and ABAP XSLT mappings.
Thanks,
SriniHi,
The term Mapping means:
1. The transformation process, and/or
2. The transformation rules.
Independently from XI, you can distinguish two different mappings
Structure mappings transform entire message structures.
Value mappings transform values within messages.
Mapping Programs to Map Messages :
Message Mapping
Designed by using the graphical mapping editor of Integration Builder
Result: Generated Java Code.
Imported Archives
Import externally defined mapping programs into repository
Java mapping:
Implemented by using a specific interface
XSLT mapping:
Runtime supports XSLT processor
Java methods can be called from within a Style Sheet
ABAP Mapping
You can execute mapping programs in a sequence
The exchange infrastructure supports three types of mappings:
Message mappings that can be designed using a graphical mapping editor in the Integration Builder. As a result, Java code is generated from the graphical representation that is compiled before it can be executed on the integration server.
You can implement your own Java mapping by implementing a specific interface of the mapping API.
You can implement an XSLT mapping
For the latter two, there is no tool support in XI. It is expected that they are developed using external development tools. To make them available for the integration server, they have to be imported into the integration repository as JAR
files before (JAR: Java Archives).
Developers can even decide to combine the different mapping technologies:
Message mappings, XSLT mappings and Java mappings can be combined in a sequence by means of an interface mapping.
XSLT mappings can use java functions
Message mappings support user-defined functions that can use imported java packages of the same namespace.
In SAP XI, there is 3 types of mappings. Namely
XSLT Mapping
Java Mapping
ABAP Mapping
Here is the details of each mapping.
XSLT Mappings (ABAP Engine)
Interface descriptions are in the form of XML documents. XSL Transformation (XSLT) is a member of the XML family of languages. It describes how an XML structure is transformed into another XML structure.
Customers can develop an XSLT mapping by using the Transformation Editor of the ABAP Workbench. Such XSLT mappings are executed at runtime on the ABAP Engine of the Integration Server.
To simplify matters, this section refers to XSLT mappings of the ABAP Engine as transformation programs to differentiate them from XSLT mappings from imported archives that are executed on the J2EE Engine.
Features
XPath and <xsl:include>
You can define mappings using XSLT together with XPath. XPath is also a specification of the XML family. Using XPath you can address any node in an XML document. XSLT implements XPath expressions to select substructures of an XML document. Using templates in XSLT you can define the mapping rules for the selected substructures.
You can use the XSLT tags <xsl:include> and <xsl:import> to include predefined templates for substructures in a complete mapping definition. In this way, you can reuse mappings for data types.
Java Mapping
You can implement mapping programs in Java. To process XML documents, use Java API for XML Processing (JAXP), for example. The JAXP supports the Document Object Model (DOM) and the Simple API for XML (SAX). This gives you great flexibility for mapping definitions with Java.
Implementation Considerations
Java mapping programs are not permitted to be stateful. You are therefore not permitted to perform actions such as writing data to a database table during a Java mapping. The Integration Server cannot track such side effects. Therefore, if an attempt is made to resend a message that has not been received by the receiver, the data may inadvertently be written to the database twice in a Java mapping.
If you use JRE classes in your Java mapping programs then the same program restrictions apply as for Enterprise Java Beans (EJBs). For a detailed description of these restrictions, see the relevant EJB specification. It is important that you also refer to the information under Scope of Functions in Runtime Environment (Java Mappings).
The runtime environment for Java mappings has an mapping API. To use Java mapping, you must define a Java class that implements the Java interface com.sap.aii.mapping.api.StreamTransformation. This interface has two methods:
● public void execute(java.io.InputStream in, java.io.OutputStream out)
At runtime, the Integration Engine calls this method to execute a mapping. This method contains an input stream for the source document and an output stream for the target document as parameters. These streams are usually XML documents. You can import the substructures to be converted from the input stream and output the converted target document in the output stream.
● public void setParameter(java.util.Map param)
The Integration Engine transfers parameters to the mapping program with this method. It evaluates these parameters at runtime in the method execute(). This enables you to control the process flow of the mapping.
The transferred object that implements the Java interface java.util.Map contains seven key/value pairs as parameters. These correspond to corresponding fields in the message header. Apart from the MAPPING_TRACE constant, the value objects are of type java.lang.String. The key objects are defined in the class com.sap.aii.mapping.api.StreamTransformationConstants
ABAP Mappings
ABAP mappings are mapping programs in ABAP objects that customers can implement using the ABAP Workbench.
Features
An ABAP mapping comprises an ABAP class that implements the interface IF_MAPPING in the package SAI_MAPPING.
Exception: CX_MAPPING_FAULT
Applications can decide themselves in the method EXECUTE how to import and change the source XML document. If you want to use the XSLT processor of SAP Web AS, you can use the ABAP Workbench to develop a stylesheet directly (see XSLT Mappings (ABAP Engine)) rather than using ABAP mappings.
Runtime Constants
In ABAP mapping you can read access message header fields. To do this, an object of type IF_MAPPING_PARAM is transferred to the EXECUTE method. The interface has constants for the names of the available parameters and a method GET, which returns the respective value for the parameter name. The constants are the same as in Java mappings, although the constant MAPPING_TRACE does not exist for ABAP mappings. Instead, the trace object is transferred directly using the parameter TRACE of the method IF_MAPPING~EXECUTE
Example: Accessing a Runtime Constant
Method IF_MAPPING~EXECUTE.
Get mapping constant SENDER_SERVICE
data: l_sender_service type string.
l_sender_service = param->get( IF_MAPPING_PARAM=>SENDER_SERVICE ).
ENDMETHOD.
These r excellent websites which contain PPT & PDF documents on mapping:
Excellent PDF Document on Mapping
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
Mapping Development with the ABAP Workbench
http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
ABAP Mappings
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
How to Use ABAP Mapping in XI 3.0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
Hope this will help you, and don't forget to close this thread.
Regards
Aashish Sinha
PS : reward points if helpful -
[Tree] item and node order ! (Recursive Node)
I made a wd4a has organizatonal structure tree. but I have some problem with the org tree.
I want to have a tree(org structure) in item(person) and node(organization) order.
Root Root
|- Person 1 |- Head Dept
|- Person 2 | |-Person 3
|-Head Dept -> | |-Person 4
| |- Person 3 |-Sales
| |- Person 4 |- Person 1
|-Sales |- Person 2
( to be displayed) (current displayed)
Whiat's the problem?
Although the both of them have a same contents, I really want to display in person and org order .
Plz. help.I solved this problem myself and it makes me very so tired.
I guess that Recursive node tree have some bugs.
If a node have one recursive node and one sub-node and some kinds of attributes,
we have to make a decision on how to display and sort them(sub-node and attributes)
There is a example below as I really want to sort them.
C_Drive Folder
- file 1
- file 2
- Folder 1
- file3
- Folder 1-1
- Folder 2
Context
|-Folder Node
| |-File Node
| | |-File Name attribute
| |-Folder Name attribute
| |-Folder_Content -> Recursive Node
When you meet this situation,you must implement the context nodes and
the names of context node and recursive node must be in alphabet order you want to display.
I am sorry for my crumsy writting English. -
SCOM 2012 R2 RU 2 Topology widgets Background image and Nod visualization is missing
After Updating RU 2 in System center OM 2012 R2 no background image and Nod visualization missing in Topology widgets ?
Santosh DharamsaleYou will need to Import the MP Microsoft.SystemCenter.Visualization.Library.mpb.
For more info., You can refer below link
http://thoughtsonopsmgr.blogspot.com/2014/04/update-rollup-2-for-scom-2012-r2.html
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
Mai Ali | My blog: Technical | Twitter:
Mai Ali -
Sun Java Application Server - Domain and Node agent stop automatically
Hi,
We have installed Sun Java Application server 8.1 in a local zone on Solaris 10. The installation was successful.
A default domain (domain1) was created. We have deployed a sample application too.
The problem is that the domain and node-agent stop automatically. And need to be restarted from asadmin start-domain command.
Not sure why this problem is occurring. One solution given in Sun Java System AS 8.1 EE Troubleshooting Guide was to add these 2 lines in the /etc/inittab file to restart the domain and node-agent whenever the system re-boots.
das:3:respawn:/opt/SUNWappserver/bin/asadmin start-domain user admin passwordfile /opt/SUNWappserver/password.txt domain1
das:3:respawn:/opt/SUNWappserver/bin/asadmin start-node-agent user admin passwordfile /opt/SUNWappserver/password.txt node-agent-name
Pls help me if I can change this inittab file from the local zone and if changing this file has any implications on the other zones on Solaris 10.
Else is there any other way to resolve this problem?
Any help would be highly appreciated.
Thankyou.One thing not clear from the post was,
* when it is going down automatically.
* Are you facing the same problem even after starting through the asadmin
* If so, Post the server.log from "domains/logs" during the starup.
If you want to bring it up with system reboot, You need to have a startup script for that in init.d and have the links to rc2/3.d. -
Displaying image and node name while dragging ...like Windows Explorer.
hi group,
i want to display the image and node name of the node while dragging in my tree.like windows Explorer.
Any body can help me regarding this.?pls
thank u...
Shalinipriya.hi group,
Anybody knows regarding this "dragging nodename and image"?
pls let me know
thank u...
Shalinipriya. -
How to create Import format for building version Hirerarchy and Node
Hi
i Want to know how to create Import format for building version Hirerarchy and Nodes.Can anyone show me with example or format for version Hierarchy with few nodes for the hierarchy
i Want to Build this 1. Version1 (Version)
2.Account (Hirerarchy)
3. Balancesheet (Limb)
4. Assets (Limb)
5. Cash (Leaf)
Thanks,Please follow the DRM User Guide,
http://docs.oracle.com/cd/E17236_01/epm.1112/drm_user.pdf
Below is my preferred approach, by selecting only relation and Hierarchy sections,
The relation section contains the Node Name and Parent Name ( you can include any other properties, but as a best practice keep the Parent Node as the last column).
The Hierarchy ( Hier ) section contains the Hierarchy Name, Top Node and Hierarchy description
Follow the Import steps and provide a Name for the version.
++++++++++++++++++++++++++++++++
[relation]
AC_BalanceSheet AC_Account
AC_Asset AC_Account
AC_Cash AC_Account
[hier]
Account AC_Account AccountHier
++++++++++++++++++++++
Note: Please delete all the special characters (TAB) created at the end of [relation] and [hier] sections while you copy the content from an Excel sheet to a Notepad. -
Field for counter and node in IA07 transaction
Hi,
In PLPO table when i give the task list type and group, I get multiple entries.How do we restrict the number of entries to the ones we need for our maintenance plan? Can it be done through counter and node? In that case where can we find them in IA07 transaction?
Thanks & Regards,
JegashreeHi experts,
Any suggestion on this?
Regards,
Jegashree -
Hi to all.
How to attach resource group and node?
i.e. when i shutdown my node0. All resources switch to node1.
I want:
When my node0 boot then my resource group switch back.
How I should make this?
ThanksOn node1:
nfl-node1# clrg show | grep Nodelist
Nodelist: nfl-node2 nfl-node1
Nodelist: nfl-node2 nfl-node1
Nodelist: nfl-node2 nfl-node1
nfl-node1#
On node2:
nfl-node2# clrg show | grep Nodelist
Nodelist: nfl-node2 nfl-node1
Nodelist: nfl-node2 nfl-node1
Nodelist: nfl-node2 nfl-node1
nfl-node2# -
How do find Process name and Node name in a workflow ?
Hi,
For logging exceptions, how do I elegantly find the
process name and node name in a workflow.
Thanks
-AnilThe service location of the process is available on the interface returned
by
context.getService() in the process. That contains the full process path
(including process project name).
On the node, I don't know...
Robert
"Anil Varma" <[email protected]> wrote in message
news:31361182.1091122588490.JavaMail.root@jserv5...
Hi,
For logging exceptions, how do I elegantly find the
process name and node name in a workflow.
Thanks
-Anil -
All of a sudden, the radio signal LEDs went off and node went dead
In order to change the I/O variable data type of my node from single to array of single, I simply press and hold the rest button on WSN-3202 for 7seconds. At the end of it, the radio signal LEDs went off and node went dead. All attempt to bring it back to life proof abortive. What should I do?
BlessingHi Blessing,
If you've tried everything to get it working, including a fresh set of batteries or direct power from an adaptor, then you should contact your local NI branch regarding the repair process. The contact information for your branch can be found on http://sine.ni.com/apps/utf8/nicc.call_me.
Regards,
Imtiaz Chowdhury
Head of Digital Technologies
Brand786 -
Difference between Scan Listener and Node listener
Hi,
I read the concept of SCAN in 11g R2 Grid Infrastructure. In that i come accross the below statements
" 3 SCAN IP's and 3 SCAN Listeners will be up in the Cluster even if onlu ONE NODE IS UP with Clusterware active. This is BECAUSE SCAN listeners are not like NODE LISTENERS; they simply reroute connections so they do not need an instance to be available beneath them to make a database connections".
Could some one please explan me the difference between Scan Listener and Node listener?
Thanks in advance.
Regards,
StephenThe SCAN listener is the new feature in 11g. RAC in 9i and 10g had only node listeners. In earlier releases, the clients had to know each of the node listeners and define load balancing / failover between the node listener.
Each node in the RAC cluster has a TNS Listener listening on the VIP.
The SCAN is a single cluster-wide listener (although actually running as three separate processes, one on each node).. The client now needs to know only the SCAN listener. It does not need information of the node listeners to be maintained in the client-side tnsnames.ora file. SCAN allows for automatic load balancing as the client is directed to the nodes that are "up and able to take new connections" only. Also, as new nodes are added to the cluster, SCAN keeps track of them, the client tnsnames.ora does not need to be updated for new nodes.
Hemant K Chitale
Maybe you are looking for
-
Why do I get subtitles on Netflix movies? I have switched it off in settings but the Spanish sub-titles still appear.
-
Numbers 3.2 and Dropbox viewer does not work
Hi, I upgraded to OS Maverick 9.2 and also to Numbers 3.2 I have quite a lot of numbers files in Dropbox So far, I was was able to view them within Dropbox on my iPhone. After using these files with Numbers 3.2 on my Mac, Dropbox is unable to view t
-
Ipod sync with mac and PC?
When my old PC died at Christmas I chose to replace it with a MacBook. I have transferred all my music onto my new Mac, but all of the .wmp files, of course, won't play in itunes. I thought I could use my IPOD as a hard disc to save all these songs,
-
Select the multiple nodes in a tree
Hi Experts, We need to select the multiple nodes in a tree.Whatever we are selecting,that has to be added in the table as a tree structure itself. For ex: A |--A1 |--B1 If We select the A then A,A1 and B1 has to be added in a table.Please help me
-
Hi all, We are using taxinn procedure to calculate the taxes. How can anybody justify the selection of Taxinn , when there are hundreds of vendors , materials and in Taxinn then we have to maintain so many records in FV11.Why should we use it then?