How to solve a PKGBUILD dependency issue for the MinGW-w64 toolchain?

Hi,
I had the ambitious plan of creating PKGBUILDs to provide a fully functional and full-featured MinGW-w64 toolchain in Arch (starting with the AUR). For those of you not aware of MinGW-w64; it's a project that provides the more complete alternative for MinGW.org: they support a much larger set of the Win32 API and provide 64-bit support. In short: they allow you to use GCC for Windows 32 and 64-bit.
The current list of packages is here: https://aur.archlinux.org/packages.php?SeB=m&K=rubenvb
They work (roughly, for me, I'm working out the problems as people report them), but only if you build and install them manually.
I would like to ask the help of the experts that reside here to resolve the issue that handy tools like yaourt and other AUR utilities cannot build/install these packages automagically, so that people are more easily persuaded to use my packages. The dependencies here are what functionally needs to be set, not per se what the current PKGBUILDs specify, due to numerous experiments and trial and error...)
The build and install order needs to be strictly followed:
1. build+install mingw-w64-headers-base (no makedepends)
2. build+install mingw-w64-binutils (no makedepends)
3. build+install mingw-w64-gcc-base (makedepends and depends: mingw-w64-binutils)
4. build+install mingw-w64-crt (makedepends and depends: mingw-w64-gcc-base and mingw-w64-binutils)
5. build mingw-w64-winpthreads (makedepends: mingw-w64-headers-base, mingw-w64-gcc-base and mingw-w64-binutils, conflicts mingw-w64-headers-base)
6. build mingw-w64-headers (no makedepends, conflicts mingw-w64-headers-base)
7. install mingw-w64-headers (replaces mingw-w64-headers-base)
8. install mingw-w64-winpthreads
9. build+install mingw-w64-gcc (replaces mingw-w64-gcc-base)
I tried to enforce this as much as possible in the PLGBUILDs, but am unsure if everything is as it should be...
The resulting binary packages that non-AUR-users
(once mingw-w64 is in a binary repo) should install:
- mingw-w64-headers
- mingw-w64-crt
- mingw-w64-winpthreads
- mingw-w64-binutils
- mingw-w64-gcc
The issue is that winpthreads overwrites two dummy headers that have to be included in mingw-w64-headers-base, so I provide a mingw-w64-headers package omitting these two files, but unusable without mingw-w64-winpthreads. So winpthreads needs to be built when mingw-w64-headers-base is installed, and mingw-w64-headers cannot be installed before winpthreads is installed, due to these two headers (per architecture) being supplied by winpthreads in a complete form.
I will try to tune the dependencies tonight, but any help or insight into the automation process is highly appreciated!
Thanks,
Ruben
Last edited by rubenvb (2011-11-22 21:28:12)

Interesting problem.
While i don't use any aur helper, i think you can simplify your approach a bit.
Here's how i would do it (changes in red) :
1. build+install mingw-w64-headers-base (no makedepends)
this package DOES NOT include the dummy headers
1a. build + install mingw-w64-headers-extra-dummy (makedepends : mingw-w64-headers-base)
this package will include ONLY the dummy headers
2. build+install mingw-w64-binutils (no makedepends)
3. build+install mingw-w64-gcc-base (makedepends and depends: mingw-w64-binutils)
4. build+install mingw-w64-crt (makedepends and depends: mingw-w64-gcc-base and mingw-w64-binutils)
5. build mingw-w64-winpthreads
makedepends:
mingw-w64-headers-base, mingw-w64-gcc-base and mingw-w64-binutils, mingw-w64-headers-extra-dummy
conflicts with mingw-w64-headers-extra-dummy
provides mingw-w64-headers-extra
6. skipped
7. skipped
8. install mingw-w64-winpthreads
9. build+install mingw-w64-gcc (replaces mingw-w64-gcc-base)
makedepends : mingw-w64-headers-base, mingw-w64-headers-extra

Similar Messages

  • How to solve this case sensitive problem for the parameters in function?

    Hi,
       I have a function, which should receive one parameter comes from textbox in BSP form. User will input upper case or lower case characters together in this textbox. But when I debug function, I found after function recevice the value from BSP form, the string value was converted into upper case automatically.
       I don't want system convert string to upper or lower case. I want keep the original value that user inputted.
       So is it possible to do this?
       Thanks!

    Hi,
       Thanks for your reply.
       Yes, I use the inputfield. The problem is if I use the parameter which contain user's input in the event handler of BSP, the value is equal to the user's input. But if the parameter was transfered into function, the value was converted to uppercase.
       But I want to keep  the original value.
       Thanks!

  • Why would Extension Manager CS6 report dependency issues for 29 InDesign CS6 factory plug-ins?

    Suddenly Extension Manager CS6 is reporting dependency issues for 29 InDesign CS6 factory plug-ins. I made no changes to those plugins that might have precipitated this. Anyone have any ideas about what might have happened? (This is happening with Extension Manager 6.0.8.28 and InDesign 8.0.2.) Some examples of the plugins reported as not meeting dependency condition are the following:
       Book Panel (8.0.0.370)
       PDF (8.0.2.413)
       Snippet (8.0.0.370)
       XML (8.0.2.413)
       XMLParser (8.0.0.370)
    Hayden

    1. You only pasted one log file (log0.log?), there is another more important log file: ExtensionManager.log you dind't paste.
    2. Have you removed ALL mxi files from ALL subfolders of BOTH "C:\ProgramData\Adobe\Extension Manager CS6\EM Store" AND "C:\Users\<UserName>\AppData\Roaming\Adobe\Extension Manager CS6\EM Store" to separate folder? If yes, Extension Manager shouldn't hang.
    3. Please make sure you have "Full control" permission to ""C:\ProgramData\Adobe\Extension Manager CS6\Configuration\DB\ExMan.db" and "C:\Users\<UserName>\AppData\Roaming\Adobe\Extension Manager CS6\Configuration\DB\ExManUser.db". You can check it in "Security" tab page of "Properties" dialog box.

  • How to display Issues for the projects which user can view in the Project Center View

    Hello All,
    In the project center view, at the bottom, we need to add one table, which can show the Issues for the projects that are displayed in the project center view.(Projects visible to the current user).
    Example: A resource 1  can see the Projects Project 1, Project 2,Project 3 in the project center view. So resource 1 should be able to see all the issues that are entered against the Project 1, Project 2, Project 3, irrespective of the issue that has
    been assigned to any resource.
    Please help.

    Hi,
    You could simply edit the page and add the risks and issues webparts. This will display risks and issues assigned to the user.
    Click on edit page, then add webpart. In the Project We App section, pick up the risk webpart and then the issue webpart. Finally drag them to the bottom of the page and close the page.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Reporting annoying issues for the entire Microsoft website (MSDN, forums, all)

    Is there any place where I can report bugs with how the Microsoft web sites behave? I can only find forums and "Microsoft Answers" categories about single products that Microsoft makes, but nothing about the infrastructure itself.
    For about two weeks now, I am required to log into my account every few hours whenever I access any Microsoft website. This includes MSDN help content, forums, or other resources. I need to login after opening the website through F1 help in Visual Studio
    as well as accessing a microsoft.com link from anywhere else like a web search or a direct link from web or an application.
    Auto-complete does not work either. My browser (Firefox) does save the password, but it never fills it into the form. Other people have already noticed that
    Microsoft applies some dirty tricks here. And even if the login is remembers for a moment, it's slow as hell. It takes a second or two to load the login.live.com page (which is not what I wanted to see), then it sits there for some more seconds before going
    anywhere. Other login services like Google or StackOverflow manage to log me in all within one second and most of the time I don't even see it.
    And then there's still that insecure SSL-to-non-SSL-submit warning that only occurs in other browsers then IE. Has anybody cared about that in the last couple years?! I'm not getting it now, probably because I'm not logged in anymore. It all slowly falls
    apart, piece by piece. Next step is probably losing my data or not loading it at all.
    THIS – IS – ANNOYING! And it really makes me feel like I don't want to use Microsoft products anymore (because even good desktop applications are connected to that silly website). I have opened a
    Microsoft Connect ticket for a part of this issue (it's grown bigger since then), but this ticket is totally ignored. If microsoft.com went down, they'd certainly care within minutes or hours. This bug is not even regarded in
    weeks!
    So do I have to write a postal letter to the president of the whole company or do they have support staff for that?! Do they have anybody who is capable of maintaining their website? It's really frustrating how Microsoft has a web presence that is worse
    than what our first-year trainees come up with. It's full of bugs and this is currently only the most relevant one. Do they even care about how the world sees them? Or is Microsoft currently preparing (and even failing) to move out of business?

    The brandings are fun. Here's this same thread in a bunch of flavors:
    https://social.technet.microsoft.com/Forums/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
    https://social.msdn.microsoft.com/Forums/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
    https://social.microsoft.com/Forums/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
    https://social.technet.microsoft.com/Forums/exchange/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Noobie here... How do I register my HP Touchpad for the warranty

    Noobie here... How do I register my HP Touchpad for the warranty. I've no ideal where to register my details.....So... Helppppppppp...lol
    Post relates to: HP TouchPad (WiFi)
    This question was solved.
    View Solution.

    When you sign into your hp webOS account device information is sent back to HP servers to basically register the device to you. This in a since does all the registration for you. You will then receive an email that will help you confirm your email address for your profile and validate it.

  • How do I have 1 apple id for the family to use in the iTunes and app store and a different apple id for iCloud and FaceTime and imessages

    how do I have 1 apple id for the family to use in the iTunes and app store and a different apple id for iCloud and FaceTime and imessages?

    See also Using your Apple ID for Apple services
    specifically the section "Using one Apple ID for iCloud and a different Apple ID for Store Purchases".

  • How do I create a new calendar for the current year, using last years calendar's birthday's/photos and comments from the lower pages?

    Each year for the past 5 years I make a family calendar and send copies to all he family members around the globe.  I hate that I have to recreate all the birthdays and special occasions from scratch, and re-drag all the photos onto these dates, in the lower half of the page of each month on the new calendar.  How can I create a new calendar for the current year and port all of these photos/comments into the new calendar from last years calendar, to save having to redo all this work!!  I am not talking about the upper half page of the photos only...I am referring to the calendar page of each month.
    Thanks in advance. 
    Colin

    Welcome to the Apple Discussions. Open iWeb so you see your original site in the left hand pane. Use the File->New Site menu option to create a new site. Give it the name you want.
    Now select a page in your original site and type Command+D. That will duplicate the page. Drag the duplicate page down to the new site and rename it as needed. Do that for the other pages you need in the original site.
    OT

  • How to configure multiple listeners to listen for the same instance.

    Hello everyone,
    I am running oracle database 11g and I want information regarding how to configure multiple listeners to listen for the same database instance. Actually I know how to configure more than one listener but the main thing that I am confused about is when we create listener.ora file, do we have to statically register the database instance with both the listeners or the instance will register itself with both the listeners.
    According to my knowledge the instance will register with the listener specified by LOCAL_LISTENER parameter and we cannot have more than one value for this parameter.
    Please only give detailed answers with example as I am tired of simple answers with details that I already know.

    Hello,
    Yes, it can make sense to have several listener for one Oracle instance. For instance you may have one listener for the applications another listener for DBA administration tasks as well as one listener dedicated to dataguard broker. It is not possible to have several listeners listening on the same IP and Port.
    By default the database try to automatically register to a listener on port 1521. To instruct the instance to register to a specifc list of listeners you can add in the init.ora the local_listener parameter with an alias definition:
    i.e
    local_listener=MY_SET_OFF_LISTENERS
    in your tnsname.ora add an entry called:
    MY_SET_OFF_LISTENERS_LOCAL= (ADDRESS_LIST=
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1530))
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1531))
    (ADRESS=(PROTOCOL=TCP)(HOST=myhostname)(PORT=1532))
    In this sample your instance will register to three listeners listening on respectively port 1530, 1531 and 1532
    If you want your clients can be balanced over the 3 listeners

  • I can not store all my Music on my internal Macbook pro hard drive so I am storing it on a large external drive connected to my airport extrem.  How do I get Itunes to search for the music here with out trying to copy it to my laptops hard drive??

    I can not store all my Music on my internal Macbook pro hard drive so I am storing it on a large external drive connected to my airport extreme (2 TB drive plugged into the USB port).  I see the drive on my laptop and I can add and delete files no problem.  How do I get Itunes to search for the music here with out trying to copy it to my laptop's hard drive?  I don't have enough space to do that.

    How did you move the music to the external drive?  What exactly is on the drive?  The entire iTunes folder or only music?  If it is the entire iTunes folder you can do the option+start suggestion earlier.  If you copied only music and did so by dragging it there then you need to delete it again and consolidate/organize it there instead so iTunes tracks the move.  iTunes 12 for Mac: Change where your iTunes files are stored - http://support.apple.com/kb/PH19507

  • How can i obtain a user guide for the ipod nano 16GB 5th gen. with out printing it off the computor

    How can i obtain a user guide for the ipod nano 16GB 5th gen. without printing it off the computor.

    You can't, at least not the one provided by Apple.
    B-rock

  • How user can get a Sales Text for the any Line Item in the Billing?

    Salute Masters ! !
    How user can get a Sales Text for the any Line Item in the Billing?
    It's coming for other Order (Line Item for Bought out Item at Project Site - Some Item they procure at project site & complete the task).
    Where I can configure in system for all.
    Rgds
    Srivastav
    09973504950

    Hi,
    Sales text can be copied from customer to order , order to delivery and delivery to billing .
    Check the T-code : VOTXN , do the customization as per your requirement.
    check the below link :
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/55f993545a11d1a7020000e829fd11/content.htm

  • I downloaded a Trial version of Adobe Acrobat XI.  Now the trial has runout and I've signed up for a subscription.  However, my software still needs a serial number.  How can I get a serial number for the installed software?

    I downloaded a Trial version of Adobe Acrobat XI.  Now the trial has runout and I've signed up for a subscription.  However, my software still needs a serial number.  How can I get a serial number for the installed software?

    There is no serial number and you don't need one. What you need for a subscription is to SIGN IN within Acrobat, so it knows the subscriptions you own.

  • I am getting this message: An error occurred while sending mail. The mail server responded: 5.3.4 Requested action not taken; To send your message, please sign into your account online first and solve a puzzle. (Sorry for the inconvenience--these puzzles

    I am trying to send a message with an attachment, I get this message: An error occurred while sending mail. The mail server responded: 5.3.4 Requested action not taken; To send your message, please sign into your account online first and solve a puzzle. (Sorry for the inconvenience--these puzzles help us stop spammers.). Please check the message and try again.
    == Today

    Me too (with Thunderbird). EXCEPT it reads
    Requested action not taken; This account is currently blocked from sending messages. If you don't think you've violated the Windows Live Terms of Use, please contact customer support...
    Occasionally the mail "sends", but it is unpredictable. Tech Support at Qwest (for q.com under Windows Live) does not find a problem at their end.
    More suspiciously, the same account accessed from my Mac does not seem to exhibit this problem. Have reloaded T'bird. Recurred again.

  • How do I make document relative links for the site?

    How do I make document
    relative links for the site -
    <img src="../images/foo.gif"... (for example)?

    > How do I make document
    > relative links for the site -
    look in the bottom of the "browse to file" dialog box.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

Maybe you are looking for