[solved] building a package with bjam

Hello all,
I'm trying to figure out how to create a package that builds with bjam. When I build the package manually, I only need to run
./bjam --prefix=/usr --with-feature1 --with-feature2 ...etc
and the binaries are created correctly. I need to use "./bjam" because the project supplies its own version of bjam to reassure compatibility with its code.
When I use the same command inside the PKGBUILD, compilation starts fine and in the end I get an error in the build() function, without further explanations.
Since I'm not at all familiar with bjam, can anyone point me to some sample PKGBUILDs or give me some tips how to create the PKGBUILD?
TIA
EDIT: It seems no special procedure is needed. The problem occurs due to a failure in the bjam build which forces makepkg to abort.
Last edited by panosk (2012-09-10 19:35:29)

The pkgtools package will do this for you.
See https://wiki.archlinux.org/index.php/Pkgtools for instructions on how to set it up.
Last edited by szim90 (2011-08-03 14:25:58)

Similar Messages

  • How to use single ant build to package with and without native extensions

    Hi,
    I am using iOS native extensions for Adobe air. For this I am listing the extensionid in the application descriptor file. Since the package with native extensions are meant to run only on device, I want my build script to work without native extensions too to be able to run on simulator. Is this manadatory that I need two separate application descriptors/basically two build scripts to compile and package them? Please suggest and let me know if more explanation is needed.
    Thanks,
    Swathi.

    why are you wanting to use single frames?
    They allow having the initial frame address stay in the
    address bar, and not
    show the linked page's address. The problems they cause
    usually override any
    value.
    Or- if we aren't using the same words the same way, please
    give an example
    site of what you want to do.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How to build distribution package with Agilent VISA as primary

    Hi everybody,
         I build a distribution package under LW 8.0 in a PC(Agilent VISA is primary), then I install the distribution package in another PC.
    But I found the distribution package install NI VISA as primary in another PC. So How could I make Agilent VISA as primary when I build Distribution Package?
    Does anyone can help me?

    TaoZ,
    Does your application use both NI-VISA and Agilent VISA? NI-VISA is only functional as the primary VISA, so if you need to use both NI-VISA and Agilent VISA, Agilent VISA will need to be secondary. If you are using just Agilent VISA, then you should not need to install NI-VISA. If you already have NI-VISA installed on the system, then typically Agilent VISA will overwrite NI-VISA because they use higher version numbers than us, but this is not necessarily always the case. Which version of each driver are you working with?
    National Instruments
    Product Support Engineer

  • Building CS5 package with AAMEE

    I am trying to build a CS5 master collection deployment package for use with the Casper suite using AAMEE 2.1 on the Mac OS 10.6 and 10.7 systems.
    The build begins, but then ends with an error message.
    The log of the error looks like this:
    [ERROR] AdobePackageBuilder - OS ErrMsg : Failed to copy object. ErrorCode (-128) ErrorString (userCanceledErr:).
    [ERROR] AdobePackageBuilder - Aborted the copy operation.
    [FATAL] AdobePackageBuilder - Error Failed to copy the contents of the folder.
    [ERROR] AdobePackageBuilder - Failed to copy Payload folder (AdobeGermanSpeechAnalysisModels2All)
    This occurs when trying to build the package from the installation disks.
    If I try to copy the disks to my computer first, some of the payload files won't copy from the disk.
    Any suggestions for overcoming these issues?

    Hi,
         Can you give us some more information on what you are doing:
    - Are you using the same machine to mount the disks and creating the package?
    - What is the error you are receiving when you are trying to copy the disks in your computer?
    Also, please send me PDApp.log and PackageBuilder Log so that we can have a lead.
    Thanks,
    Abhishek | [email protected]

  • [SOLVED]I can build a package with "make install" but not with makepkg

    I'm quite new to Arch and it's my first PKGBUILD.
    I successfully built the software lhapdf http://www.hepforge.org/archive/lhapdf/ … 3.1.tar.gz with the traditional system:
    1) I do a patch for compatibility with gcc 4.3
    cd lhapdf-5.3.1
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    and then
    ./configure --prefix=/usr
    make
    sudo make install
    Then I tried to write a PKGBUILD
    pkgname=lhapdf
    pkgver=5.3.1
    pkgrel=1
    pkgdesc="Unified and easy to use interface to modern PDF sets"
    arch=(i686 x86_64)
    url="http://projects.hepforge.org/lhapdf"
    license=('GPL')
    groups=()
    depends=()
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
    noextract=()
    md5sums=() #generate with 'makepkg -g'
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    #Change needed in order to compile with gcc 4.3
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    and it doesn't work. The last lines of the output of makepkg are:
    g++ -march=nocona -O2 -pipe -o .libs/test-lhapdf-ccwrap test-lhapdf-ccwrap.o -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap -L/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src -lLHAPDFWrap /home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/src/.libs/libLHAPDF.so -Wl,--rpath -Wl,/usr/lib
    /usr/bin/ld: cannot find -lLHAPDFWrap
    collect2: ld returned 1 exit status
    make[1]: *** [test-lhapdf-ccwrap] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/home/cafarell/abs/lhapdf/src/lhapdf-5.3.1/ccwrap'
    make: *** [all-recursive] Error 1
    ==> ERRORE: Compilazione interrotta.
    L'operazione sta per essere interrotta...
    Any idea?
    Last edited by alcafar (2008-04-09 11:03:00)

    Thank you Snowman, it works with options=('!makeflags'). The changes in the paths were not needed, I copied them from /usr/share/pacman/PKGBUILD.proto, probably is some new feature.
    Now, I'd like to post the PKGBUILD to AUR. This is currently my PKGBUILD:
    # Contributor: My name <[email protected]>
    pkgname=lhapdf
    pkgver=5.3.1
    pkgrel=1
    pkgdesc="Unified and easy to use interface to modern PDF sets"
    arch=(i686 x86_64)
    url="http://projects.hepforge.org/lhapdf"
    license=('GPL')
    groups=()
    depends=(gcc-libs)
    makedepends=()
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=('!makeflags')
    install=
    source=(http://www.hepforge.org/archive/lhapdf/$pkgname-$pkgver.tar.gz)
    noextract=()
    md5sums=('df667840071996d2c58a125567be26b2')
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    #Change needed in order to compile with gcc 4.3
    sed -i "s/<string>/<cstring>/" ccwrap/test-lhapdf-ccwrap.cc
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    I have the following output from namcap:
    $ namcap lhapdf-5.3.1-1-x86_64.pkg.tar.gz
    lhapdf W: File (usr/lib/libLHAPDFWrap.la) is a libtool file.
    lhapdf W: File (usr/lib/libLHAPDF.la) is a libtool file.
    $ namcap PKGBUILD
    PKGBUILD (lhapdf) W: Missing Maintainer tag
    PKGBUILD (lhapdf) W: Missing CVS Id tag
    and this output from ldd
    $ ldd libLHAPDF.so
    linux-vdso.so.1 => (0x00007fff86dfe000)
    libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00002b70367fe000)
    libm.so.6 => /lib/libm.so.6 (0x00002b7036ace000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b7036d52000)
    libc.so.6 => /lib/libc.so.6 (0x00002b7036f69000)
    /lib/ld-linux-x86-64.so.2 (0x0000555555554000)
    $ ldd libLHAPDFWrap.so
    linux-vdso.so.1 => (0x00007fffeeffe000)
    libLHAPDF.so.0 => not found
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b11bbd53000)
    libm.so.6 => /lib/libm.so.6 (0x00002b11bc060000)
    libc.so.6 => /lib/libc.so.6 (0x00002b11bc2e3000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00002b11bc636000)
    /lib/ld-linux-x86-64.so.2 (0x0000555555554000)
    What should I add to PKGBUILD?
    The program is in fortran, so I'm surprised that namcap did not add gcc-fortran in the dependencies. Should I add it to depends or makedepends? Or maybe it is included in gcc-libs?

  • Trouble building klibc package with Zen kernel

    Hello,
    I'm using a kernel from the latest Zen-Sources Git (in other words, a modified 2.6.29-rc). I'm trying to build klibc, but having trouble. I'm using the klibc PKGBUILD and files with only a slight modification to _kver to point to my kernel under /lib/modules.
    The build process goes until:
    KLIBCLD usr/utils/shared/sync
    KLIBCLD usr/utils/shared/dmesg
    INSTALL headers + man pages to /root/klibc/pkg/usr/lib/klibc
    cp: cannot stat 'linux//include/asm/./asm': No such file or directory
    make[1]: *** [header] Error 1
    make: *** [install] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    The problem is in /src/klibc-1.5.15/scripts/Kbuild.install, near the end (under the big comment block). I won't post the code block because it's massive and I don't have copy+paste because of something unrelated, but you can get it from using ABS.
    I don't know if the problem is because of 2.6.29, zen, or something I'm doing. I tried disabling a few of the patches we used, and I looked at the patches in the (sort-of-outdated) klibc-zen package in the AUR, but none of those seem to be related at all.
    Thanks for any help!

    create symlink asm to asm-x86
    this is on 32-bit system,

  • [SOLVED] Building VCS packages from AUR fails

    Hello,
    Whenever I try to build a git or svn package from AUR, build fails with the error in a clean chroot enviroment:
    ==> ERROR: Unknown download protocol: svn
    Aborting...
    When the build starts, makepkg actually downloads source files properly. Any clues?
    Last edited by yuan_modu (2015-04-02 16:31:03)

    Trilby wrote:How many packages has this happened with?  Can you give an example of one that produces this error?  If the download proceeds when the build starts, it sounds like the PKGBUILD is outdated and is manually grabbing the source in the build function (in pacman<4.0 style).
    I was building https://aur.archlinux.org/packages/uefi-shell-svn: a popular and up-to-date PKGBUILD.
    Indeed I didn't merge the conf files of  clean chroot. There was a makepkg.conf.pacnew, the lacking part in my old makepkg.conf was:
    VCSCLIENTS=('bzr::bzr'
    'git::git'
    'hg::mercurial'
    'svn::subversion')
    and some small changes. Everything works fine now. Was my bad. Sorry for incovenience and thanks for your help.
    Last edited by yuan_modu (2015-04-02 13:08:21)

  • How to build a package with a hyphen

    Hi guys,
    Im trying to make my own wine 1.0-rc1
    Ive tried just changing the pkgver but i get
    ERROR: pkgver is not allowed to contain hyphens.
    so what is the preferred method of doing it?
    Thanks

    kumico wrote:i think the convention is to create a new variable called _pkgver with the real required pkgver, and set pkgver to one without the hyphen
    no it is not. Please be sure you've read the Arch packaging standards before commenting on such things.
    http://wiki.archlinux.org/index.php/Arch_Packaging_Standards wrote:Do not introduce new variables into your PKGBUILD build scripts, unless the package cannot be built without doing so, as these could possibly conflict with variables used in makepkg itself. If a new variable is absolutely required, prefix the variable name with an underscore (_)

  • [SOLVED] searching a package with pacman/yaourt

    Sometimes i encounter a crash of kmix application on OS bootup. When i try submitting a bug report, it says that "The generated crash information is probably not useful'. The needed packages say i should be having, among others, 'libQtGui.so.4'
    How do i search which package provides this file? I have tried a few options with -Q and -S, but that doesn't seem to work. Any pointers?
    Last edited by njathan (2012-03-17 10:13:03)

    njathan wrote:
    Thanks much!
    [edit] BTW i could not find pkgutils, but pkgtools
    Sorry, pkgtools is the one

  • [SCRIPT]: Build AUR Packages With Ease

    I just started to use Arch, and coming from Ubuntu/Debian, it was a bit of a shock, but Arch does grow on you.  One of it's strengths is the AUR.  When I first found out about it, I was all like, "HOLY $#!% ITS MACPORTS FOR LINUX."  Turns out is isn't quite as easy to use, but it works.  Walking into Arch, the only languages I was comfortable writing code in were C/Objective-C.  Tonight I learned a little bash and wrote this wrapper around makepkg.  Tell me what you think.  The only thing missing that I can think of is dependency resolving, but I didn't want to put in the work for that just yet.
    #! /bin/bash
    ROOT=`pwd`
    BUILDDIR=pkgbuild
    NAME=$2
    PREFIX=`expr ${NAME:0:2}`
    URL=http://aur.archlinux.org/packages/$PREFIX/$NAME/$NAME.tar.gz
    echo Package URL is $URL
    setup() {
    mkdir -p $BUILDDIR/$NAME
    cd $BUILDDIR
    download() {
    curl $URL | gunzip | tar -x
    cd $NAME
    build() {
    makepkg -s 1>/dev/null
    install() {
    makepkg -si 1>/dev/null
    clean() {
    cd $ROOT/$BUILDDIR
    rm -rf $NAME
    allclean() {
    cd $ROOT
    rm -rf $BUILDDIR
    case $1 in
    install)
    setup
    download
    install
    build)
    setup
    download
    build
    clean)
    clean
    allclean)
    allclean
    echo "Usage:"
    echo $0 "{install|build|clean|allclean} <package>"
    esac
    Here is the command syntax:
    Usage:
    ./archpkg {install|build|clean|allclean} <package>
    Last edited by Relish (2012-01-16 05:31:33)

    karol wrote:
    Relish wrote:Here are the command synaptics:
    I think you mean 'command syntax' :-)
    You can try to get the BUILDDIR from makepkg.conf.
    Yes
    I can't seem to find that entry in makepkg.conf.

  • [SOLVED] Updating a package with renamed dependency using yaourt

    I am trying to update  aur/python2-epd-oss using yaourt. The problem is that the installed version depends on biopython and the new one depends on python2-biopython. When yaourt tries to replace  biopython with python2-biopython I get this:
    :: python2-biopython and biopython are in conflict. Remove biopython? [y/N] y
    error: failed to prepare transaction (could not satisfy dependencies)
    :: python2-epd-oss: requires biopython>=1.57
    and I never reach te point where aur/python2-epd-oss gets updated.
    How should I update  aur/python2-epd-oss? Is this a case to force the update?
    Last edited by asafparis (2012-12-24 16:59:10)

    pacman -R python2-epd-oss
    yaourt -Syua # and answer yes
    yaourt -S python2-epd-oss
    This isn't really yaourt specific, you'd need to do something like this whenever AUR dependencies change names.
    Yaourt advertises that it manages dependencies ... but it doesn't really.
    Last edited by Trilby (2012-12-24 16:11:09)

  • [Solved] Recommend a package with pacman for "Command Not Found"

    Is there a way to get Pacman to recommend a package name like in ubuntu, for example:
    If I were to type in a terminal ifconfig and it said "Command not found"
    Could Pacman recommend the package net-tools?
    Last edited by jack9099 (2011-08-03 14:33:39)

    The pkgtools package will do this for you.
    See https://wiki.archlinux.org/index.php/Pkgtools for instructions on how to set it up.
    Last edited by szim90 (2011-08-03 14:25:58)

  • [SOLVED] building SAGA GIS with wxgtk 3.0.0 causes compile errors

    My pkgbuild is on pastebin that I'm using to update saga-gis 2.1.1 and it won't compile against wxgtk 3.0.0
    My compile output and the resulting error is on pastebin too.
    I've been told that this could be because saga-gis is looking for or referencing the old wxgtk2.8 libs but I can't tell why.
    I have the following packages related to wxwidgets installed on my Arch box:
    1 extra/wxgtk 3.0.0-2 [installed]
    GTK+ implementation of wxWidgets API for GUI
    2 extra/wxgtk2.8 2.8.12.1-1 [installed]
    GTK+ implementation of wxWidgets API for GUI
    4 extra/wxpython 3.0.0.0-2 [installed]
    A wxWidgets GUI toolkit for Python
    5 extra/wxpython2.8 2.8.12.1-1 [installed]
    A wxWidgets GUI toolkit for Python
    Last edited by saultdon (2014-01-20 14:17:36)

    Yup, saga compiles against wxgtk when it's built without the --enable-slt flag. Luckily for me, saga-gis is the only package I have that relies on wxgtk>=3.0.0 so it shouldn't be affected.

  • [SOLVED] building mysql-workbench with lib32-libpng12

    i installed the mysql-workbench package because i want a gui interface for making query tables (from large database and non-repetitive queries):
    $ pacman -Ss mysql-workbench
    community/mysql-workbench 5.1.18-1
    MySQL Workbench is a cross-platform, visual database design tool developed
    by MySQL.
    however, running the app gives the following error:
    $ mysql-workbench
    /usr/bin/mysql-workbench-bin: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
    looking for a solution gives:
    $ pacman -Ss libpng
    extra/libpng 1.4.0-2
    A collection of routines used to create PNG format graphics files
    community/lib32-libpng 1.4.0-2 (lib32)
    A collection of routines used to create PNG format graphics files
    i cant use libpng12 because i am running x86_64.  as far as i can tell lib32-libpng12 should satisfy the dependency.  however i still run into the error after installing this package and re-installing mysql-workbench.  is there a configuration file somewhere that i can edit to tell the app that it needs lib32-libpng12 not libpng12?  also, what is the reason that libpng (already installed) cannot be used instead of libpng12?  is it possible that libpng12 is inaccessible due to the presence of libpng?
    Last edited by poopship21 (2010-02-08 01:14:27)

    you don't need any libpn12 or lib32-libpng12.
    mysql-workbench doesn't even link it to libpng and other dependency is linking to it.
    mysql-workbench is linking to /usr/lib/libgtk-x11-2.0.so.0 (gtk2) who link to cairo, who needs libpng.
    you have other cairo package installed? pacman -Qs cairo. if so, is your job to rebuild any unsupported packages
    Last edited by wonder (2010-02-07 22:59:45)

  • [SOLVED] How to install AUR packages with patchname.patch

    Hi all,
    I'm trying to install lottanzb from the AUR and there's are a dependency called par2cmdline 0.4-13 that has a lot of nameofpatch.patch that are included in the AUR par2cmdline 0.4-13 package page that just open up to a url that shows code.
    I created patch files from the code displayed in the url with a text editor and added them to the extracted LOTTANZB folder in my build directory but when I go to build the package with PKGBUILD it runs through a check sum while building and the checks don't match.
    I'm obviously doing something fundamentally wrong here. Can someone direct me?
    Thanks,
    Last edited by bennylb0 (2010-05-28 13:30:16)

    Hi, thanks for reply.
    Sorry, my mistake.
    I did place patch files inside the par2cmdline-0.4 folder. The only reason I created the .patch files and placed them inside par2cmdline-0.4 folder was because the PKGBUILD as well as the other 5 .patch files didn't exist inside the extracted build folder. They only place I could find them was in AUR par2cmdline-0.4 displayed as a url.
    When I copied and created the PKGBUILD as it did not exist inside the extracted folder par2cmdline-0.4 folder I received the following error:- 
    Error autoconf.patch was not found in the build directory and is not a url. That along with 4 others do not exist in the build directory.
    You can see this bellow:-
    [ben@ben par2cmdline-0.4]$ makepkg
    ==> Making package: par2cmdline 0.4-13 i686 (Fri May 28 22:08:21 EST 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
      -> Downloading par2cmdline-0.4.tar.gz...
    --2010-05-28 22:08:23--  http://downloads.sourceforge.net/source … 0.4.tar.gz
    Resolving downloads.sourceforge.net... 216.34.181.59
    Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://downloads.sourceforge.net/projec … 0.4.tar.gz [following]
    --2010-05-28 22:08:23--  http://downloads.sourceforge.net/projec … 0.4.tar.gz
    Reusing existing connection to downloads.sourceforge.net:80.
    HTTP request sent, awaiting response... 302 Found
    Location: http://transact.dl.sourceforge.net/proj … 0.4.tar.gz [following]
    --2010-05-28 22:08:24--  http://transact.dl.sourceforge.net/proj … 0.4.tar.gz
    Resolving transact.dl.sourceforge.net... 202.55.147.10
    Connecting to transact.dl.sourceforge.net|202.55.147.10|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 239312 (234K) [application/x-gzip]
    Saving to: "par2cmdline-0.4.tar.gz.part"
    100%[===================================================>] 239,312      179K/s   in 1.3s   
    2010-05-28 22:08:26 (179 KB/s) - "par2cmdline-0.4.tar.gz.part" saved [239312/239312]
    ==> ERROR: par2cmdline-0.4-autoconf.patch was not found in the build directory and is not a URL.

Maybe you are looking for

  • How to formulate an SSRS expression to hid 2 document types if parameter is true

    Hi, I have a report with a Full and Partial Parameter option. If the Full parameter is selected all data should be displayed but if the Partial parameter is selected I want to exclude any entry with a SubmissionTypeID value of 47 and 51 from the repo

  • Uploading in CCM

    Hii all, Here I have a situation where I have a catalog already uploaded in the system,now I want to make changes to the schema of that supplier catalog and I need to change the schema of the procurement catalog also related to that supplier catalog

  • What cameras are compatible with the ipad ?

    What cameras are compatible with the I pad?

  • Entering query criteria in an item(s)

    Hi. In have what I hope is an easy question... In the same way a user can enter the % character in an item on the canvas to query records where the column is Not Null, can the user enter some special character in the item that will query only records

  • Mplayer problem after pacman -Syu

    Hi everybody after i did an upgrade, mplayer started to have problems, the video shows fine, but the sound is choppy almost unrecognizable, i have tried reconfiguring my sound driver with alsaconf and i delete my .xine file but it still the same i al