Add a `distfiles' option for makepkg
Inspired by Gentoo distfiles in Gentoo mirrors, I've added a `distfiles' option in makepkg, so that makepkg can download source files from Gentoo mirrors if possible. This is good for some users who have limitations in their network to help them download source files faster and easier from mirrors.
However, my patch is very simple and therefore very buggy, just as follows.
diff -rupN orig/makepkg mod/makepkg
--- orig/makepkg 2013-07-20 09:47:42.608789577 +0800
+++ mod/makepkg 2013-07-20 09:38:10.861886996 +0800
@@ -48,7 +48,7 @@ declare -r startdir="$PWD"
packaging_options=('strip' 'docs' 'libtool' 'staticlibs' 'emptydirs' 'zipman' \
'purge' 'upx' 'debug')
-other_options=('ccache' 'distcc' 'buildflags' 'makeflags')
+other_options=('ccache' 'distcc' 'buildflags' 'makeflags' 'distfiles')
splitpkg_overrides=('pkgver' 'pkgrel' 'epoch' 'pkgdesc' 'arch' 'url' 'license' \
'groups' 'depends' 'optdepends' 'provides' 'conflicts' \
'replaces' 'backup' 'options' 'install' 'changelog')
@@ -330,6 +330,11 @@ download_local() {
download_file() {
local netfile=$1
+ if check_buildenv "distfiles" "y" && ! check_option "distfiles" "n"; then
+ distfile=${DISTURL}/$(basename $netfile)
+ wget ${distfile}
+ fi
+
local filepath=$(get_filepath "$netfile")
if [[ -n "$filepath" ]]; then
msg2 "$(gettext "Found %s")" "${filepath##*/}"
To use this option, just add 'distfiles' in BUILDENV and add a line like
DISTURL="http://mirrors.ustc.edu.cn/gentoo/distfiles/"
lolilolicon wrote:
mytbk wrote:
+ if check_buildenv "distfiles" "y" && ! check_option "distfiles" "n"; then
+ distfile=${DISTURL}/$(basename $netfile)
+ wget ${distfile}
+ fi
+
Shouldn't force wget here. Better change the download_sources function, e.g.
- download_file "$netfile"
+ download_file "${DISTURL%/}/${netfile##*/}"
Add in the ifs and elses where appropriate.
Yes, so I need someone better at scripting to help have this complicated job accomplished.
Edit: I think it's a better idea, I'll have a try then.
Last edited by mytbk (2013-07-20 16:20:00)
Similar Messages
-
How to add a new option for group by in a excel report
Hi,
there is a enhancement in a excel report
I need to add a new option for group by
help me
Regards,
Raghuk
-
How to make Add to Favorites Option for website?
Please Advice how to make Add to Favorites Option for the
Website.
Appreciated
Thank Youhttp://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=189&threadid =1191543&highlight_key=y&keyword1=favorites
-
How to Add a filter option for a entire table to a search button?
Hi all,
I am new to SAPUI5. i am having a table with hard coded data's.and i have a search field.
i want to add a filter option to the search field for the entire table..
i can able to add a filter option to the column by using filterProperty.
is there is any method or property to do that?
PS - i have attached my table code.
Regars
DayalanHi Dayalan,
documentation for filtering and sorting is in this section of the Developers Guide.
Cheers
Graham Robbo -
Can I add a PayPal option for registrations?
I would like to offer PayPal as a payment option for my conference attendees. If I have a registration form can I add a PayPal button?
go on orange Firefox on the top of page,go on options,then click on menu bar.
Options,view,tools will appear. -
Add new select option for VT04 variants
Hi Experts,
Want to know the process of how we add a new select option (say sold-to/KUNAG) to the existing set of selection criteria in the variants in VT04 apart from implicit enhancements.
Even if we create a new implicit enhancement in LV56LSCR, the new field (sold-to/KUNAG) has to be further added to the select statements also. The select statement in the subroutine INDEX_SELEKTIEREN in LV56LF01 has to be enhanced for the same.
Also should this new field has to be added to the EXPORT TO and IMPORT FROM MEMORY ID MEMORY_LFSL statements in the other includes of SAPLV56L ?
Is there a better/recommended way to do this? Any pointers are much appreciated. Thank You.
Regards,
Narendra.Hi Ravi,
This is infact the program for the txn VT04, would you be able to shed any other info? Thanks.
Regards,
Narendra.
Edited by: Narendra Daka on Dec 7, 2011 9:00 AM -
Are there any add-on NFC Options for the iPhone 5S & Pay?
Does anyone know if there are any third party cases, or devices that can be added to the iPhone 5S to gain ApplePay NFC compatibility?
Something like the Incipio CashWrap?Buy the Apple Watch in 2015.
-
How to add a java option in oas 10g 9.0.4?
I need add a java option in my oas 10g...
I have an application implemented with jdeveloper 10g (10.1.2) and its need to use other jdbc libraries acording:
http://radio.weblogs.com/0118231/stories/2005/05/27/workaroundForDeployingAdf1012AppUsingIntermediaDomainsToOracleAs904.html
Using EnterpriseManager, i add a java option for the OC4J instance where my ADF 10.1.2-based application will be deployed:
[b]-Xbootclasspath/p: C:\oracle\infra\jdbc-10.1.0.4\ojdbc14.jar;C:\oracle\infra\jdbc-10.1.0.4\orai18n.jar
but now, ths oc4j instance dont init
...my opmn.xml file contains:
<process-type id="ADF_050615" module-id="OC4J">
<module-data>
<category id="start-parameters">
<data id="java-options" value="-server -Xrs -Djava.security.policy=C:\oracle\infra\j2ee\ADF_050615\config\java2.policy -Djava.awt.headless=true
-Xbootclasspath/p: C:\oracle\infra\jdbc-10.1.0.4\ojdbc14.jar;C:\oracle\infra\jdbc-10.1.0.4\orai18n.jar"
/>
<data id="oc4j-options" value="-properties"/>
</category>
<category id="stop-parameters">
<data id="java-options" value="-Djava.security.policy=C:\oracle\infra\j2ee\ADF_050615\config\java2.policy -Djava.awt.headless=true"/>
</category>
</module-data>
</process-type>
Help me pleaseRigoberto, there should be no space between "-Xbootclasspath/p:" and the path "C:\oracle\infra\jdbc-10.1.0.4\ojdbc14.jar;C:\oracle\infra\jdbc-10.1.0.4\orai18n.jar"
By the way, one can always take a look at the logs at
$ORACLE_HOME/opmn/logs
especially those files whose names start with OC4J~ if there is some wrong with oc4j processes. Those files are the default oc4j stout and sterr. If oc4j can not init, there should be some kind of error message in them.
By the way, the following line may be deleted since no property file is specified.
<data id="oc4j-options" value="-properties"/>
Hope this helps. -
We are trying to extend the usage of Solman Service Desk for other IT related issues also
for this the real challange I feel is the number of options available in the drop down while raising the ticket to choose from
1. System/IBase
2.Component
of their choice and if it is possible to add more selectables options for System base and component which are helpful in addressing other day to day IT issues.Hello,
About the Ibase, you may create either new ibase components in IB52, or you can create a new custom product and assign systems to the custom products in SMSY, then the Ibase of the new systems will be created automatically.
About the new software components, I have seen that issue adressed here in this forum a few days ago. I suggest that you do some searches, I am sorry but I don't know right now what's the table that you have to modify in order to have more software components.
Anyway, if you create the messages through CRMD_ORDER, you need not assign a software component to the message. This may be feasible for scenarios where you route the messages to the teams based on other fields (perhaps the 'subject' field would work)
Best regards,
Miguel Ariñ -
Include BLANK OPTION for an attribute dropdownlist in tx: COMM_ATTRSET
Hello experts,
I would like to add a BLANK OPTION for an attribute dropdownlist, I have tried to add a space character in "Value Range" but the systems give me an error " Enter a fixed value".
How I can include a blank option for an attribute dropdownlist????
Thanks for your help.
Best Regards.Hi,
Can you let me know why would you need a blank attribute. What I want to know is that what business requirement is that going to serve.
Regards,
Deepak -
Add BOM line items for printing those line items in cs03 transaction
User will display the BOM line items and when he go by menu path EXTRAS->More-> so at the end of sub menu we need to add one more option for View and Print for that we need to use the menu exit and accordingly we need to add code to capture the related function code and display respective BOM line items in the ALV format. Further on if user wants to print those he should be able to do the same.
The BOM item node number STPO-STLKN is an 8 digit field therefore I would imagine that you could have a maximum of 99999999 items..
But you could use multi-level BOMs which would allow you to organise your components better.
PeteA -
Hello!
I'm at my wits end: please help! It seems straight forward, and I sold my client on BC thinking this was doable in the events module, but it seems maybe not so without a ton of custom coding.
1. Book an event online,
with option for multiple (say 1-5 people at a fixed cost per person),
and checkout using only Pay Pal (standard or pro, doesn't matter, but I think Standard won't work without shopping cart).
2. The events are every day but Sunday all year long (just admission to an attraction), so is there a way to upload months in advance so they don't have to be manually entered?
I'm so grateful for any assistance.This is all very achievable:
• Events you can add multiple people to book.
• PayPal you use use our APP that's in the BC Appstore (Liam to confirm is works with bookings)
I'm sales and marketing at Pretty, so I'm not the person to advise on how all this fits together. But I'm sure Liam can point you in the right direction.
If you need some consulting or us to do it for you just let me know [email protected]
Brett
www.prettydigital.com.au -
Missing "Add Records" and "Refresh Records" options for data sets post domain re-import
We recently had to re-install the Endeca server and as part of which had to export and re-import the data domains. Everything went fine except for the fact that newly re-imported data sets showcase just the "Manage Attributes" and the "Delete Data Set" options for an administrator login in. The previously available options to "Add Records" and "Refresh Records" beyond manage attributes/Delete Data Set are missing.
Thoughts? Is there a security setting to enable these?So are you talking about the Add Records and Reload Records options for a data set in Studio?
There are no separate security settings for these options. If a user is an application administrator (is able to edit the application), then they should have access to these options.
The options are only available for data domains created using the Provisioning Service (created by uploading a file or from the JDBC or BI Server data source from the Data Source Library).
I don't know if the process of exporting and re-importing the data domains (not sure how you did that) could somehow cause the data sets to no longer know that they were created by the Provisioning Service, in which case those options would not be enabled. -
What's the best way to get the Print Preview Option for Firefox 12.0?
Many thanks,Hi, is this the add-on that does not supported from your os ?
https://addons.mozilla.org/eN-US/firefox/addon/printprint-preview/?src=search
thank you
Please mark "Solved" the answer that really solve the problem, to help others with a similar problem. -
Please add LED turn OFF option for DL2100
If there is an option for LED turn off on EX2, why can't it be on DL2100, since it's basically the same OS ?Please add this option on this device, thank you !
Hi Rahul,
Which release of Oracle Applications are you on?
Regards,
Mohammed
Maybe you are looking for
-
Problem with the JNDI properties while executing a client test
Hello Everybody, I'm trying to learn Jdeveloper, and I have followed the tutoriel " Learn Oracle Fronn Oracle" Volum 2, so i am trying to create a simple oriented bean message with EJB 3.0, and a client test to deliver a message, and the problem is t
-
I had to move my iTunes Library
and want to be sure I'm doing it right. I have my iPad and my iPhone as devices linked to it == the Library however has lots of missing/dead tracks [not sure why since I don't delete things and am very careful but in any event that's an issue] - I d
-
when I want to install some application from apple store, I always got message " An unknown error has occurred" what should I do to install the application?
-
I've just installed Pages '08 (v3.0.3) on a MacBook running OSX (v10.6.3). The install seemed to go ok, but I am unable to see anything I type! The text remain frustratingly invisible, no matter what I do to change the font color. I can highlight the
-
HT4623 I have a ipad 1st generation can I update to iOS 7.0
I have a ipad 1st generation can I update to iOS 7.0