Makepkg would be better if ...

Well, I may be puting my foot in my mouth as I am far from being an expert at packaging.
makepkg would be better if rather than directly call build() to compile and package, the process would be separated in
2 distincts functions: compile() and package(). compile() would be called as the normal user, and package() would be called in fakeroot environment.
An other possible change (which I am more hesitant) would be to automatically call CVS and or SVN (etc.) to get source code BEFORE unpacking the archives.
-Why have compile() and package() as distinct function?
-Because some programs need to combine different archives (libraries), and require to copy files around (.h and .a or .so files) in the src directory before compiling. Now, this make the copied files be own by root because of fakeroot. When you rebuild, you get errors because you have not the right to overwrite the copied files, moreover, to erase src, you have to become root. Running compile() as normal user, and package() in fakeroot environment more closely follows what a packager would do without makepkg.
-Ok, why do you want to have makepkg get source code by revision-control software by itself rather than write it yourself?
-Well, my problem is linked to the previous. You cannot svn checkout over a directory that contains the libraries, but you can svn checkout, then decompress libraries over in the same directory. Now, source files (in which I have tar libraries) are decompress before SVN checkout, which make it impossible to have libraries decompress over SVN checkout. But if makepkg was to get source itself, it could get source, and THEN, decompress sources (libraries) that would sit nicely in the source directories, making it less necessary to copy files around
-If we use compile() and package(), then you could simply copy the libraries manually in compile without problems, no?
-indeed, not ideal, but yes it should work fine.

The first point is indeed more interesting, and besides there is already a patch for it:
http://git.neptune-one.net/pacman?a=com … 3c6960269c
It didn't get much interest when it was first submitted, but it will be looked at again.
The second one looks less interesting and with a more limited usage.
But if you care, you should put it as a feature request on bugs.archlinux.org rather (pacman section).
It's of course even better if there is a patch included also

Similar Messages

  • Which Imac would be better for gaming?

    So i've got a choice between these two models -
    £1329.60
    3.1GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz
    TB Serial ATA Drive @ 5400 rpm
    8gb Ram
    NVIDIA GeForce GT 750M 1GB GDDR5
    Apple care
    27 inch model
    3.2GHz quad-core Intel Core i5
    Turbo Boost up to 3.6GHz
    8GB (two 4GB) memory
    1TB hard drive1
    NVIDIA GeForce GT 755M with 1GB video memory
    Apple care
    £1407.60
    Basically, the decision is down to, do I want a slightly better graphics card and bigger screen, or a smaller screen and better processer?
    I just want to gauge opinions, i'll be using it as my day to day computer as well, some video editing, but nothing too strenuous. How big is the difference in graphic and processing powers.
    Thanks for your help

    With all due respect the question was "which iMac would be better for gaming?".  Key word here is 'better', not 'perfect', not 'ideal'; just 'better'. Unqualified answers and/or sweeping statements do very little to contribute to a discussion, let alone answer the question under consideration.

  • I am going to university this fall for engineering and I was wondering which macbook pro (13 or 15 inch) would be better.

    I am going to university this fall for engineering and I was wondering which macbook pro (13 or 15 inch) would be better. Is the larger screen worth the extra weight ? I will be doing some computer programming and I feel like reading code on a smaller screen could be a bit of a pain. Also, what is the best option in terms of backup? I don't anticipate having a lot of video but I will have some pictures, music files as well as regular documents and spreadsheets. I'd also like to get an idea of how good the battery life is. Thanks in advance:)

    The 13" will do the trick for what you describe as your needs, Be sure to consider how you will backup your data -- need an external drive?
    Also be sure to check with your college or division of study to see what they recommend. If they are hostile to Macs, you may be on your own for finding support. But in most major cities, that will not be too hard.

  • Which USB n card would be better to use?

    Hi all,
    I was wondering if anyone has used either of these products and if so, which would be the better one to get. I have an older Mac Mini, and I want to connect it to wireless N and my Airport Extreme base station, but I need to know which would be the better of the 2 to select. Any help would be greatly appreciated even if you've not bought them, which would be better to get?
    Thanks,
    [nNano|http://www.quickertek.com/products/n_nano.php]
    or
    [MacWireless USB|http://macwireless.com/html/products/wirelesscards/11ncards/11nUSB.php]
     Mac Mini 1.83 GHz Core 2 Duo 1 GB RAM 80 GB HD Mac OS X (10.6.2)  iMac 3.06 GHz Core 2 Duo 4GB RAM 500 GB HD Mac OS X (10.6.2) iPhone 3G

    Sorry, I don't have either product, but I would ask each vendor at least two questions: 1) Does the adapter support both the 2.4 & 5 GHz radio bands for 802.11n?, and 2) Their return policy if not satisfied.

  • Can anyone suggest which NI-Smart cam would be better for my application???

    We are planning to automise the vision inspection System. Our need is to check OD(15mm),ID(8mm),Height(3.5mm), Potting(Presence of cracks,bubbles,etc),Pin placement, Height of pitch. Which NI-Smartcam would be better for implementing this application.

    Hi swathirangaraj,
    why don't you call your local NI sales support when you want to know about NI cams?

  • With Firefox, whenever I drag a URL icon to the desktop, it morphs into a generic Firefox logo. The specialized icons would be better....is there a way to preserve them?

    With Firefox, whenever I drag a URL icon
    to the desktop, it morphs into a generic Firefox logo. The specialized
    icons would be better....is there a way to preserve them?
    if this is a duplicate post - I apologize- new here

    Hi!
    It seems that you are looking to customize the icons in your desktops with the Favicons of an specific site (the small logos next to the URL as you call them).
    I'm not sure if any add-on exists but by default it's not possible to do what you are looking for.
    I hope it help, at least a little bit.

  • I have a Apple MacBook Pro "Core i7" 2.8 13" Late 2011. i want to upgrade its RAM from 4GB to 16GB. But OWC sells two kinds of RAM, the DDR3 and the DDR3L.What is the different and which one would work better for my mac. Thanks!!!

    Please help! I have a Apple MacBook Pro "Core i7" 2.8 13" Late 2011. i want to upgrade its RAM from 4GB to 16GB. But OWC sells two kinds of RAM, the DDR3 and the DDR3L.What is the different and which one would work better for my mac. Thanks!!!

    I don't see any DDR3L on the page for the RAM that would fit your model -> http://eshop.macsales.com/shop/memory/Apple_MacBook_MacBook_Pro/Upgrade/DDR3_133 3MHz_SDRAM.
    But the answer is that it doesn't really matter - just make certain to get 1333MHz.
    Good luck,
    Clinton
    MacBook Pro (15-inch Late 2011), OS X 10.??, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

  • What would be better a new iPhone 3gs or a used iPhone 4?

    what would be better a new iPhone 3gs or a used iPhone 4? The iphone would be 2yrs old and belonged to my sister. I am weighing my iphone options, help!

    I'm sorry I should have been more specific with the situation. I currently own an iPhone 3gs which is still under warranty, I am going to get a new one because I am having some issues with the phone. However, my sister offered me her old Iphone 4 if i want it. Now I am not sure whether I should take her 2 year old iphone 4 or just keep the 3gs I get from the apple store...???

  • HT4623 This really ***** that they sent out and update to the iPhone ISO6 and I can't send or receive pics! Being that its apple you would think they would know better than to send out a bad update like this! I'm paying for a service and I can even use it

    This really ***** that they sent out and update to the iPhone ISO6 and I can't send or receive pics! Being that its apple you would think they would know better than to send out a bad update like this! I'm paying for a service and I can even use now!!! I'm very upset! Think about canceling my iPhone 5 order! This is terrible!

    Wahhhhhhhhhh! Wahhhhhhhhhh!
    Are you over your little tantrum now?  Do you want help you would like to continue to act like a toddler?
    If you want help, try telling us what happens when trying to send pics.  Any errors?
    If you want to whine... go somewhere else.

  • Need to update to 10.4, but wondering if 10.5 would be better

    Right now I'm using 10.3.9, but I need to upgrade to at least 10.4 to be able to keep using TurboTax, but there's another application I'd like to get that needs 10.4.11. It seems to be kind of hard to find 10.4 any more, but I'm wondering if I would be better off to go right to the new 10.5, and if it's even possible to go right from 10.3 to 10.5. I'm assuming those new apps that ask for 10.4+ would work in 10.5, but is that too much to assume? If it's best that I upgrade to 10.4 first before I go to 10.5, can anyone tell me where would be the best place to find it? Apple doesn't seem to sell it anymore, and the searching I've done so far only comes up with it in a "family pack" for about $250, and I would think that I should be able to find a single copy of it much cheaper than that. Also, another question: my G4 is supposed to have a CD/DVD drive, but when I insert a movie DVD, it's not recognized. What's with that? Any help I can get with any of this will be much appreciated!

    HI Valerie!
    If you know what to look for, a Full Retail Version, of the Tiger Install DVD, can also be purchased, sometimes less expensively, at some online Apple retailers, Amazon, eBay, FastMac, HardCore Mac, AllMac, etc.
    Be sure not to purchase grey, upgrade or machine specific CDs or DVDs.
    Tiger and Leopard are on DVD.
    The disc should look exactly like the images in the above links, and not say Upgrade, CPU Drop-in DVD, or "This software is part of a hardware bundle purchase - not to be sold seperately." on it.
    Additional info in these links.
    Using OS X Install CDs/DVDs On Multiple Macs
    What's A Computer Specific Mac OS X Release
    Software Update, Upgrade: What's The Difference?
    Caveat Emptor!
    If any are presently available, examine these items very carefully, and if in doubt, ask questions of the seller before purchase!
    Tiger On eBay
    If your Mac meets the Tiger System Requirements, once Tiger 10.4x is installed, you can use the PPC 10.4.11 Combo Update, to upgrade to the current version.
    Additionally, Tiger 10.4.x ships on a DVD, so if your Mac doesn’t have a built-in DVD-ROM player, or in your case, it isn't working, you will have to use an alternative method of installation.
    Info here Installing Tiger Using Firewire Target Disk Mode.
    And here Installing Tiger Without A DVD Drive.
    The Tiger Media Exchange Program, referred to, is no longer available.
    There is also a version available on CDs, at FastMac.
    Shop Carefully, Examine All Documentation, And I Wish You Success!
    ali b

  • Hello, i am interested in buying a 2010 Closeout imac 21.5 One model Is Z0JM5LL/a which has a intel i5 processor and the other is MC509LL/A which has a Intel i3 processor i figured the i5 would be better but specs say the i5 only has one processor

    Hi i am interesed in buying out a closeout model of a Imac 21.5 imac The 2 models are Z0JM5LL/A which has a Intel i5 processor and the other is MC509LL/A which has a Intel i3 processor I figured the i5 would be better has better specs but it says the i3 has a dual core Meaning 2 processors and the i5 only has a single Processor meaning i would think then teh i3 is better or is it false specs about the i5 do they both have dual Core Or which one is better Remember these are 2010 Models Not the New Quadcore Which Processor i am looking at is better????

    Both the I3 and I5 are dual core processors.  The I3 should be the 3.2Ghz model, which has an upgraded video circuit over the base model, which is good. The 21.5" I5 would have the same video circuit. It also has turbo boost, that the I3 doesn't have, which can boost it's speed from 3.6Ghz to 3.86Ghz when needed.
    If you need to compare the 2010 and 2011 models (or even 2010 only comparisons), here's some benchmarking: http://www.barefeats.com/imac11b.html , http://www.macworld.com/article/159631/2011/05/201127inimac31ghz.html , http://www.macworld.com/article/159765/2011/05/imac2011.html

  • I bought a 32 GB while visiting Las Vegas on 24/07/11, I am now back home in the U.K. and think that the 64 GB would be better for me, can I exchange the US model in the UK for the 64 GB and pay the difference? any help or guidance would be appreciated.

    I bought a 32gb Ipad 2 while visiting Las Vegas on 24/07/11, I am now back home in the UK and now think that the 64gb would be better for me, can I exchange the US model in the UK for the 64gb model and pay the differnce? Any help would be appreciated. Thanks

    Thanks for your quick reply Klaus. I forgot to mention that I live in Northern Ireland but will be flying from Dublin in the Republic of Ireland so I'm not sure that this will be an issue as I don't hold an Irish passport, therefore how can they charge me their form of VAT? Maybe they can, I just don't know,
    Pat

  • Trying to install idvd on lion version but does not let me....it would be better if i go to older version

    im trying to install idvd on lion version 10.7.2 but does not let me....it would be better for me if i downgrade my version

    You are attempting to use one the Install DVD's that came with your old Mac, these discs are machine specific so that is why it won't work plus this is a violation of the license agreement. You will need to buy iLife 11 if you want to get iDVD, it is still available from Amazon. Here is a link:
    http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=ili fe+11&x=0&y=0

  • What is the difference between a VGA adapter and an AV adapter? Which would be better for my iPad 2 if I just wanted it for games and browsing the Internet?

    If I just wanted to play games and surf the web, would a VGA adapter or an AV adapter be better? For my iPad 2? I asked my family for a VGA adapter for Christmas and I'm not too sure if it's the one I want. Also, what is the difference?

    HDMI Adapter

  • What preset MacBook pro would be better for video editing and eventually college?, What preset MacBook pro would be better for video editing and eventually college?

    Hi,
    I am thinking about getting a MacBook Pro.  My current computer is very very old and can not be used.  I would like to use it for video editing and eventually to use when I go to college.  I want to get one of the preset 13 inch MBPs.  I do not know which one will be better for my purposes.  Could anyone please help me??

    Any computer made today, Windows or Mac, will be MILES ahead of what you are now using.
    Raw CPU speed is not the total benchmark of a computer. Look at it this way. A 2.6GHz CPU made today is much faster then a 2.6GHz CPU made just a few years ago, like 3 years ago. the difference between a 2.6 and a 2.9GHz CPU is 3 tens of 1 GHz, 300MHz. The percentage difference is about 8-9 percent (.08-.09). Back when CPUs were listed in MHz, 120, 300, 600, if you have a 300MHz CPU and you replaced it with one that was 300MHz faster that was a Big Jump. You doubled the computing power. Today 300MHz, .3GHz, is next to nothing. Especially for the price jump.
    Note that when you make the switch you will either need to update your program, that means Re-Buying most of them, to work on the Mac OS or install a version of Windows in either a Boot Camp partition, Dual booting the Mac, or into a Virtual Machine software program to run the Windows version of those program.
    If you decide on a Mac buy the BASE model that is offered for the CPU speed you want. The RAM and hard drive can be upgraded by you for much less then what Apple charges for those upgrades. With the hard drive if you upgrade it to a larger and faster drive, Apple supplies 5400RPM drives, like a 7200RPM drive you get to Keep the original drive to use in any way you like. Like an external drive.

Maybe you are looking for