How to build package in makefile?

i want to build the package(pkgadd commond) in the makefile , is there any suggestion of how to make it ?

i want to build a package (pkgmk),
what i am doing now is to call a script in makefile, and build package in script, it can work, but i am wondering if there is any better way to do so ?

Similar Messages

  • How to build packages which contains dependency loop

    I'm building packages for sh4 CPU.
    And I found these packages contains make dependency loop.
    gobject-introspection
    gdk-pixbuf2
    librsvg
    cairo
    Any suggestion to solve this?  Which one is the first I could build?
    Last edited by dlin (2013-02-13 17:21:20)

    FS#33874 wrote:if PKGBUILD developers keep their build experience on such files will simplified try-and-error process.
    I agree with this, but maybe this kind of info about ground-up building can go in a wiki.
    I mentioned this dep cycle topic in #archlinux-arm:
    2013-02-14 11:13:18 @WarheadsSE tdy, they will want to drop from deps, then rebuild w/ them back in
    2013-02-14 11:14:03 tdy yea, that seems to be the easiest way.. e.g. build cairo w/o svg, build the chain, then rebuild cairo with svg
    2013-02-14 11:14:12 @WarheadsSE yup
    2013-02-14 11:14:31 @WarheadsSE thats a very simplified method of how we fix spaghetti monsters
    Maybe you can check with them to see if they've kept some documentation about build orders or any tips in general.
    Last edited by tdy (2013-02-15 16:54:36)

  • How to build, package & deploy web services manually without ant on JWSDP

    Hello,
    How can I Build, Package & Deploy web services manually without using ant tool on JWSDP 1.3?.
    Because I am having difficulties in using ant tool for my own webservices. ant is very tightly coupled with the directory hierarchy & configuration files (as I go throught the examples of JWSDP1.3). Also I need to learn the overall process going on behind the scene.
    I have to teach the simplest required steps to build, package & deploy any webservice to any container independent of application server & OS without using ant tool. It would also help me to understand which items are required as specified in the Web Services Specifications & which one are implementation or platform specific.
    Any help would be greatly appreciated.
    Thanks,
    Iftikhar.

    Just follow the step of the JWSDP1.3 tutorial..

  • HOW to build ruby 1.8.6 package (p287) ???

    Currently distro offers latest ruby version ruby-1.8.7_p72-3
    Some my projects is not compatible with v1.8.7  so I need v1.8.6.
    I have tried to build custom package ( just modify official PKGBUILD file from extra/ruby ABS)
    But it has issue with openssl:
    compiling openssl
    make[1]: Entering directory `/home/wireless/aur/extra/ruby/src/ruby-1.8.6-p287/ext/openssl'
    gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -march=i686 -mtune=generic -O2 -pipe -fPIC -c ossl_x509name.c
    In file included from ossl.h:197,
    from ossl_x509name.c:11:
    openssl_missing.h:123: error: conflicting types for 'BN_rand_range'
    /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include-fixed/openssl/bn.h:420: error: previous declaration of 'BN_rand_range' was here
    openssl_missing.h:124: error: conflicting types for 'BN_pseudo_rand_range'
    /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include-fixed/openssl/bn.h:421: error: previous declaration of 'BN_pseudo_rand_range' was here
    ossl_x509name.c: In function 'ossl_x509name_initialize':
    ossl_x509name.c:135: warning: passing argument 2 of 'd2i_X509_NAME' from incompatible pointer type
    make[1]: *** [ossl_x509name.o] Error 1
    make[1]: Leaving directory `/home/wireless/aur/extra/ruby/src/ruby-1.8.6-p287/ext/openssl'
    make: *** [all] Error 1
    ==> ERROR: Build Failed.
    Aborting...
    Damn...
    HOW TO BUILD IT?

    ==> Leaving fakeroot environment.
    ==> Finished making: ruby 1.8.6_p287-1 i686 (Sat Mar 21 13:40:10 EET 2009)
    SOLVED with such PKGBUILD:
    # $Id: PKGBUILD 26958 2009-02-14 23:32:24Z jgc $
    # Maintainer: dorphell <[email protected]>
    # Contributors: John Proctor <[email protected]>
    # Jeramy Rutley <[email protected]>
    pkgname=ruby
    pkgver=1.8.6_p287
    _pkgver=1.8.6-p287
    pkgrel=1
    pkgdesc="An object-oriented language for quick and easy programming"
    arch=(i686 x86_64)
    license=('custom')
    url="http://www.ruby-lang.org/en/"
    depends=('gdbm>=1.8.3' 'db>=4.7.25' 'openssl>=0.9.8j' 'zlib>=1.2.3.3' 'readline>=5.2.013')
    makedepends=('tk>=8.5')
    source=(ftp://ftp.ruby-lang.org/pub/ruby/1.8/${pkgname}-${_pkgver}.tar.bz2)
    options=('!emptydirs' 'force')
    md5sums=('80b5f3db12531d36e6c81fac6d05dda9')
    build() {
    cd "${srcdir}/${pkgname}-${_pkgver}"
    ./configure --prefix=/usr --enable-shared --enable-pthread || return 1
    # Fix for conflict with openssl
    sed -i'' -e "123,124s/.*//" ext/openssl/openssl_missing.h
    make || return 1
    make DESTDIR="${pkgdir}" install || return 1
    #generate the ri docs
    make -j1 DESTDIR="${pkgdir}" install-doc || return 1
    install -d "${pkgdir}/usr/share/licenses/${pkgname}"
    install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
    Thx anyone

  • Replacing a package with a self-build package

    If I have a self-build package that provides something (another package) that I allready have installed and also conflicts with, how do I replace the installed package with the self-build?
    When I try to install it with
    pacman -A /path/to/package
    pacman first tells me that my self-build package conflicts with the installed and whether I want to remove it. If I tell him that he should remove the installed package I get a list of dependencies that would get broke and the installation aborts.
    Any hints on how to solve that problem?

    Use -U (upgrade) switch if updating the package with the same name.
    Use -Rd (remove without dependencies) to uninstall a package and then install the one that provides the same.
    Last edited by lucke (2007-02-11 23:15:27)

  • [SOLVED] Unable to build packages from AUR (build: command not found)

    I recently hosed the filesystem on my arch install of ~8 months. I reinstalled arch today and didn't have many problems since I had backups of many important config files. Anyways, I still need to get a few programs installed from AUR, but nothing I get from AUR will build.
    I download the tarball, extract into a folder in /home/myuser/builds and then go into that folder and run makepkg -s (as always)
    It checks the files and extracts/downloads them. Then I get the following error message:
    ==> Starting build()...
    /usr/bin/makepkg: line 741: build: command not found
    ==> ERROR: Build Failed.
    Aborting...
    I've run abs and I checked out the abs wiki page, I've also installed base-devel. I am not sure what else I need to do, the error message is not specific enough.
    The packages I have been trying to install are      ttf-ms-fonts 2.0-7,      keepass 2.14-2, and I also tried ttf-vista-fonts 1-3. I am fairly certain that it is not a problem with the PKGBUILD files.
    Any ideas? Thanks!
    Last edited by fatjake (2011-03-08 01:02:59)

    cyrus wrote:Have you tried Yaourt?
    Nope, haven't tried that, I think mainly because I wanted to learn how to use pacman and how to build using ABS. At this point I think I know how to use pacman/abs, as much as this thread might make it appear that I dont
    I'll give it a try, as I frequently install software from AUR. In the past I think I let software from the AUR get outdated, Yaourt (clumsy name) sounds like it would help that a bit. Thanks!
    Edit: BTW, I really love Arch. I tried it out on a flash drive about 8 months ago (maybe more), and after about 12 hours I was sold and installed it on the drive that Windows XP previously held. Even considering that I had many problems during the initial install, but they were all problems that caused me to learn and were easy to resolve. Seriously, I have lots of Windows tech experience, but only Arch forced me to learn Linux. I had tried Ubuntu previously but it was such a bore, and the problems tended to be hard to find solutions for. I try to convince my other Linux using friends to try arch, but they see it as too hands-on. I don't see it that way, it is very hands off after initial configuration, and the initial config only takes a week or less on the first try and a day and a half (or so) if you re-install. Having backups of your config files is of course a huge deal, and I am glad I had most of those.
    Really, I love Arch Linux, it has taught me so much.
    Last edited by fatjake (2011-03-08 04:25:15)

  • [svn:fx-4.0.0] 13527: changed how the mpl package is created for easier maintainability.

    Revision: 13527
    Revision: 13527
    Author:   [email protected]
    Date:     2010-01-15 10:59:08 -0800 (Fri, 15 Jan 2010)
    Log Message:
    changed how the mpl package is created for easier maintainability.  Previously I had been duplicating what the main pkg target was doing and just omitting the files that were not intended to be in the mpl pkg.  After the main pkg is bundled up the files not needed will be removed from the stage directory and then bundled up as the mpl package. fixes SDK-25039
    Straighten out the confusing packaging targets. 
    -sdk-packages is now packages -> calling this will package the flex_sdk_4 and mpl zips
    QE notes: the mpl + add-on package should give us the flex_sdk_4 pkg
    Doc notes:
    Bugs: SDK-25039
    Reviewer:
    Tests run: packaging targets
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25039
        http://bugs.adobe.com/jira/browse/SDK-25039
    Modified Paths:
        flex/sdk/branches/4.0.0/build.xml

    Hi Harshall,
    You have to enter the value as 1 in Installed base field and then press enter.
    You will be taken inside and then you will be able to see the Goto - Partner screen.
    Hope this will help.
    Please reward points suitably.
    Regards,
    Naresh.

  • Building package using makepkg does not resolve dependency for another

    I am trying to install yaourt from the AUR. Yaourt required that package-query be installed, and this package further required another, etc.
    In short, package-query required yajl, which I downloaded from the AUR. This package does not actually have a PKGBUILD, but rather un-tars into a file that you need to merge with /usr. After doing so I tried to make the package-query package but was still met with a dependency discrepancy. Luckily, yajl was available in the official repositories (same version). After using pacman to install it everything went fine and package-query built and installed fine.
    When I went to build yaourt, using makepkg, it failed and informed that I was missing a dependency, package-query.
    So, in short, is there a registry or something that keeps track of these installed packages? I imagine that when running makepkg there is a query against installed packages to see if you meet the dependency requirements. What can I do to build yaourt in this situation?
    Last edited by sherrellbc (2014-06-08 18:37:19)

    cower doesn't have any dependencies that are not in the official repositories.  It doesn't build packages automatically, but it will download the source tarballs and unpack them for you.  It can also handle dependencies with the official repos and the AUR. 
    So for example, if you were to do cower -dd yaourt it would tell you that gettext, diffutils, and pacman are in the official repos.  Then it would download the source tarball for package-query and resolve all of its dependencies.  And it would download the yauort source tarball and unpack that for you.  So it gives you an idea of what depends on what and in which order you should build and install.
    But you really just shouldn't use yaourt.  Many of the upgrade issues that arise on these forums stem from people using yaourt (particularly those who blindly run yaourt -Syua).  The pacaur I mentioned above is a bash script that wraps cower.  So it too should be able to be built and installed without having to resolve other AUR dependencies.
    Edit:
    But none of this is really answering the question though. When I make a package from the AUR, the dependency requirement when trying to install another package is never met. That is, if package A requires B and I then installed B (from the AUR), when I try to make A again it still informs me that B was never installed.
    If this is the case, then you really don't know how to properly use the AUR, and thus should be reading up on that rather than trying to work around it with an AUR helper.
    Last edited by WonderWoofy (2014-06-08 19:18:47)

  • How to build a Oracle style Web site

    Dear All,
    (Not sure whether this question should be this sub-site or not.)
    My question is how to build a Oracle style Web site, what technology should be use.
    Example Site: [http://www.orapub.net/ebs/index.htm|http://www.orapub.net/ebs/index.htm]
    This web site style is like Oracle Enterprise Manager.
    Thanks a lot
    Pan

    You can use Oracle Webcenter or just Oracle ADF to build a Oracle Enterprise Manager kind of Website.
    See details here -
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ria_application/developriaapplication_long.htm
    http://www.youtube.com/watch?v=iE2zTNhlvy8

  • How to build a report in web Intelligence using Store procedure under Microsoft SQL Server 2000

    Post Author: ltkin
    CA Forum: WebIntelligence Reporting
    Hi,
    How to build a report in web Intelligence using Store procedure under Microsoft SQL Server 2000 ?
    Regards,

    Hi ltkin,
    Unfortunately, it is not possible in Xir2 to create Webi reports from stored procedures.
    Webi reports can only be created from Universe. So in Business Objects XIR3 we can create a special universe that enables Web Intelligence user's to access stored procedures residing in the database. This is the only way that Web Intelligence user's can access stored procedures.
    Please let me know if the above information helps.
    Regards,
    Pavan

  • I have just started to use Muse for our design agency and learning how to build ourselves a new site, I have manged to create a basic lightbox which contains sliding images, what I need to do now is have a pop up window which goes into detail about the pr

    I have just started to use Muse for our design agency and learning how to build ourselves a new site, I have managed to create a basic lightbox which contains sliding images, what I need to do now is have a pop up window which goes into detail about the projects, what I would like is a piece of text  or icon that when you roll over it and then click a separate window pops up with additional information in, once finished reading the info you can then click to close the box, any advice on how to do this?

    The best way to do what you're asking is with the Composition widget. Start with the Tooltip preset, which, by default shows the info on rollover. You can change the option to show on click, which is what you're after. You can also add the close button or have the info disappear on rollout.
    David

  • How to build the  FM data I_header and I_orgdata

    hi all,
    I’m working on the conversion program for AVL using the following function modules
    BBP_PD_AVL_GETLIST
    BBP_PD_AVL_CREATE
    BBP_PD_AVL_UPDATE
    BBP_PD_AVL_SAVE
    In the function module BBP_PD_AVL_CREATE , how to build the FM data  I_HEADER and I_ORGDATA.
    I'm giving 3 input in Export parameter in BBP_PD_AVL_GETLIST  and E_pdlist should contain data .
    but e_pdlist is not getting data...any suggestion..
    after execution it was showing  "Buffer table is not up to date"
    with regards,
    P.lokesh

    Hi Lokesh,
    We are also encountering same problem.
    How did you solve your problem?
    Would really appreciate your help.
    Thanks,
    Kezia

  • How to build a search engine in the database?

    Hi there,
    say I have 3 tables:
    1. Table_empl: idEmpl, fname, lname, dob...
    2. table_department: idDpartment, idEmpl, departmentName, section...
    3. table_fligths: idFlight, idEmapl, departure date, destination, carrier...I would like to provide the end-user a text box (in my GUI) where he can write whatever he would like to get info about. If, for example, he'll write: british-airways, I expect the system to search everything in the db that matches this input.
    Question: How can I design such a search engine that retrieve information from every possible table in the db with reference to every column.
    thanks for any pointers

    thanks darted for your reply. so what do you recommend? should i give the end user all names of tables and columns and ask him to choose from the list and than build a query based on that?
    this is optional but i'd rather have one exec button and to return all possible results from the db. if (in the example i provided) it found 'british airways' in the carrier - than that a result. if it founds 'british' in the lname of table_emple - that's another result. so the output should be something like:
    found 2 matches:
    1. british airways, 10/10/2006, LHR
    2. British, John, 12/01/63,
    any idea how to build that?

  • How to build a query based on(UNION) 3 vendor InfoObject

    Dear Experts:
    I have a requirement to build one query based on 3 vendor InfoObjct: 0VENDOR + 0VEN_COMPC + 0VEN_PURORG.
    I tried to build a multiprovider upon these 3 infoobjects, but when I Identify(Assign) the key for each InfoObject, supposely there should be 3 InfoObject for me to check (0VENDOR, 0VEN_COMPC and 0VEN_PURORG) so that I can UNION these 3 infoobjects together on vendor number. But since the reference infoobject of these 3 vendor master data is different, I can not check the 3 together.
    Can anybody let me know how to build that query? I only need vendor number show once, and the attributes of 0VEN_COMPC and 0VEN_PURORG can be union to 0vENDOR.
    Any post would be appreciated and thank you all in advance!
    Best Regards!
    Tim

    Hi,
    you can create a link between the vendor objects itself, means link 0vendor with 0ven_compc and 0ven_purorg. This should give you a list of all vendors multiplied with the comp codes multiplied with the purch. org. May be here it is possible to create another link between a attribute (eg. comp_code of 0ven_purorg with comp_code of 0ven_compc). In case it is not possible you need to add this link information somehow. Another option might be to create 2 queries. One on a infoset of 0vendor and 0ven_purorg and another one on 0vendor and 0ven_compc.
    regards
    Siggi

  • How to build a server?

    Hey,
    Can anybody tell where I can find online tutorials on how to build a server using java?
    Thanks

    @bender02
    Thx very much for your link. This ready-made solutions can help me to save a lot of otherwise wasted time. QNAP's NAS solution looks good and this Bubba|Two (though it doesn't have mirroring via raid1) is also very attractive.
    I am very interested in what server solution you use.
    My planned server is really for local network uses only. It should serve for file related purposes like file sharing over the network, backup (maybe with raid1) and a centralized data storage.
    I think I will settle with one of this commercial and ready-for-use systems. The thought to tinker around and to make everything by yourself is very temptating but I am getting weary of it. And I dont have the time to tinker around as I have to study enormous amounts
    If I did everything by myself I would have to learn how to handle ssh and rsync, which software is suited for what purpose, how I can configure each software to fit my needs and at last I would have to work on some scripts or search for them to achieve a workaround. And this takes for weeks and months, time that I can't afford -.- sometimes a desktop alone can be enough work to do, when I want everything to be "perfect" and "secure". In the past the guys worked on their motorcycles and now they work on their computers, hehe
    So if nobody has a very good reason why I should tinker around, then I'll buy some ready-for-use stuff.
    Last edited by hauntergeist (2009-04-11 20:55:56)

Maybe you are looking for

  • Sharing Files between Mac's in the same Network

    ok, I have a Mac Pro and my sister has an iMac I know how to share files but I get annoyed by this: 1)I only want to share my "Public Folder" but instead, it not only shares my Public folder but also my "Macintosh HD and System" Folder. And I cant fi

  • Reader 9.3.3 (Vista) : problem to launch external application

    Hello! I have a file which have links to start external application. In Adobe Reader 9.3.3 (Windows Vista), I have that dialog box (in french, sorry) : How can I activate launching external applications? Thank you for your help. François

  • JavaScript Console Problem (only in LS preview mode)

    Hello, my JavaScript console "crashes" in preview-mode in lifecycle designer. It just appears for a "millisecond"´, well I see it flicker at last. It doesn't matter if there is a syntax error or if I try to start the console by clicking a button ( Ev

  • TS1424 error in downloading from itunes incomplete song download (4 times)

    several times now, when purchaing an album, some of the songs are either not downloaded and won't play, or defective. I can't contact apple. Any suggestions?

  • How to see which company codes are affected by a WT

    Hello Community, Hope you all are doing well, I would like to consult you because I have this situation, I want to know what company codes are affected by a particular WT in an specific country, is there any report or Transaction or do you know a way