[solved] llvm & clang - how to combine multiple svn sources

Hi,
recently i created the aur package llvm-amdgpu-svn and am now looking into adding the svn clang, clang-analyzer and llvm-ocaml code also.
Since compiling clang requires the llvm source code to be present, it makes sense to use  a split package for this, like the official llvm package.
This page has the build instructions for clang  : http://clang.llvm.org/get_started.html
In short i need to do 4 svn checkouts, and 3 of them have to be in a specific directory.
All 4 checkouts share the same revision number.
I'd like to stick with the code in the svn prototype pkgbuild, but don't know how to adapt that to do 4 checkouts.
if [[ -d "$_svnmod/.svn" ]]; then
(cd "$_svnmod" && svn up -r "$pkgver")
else
svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
fi
The main problem i have is whether i can use the 'svn up' part for all 4 checkouts.
Or should i just wait until pacman 4.1 is released and use it's new method for VCS sources ?
Last edited by Lone_Wolf (2013-03-28 14:27:41)

Turns out it was simpler then i thought, this is what i'm using now :
cd "$srcdir"
msg "Connecting to llvm SVN server...."
if [[ -d "$_svnmod/.svn" ]]; then
(cd "$_svnmod" && svn up -r "$pkgver")
else
svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
fi
# clang
msg "downloading clang"
if [[ -d "$_svncfemod/.svn" ]]; then
(cd "$_svncfemod" && svn up -r "$pkgver")
else
svn co "$_svncfetrunk" --config-dir ./ -r "$pkgver" "$_svncfemod"
fi
# compiler rt
msg "downloading compiler-rt"
if [[ -d "$_svncrtmod/.svn" ]]; then
(cd "$_svncrtmod" && svn up -r "$pkgver")
else
svn co "$_svncrttrunk" --config-dir ./ -r "$pkgver" "$_svncrtmod"
fi
msg "SVN checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_svnmod-build"
msg "copying llvm"
svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
msg "copying clang"
svn export "$srcdir/$_svncfemod" "$srcdir/$_svnmod-build/tools/clang"
msg "copying compiler-rt"
svn export "$srcdir/$_svncrtmod" "$srcdir/$_svnmod-build/projects/compiler-rt"
Using the correct vars and giving them the correct value was the hardest part.
Now it's onwards to creating the rest of the PKGBUILD.

Similar Messages

  • HT4059 I'm trying to organize my PDFs in iBooks on my ipad2 and I can't figure out how to combine multiple PDFs into one. Any thoughts?

    I'm trying to organize my PDFs in iBooks on my ipad2 and can't figure out how to combine multiple PDFs into one. Any thoughts?

    I'm trying to organize my PDFs in iBooks on my ipad2 and can't figure out how to combine multiple PDFs into one. Any thoughts?

  • How to combine multiple Unmanaged Solution to one single Managed solution

    Hi,
    How to combine multiple Unmanaged Solution to one single Managed solution.?
    There were some other third party developer have kept things lik ein UAT there are 2 release solution and both are Managed Solution.
    And in Production the changes are only deployed for release 1 and for the release 2 changes deployment needs to be done.
    But when i import that second release Managed Solution from UAT to Production then i got number of elements missing but i have checked they are already there in Soolution.
    I did some R&D on this but not much helpful.
    I thought i require to convert Unmanaged Solution of Production environment to Managed first for first release and then needs to import Managed solution of UAT to Production for second release.
    Is this the right way to overcome form this situation?
    Any help and response would be really appreciated.
    Thanks.
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Hi, 
    You can prepare unmanaged solution by adding all the components from the default solution,which are there in the managed solution, If Customizatiable entity is true in  the managed solution.

  • Can we combine multiple data sources in single report?

    <span style="font-size: 10pt; font-family: Verdana">Can we combine multiple data sources in single report?</span>

    If you can&#39;t do this at the Metalayer (BVs or Universe) - then subreports and shared variables are the method for CR to use multiple datasources in the same report.

  • How to combine multiple purchased aac files into one aac file

    I recently purchased in iTunes an album consisting of 16 m4a files.  I ended up creating a playlist in iTunes for the songs.  I would like to create one m4a file which combines all and then play it in iTunes.  Is the copy protection preventing me from doing so?
    I know how to convert m4a files that I have converted to mp3 and combine them using Terminal with a cat command.  Then I import that combined file into iTunes.  All is well in this case.  I tried this with the 16 m4a files and I could not import the resultant mp3 file into iTunes.
    Any way to combine multiple purchased aac files?

    A simple way to accomplish the job, though not recommended is to print the 2 page file to a new PDF with multi-up (assuming you select vertical rather than horizontal locations) and adjust the paper in the Adobe PDF printer to be 8.5X22. At least you might give it a shot. Some variation, along with rotation possibly, might work.

  • How to Combine multiple files into the one file?

    Hi all,
    How do I combine multiple canon hf10 avchd files into the one file with a new extension. No need to be compressed.
    Afterwards, I also want to split this combined file to original files.
    Need Help!

    Yes, angelanna. You can merge or split your video file via FCP sequence.
    ahaah, maybe I think angelanna would like to get the resulting file with MTS format because he mentioned “No need to be compressed”. Are you asking for this, angelanna?
    If so, a simple MTS files managing and editing tool  is needed. Maybe you can have a try the Mac version of Aunsoft Final Mate for managing HD camcorder footages. I just downloaded its free trial version and it offers a simple way of garping footages directly  from camcorder. And also it provides a attractive feature to join flawlessly and split accurately native MTS files for video file output with original MTS format.
    Maybe this is the tool cwhich an help you out, angelanna.
    Enjoy your video.

  • How to combine multiple MailAttachement-x payload to One -Help Please ?

    Hi Friends  ,
                      In my scenario My Mail sender Adapter reading attachment . It works fine for 1 attachement but <b>if more than</b> one comes<b> It is reading all</b> attachements  <b>but  it is converting the First attachement only  to XML format </b> , rest  of files are left as it is.
             Can you please tell me how to combine all the Mailattachements and then covert into XML ?
              In our Mail  Sender configurations  , I am giving parameters for MessageTransFormBean like
               xml.documentName                -    MT_Row
               xml.documentNameSpace      -     http://com.test
                xml.fieldNames                      -    Details
               xml.fieldSeparator                   -     ' \n'
               xml.ProcessFieldNames         -  FromConfiguration
      In PayLoadSwapBean
               i am giving propertieslike Content-Description , Content-Disposition , attachement;filename="MailAttchement-1.txt" and all other configuration i am giving.
           I am not clear as if will it WorkFor Multiple attachement ? I can understand as it wil work for Only one attachement . But if i can get multiple attachemnt 1 with proper XML conversion  ( our DataType )  , rest of files are  with out XML
    conversion . How can i process those files also as XML converted ?
            Expecting your reply asap !
    Regards .,
    V.Rangarajan

    > Can you please tell me how to combine all
    >  the Mailattachements and then covert into XML ?
    This is not possible without a self-written adapter module.
    Regards
    Stefan

  • How to Combine Multiple Physical Queries

    Hi All,
    I have a big reports with over 70-80 columns in Answer. This is not a Pivot report. Now it is generating 3 physical queries .
    I need to merge this 3 queries into a single query. But it seems very hard to implement.
    Couple of points:
    1. Report is generating 3 physical queries. All queries are GROUP BY queries and each of them giving different count separately
    2. If we find a way to combine. The result would be different from Answers Report Result (This is my assumption)
    3. How Answer is combining the results from 3 queries and showing us the result?
    Any input or thought is high appreciated.
    I'm totally stuck in there. Tried different ways. But is there any solution for this that I'm not able to think?
    Pls Help
    Thanks in Advance
    Regards
    Sudipta

    Hi Kranthi,
    Thanks for you reply.
    I need to combine multiple report queries into one and give it to ETL guys. I don't have to do anything in Answers. This is my requirement.
    I'm good in SQL. So I tried to combine like the following. Taking a small scenario.
    In this case, Anlytics is generating following 2 queries:
    Query 1:
    select sum(x), [Fact column]
    sum(y), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    Query 2:
    select sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    I'm trying to combine it:
    Query 1:
    select sum(x), [Fact column]
    sum(y), [Fact column]
    sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from
    (select sum(x), [Fact column]
    sum(y), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    ) q1,
    select sum(z), [Fact column]
    column1, [Dim column]
    column2, [Dim column]
    column3, [Dim column]
    from table1,table2,table3
    where [All joins]
    group by column1,column2,column3
    ) q2
    where
    q1.column1=q2.column1 and
    q1.column2=q2.column2 and
    q1.column3=q2.column3
    But i think it is not the correct way may be, as i'm getting a bit different count. So the where conditions are not matching for the 2 queries above.
    Any thought on this?
    Thanks
    Sudipta

  • How to combine multiple files in CS6

    I am trying to combine multiple files-- book chapters-- into a single editable document in CS6. Tutorials apprea outdated

    following on from Sandee Cohen's post no.18, the location of the script has moved to:
    http://www.simonwiscombe.com/indesign-merging-all-files/
    and it is worth noting that the script initially merged files that were all 1pp long each.
    Simon did make a modification to it later on in the article so that the script would merge files of all lengths, but when I ran the script, it produced an error to do with line 18. The line:
    var sourceFolder = Folder.selectDialog(“Select a folder with source InDesign files.”);
    needs to be replaced with
    var sourceFolder = Folder.selectDialog('Select a folder with source InDesign files.');
    (double quotes were swapped out for single quotes)
    I have only tested the script with varying page lengths with minimal objects on the pages to determine if the files merged. So far so good. The earlier version that merged 1pp files only would fail if fonts/links were missing as any dialog box upon opening seems to interfere with the script. I feel that the newer script will do the same thing.
    I know this is an older thread but given I just had the same experience, I thought the revised script would help a few people.
    Colin

  • How to combine multiple queries!

    I know this is pretty basic, but I'm confused. Basically, I need to extract all data for a given entity from a highly normalized database. There are probably 2 dozen tables which contain data for a given entity that must be queried. However, rather than constructing one single query that merges all of the tables together to come up with one huge rowset/row format, how could I query each table seperately and combine the results of each query into one XML file? Can I create a clob with the first query and then append subsequent queries to that clob? Not sure what to do, and I can't find any good examples.
    Thanks in advance!

    Thanks, but I don't think that's quite what I'm looking for. In a nutshell, this is what I'm doing and this is the problem I'm having:
    1. I set a string equal to a query.
    2. I use xmlgen.getxml to fetch the xml into a clob.
    3. I parse the clob into a DOMDocument.
    The problem occurs with multiple queries. If I follow this same process for 5 different queries, then I have 5 instances of a DOMDocument, each holding a different queries XML. Now, can I put them together? I tried xmldom.makeNode for each DOMDocument, but the nodes are associated with the Document from which they came. I tried cloning each node to disassociate from it's Document, but that didn't seem to work. Even if it did, and I got all of the nodes together, I kept getting a java.lang.ClassCastException for trying xmldom.makeDocument for a node. I'm lost. How can I combine the results of multiple queries into a single DOMDocument instance? It was suggested that use xmlgen.getXML to get multiple queries into multiple CLOBS, then essentially combine the CLOBS together, and finally parse into a DOMDocument as a last step, but that doesn't really leverage DOMs capabilities. At this point, I may have to go down that road...

  • How to combine multiple movie clips from iphone 4 in iphoto 09

    I have multiple videos taken from iphone 4 downloaded to iphoto 09. How can i combine them all into one movie?

    We, as you know, are only users - we can not answer any "why" questions - only Apple knows why - we can sometimes answer How to questions - How to is use iMovie
    LN

  • How to combine multiple podcast folders into one

    When I open itunes Podcast section I find that it shows multiple folders or podcasts with the same name. I want these to show up as just one podcast. How can I do this?
    For example:
    When I look at my HD>itunes>Podcast folder; I see one folder called "Ask Dave", but in my itunes podcast column it show three separate "Ask Dave" podcasts. I want it to show only one.
    Similar but different example:
    A podcast that I have subscribed to for several years has changed its name slightly; Podcast_Photoshop User TV, Photoshop User TV, Photoshop TV, NAPP TV.
    I have 4 folders as I listed in my itunes>Podcast folder. But in the itunes window it lists  9 folders: 1 - Podcast_Photoshop User TV, 5 - Photoshop User TV, 2 - Photoshop TV, 1 - NAPP TV.
    These are all the same podcast, and I'd to have just one folder / entry in my itunes window called Photoshop TV and have everything show up in one place.
    Is there a way to consolidate these and others?
    I'm running Leopard and iTunes10
    thanks in advance for any help with this.
    JeffN

    The problem happens when the feed url is changed.
    See these posts:
    https://discussions.apple.com/message/13222888#13222888
    https://discussions.apple.com/message/15228638#15228638
    tt2

  • How to combine multiple Details section rows in my report

    Hello,
    I am currently creating a report which will display employee details, which includes first name, last name, home phone, cell phone and Email.
    I get my First Name and Last name from the "Employees" table but all other info is situated in the "CommunicationLinks" table.
    The tricky part which I am having issues with is the Home Phone, Cell Phone and Email are all under the same field in this table, the field is called "DisplayAs".
    These 2 tables are linked together by taking Employees.LinkID and linking it to CommunicationLinks.LinkIDParent, which are matching linkids.
    The only issue that I have, is for example, if you look at the screenshot provided, I have 5 details section that gets populated for the same employee.
    How can I combine all these 5 records to only one?
    The homephone, cellphone and email field have formulas created for them, the formula is as follow.
    This example below is for the HomePhone field, the others have different type assigned to them
    If {CommunicationLinks.Type} =1 then
    {CommunicationLinks.DisplayAs}
    else ""
    Homephone, Cellphone and Email are all different types but uses the same field "DisplayAs".
    I also tried creating a subreport for each of these fields but seems to give me the same results.
    Any help would be really appreciated.
    If you have any other questions please let me know. See attached screenshots for reference.
    Thank you in advanced.
    Jocelyn

    Easier way without working in SQL:
    1.  Group by a field that is unique to the employee.
    2.  Suppress the employee group header and the details sections.
    3.  Create a couple of formulas:
    {@ClearVariables}
    WhilePrintingRecords;
    StringVar HomePhone := "";
    StringVar CellPhone :="";
    StringVar Email := "";
    Put this formula in the employee group header - even though the section is suppressed, it will evaluate.
    {@SetVariables}
    WhilePrintingRecords;
    StringVar HomePhone;
    StringVar CellPhone;
    StringVar Email;
    if {CommunicationLinks.Type} =1 then
      HomePhone := {CommunicationLinks.DisplayAs};
    else if {CommunicationLinks.Type} = <type for cell> then
      CellPhone := {CommunicationLinks.DisplayAs};
    else if {CommunicationLinks.Type} = <type for email> then
      Email := "";
    Put this formula in the details section - it will evaluate even though the section is suppressed.
    {@HomePhone}
    WhilePrintingRecords;
    StringVar HomePhone
    (Do the same for Cell Phone and Email.  Note that there is no semi-colon at the end of this one!)
    Put these formulas and all of the rest of the employee data in one or more Employee group footer sections.
    -Dell

  • How to combine multiple pictures in one picture

    Hi guys.
    Total noob in photo shop here..
    I am very expert on using Paint (HAHA..) but using Photoshop 2014 is my very first time and only thing I know how to use is magic eraser..
    Right now I'm doing a website project and trying to make few pictures for each pages.
    I'm trying to make one picture that has multiple pictures inside. (with some designs.. and look smooth.)
    I have no idea how to use Photoshop and I just simple need to put pictures together to look nice and neat.
    I have attached two picture samples. It would be nice if you could teach me step by step how to make a pictures like that (would be awesome if its even better ^^)
    I appreciate your help and have a nice day.

    If you want to learn these kind of techniques there is a wealth of online tutorials that will help you work this out. Here are a few links that should point you in the right direction:
    Create collages, montages | Photoshop, Photoshop Elements
    Photoshop Tutorial : How to Make a Collage in Adobe Photoshop - YouTube
    All you need to do is search online and you should find most of what you want.
    Thanks

  • How to combine multiple fact tables and dimensions in one worksheet?

    Hello Forum,
    I am encountering a reporting problem when trying to create a worksheet that uses more than one cube/fact table and common dimensions. I have used Oracle Warehouse Builder 10Gr2 to design and deploy a pretty simple ROLAP data mart. We are using Discoverer Plus for OLAP as our reporting tool. We have 5 dimension tables using a star schema and 3 fact tables, when I create the worksheet I bring in our sales measure from our sales item table and then Store_Name from my Stores Dimension and then day from my time dimension, everything looks good at the stage, we're just trying to get a sum of all sales for that store on that day. Then I bring in a measure from our advertising cost table and a join window pops up asking which join to use, if I choose either the Store or the Time dimension I get correct data for the first fact table (sales) and grossly incorrect data for the ad cost measure from the second fact table (advertsing costs)...... any help would be appreciated

    You have encountered one of the key limitations of Discoverer... which I complained about to the Discoverer product manager at OpenWorld in 2001....
    Anyhow, to get around this, you are going to have to deal with it either in the database, (views, materialized views, tables), or within the admin tool by creating a custom folder.
    Discoverer also calls this the "fan trap", but never really had a solution to the problem. [The solution only worked is you joined to one and only one dimension!]
    What you want (using Sales_Fact and Inventory_Fact as an example) is to join Sales to Time, Store, and Product, and save that result. Then join Inventory to Time, Store, and Product, save that result, then do a double outer join between the two intermediate temporary tables in order to calculate something useful like inventory turns by store and product line.
    This is also known a "multipass SQL", and is supported by some (but not many) other tools.
    So, to accomplish this with Discoverer, you'll either need to create a view, or table, or materialized view that has already put Sales and Inventory into a single (virtual?) fact table. Alternatively you can write the SQL for how to do this linkage (don't forget to handle missing data), and use the Discoverer admin tool to create a custom folder that uses your SQL.
    Hope this helps!

Maybe you are looking for

  • Application store not working.  I phone 4

    Application store is not working, gives a blank white screen

  • Logical OR with XPaths in Documaker 12.1

    Is there a way we could provide a logical OR condition within Xpath Getdata DAL? In the below case, we would need to retrieve the FormNumber value for SortOrder 18 or 19. FormNumber= GetData( "!/Request/XmlTransaction/Quote/Product/Location/Form[Prin

  • Confused with Info to hook tv to Mac

    I know there are lots of postings on this but I'm confused, I'm a senior very non tech person.  I have a Sony Bravia TV, I think a 2008 model, does have HDMI ports tho.  And I have a mid 2012 MacBook Pro.  I don't really want an Apple TV, would rathe

  • Dynamic Update statements

    Hello, I have one SP to do DMLs. This SP works fine without any problem, but for Update I have problem to construct. The update statement should be constructed depending on the values. For example, in a table we may have so many columns, but only few

  • Oracle standard editon vs standard editon one

    Hi experts How can we determine whether we have oracle standard editon vs standard editon one installed this is for 11g Rel 2 thanks