WARN: project from a retired committee (reef) but PMC not changed to Attic in http://reef.apache.org/doap.rdf

2022-07-20 Thread Projects


WARN: project in Attic but not in 'retired' category: http://reef.apache.org/doap.rdf

2022-07-20 Thread Projects


WARN: project from a retired committee (buildr) but PMC not changed to Attic in https://gitbox.apache.org/repos/asf?p=buildr.git;a=blob_plain;f=doap.rdf;hb=HEAD

2022-07-20 Thread Projects


WARN: project in Attic but not in 'retired' category: https://gitbox.apache.org/repos/asf?p=buildr.git;a=blob_plain;f=doap.rdf;hb=HEAD

2022-07-20 Thread Projects


[dspace-tech] DSpace 6.3 "Browse by"

2022-06-27 Thread Projects Arunendra
Say there are 3 items with titles Abc, Mnp and Xyz.

If browse by Titles and give Abc in the search box, the result appears as 
Abc followed by the other 2 in alphabetical order.
Then, if I search Xyz, I get only Xyz as the result.
But, after this if I give Mnp, there is no result. The previous result of 
Xyz still remains.

Is it a bug?


From,
Arunendra MB.
India.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/9ecf53ac-7f5f-48d5-a78d-c2a21023f9a0n%40googlegroups.com.


WARN: project from a retired committee (clerezza) but PMC not changed to Attic in https://clerezza.apache.org/doap.rdf

2022-06-20 Thread Projects


WARN: project in Attic but not in 'retired' category: https://clerezza.apache.org/doap.rdf

2022-06-20 Thread Projects


WARN: project in Attic but not in 'retired' category: http://ambari.apache.org/doap.rdf

2022-06-20 Thread Projects


WARN: project from a retired committee (ambari) but PMC not changed to Attic in http://ambari.apache.org/doap.rdf

2022-06-20 Thread Projects


[arch-projects] [repod] The arch-repo-management project has been renamed to repod

2022-05-06 Thread David Runge via arch-projects
Hi all,

just a short heads up, that the arch-repo-management project has been
renamed to repod: https://gitlab.archlinux.org/archlinux/repod/

A redirect for the old name to the new name exists.

Best,
David

-- 
https://sleepmap.de


signature.asc
Description: PGP signature


Re: [arch-projects] [arch-repo-management] 2022-05-04 meeting notes

2022-05-04 Thread Anton Hvornum via arch-projects
Great job with keeping the notes tidy!

Best wishes:
Anton Hvornum
IT Developer and Security Consultant

On Wed, May 4, 2022 at 10:00 PM Brett Cornwall via arch-projects
 wrote:
>
> Formatted minutes can be viewed here:
>
> https://md.archlinux.org/s/rdnf9nzXj
>
> Raw Markdown (still hoping for an easy md→text conversion that formats
> links in a citation style...)
>
>
> # Arch-repo-management 2022-05-04 meeting
>
> Date: 2022-05-04T17:00:00Z
> Location: Jitsi
> Scribe: Brett (ainola)
>
> ## Attendees
>
> * Brett (ainola)
> * dvzrv
> * Torxed
> * wCPO
>
> ## Agenda
>
> ### Documentation
>
> * dvzrv has [created extensive sphinx documentation about the 
> project](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/merge_requests/31)!
>
>  Hosting
>
> It would be nice to set up e.g. docs.archlinux.org as a central documentation 
> platform related to Arch-related tooling/projects with each project having 
> its own subdomain. For instance, repod.docs.archlinux.org.
>
> * The wiki is more about configuration/situational help whereas the docs site 
> would be more extensive documentation about the project itself: Much of the 
> specifics don't belong on the wiki.
>
> GitLab pages used for WKD docs, let's use pages for all of this documentation
>
> * docs.archlinux.org would be a landing page
> * CI/CD into a repository's GitLab pages
> * foo.docs.archlinux.org would point to that repo's gitlab page.
>
>  Security concerns
>
> The Gitlab page could potentially maliciously set cookies for archlinux.org. 
> Since documentation changes can be deployed without DevOps, the accepted 
> stewards of infrastructure, it means that non-DevOps members could 
> theoretically maliciously attack the main site.
>
> Refer: https://github.com/w3c/webappsec/issues/432
>
> Suggestions for resolution:
>
> 1. Change https://archlinux.org to https://www.archlinux.org so that the main 
> page is on a separate subdomain
>  * This would likely cause our search rankings to reset. Cookies would 
> have to be reworked to use the new domain
> 3. Disable JavaScript via CSP
>  * This would break search functionality for the Sphinx theme
> 4. Use `` [hash 
> argument](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src)
>  to restrict the JavaScript allowed to run (to be managed by DevOps)
> 5. Widen the range of trust to include more than DevOps members
>  * This is the path of least resistance
> 6. Enhance archlinux.org security to require more than cookies to authenticate
>  * Not trivial, unlikely to happen
>
> No resolution made, we will revisit in a few weeks' time after the PR has 
> been merged.
>
>
> ### Next Steps
>
> * next up: [rename the project to 
> repod](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/45)
> * start implementing the consumption of package metadata (e.g. 
> [.MTREE](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/51),
>  
> [.BUILDINFO](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/52)
>  (also selection of [.BUILDINFO 
> fields](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/20))
>  and 
> [.PKGINFO](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/53))
>


[arch-projects] [arch-repo-management] 2022-05-04 meeting notes

2022-05-04 Thread Brett Cornwall via arch-projects

Formatted minutes can be viewed here:

https://md.archlinux.org/s/rdnf9nzXj

Raw Markdown (still hoping for an easy md→text conversion that formats 
links in a citation style...)



# Arch-repo-management 2022-05-04 meeting

Date: 2022-05-04T17:00:00Z
Location: Jitsi
Scribe: Brett (ainola)

## Attendees

* Brett (ainola)
* dvzrv
* Torxed
* wCPO

## Agenda

### Documentation

* dvzrv has [created extensive sphinx documentation about the 
project](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/merge_requests/31)!

 Hosting

It would be nice to set up e.g. docs.archlinux.org as a central documentation 
platform related to Arch-related tooling/projects with each project having its 
own subdomain. For instance, repod.docs.archlinux.org.

* The wiki is more about configuration/situational help whereas the docs site 
would be more extensive documentation about the project itself: Much of the 
specifics don't belong on the wiki.

GitLab pages used for WKD docs, let's use pages for all of this documentation

* docs.archlinux.org would be a landing page
* CI/CD into a repository's GitLab pages
* foo.docs.archlinux.org would point to that repo's gitlab page.

 Security concerns

The Gitlab page could potentially maliciously set cookies for archlinux.org. 
Since documentation changes can be deployed without DevOps, the accepted 
stewards of infrastructure, it means that non-DevOps members could 
theoretically maliciously attack the main site.

Refer: https://github.com/w3c/webappsec/issues/432

Suggestions for resolution:

1. Change https://archlinux.org to https://www.archlinux.org so that the main 
page is on a separate subdomain
* This would likely cause our search rankings to reset. Cookies would have 
to be reworked to use the new domain
3. Disable JavaScript via CSP
* This would break search functionality for the Sphinx theme
4. Use `` [hash 
argument](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src)
 to restrict the JavaScript allowed to run (to be managed by DevOps)
5. Widen the range of trust to include more than DevOps members
* This is the path of least resistance
6. Enhance archlinux.org security to require more than cookies to authenticate
* Not trivial, unlikely to happen

No resolution made, we will revisit in a few weeks' time after the PR has been 
merged.


### Next Steps

* next up: [rename the project to 
repod](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/45)
* start implementing the consumption of package metadata (e.g. 
[.MTREE](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/51),
 
[.BUILDINFO](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/52)
 (also selection of [.BUILDINFO 
fields](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/20))
 and 
[.PKGINFO](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/53))



signature.asc
Description: PGP signature


[arch-projects] [arch-repo-management] 2022-04-20 meeting minutes

2022-05-03 Thread Brett Cornwall via arch-projects
I apologize for the horrendous delay; I had forgotten about addressing 
my rejected mail to this list!


Formatted meeting minutes can be viewed at:

https://md.archlinux.org/s/BUpRiww_r

A copy of the raw markdown (pandoc does a poor job converting to plain 
text, suggestions for other tools welcome):


Date: 2022-04-20T17:00:00Z - 2022-04-20T18:13:00Z
Location: Jitsi
Scribe: ainola

## Attendees

* ainola
* artafinde
* dvzrv
* heftig
* luna
* Torxed
* wCPO

## Agenda

### CI

[renovate-bot](https://gitlab.archlinux.org/archlinux/renovate) was implemented 
for automating version bumps

* Thanks to wCPO for setting that up

* [Has a pipeline run on a 
schedule](https://gitlab.archlinux.org/archlinux/renovate/renovate/-/pipeline_schedules)
 to e.g. update lock files and scan through the poetry TOML files. It will 
create a Merge Request with that gruntwork already done for us for review. 
([example 
MR](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/merge_requests/28/diffs))

* Needs a user to run - we have created a 
"[renovate](https://gitlab.archlinux.org/renovate)" user to run.

### Versioning

(c.f. [previous discussion on the same 
topic](https://md.archlinux.org/_jsxpX_ySrGwu9u0EmSXtg#versions))

Changes are infrequent but they do happen; we need a way to upgrade the 
database in a sane way.

* dvzrv has been working on [#42 (Implement JSON schema for package and 
database 
representation)](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/42)
 and [#29 (Make pgpsig an optional 
field)](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/29)

* Torxed is interested in this work due to similar issues in archinstall

### File management

Torxed has been working on package file management via the CLI interface.

Two stages right now (for testing):

* Take a package and move it to a pool (via symlinks or hardlinks so that 
downloads don't need to happen when moving between repos)
* Tag the package for a particular repository

Transactions are a central design around this, so we can all expect to have 
e.g. staging environments still.

 Suggestions for improvement

* prevent package removal from the pool if it's active
* noop on adding identical packages
* Fail if a newer version of the package already exists (Otherwise it's assumed 
to be a version bump and will be accepted)
* Missing debug repositories, needs to be implemented

 Brainstorming

* Do we want flexibility to have Subrepositories/ephemeral repositories for 
testing groups of packages (see 
[#47](https://gitlab.archlinux.org/archlinux/arch-repo-management/-/issues/47))?


signature.asc
Description: PGP signature


[arch-projects] [arch-repo-management] Next meeting: 2022-05-04 19:00 CEST

2022-04-21 Thread David Runge via arch-projects
Hi all,

the next meeting for arch-repo-management will take place on jitsi on
2022-05-04 19:00CEST.

https://meet.jit.si/20220504-arch-repo-management

Best,
David

-- 
https://sleepmap.de


signature.asc
Description: PGP signature


Re: [arch-projects] [arch-repo-management] Next meeting: 2022-04-20 19:00 CEST

2022-04-21 Thread David Runge via arch-projects
On 2022-04-07 00:29:26 (+0200), David Runge via arch-projects wrote:
> Hi all,
> 
> the next meeting for arch-repo-management will take place on jitsi on
> 2022-04-20 19:00CEST.
> 
> https://meet.jit.si/20220420-arch-repo-management

The meeting notes can be found here:
https://md.archlinux.org/gcuQiYIfSN-WIqjo1VJH9w#

Best,
David

-- 
https://sleepmap.de


signature.asc
Description: PGP signature


[arch-projects] [arch-repo-management] Next meeting: 2022-04-20 19:00 CEST

2022-04-06 Thread David Runge via arch-projects
Hi all,

the next meeting for arch-repo-management will take place on jitsi on
2022-04-20 19:00CEST.

https://meet.jit.si/20220420-arch-repo-management

Best,
David

-- 
https://sleepmap.de


signature.asc
Description: PGP signature


Re: [arch-projects] [arch-repo-management] Regular meetings in March

2022-04-06 Thread Brett Cornwall via arch-projects

On 2022-04-06 21:33, Luna Jernberg wrote:

Hey
Read the notes now, looks good :) other then the date should be 2022-04-06
at the top


Aha, thanks for the eagle eyes. Fixed.


signature.asc
Description: PGP signature


Re: [arch-projects] [arch-repo-management] Regular meetings in March

2022-04-06 Thread Luna Jernberg via arch-projects
Hey
Read the notes now, looks good :) other then the date should be 2022-04-06
at the top (can not change myself, as i forgot to backup my keycloak 2FA
when i formatted my Android phone i noticed, have opened a ticket about it)
Will try to attend the meeting in 2 weeks live


On Wed, Apr 6, 2022 at 8:21 PM David Runge via arch-projects <
arch-projects@lists.archlinux.org> wrote:

> On 2022-03-16 16:59:13 (+0100), David Runge via arch-projects wrote:
> > Hi all,
> >
> > I'm not available for meetings in March [1].
> > I would therefore propose to do the next meeting on April 6th (19:00
> > CEST), again on Jitsi [2].
> > You can of course also do meetings without me before then :)
> >
> > As a short update in regards to the project: I have applied for funding
> > via Prototype Fund [3]. Whether I am chosen for the funding round
> > (starting September) will not be made public before the end of May
> > though. If I am chosen, I will be able to work six months in full-time
> > capacity on the project, which would be great.
> >
> > Best,
> > David
> >
> > [1]
> https://lists.archlinux.org/pipermail/arch-dev-public/2022-March/030744.html
> > [2] https://meet.jit.si/20220406-arch-repo-management
> > [3] https://prototypefund.de/
> >
> > --
> > https://sleepmap.de
>
>
> Meeting minutes: https://md.archlinux.org/_jsxpX_ySrGwu9u0EmSXtg#
>
> Some highlights:
>
> * JSON schema versioning
> * ongoing work on file operations
> * project renaming
> * thoughts on caching
> * documentation found people to work on it :)
>
> I will send a follow-up mail for the next meeting.
>
> Best,
> David
>
> --
> https://sleepmap.de
>


Re: [arch-projects] [arch-repo-management] Regular meetings in March

2022-04-06 Thread David Runge via arch-projects
On 2022-03-16 16:59:13 (+0100), David Runge via arch-projects wrote:
> Hi all,
> 
> I'm not available for meetings in March [1].
> I would therefore propose to do the next meeting on April 6th (19:00
> CEST), again on Jitsi [2].
> You can of course also do meetings without me before then :)
> 
> As a short update in regards to the project: I have applied for funding
> via Prototype Fund [3]. Whether I am chosen for the funding round
> (starting September) will not be made public before the end of May
> though. If I am chosen, I will be able to work six months in full-time
> capacity on the project, which would be great.
> 
> Best,
> David
> 
> [1] 
> https://lists.archlinux.org/pipermail/arch-dev-public/2022-March/030744.html
> [2] https://meet.jit.si/20220406-arch-repo-management
> [3] https://prototypefund.de/
> 
> -- 
> https://sleepmap.de


Meeting minutes: https://md.archlinux.org/_jsxpX_ySrGwu9u0EmSXtg#

Some highlights:

* JSON schema versioning
* ongoing work on file operations
* project renaming
* thoughts on caching
* documentation found people to work on it :)

I will send a follow-up mail for the next meeting.

Best,
David

-- 
https://sleepmap.de


signature.asc
Description: PGP signature


[arch-projects] [arch-repo-management] Regular meetings in March

2022-03-16 Thread David Runge via arch-projects
Hi all,

I'm not available for meetings in March [1].
I would therefore propose to do the next meeting on April 6th (19:00
CEST), again on Jitsi [2].
You can of course also do meetings without me before then :)

As a short update in regards to the project: I have applied for funding
via Prototype Fund [3]. Whether I am chosen for the funding round
(starting September) will not be made public before the end of May
though. If I am chosen, I will be able to work six months in full-time
capacity on the project, which would be great.

Best,
David

[1] https://lists.archlinux.org/pipermail/arch-dev-public/2022-March/030744.html
[2] https://meet.jit.si/20220406-arch-repo-management
[3] https://prototypefund.de/

-- 
https://sleepmap.de


signature.asc
Description: PGP signature


[arch-projects] [netctl][PATCH] Support WPA3-Personal

2022-02-26 Thread Jouke Witteveen via arch-projects
By not introducing a specific security setting for WPA3, we inherrit the
WPA2 key restrictions. For now, that is better than nothing.
---
 src/lib/wpa | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/wpa b/src/lib/wpa
index d081540..3605659 100644
--- a/src/lib/wpa
+++ b/src/lib/wpa
@@ -231,7 +231,8 @@ wpa_make_config_block() {
 fi
   ;;
   wpa)
-echo "proto=RSN WPA"
+echo "key_mgmt=WPA-PSK SAE"
+echo "ieee80211w=1"
 if [[ "${#Key}" -eq 64 && $Key == +([[:xdigit:]]) ]]; then
 echo "psk=$Key"
 else
-- 
2.35.1



WARN: project from a retired committee (ambari) but PMC not changed to Attic in http://ambari.apache.org/doap.rdf

2022-01-20 Thread Projects


WARN: project in Attic but not in 'retired' category: http://ambari.apache.org/doap.rdf

2022-01-20 Thread Projects


[arch-projects] [netctl][PATCH] Catch connection failures from wifi-menu

2021-12-31 Thread Jouke Witteveen via arch-projects
Wireless connections yield before the password is checked, so it is
better to wait for a connection to come online before concluding the
generated profile works.
---
 src/netctl.in | 11 +++
 src/wifi-menu |  2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/netctl.in b/src/netctl.in
index 3a96f12..c5f3cb7 100644
--- a/src/netctl.in
+++ b/src/netctl.in
@@ -129,10 +129,13 @@ unit_reenable() {
 
 wait_online() {
 local profile="$1"
-if sd_call "is-active --quiet" "$profile"; then
-timeout_wait "${TIMEOUT_ONLINE:-120}" \
- '[[ $(sd_status_text "$profile") == "online" ]]'
-else
+if ! timeout_wait "${TIMEOUT_ONLINE:-120}" \
+  '! sd_call "is-active --quiet" "$profile" || \
+   [[ $(sd_status_text "$profile") == "online" ]]'; then
+report_notice "timeout"
+return 1
+elif ! sd_call "is-active --quiet" "$profile"; then
+report_notice "failed"
 return 1
 fi
 }
diff --git a/src/wifi-menu b/src/wifi-menu
index f2030ae..21752ea 100755
--- a/src/wifi-menu
+++ b/src/wifi-menu
@@ -196,7 +196,7 @@ connect_to_ssid() {
 do_debug systemctl restart "netctl-auto@$INTERFACE.service"
 fi
 do_debug netctl-auto switch-to "$PROFILE"
-elif ! netctl switch-to "$PROFILE"; then
+elif ! netctl switch-to "$PROFILE" || ! netctl wait-online "$PROFILE"; then
 if is_yes "${NEW_PROFILE:-no}"; then
 msg=" CONNECTING FAILED
 
-- 
2.34.1



WARN: project in Attic but not in 'retired' category: http://geode.apache.org/doap_Geode.rdf

2021-09-27 Thread Projects


WARN: project from a retired committee but PMC not changed to Attic in http://geode.apache.org/doap_Geode.rdf

2021-09-27 Thread Projects


[arch-projects] [netctl][PATCH] Reach network.target before communicating

2021-08-11 Thread Jouke Witteveen via arch-projects
Let the netctl profile service yield at the last moment before any
communication on the interface takes place. That way, we catch as many
problems as possible without suffering unpredictable delays.
This means network.target is reached earlier for wireless connections.
---
 src/lib/connections/mobile_ppp | 3 +--
 src/lib/connections/pppoe  | 2 +-
 src/lib/connections/wireless   | 1 +
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/connections/mobile_ppp b/src/lib/connections/mobile_ppp
index 9e07ef9..8ad7a15 100644
--- a/src/lib/connections/mobile_ppp
+++ b/src/lib/connections/mobile_ppp
@@ -19,8 +19,6 @@ mobile_ppp_up() {
 rf_enable "$Interface" "$RFKill" || return 1
 fi
 
-network_ready
-
 mkdir -p "$options_dir"
 if [[ -z $ChatScript ]]; then
 ChatScript="$options_dir/modem.chat"
@@ -83,6 +81,7 @@ connect $(quote_word "/usr/sbin/chat -v -t15 -f $(quote_word 
"$ChatScript")")
 ${OptionsFile:+file $(quote_word "$OptionsFile")}
 EOF
 
+network_ready
 if ! $PPPD file "$options_dir/options"; then
 rm -r "$options_dir"
 report_error "Could not establish a ppp connection for profile 
'$Profile'."
diff --git a/src/lib/connections/pppoe b/src/lib/connections/pppoe
index 35bccf7..aab6168 100644
--- a/src/lib/connections/pppoe
+++ b/src/lib/connections/pppoe
@@ -18,7 +18,6 @@ pppoe_up() {
 report_error "Failed to bring interface '$Interface' up"
 return 1
 fi
-network_ready
 
 mkdir -p "$(dirname "$options")"
 cat >> "$options" << EOF
@@ -48,6 +47,7 @@ password $(quote_word "$Password")
 ${OptionsFile:+file $(quote_word "$OptionsFile")}
 EOF
 
+network_ready
 if ! $PPPD file "$options"; then
 rm "$options"
 rmdir "$(dirname "$options")"
diff --git a/src/lib/connections/wireless b/src/lib/connections/wireless
index aeec060..5444baa 100644
--- a/src/lib/connections/wireless
+++ b/src/lib/connections/wireless
@@ -49,6 +49,7 @@ wireless_up() {
 return 1
 fi
 
+network_ready
 # Bring interface up after starting wpa_supplicant
 # This is important since cards such as iwl3945 do not support
 # mode switching when they are already up.
-- 
2.32.0



[dspace-tech] Configurations For large number of items and concurrent users

2021-07-26 Thread Projects Arunendra

Hi,
I believe there are related responses scattered through out this forum but 
I need a summarized idea:
1)What configurations are required when there are large number of items 
(i.e optimized search)?
2) What configurations are required when there are large number of 
concurrent users? 

Will only sufficient memory allocation to to Tomcat do?
Or,
Configurations are required in the Solar indexing too?

Reqd. for DSpace 5.x and 6.x


-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/ce58801a-27d7-49da-9bb7-91f0b1fac1a9n%40googlegroups.com.


WARN: project from a retired committee but PMC not changed to Attic in http://sqoop.apache.org/doap/doap_Sqoop.rdf

2021-06-27 Thread Projects


WARN: project in Attic but not in 'retired' category: http://sqoop.apache.org/doap/doap_Sqoop.rdf

2021-06-27 Thread Projects


WARN: project from a retired committee but PMC not changed to Attic in http://sqoop.apache.org/doap/doap_Sqoop.rdf

2021-06-20 Thread Projects


WARN: project in Attic but not in 'retired' category: http://sqoop.apache.org/doap/doap_Sqoop.rdf

2021-06-20 Thread Projects


WARN: project in Attic but not in 'retired' category: https://gitbox.apache.org/repos/asf?p=metamodel.git;f=doap_MetaModel.rdf;a=blob_plain;hb=HEAD

2021-06-20 Thread Projects


WARN: project from a retired committee but PMC not changed to Attic in https://gitbox.apache.org/repos/asf?p=metamodel.git;f=doap_MetaModel.rdf;a=blob_plain;hb=HEAD

2021-06-20 Thread Projects


[Koha] Koha SIP2 performing very slow

2021-06-14 Thread HTML-CSS-PHP-JS Projects
Hello ,

I have installed koha 20.11 and am trying to use SIP2.
The SIP2 service is responding properly from the server. But there is a lot
of delay in data processing from one server to another (means from koha
server to Middleware Server).

when request sent first time it will return correct response but after
second time with another request it display previous response.
I have checked our server sip log file, it returns the correct response
every time.

What can I do to improve SIP performance. is there any way to improve
telnet response  performance or Middleware Server
___

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


[arch-projects] [netctl] [GIT] Network control utility based on systemd annotated tag 1.25 created. 1.25

2021-05-13 Thread Jouke Witteveen via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Network control utility based on systemd".

The annotated tag, 1.25 has been created
at  b681d06ba75a5e82a7d0aeddcc91563e3cbdc23e (tag)
   tagging  caa6c43e87e626d445769def6e3d26b2d5187ade (commit)
  replaces  1.24
 tagged by  Jouke Witteveen
on  Thu May 13 17:56:48 2021 +0200

- Log -
Release 1.25
-BEGIN PGP SIGNATURE-

iQFKBAABCAA0FiEEbql9KtO+F66lkufaVrYfv4JJLBUFAmCdTEUWHGoud2l0dGV2
ZWVuQGdtYWlsLmNvbQAKCRBWth+/gkksFRj/B/9pDqjTwKZaSH3mKAFhfF0bTot/
TxtYidFajQ8BQKE8UipwlzjrEP2Jarx5bQ36uoq/SC2vNJJmphH+UZUWmdRoAZSZ
p2x10xQNVD3YXiapHVZ2b19+yRsVAjlTVxUZ6HGAkab4ClIWWmpMaZYd90kQxhco
jRtOtzC4X7qFFsqdIP+8C+nCd22XZhgO5hf5XO8Qw0CsKHoY/bXIIsk8ME76Dcco
WiEdU0yjbPVhEXKqcU015l8WlfGJiF22g77wan6OHVuxvxX9y3CJc8WOfHyErB6w
PHNepTkJTFrnr22sX18Eu1g1sLjzbi6oSye75Ul1figrz3gOiIB/xMnVgKXI
=h21k
-END PGP SIGNATURE-

Jouke Witteveen (3):
  Add verify subcommand to netctl
  More uniform profile loading and filtering
  1.25 release updates

---


hooks/post-receive
-- 
Network control utility based on systemd


[arch-projects] [netctl] [GIT] Network control utility based on systemd branch master updated. 1.24-3-gcaa6c43

2021-05-13 Thread Jouke Witteveen via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Network control utility based on systemd".

The branch, master has been updated
   via  caa6c43e87e626d445769def6e3d26b2d5187ade (commit)
   via  8773d7f02d394a27a173e74abf5b35219055de4e (commit)
  from  9b70046f86b948c7e8c3c307f218c378714692ed (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit caa6c43e87e626d445769def6e3d26b2d5187ade
Author: Jouke Witteveen 
Date:   Thu May 13 17:56:33 2021 +0200

1.25 release updates

commit 8773d7f02d394a27a173e74abf5b35219055de4e
Author: Jouke Witteveen 
Date:   Fri May 7 14:24:18 2021 +0200

More uniform profile loading and filtering

Hooks and interface scripts are now sourced more systematically.
Settings of wireless profiles that depend on hooks are now picked up
correctly by netctl-auto.

Suggested by: Vitor Sakaguti 

---

Summary of changes:
 Makefile|  2 +-
 NEWS|  4 
 src/ifplugd.action  |  5 ++---
 src/lib/auto.action |  3 ---
 src/lib/globals | 56 -
 src/lib/interface   |  9 -
 src/lib/network |  1 -
 src/netctl-auto |  6 ++
 src/netctl.in   | 11 +++
 9 files changed, 55 insertions(+), 42 deletions(-)


hooks/post-receive
-- 
Network control utility based on systemd


[arch-projects] [netctl][PATCH] More uniform profile loading and filtering

2021-05-07 Thread Jouke Witteveen via arch-projects
Hooks and interface scripts are now sourced more systematically.
Settings of wireless profiles that depend on hooks are now picked up
correctly by netctl-auto.

Suggested by: Vitor Sakaguti 
---

Inspired by a report on GitHub:
https://github.com/joukewitteveen/netctl/issues/185

 src/ifplugd.action  |  5 ++--
 src/lib/auto.action |  3 ---
 src/lib/globals | 56 ++---
 src/lib/interface   |  9 
 src/lib/network |  1 -
 src/netctl-auto |  6 ++---
 src/netctl.in   | 11 +++--
 7 files changed, 50 insertions(+), 41 deletions(-)

diff --git a/src/ifplugd.action b/src/ifplugd.action
index c1f0e7d..0cebb34 100755
--- a/src/ifplugd.action
+++ b/src/ifplugd.action
@@ -14,11 +14,10 @@ case "$2" in
 printf '%s' "$profile" > "$PROFILE_FILE"
 exit 0
 fi
-done < <(list_profiles | while IFS= read -r profile; do
+done < <(filter_profiles "$1" ethernet | while IFS= read -r profile; do
 report_debug "Examining profile '$profile'"
 (
-  source "$PROFILE_DIR/$profile" > /dev/null
-  [[ $Interface == "$1" && $Connection == "ethernet" ]] || exit
+  load_profile "$profile" > /dev/null
   # Prioritize dhcp based profiles as they can outright fail, whereas
   # it is difficult to tell if a profile with a static address fails
   if [[ $IP == "dhcp" || $IP6 == dhcp* ]]; then
diff --git a/src/lib/auto.action b/src/lib/auto.action
index 6c13651..717d205 100755
--- a/src/lib/auto.action
+++ b/src/lib/auto.action
@@ -1,7 +1,6 @@
 #! /bin/bash
 
 . /usr/lib/netctl/globals
-. "$SUBR_DIR/interface"
 . "$SUBR_DIR/ip"
 
 export INTERFACE="$1"
@@ -11,7 +10,6 @@ PROFILE_FILE="$STATE_DIR/netctl-auto-$INTERFACE.profile"
 case $ACTION in
   CONNECTED)
 load_profile "$WPA_ID_STR"
-load_interface_config "$INTERFACE"
 DhcpcdOptions+=" -K -L"
 ip_set || exit 1
 mkdir -p "$(dirname "$PROFILE_FILE")"
@@ -26,7 +24,6 @@ case $ACTION in
   DISCONNECTED)
 if [[ -s "$PROFILE_FILE" ]]; then
 load_profile "$(< "$PROFILE_FILE")"
-load_interface_config "$INTERFACE"
 rm -f "$PROFILE_FILE"
 # Sandbox the eval
 if ! ( do_debug eval "$ExecDownPre" ); then
diff --git a/src/lib/globals b/src/lib/globals
index 32a1802..3d2c50d 100644
--- a/src/lib/globals
+++ b/src/lib/globals
@@ -103,41 +103,71 @@ timeout_wait() {
 
 ### Profile management
 
-## List all acceptable profiles names separated by newlines
-list_profiles() {
-# Follow aliases with -L, skip forbidden/reserved names
-find -L "$PROFILE_DIR/" -maxdepth 1 -type f -not -name '.*' -not -name 
'*~' -not -name $'*\n*' -not -name '*.action' -not -name '*.conf' -not -name 
'*.service' -printf '%f\n'
+## Load all available hooks
+load_hooks() {
+local hook
+while IFS= read -r hook; do
+source "$hook"
+done < <(find -L "$PROFILE_DIR/hooks" -maxdepth 1 -type f -executable -not 
-name '.*' -not -name '*~' -not -name $'*\n*' | sort)
 }
 
-## Exit if a profile file is not syntactically correct
-# $1: profile name
-verify_profile() {
-/bin/bash -n "$PROFILE_DIR/$1" || exit 1
+## Load interface configuration, if present
+# $1: interface name
+load_interface_config() {
+local config_file="$PROFILE_DIR/interfaces/$1"
+if [[ -x $config_file ]]; then
+source "$config_file"
+fi
 }
 
 ## Sources all hooks and a profile (but no interface configuration)
 # $1: profile name
 load_profile() {
-local hook
 # Expose the profile name
 Profile=$1
 if [[ -z $Profile || ! -r "$PROFILE_DIR/$Profile" ]]; then
 exit_error "Profile '$Profile' does not exist or is not readable"
 fi
-while IFS= read -r hook; do
-source "$hook"
-done < <(find -L "$PROFILE_DIR/hooks" -maxdepth 1 -type f -executable -not 
-name '.*' -not -name '*~' -not -name $'*\n*' | sort -u)
-unset hook
+load_hooks
 source "$PROFILE_DIR/$Profile"
 if [[ -z $Interface ]]; then
 exit_error "Profile '$Profile' does not specify an interface"
 fi
+load_interface_config "$Interface"
 if [[ ! -r "${Connection:+$SUBR_DIR/connections/$Connection}" ]]; then
 exit_error "Profile '$Profile' does not specify a valid connection"
 fi
 source "$SUBR_DIR/connections/$Connection"
 }
 
+## List all acceptable profiles names separated by newlines
+list_profiles() {
+# Follow aliases with -L, skip forbidden/reserved names
+find -L "$PROFILE_DIR/" -maxdepth 1 -type f -not -name '.*' -not -name 
'*~' -not -name $'*\n*' -not -name '*.action' -not -name '*.conf' -not -name 
'*.service' -printf '%f\n'
+}
+
+## List names of profiles for a given interface and/or connection
+# $1: interface (optional)
+# $2: connection (optional)
+filter_profiles() {
+list_profiles | while IFS= read -r Profile; do
+if (
+  source "$PROFILE_DIR/$Profile" || exit
+  [[ -z $1 || $1 == "$Interface" ]] || exit
+ 

[arch-projects] [namcap] [PATCH] VCS requirements can be satisfied by depends=(...)

2021-05-03 Thread arch--- via arch-projects
From: Erich Eckner 

"W: VCS source PKGBUILD needs additional makedepends 'git' to work
properly" and co were too specific: It's sufficient to have the needed
package in depends=(). So we should check makedepends=() and depends=()
for needed packages.

Signed-off-by: Erich Eckner 
---
 Namcap/rules/makedepends.py | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Namcap/rules/makedepends.py b/Namcap/rules/makedepends.py
index b319e7c..2923e32 100644
--- a/Namcap/rules/makedepends.py
+++ b/Namcap/rules/makedepends.py
@@ -71,11 +71,11 @@ class VCSMakedepends(PkgbuildRule):
 
for v in protocols:
d = vcs[v]
-   if 'makedepends' not in pkginfo:
-   missing.append(d)
+   if 'makedepends' in pkginfo and d in 
pkginfo["makedepends"]:
continue
-   if d not in pkginfo["makedepends"]:
-   missing.append(d)
+   if 'depends' in pkginfo and d in pkginfo["depends"]:
+   continue
+   missing.append(d)
 
for i in missing:
self.warnings.append(("missing-vcs-makedeps %s", i))
-- 
2.31.1


WARN: project from a retired committee but PMC not changed to Attic in https://gitbox.apache.org/repos/asf?p=trafodion.git;a=blob_plain;f=doap.rdf;hb=HEAD

2021-04-27 Thread Projects


WARN: project in Attic but not in 'retired' category: https://gitbox.apache.org/repos/asf?p=trafodion.git;a=blob_plain;f=doap.rdf;hb=HEAD

2021-04-27 Thread Projects


[dspace-tech] Single item but Separate metadata for separate bitsream

2021-04-17 Thread Projects Arunendra
Is it possible to enter individual metadata for individual bitstream where 
multiple such bitstreams belong to a single item?
Using Dspace 5.10

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/0c8be27c-c8e6-48f2-889a-317901c70132n%40googlegroups.com.


[dspace-tech] Import and Export-Collection specific metadata

2021-04-16 Thread Projects Arunendra
While batch uploading if somebody unintentionally *import*s metadata of one 
type of collection into another collection, having separate metadata, can 
Dspace prevent that?

Similarly, while *export*ing, how do I export collection with its own 
metadata only and not other metadata fields that are not part of that 
Collection?

I am using DSpace 5.10 but I guess the question will apply to recent 
versions also.

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/acd04c25-008b-4f4c-b054-2fab8c827aean%40googlegroups.com.


[arch-projects] [devtools] [PATCH] sync makepkg.conf with the pacman package

2021-04-13 Thread Eli Schwartz via arch-projects
Aside for comments, this implements the buildflags RFC from:

https://lists.archlinux.org/pipermail/arch-dev-public/2021-March/030374.html
https://gitlab.archlinux.org/archlinux/rfcs/-/merge_requests/3
Signed-off-by: Eli Schwartz 
---
 makepkg-x86_64.conf | 13 +
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/makepkg-x86_64.conf b/makepkg-x86_64.conf
index 3a1384f..16a6247 100644
--- a/makepkg-x86_64.conf
+++ b/makepkg-x86_64.conf
@@ -38,15 +38,20 @@ CARCH="x86_64"
 CHOST="x86_64-pc-linux-gnu"
 
 #-- Compiler and Linker Flags
-CPPFLAGS="-D_FORTIFY_SOURCE=2"
-CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
-CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
+#CPPFLAGS=""
+CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
+-Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS \
+-Wformat -Werror=format-security \
+-fstack-clash-protection -fcf-protection"
+CXXFLAGS="$CFLAGS"
 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
+#RUSTFLAGS="-C opt-level=2"
 #-- Make Flags: change this for DistCC/SMP systems
 #MAKEFLAGS="-j2"
 #-- Debugging flags
 DEBUG_CFLAGS="-g -fvar-tracking-assignments"
 DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
+#DEBUG_RUSTFLAGS="-C debuginfo=2"
 
 #
 # BUILD ENVIRONMENT
@@ -89,7 +94,7 @@ BUILDENV=(!distcc color !ccache check !sign)
 #
 OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
 
-#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
+#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, 
sha512, b2
 INTEGRITY_CHECK=(md5)
 #-- Options to be used when stripping binaries. See `man strip' for details.
 STRIP_BINARIES="--strip-all"
-- 
2.31.1


[arch-projects] [dbscripts] [PATCH] Update license status

2021-04-03 Thread Luke Shumaker via arch-projects
From: Luke Shumaker 

I hereby confirm that I license my work on dbscripts under the
GPLv2-or-later.
---
 LICENSE_STATUS.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
Happy hacking,
~ Luke Shumaker

diff --git a/LICENSE_STATUS.md b/LICENSE_STATUS.md
index 611f11f..ac4c2e3 100644
--- a/LICENSE_STATUS.md
+++ b/LICENSE_STATUS.md
@@ -19,6 +19,7 @@ GPL-2.0-or-later. This covers the following contributions:
 The following additional contributors have been contacted and agreed to the
 licensing update:
 
+-   23 Luke Shumaker
 -   16 Francois Charette
 -   16 Thomas Bächler
 -   13 Xavier Chantry
@@ -40,7 +41,6 @@ licensing update:
 We still need to contact these people and acquire a license grant or otherwise
 resolve the status of their contributions.
 
--   23 Luke Shumaker
 -   15 Eric Bélanger
 -7 Abhishek Dasgupta
 -3 Daniel J Griffiths
-- 
2.31.1


[arch-projects] [dbscripts] [GIT] Official repo DB scripts branch master updated. 20191022-8-g03183d9

2021-03-14 Thread Eli Schwartz via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Official repo DB scripts".

The branch, master has been updated
   via  03183d98275f685120b6a9aa2e766b4db933e2ad (commit)
  from  67317c9180f062d243999467951a9b8a825501b8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 03183d98275f685120b6a9aa2e766b4db933e2ad
Author: Eli Schwartz 
Date:   Sun Mar 14 14:53:38 2021 -0400

test: do not use deprecated and unmaintained image

The official image switched names from "base" to "archlinux".

---

Summary of changes:
 test/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
Official repo DB scripts


[arch-projects] [dbscripts] [GIT] Official repo DB scripts branch master updated. 20191022-7-g67317c9

2021-03-14 Thread Eli Schwartz via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Official repo DB scripts".

The branch, master has been updated
   via  67317c9180f062d243999467951a9b8a825501b8 (commit)
   via  6070e8799a668cbd966e83f64c8a21ef09f362af (commit)
   via  d743595f89d3f54ec46984f7e7878b8e80cc2ed9 (commit)
   via  99e1d49fd55a849e8db614ddb5f6f6f3ee6f42ca (commit)
   via  e4ef8b209b1b2164defd165f5ec0bb26dcb8dbf9 (commit)
  from  eb1a090c5bfb9a1620abc21f8b81da510f965c4d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 67317c9180f062d243999467951a9b8a825501b8
Author: Eli Schwartz 
Date:   Tue Sep 1 16:04:01 2020 -0400

test: add fixture for splitdebug package

commit 6070e8799a668cbd966e83f64c8a21ef09f362af
Author: Eli Schwartz 
Date:   Tue Sep 1 15:16:14 2020 -0400

test: let the Makefile drive the needed work

BUILDDIR is a testsuite requirement, cases might be set manually

commit d743595f89d3f54ec46984f7e7878b8e80cc2ed9
Author: Eli Schwartz 
Date:   Tue Sep 1 15:09:15 2020 -0400

test: sync dummy packages impl with makepkg

Or else it doesn't work if you have packages installed but not from a repo

commit 99e1d49fd55a849e8db614ddb5f6f6f3ee6f42ca
Author: Eli Schwartz 
Date:   Thu Jul 2 21:23:38 2020 -0400

Update licensing status with responses.

commit e4ef8b209b1b2164defd165f5ec0bb26dcb8dbf9
Author: Felix Yan 
Date:   Mon Jun 22 17:26:24 2020 +0800

Correct a typo in db-move

---

Summary of changes:
 LICENSE_STATUS.md| 26 +++---
 Makefile |  3 ++-
 db-move  |  2 +-
 test/Dockerfile  |  1 -
 test/Makefile|  8 +---
 test/fixtures/pkg-debuginfo/PKGBUILD | 13 +
 test/lib/common.bash | 16 ++--
 7 files changed, 46 insertions(+), 23 deletions(-)
 create mode 100644 test/fixtures/pkg-debuginfo/PKGBUILD


hooks/post-receive
-- 
Official repo DB scripts


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository annotated tag v30 created. v30

2021-02-16 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The annotated tag, v30 has been created
at  67472e1714bcc65a9929c4ac3c27dfcba2c9d766 (tag)
   tagging  ab6bad7e65b45ca73904fa8e643e5d460fd45004 (commit)
  replaces  v29
 tagged by  Giancarlo Razzolini
on  Tue Feb 16 23:42:22 2021 -0300

- Log -
tag as v30
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEE7MrITBugimzI5j+78i+x14p3rqsFAmAsgo4ACgkQ8i+x14p3
rquGUQ/+NkVaMbwYh0Wb+XxxuS2XQIN9XEaL7x7g3eegxtGbmNx26y8iBlXQ7csX
FOzJHin6O5NXI/cCRi+tiBb+TU0kGyA2fVg3tO45n+hd+fxdPAZtadx17ZAF/ici
truNe6Z9wXbaDfivL65YivxCX8TqgM3kANVZCzVvbeyJljgB77ykuY24c2jssodw
Emrz+eZODOZwIIGbCtTcF0dKfuN76+UeXZROHLSDj4lUlJlVZ815lTrSpnsUsPNU
O820L8TR8ta1tDT1fK0PxnHqeLKXVjuYilJ6JD7aVaT52hghPl8KHI2OkkBPT5Ks
UNyCa7syrk3FS5ssDpFBM+6aBewBBXhMpsX9p0HtyAaL1d+u74g4ndOe04NFL6KZ
szGvxEzrL7Wztmw6sCdfpqgxf581MLZ0EZj9JIHMJu/OBfnX0iRJMdDDmnmYVC74
IZ/oo0iAinthJ5tCQJoj/Sl2lJZrXHE9hbzjRqgjKj7TlsBigc8WAfn74zG78IOg
lLPCdDnXRlKf5Ui63NWJl46Br7VxvWAoAsliOgIdjP2rhGAbd/TygtOxgL7DkSnv
dOHngbmDqqcC/txKDRfZ0oShWtYongQentpe+MpdC5MUzNca3BUvkq563BQeKi7R
AUKyepeayeAyC9iSedBkvZn5qh0Kvh7L35W05O+YPGlk6bgJJ+E=
=iAAX
-END PGP SIGNATURE-

Chocobo1 (1):
  Allow user to override default compression options

Giancarlo Razzolini (9):
  Merge branch 'Chocobo1-compression_opt'
  mkinitcpio: Lower zstd compression level to 15
  Merge branch 'zstd_compression_level'
  Fix the copyright date on README and man pages
  Merge branch 'fix_copyright'
  man/mkinitcpio.conf: Fix the copyright
  Merge pull request #47 from cherti/master
  Switch to zstd by default
  Merge branch 'zstd_default'

Jonas Große Sundrup (1):
  Remove explicit default for compression level of zstd

---


hooks/post-receive
-- 
The official mkinitcpio repository


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository branch master updated. v29-11-gab6bad7

2021-02-16 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The branch, master has been updated
   via  ab6bad7e65b45ca73904fa8e643e5d460fd45004 (commit)
   via  2f4a2b592fb98aab1a0e4f3135d4592219b7c25c (commit)
   via  a41dccf0c873b765fbb4b4e9cc160d360ca8baec (commit)
   via  d4d62ae6beae738b70568d81b6c5cd922fafbe59 (commit)
   via  55e6ce3d3349e4f4c12565dc82fcab5bccb44900 (commit)
   via  4cda39f0a89a6487eb96e8d069e8c9bf4b264819 (commit)
   via  d0d7528d849782459c7344b4839588ec448d5a79 (commit)
   via  7a50fca2020b9727572b1dd397a4c6d688ce9ed6 (commit)
   via  d5a9dd2356427f70c2ab716526fdfbcccfecbb0a (commit)
   via  e445267bb21fc974170a960b990ad66cf23ad96b (commit)
   via  ff24ed89f8074392df4e0098e3ebb4f2ee0db02e (commit)
  from  6e4603638b459468d235437c6a47584d609a86a2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit ab6bad7e65b45ca73904fa8e643e5d460fd45004
Merge: a41dccf 2f4a2b5
Author: Giancarlo Razzolini 
Date:   Tue Feb 16 23:37:31 2021 -0300

Merge branch 'zstd_default'

commit 2f4a2b592fb98aab1a0e4f3135d4592219b7c25c
Author: Giancarlo Razzolini 
Date:   Tue Feb 16 23:34:00 2021 -0300

Switch to zstd by default

Since all the Arch kernels now support zstd, switch to it by default

commit a41dccf0c873b765fbb4b4e9cc160d360ca8baec
Merge: 55e6ce3 d4d62ae
Author: Giancarlo Razzolini 
Date:   Tue Feb 16 22:58:58 2021 -0300

Merge pull request #47 from cherti/master

Change explicit default for compression level of zstd

commit d4d62ae6beae738b70568d81b6c5cd922fafbe59
Author: Jonas Große Sundrup 
Date:   Sat Jan 30 12:35:24 2021 +0100

Remove explicit default for compression level of zstd

commit 55e6ce3d3349e4f4c12565dc82fcab5bccb44900
Author: Giancarlo Razzolini 
Date:   Thu Jan 7 14:46:02 2021 -0300

man/mkinitcpio.conf: Fix the copyright

The copyright was still pointing to 2019.

commit 4cda39f0a89a6487eb96e8d069e8c9bf4b264819
Merge: 7a50fca d0d7528
Author: Giancarlo Razzolini 
Date:   Thu Jan 7 14:41:33 2021 -0300

Merge branch 'fix_copyright'

commit d0d7528d849782459c7344b4839588ec448d5a79
Author: Giancarlo Razzolini 
Date:   Thu Jan 7 14:40:04 2021 -0300

Fix the copyright date on README and man pages

The copyright date on the README and the man pages was still 2019. Fixed
them to 2021.

commit 7a50fca2020b9727572b1dd397a4c6d688ce9ed6
Merge: e445267 d5a9dd2
Author: Giancarlo Razzolini 
Date:   Tue Jan 5 16:16:38 2021 -0300

Merge branch 'zstd_compression_level'

commit d5a9dd2356427f70c2ab716526fdfbcccfecbb0a
Author: Giancarlo Razzolini 
Date:   Tue Jan 5 16:14:40 2021 -0300

mkinitcpio: Lower zstd compression level to 15

After extensive testing, lowering the compression level to 15 seems to 
achieve
a compression time on the ball park of gzip, while also having ~10% savings 
on
top of it.

commit e445267bb21fc974170a960b990ad66cf23ad96b
Merge: 6e46036 ff24ed8
Author: Giancarlo Razzolini 
Date:   Tue Jan 5 15:46:57 2021 -0300

Merge branch 'Chocobo1-compression_opt'

commit ff24ed89f8074392df4e0098e3ebb4f2ee0db02e
Author: Chocobo1 
Date:   Fri Oct 30 12:20:28 2020 +0800

Allow user to override default compression options

---

Summary of changes:
 PKGBUILD  |  6 +++---
 README|  2 +-
 man/lsinitcpio.1.txt  |  2 +-
 man/mkinitcpio.8.txt  |  2 +-
 man/mkinitcpio.conf.5.txt | 14 ++
 mkinitcpio|  8 
 mkinitcpio.conf   |  4 ++--
 7 files changed, 18 insertions(+), 20 deletions(-)


hooks/post-receive
-- 
The official mkinitcpio repository


[arch-projects] [devtools] [GIT] The official devtools repository annotated tag 20210202 created. 20210202

2021-02-01 Thread Levente Polyak via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official devtools repository".

The annotated tag, 20210202 has been created
at  8f68b0721c1d4f718e9b8e74deb6598d8cb92d94 (tag)
   tagging  90ba07d9be2883cccb1dd42aa0c8f974a2ff055c (commit)
  replaces  20200407
 tagged by  Levente Polyak
on  Tue Feb 2 00:52:02 2021 +0100

- Log -
Version 20210202
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEE4kC1fixGMLp2ji8m/BtUfI2BcsgFAmAYlCIACgkQ/BtUfI2B
csh6Mg/5AWYESC5vDJsI4fisl8cSe6y/C9TaoPYIctIfTUdmZB8aeoi2EpKtXBAI
+TSyAOsykJCuIAOtXOStgqoCO4/3FVGuEPEYCRA8e2DkUQBhKx391asAvJqvosHu
0NoPSkp0eXtWBSeF0isbDOgSW56EEbCJBte7peVhEagjs3alCJ7kl8YdAoXiejnr
Q1FOMq1nakYNjSe9KXWDvXyKvNRceBTCssTeqjoC3jAKa5N4hs0npEEDe0DN+tnF
gse8huv63m75/jlf6kdR7ZcaMddYtV0J7DcdAugab+RKGfjiX/+L3WgOA7XT+Ndr
C5ZqaUbu6NT+bjjeDMTYdhN9oQ5jOrPdOOxPClZky+653zXibZqAIhNgHUJx9eQD
+TIxHap8b88UE8tf1fFlW83jhDM7peE/FWJjR1XiT+KPP+Vj0x5Cv/h0wZxMrMHv
eARYvRZmqxbfBb+R8ipGcp7sIl4zWDDIYAHAqT9d3GvaU54P0VN1wkFeWCwlqYGy
qHljdG4QWm3+o/LPK0+K26hKunmJ0JGw5eE3YgIGB3y8Om0oXwePA7CIcveJhWJn
UOaBkoKjbvTQqAWfQl9ivGvs3ewT3Mf8XQj3wUO16YsQYgwKs2V7fNV/2M68rph+
2uE4oH+k9x782Cz68n4HOIVHounDqZMoSx0vq1uK+TsOWonunGM=
=1kuT
-END PGP SIGNATURE-

Christian Hesse (2):
  makepkg.conf: make rsync use new-style compression in makepkg.conf
  doc: update default build host

Eli Schwartz (2):
  makerepropkg: do fast cache lookups
  makerepropkg: allow specifying the package in pacman -S format

Jelle van der Waa (1):
  doc: add devtools.7 man page

Konstantin Gizdov (1):
  offload-build: respect SRCEXT from makepkg.conf

Levente Polyak (3):
  offload-build: change default host to build.archlinux.org
  makechrootpkg: only expose failed build logs instead of products
  Version 20210202

bartoszek (1):
  makechrootpkg: Expose failed build logs/products

---


hooks/post-receive
-- 
The official devtools repository


[arch-projects] [devtools] [GIT] The official devtools repository branch master updated. 20200407-10-g90ba07d

2021-02-01 Thread Levente Polyak via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official devtools repository".

The branch, master has been updated
   via  90ba07d9be2883cccb1dd42aa0c8f974a2ff055c (commit)
  from  8c26438df8be47531e4c071dc44d78a02fbf1d76 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 90ba07d9be2883cccb1dd42aa0c8f974a2ff055c
Author: Levente Polyak 
Date:   Tue Feb 2 00:51:57 2021 +0100

Version 20210202

---

Summary of changes:
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The official devtools repository


[arch-projects] [devtools] [GIT] The official devtools repository branch master updated. 20200407-9-g8c26438

2021-02-01 Thread Levente Polyak via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official devtools repository".

The branch, master has been updated
   via  8c26438df8be47531e4c071dc44d78a02fbf1d76 (commit)
  from  a49bcf20970214c12a0726c0f4bf4abb1a378ab2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 8c26438df8be47531e4c071dc44d78a02fbf1d76
Author: Levente Polyak 
Date:   Sun Jan 31 16:08:36 2021 +0100

makechrootpkg: only expose failed build logs instead of products

After further followups always moving all products isn't actually
desired as they can theoretically be broken in various ways if
arch-nspawn exists non successful.

However, as we would like to always preserve the produced log files we
instead split out the logfiles into an own function and call that for
unsuccessful buils.

Fixes 4f305aa3

---

Summary of changes:
 makechrootpkg.in | 19 ---
 1 file changed, 12 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
The official devtools repository


[arch-projects] [devtools] [GIT] The official devtools repository branch master updated. 20200407-8-ga49bcf2

2021-01-30 Thread Levente Polyak via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official devtools repository".

The branch, master has been updated
   via  a49bcf20970214c12a0726c0f4bf4abb1a378ab2 (commit)
  from  0883f45b3a688490cdf57c3ca4b847ce1e21f5ee (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit a49bcf20970214c12a0726c0f4bf4abb1a378ab2
Author: Christian Hesse 
Date:   Thu Jan 28 23:46:04 2021 +0100

doc: update default build host

Commit 09e169b7418319eadfc4eab83fbf2fcc459d536e changed the default
build host from dragon.archlinux.org to build.archlinux.org - match
in documentation.

Signed-off-by: Christian Hesse 

---

Summary of changes:
 doc/offload-build.1.asciidoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The official devtools repository


Re: [arch-projects] [namcap] [PATCH] Use section.iter_tags('type') as applicable

2021-01-28 Thread Emil Velikov via arch-projects
On Sun, 10 Jan 2021 at 16:34, Emil Velikov  wrote:
>
> On Tue, 5 Jan 2021 at 01:40, Emil Velikov  wrote:
> >
> > This produces shorter and faster code. The speed-up depends greatly on
> > the workload - so here are some examples:
> >
> > File: mesa-18.3.2-1-x86_64.pkg.tar.xz from [1]
> >
> > Before:
> > 1.66s user 0.15s system 100% cpu 1.814 total
> > 1.61s user 0.21s system 100% cpu 1.820 total
> > 1.69s user 0.15s system 100% cpu 1.832 total
> >
> > After:
> > 1.62s user 0.17s system 100% cpu 1.782 total
> > 1.66s user 0.14s system 100% cpu 1.800 total
> > 1.63s user 0.15s system 100% cpu 1.781 total
> >
> > File: mesa-18.3.2-1-x86_64.pkg.tar.xz renamed to foo.bar
> > Note: due to the rename, the build-in python extractor is used.
> >
> > Before:
> > 687.76s user 2.19s system 99% cpu 11:30.68 total
> >
> > After:
> > 390.73s user 1.37s system 99% cpu 6:32.72 total
> >
>
> Hey everyone, just to clarify:
> The above numbers are indicative when using the (old) shell script as
> well as with master.
>
> Although if people prefer I can drop the numbers all together :-)
>
Humble poke anyone?

-Emil


[arch-projects] [devtools] [PATCH 1/1] doc: update default build host

2021-01-28 Thread Christian Hesse via arch-projects
From: Christian Hesse 

Commit 09e169b7418319eadfc4eab83fbf2fcc459d536e changed the default
build host from dragon.archlinux.org to build.archlinux.org - match
in documentation.

Signed-off-by: Christian Hesse 
---
 doc/offload-build.1.asciidoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/offload-build.1.asciidoc b/doc/offload-build.1.asciidoc
index 3633faa..5c9515f 100644
--- a/doc/offload-build.1.asciidoc
+++ b/doc/offload-build.1.asciidoc
@@ -28,7 +28,7 @@ Options
architecture officially supported by Arch Linux.
 
 *-s, --server* ::
-   Offload to a specific build server. The default is dragon.archlinux.org
+   Offload to a specific build server. The default is build.archlinux.org
which is used as part of the build toolchain for the official Arch Linux
repos.
 


[arch-projects] [devtools] [GIT] The official devtools repository branch master updated. 20200407-7-g0883f45

2021-01-26 Thread Levente Polyak via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official devtools repository".

The branch, master has been updated
   via  0883f45b3a688490cdf57c3ca4b847ce1e21f5ee (commit)
   via  99c2020d47aea5409212e54d505a8d285057021d (commit)
   via  00f7a6a415ee1f0e3fbb80eca833d84492fb8176 (commit)
   via  4f305aa31605de1171558edad58c413d2a47b5e7 (commit)
   via  09e169b7418319eadfc4eab83fbf2fcc459d536e (commit)
   via  360a7611a8df0b0e52f7d1b2fb58059fc997dc5e (commit)
   via  d507db94906769aa73ef97157fba543f2a2d7d61 (commit)
  from  aff81d34fd072e978925a0ad5d04ea0978ce42ed (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 0883f45b3a688490cdf57c3ca4b847ce1e21f5ee
Author: Eli Schwartz 
Date:   Mon Jun 8 15:13:41 2020 -0400

makerepropkg: allow specifying the package in pacman -S format

We now accept:

1) # nothing

in which case we'll use the PKGBUILD to retrieve...

2) name, or repo/name

in which case we'll use pacman to cache the package and retrieve...

3) a filename

Signed-off-by: Eli Schwartz 

commit 99c2020d47aea5409212e54d505a8d285057021d
Author: Eli Schwartz 
Date:   Sun May 24 19:32:38 2020 -0400

makerepropkg: do fast cache lookups

Teach get_pkgfile to call itself in local-only mode and find a cached
file no matter what its extension is. Avoids repetitively trying to curl
random files, fail with 404 errors, and proceed to discover a cache hit
under a different file extension.

Signed-off-by: Eli Schwartz 

commit 00f7a6a415ee1f0e3fbb80eca833d84492fb8176
Author: Christian Hesse 
Date:   Thu Mar 26 07:16:31 2020 +0100

makepkg.conf: make rsync use new-style compression in makepkg.conf

Our rsync package is no longer built with bundled zlib, so old-style
compression is no longer supported.

https://www.archlinux.org/news/rsync-compatibility/

Signed-off-by: Christian Hesse 

commit 4f305aa31605de1171558edad58c413d2a47b5e7
Author: bartoszek 
Date:   Tue Mar 10 12:02:24 2020 +0100

makechrootpkg: Expose failed build logs/products

Since move_products() function is fairly robust we can make it run for
failed build also to expose logs for packages that fails in build(),
prepare() or package(). It also exposes partially packaged split
packages if they fail in latter package_xxx().

commit 09e169b7418319eadfc4eab83fbf2fcc459d536e
Author: Levente Polyak 
Date:   Tue Jan 26 20:40:47 2021 +0100

offload-build: change default host to build.archlinux.org

commit 360a7611a8df0b0e52f7d1b2fb58059fc997dc5e
Author: Jelle van der Waa 
Date:   Tue Mar 12 22:40:38 2019 +0100

doc: add devtools.7 man page

Signed-off-by: Jelle van der Waa 

commit d507db94906769aa73ef97157fba543f2a2d7d61
Author: Konstantin Gizdov 
Date:   Wed May 20 18:20:22 2020 +0300

offload-build: respect SRCEXT from makepkg.conf

---

Summary of changes:
 .gitignore  |  1 +
 Makefile|  3 ++-
 doc/devtools.7.asciidoc | 46 +
 doc/makerepropkg.1.asciidoc | 11 +++-
 makechrootpkg.in|  2 +-
 makepkg-x86_64.conf |  2 +-
 makerepropkg.in | 63 +++--
 offload-build.in|  8 +++---
 8 files changed, 115 insertions(+), 21 deletions(-)
 create mode 100644 doc/devtools.7.asciidoc


hooks/post-receive
-- 
The official devtools repository


Bug#975693: mirror submission for mirrors.hostico.ro

2021-01-25 Thread Awesome Projects

  Hello,

modified.


-
  Regards,
  Sebastian Bobriuc

On 1/25/21 8:21 PM, Julien Cristau wrote:

Hi,

On Wed, Nov 25, 2020 at 08:50:16AM +, Awesome Projects wrote:

Submission-Type: new
Site: mirrors.hostico.ro
Type: leaf
Archive-architecture: amd64
Archive-http: /debian/
Maintainer: Awesome Projects 
Country: RO Romania
Location: Bucharest
Sponsor: Hostico https://hostico.ro
Comment: Resubmission as suggested in 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959038 .


I was checking some things in the Debian mirror universe and noticed
a problem with your mirror:

o we recommend mirrors not sync directly from service aliases such as
   ftp..debian.org (only http is guaranteed to be available at
   ftp..d.o sites).  Maybe change your config to sync from
   the site currently backing the ftp..debian.org service you sync
   from?

You can use ftp.halifax.rwth-aachen.de instead of ftp2.de.debian.org as
rsync source.

Cheers,
Julien




[arch-projects] [netctl] [GIT] Network control utility based on systemd branch master updated. 1.24-1-g9b70046

2021-01-24 Thread Jouke Witteveen via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Network control utility based on systemd".

The branch, master has been updated
   via  9b70046f86b948c7e8c3c307f218c378714692ed (commit)
  from  ca58db4f98ec0e0182deb5a96d2de340425ad093 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 9b70046f86b948c7e8c3c307f218c378714692ed
Author: Jouke Witteveen 
Date:   Sun Jan 17 15:59:24 2021 +0100

Add verify subcommand to netctl

The name of the subcommand mirrors the same subcommand of systemd-analyze.

Verification before restarting would be useful. However, verification
requires the profile file to be readable by the current user. The current
user may be a regular user with permission to control systemd, so
restarting does not require the profile file to be readable. Therefore, we
do not attempt verification before restarting.

---

Summary of changes:
 docs/netctl.1.txt |  6 +-
 src/lib/globals   |  6 ++
 src/netctl.in | 26 ++
 3 files changed, 25 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
Network control utility based on systemd


[arch-projects] [netctl][PATCH] Add verify subcommand to netctl

2021-01-17 Thread Jouke Witteveen via arch-projects
The name of the subcommand mirrors the same subcommand of systemd-analyze.

Verification before restarting would be useful. However, verification
requires the profile file to be readable by the current user. The current
user may be a regular user with permission to control systemd, so
restarting does not require the profile file to be readable. Therefore, we
do not attempt verification before restarting.
---
 docs/netctl.1.txt |  6 +-
 src/lib/globals   |  6 ++
 src/netctl.in | 26 ++
 3 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/docs/netctl.1.txt b/docs/netctl.1.txt
index d6d9360..76d45b0 100644
--- a/docs/netctl.1.txt
+++ b/docs/netctl.1.txt
@@ -82,7 +82,11 @@ The following commands are understood:
 
 *edit [+PROFILE+]*::
 Open the file of the specified profile in an editor. This does not
-reenable or restart any profiles.
+reenable, restart, or verify any profiles.
+
+*verify [+PROFILE+]*::
+Check the file of the specified profile for syntax errors. If no
+errors are found, no output is produced.
 
 *wait-online [+PROFILE+]*::
 Wait until the interface of the profile has a routable IP address of
diff --git a/src/lib/globals b/src/lib/globals
index 74ce623..32a1802 100644
--- a/src/lib/globals
+++ b/src/lib/globals
@@ -109,6 +109,12 @@ list_profiles() {
 find -L "$PROFILE_DIR/" -maxdepth 1 -type f -not -name '.*' -not -name 
'*~' -not -name $'*\n*' -not -name '*.action' -not -name '*.conf' -not -name 
'*.service' -printf '%f\n'
 }
 
+## Exit if a profile file is not syntactically correct
+# $1: profile name
+verify_profile() {
+/bin/bash -n "$PROFILE_DIR/$1" || exit 1
+}
+
 ## Sources all hooks and a profile (but no interface configuration)
 # $1: profile name
 load_profile() {
diff --git a/src/netctl.in b/src/netctl.in
index c1ed493..a580048 100644
--- a/src/netctl.in
+++ b/src/netctl.in
@@ -23,7 +23,8 @@ Commands:
   disable [PROFILE]  Disable the systemd unit for a profile
   reenable [PROFILE] Reenable the systemd unit for a profile
   is-enabled [PROFILE]   Check whether a profile is enabled
-  edit [PROFILE] Edit a profile
+  edit [PROFILE] Edit a profile file
+  verify [PROFILE]   Check the syntax of a profile file
   wait-online [PROFILE]  Wait for a profile to finish connecting
 END
 }
@@ -71,9 +72,6 @@ stop_all() {
 
 switch_to() {
 cd "$PROFILE_DIR"
-if [[ ! -r $1 ]]; then
-exit_error "Profile '$1' does not exist or is not readable"
-fi
 # We assume interface names are not quoted
 # Using read removes leading whitespace
 read InterfaceLine < \
@@ -129,6 +127,11 @@ unit_disable() {
 "@systemdsystemconfdir@/$unit.d"{/profile.conf,}
 }
 
+unit_reenable() {
+unit_disable "$1"
+unit_enable "$1"
+}
+
 wait_online() {
 local profile="$1"
 if sd_call "is-active --quiet" "$profile"; then
@@ -163,20 +166,19 @@ case $# in
 sd_call "$1" "$2";;
   switch-to)
 ensure_root "$(basename "$0")"
+verify_profile "$2"
 switch_to "$2";;
-  enable|disable)
+  enable|disable|reenable)
 ensure_root "$(basename "$0")"
+if [[ $1 != "disable" ]]; then
+verify_profile "$2"
+fi
 "unit_$1" "$2"
 if systemd-notify --booted; then
 systemctl daemon-reload
 fi;;
-  reenable)
-ensure_root "$(basename "$0")"
-unit_disable "$2"
-unit_enable "$2"
-if systemd-notify --booted; then
-systemctl daemon-reload
-fi;;
+  verify)
+verify_profile "$2";;
   edit)
 exec ${EDITOR:-nano} "$PROFILE_DIR/$2";;
   wait-online)
-- 
2.30.0


Re: [arch-projects] [namcap] [PATCH] Use section.iter_tags('type') as applicable

2021-01-10 Thread Emil Velikov via arch-projects
On Tue, 5 Jan 2021 at 01:40, Emil Velikov  wrote:
>
> This produces shorter and faster code. The speed-up depends greatly on
> the workload - so here are some examples:
>
> File: mesa-18.3.2-1-x86_64.pkg.tar.xz from [1]
>
> Before:
> 1.66s user 0.15s system 100% cpu 1.814 total
> 1.61s user 0.21s system 100% cpu 1.820 total
> 1.69s user 0.15s system 100% cpu 1.832 total
>
> After:
> 1.62s user 0.17s system 100% cpu 1.782 total
> 1.66s user 0.14s system 100% cpu 1.800 total
> 1.63s user 0.15s system 100% cpu 1.781 total
>
> File: mesa-18.3.2-1-x86_64.pkg.tar.xz renamed to foo.bar
> Note: due to the rename, the build-in python extractor is used.
>
> Before:
> 687.76s user 2.19s system 99% cpu 11:30.68 total
>
> After:
> 390.73s user 1.37s system 99% cpu 6:32.72 total
>

Hey everyone, just to clarify:
The above numbers are indicative when using the (old) shell script as
well as with master.

Although if people prefer I can drop the numbers all together :-)

Regards,
Emil


Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-16 Thread Emil Velikov via arch-projects
On Fri, 11 Dec 2020 at 20:29, Eli Schwartz via arch-projects
 wrote:
>
> On 12/11/20 2:25 PM, meganomic via arch-projects wrote:
> > Adds handling of the compression and temporary storage into namcap.py
> > so it can be removed from the bash script.
> > https://bugs.archlinux.org/task/59844 mentions "use setuptools entry
> > points." instead of the bash script but I don't know how to do that.
> > I just removed it from the bash script for now.
>
> The subprocess to decompression tools is still (with your patch) just as
> annoying to me as the existence of the bash script. Python's builtin
> tarfile.open can handle gz, bz2, or xz.

Fwiw the python build-in handling of some archives is an order of
magnitude slower, than on a uncompressed file. From brief testing,
extracting is almost always a (time) win.
Ages ago I was debugging a pathological case where a sub 20MB
(compressed) binary package was of taking well over 6 _minutes_ IIRC
with namcap. Will polish and send up my patches over the next few
days. They help significantly, in said said case and overall.

Regards,
Emil


Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-15 Thread meganomic via arch-projects
Fixed some potential bugs and made it all around better. I'm working on 
upstreaming support in xtarfile for LZ4 compression so hopefully the special 
handling for that can be removed soon. I also fixed a bug in xtarfile that 
prevents .tar files from being opened. So once the new version hits the repos 
'import tarfile' can be removed.

diff --git a/namcap b/namcap
index ea0bc94..019b077 100755
--- a/namcap
+++ b/namcap
@@ -1,39 +1,2 @@
 #!/bin/bash
-
-args=''
-tmp=$(mktemp -d --tmpdir namcap.XX)
-cleanup() {
-   rm -rf "${tmp}"
-}
-trap 'cleanup' 0
-
-for arg in "${@}"; do
-   if echo "${arg}" | grep -q -E "^.+\.pkg\.tar\..+$" && [ -f "${arg}" ]; 
then
-
-   extra_opts=''
-   case "${arg##*.}" in
-   gz|z|Z) cmd='gzip' ;;
-   bz2|bz) cmd='bzip2' ;;
-   xz) cmd='xz' ;;
-   lzo)cmd='lzop' ;;
-   lrz)cmd='lrzip'
-   extra_opts="-q -o -" ;;
-   lz4)cmd='lz4'
-   extra_opts="-q" ;;
-   lz) cmd='lzip'
-   extra_opts="-q" ;;
-   zst)cmd='zstd'
-   extra_opts="-q" ;;
-   *)  echo 'Unsupported compression'; exit 1;;
-   esac
-
-   tar="${tmp}/$(basename "${arg%.*}")"
-   $cmd -dcf $extra_opts "${arg}" > "${tar}"
-
-   args="${args} ${tar}"
-   else
-   args="${args} ${arg}"
-   fi
-done
-
-/usr/bin/env python3 -m namcap ${args}
+/usr/bin/env python3 -m namcap ${@}
diff --git a/namcap.py b/namcap.py
index a7f532a..78662db 100755
--- a/namcap.py
+++ b/namcap.py
@@ -22,7 +22,11 @@
 import getopt
 import os
 import sys
+import subprocess
+import tempfile
+import pathlib
 import tarfile
+import xtarfile

 import Namcap.depends
 import Namcap.tags
@@ -49,18 +53,6 @@ def usage():

sys.exit(2)

-def open_package(filename):
-   try:
-   tar = tarfile.open(filename, "r")
-   if '.PKGINFO' not in tar.getnames():
-   tar.close()
-   return None
-   except IOError:
-   if tar:
-   tar.close()
-   return None
-   return tar
-
 def check_rules_exclude(optlist):
'''Check if the -r (--rules) and the -r (--exclude) options
are being used at same time'''
@@ -76,13 +68,10 @@ def show_messages(name, key, messages):
for msg in messages:
print("%s %s: %s" % (name, key, 
Namcap.tags.format_message(msg)))

-def process_realpackage(package, modules):
+def process_realpackage(pkgtar, package, modules):
"""Runs namcap checks over a package tarball"""
-   extracted = 0
-   pkgtar = open_package(package)
-
-   if not pkgtar:
-   print("Error: %s is empty or is not a valid package" % package)
+   if '.PKGINFO' not in pkgtar.getnames():
+   raise TypeError('Error: %s is not a valid package' % package)
return 1

pkginfo = Namcap.package.load_from_tarball(package)
@@ -98,7 +87,7 @@ def process_realpackage(package, modules):
rule.analyze(pkginfo, pkgtar)
else:
show_messages(pkginfo["name"], 'E',
- [('error-running-rule %s', i)])
+   
[('error-running-rule %s', i)])

# Output the three types of messages
show_messages(pkginfo["name"], 'E', rule.errors)
@@ -237,15 +226,71 @@ if len(active_modules) == 0:

 # Go through each package, get the info, and apply the rules
 for package in packages:
-   if not os.access(package, os.R_OK):
+   pkgpath = pathlib.Path(package)
+
+   if not pkgpath.is_file():
print("Error: Problem reading %s" % package)
usage()
-
-   if os.path.isfile(package) and tarfile.is_tarfile(package):
-   process_realpackage(package, active_modules)
-   elif 'PKGBUILD' in package:
+   sys.exit(1)
+
+   if pkgpath.with_suffix('').suffix == '.tar' or pkgpath.suffix == '.tar':
+   try: # Try using xtarfile first
+   with xtarfile.open(package, "r") as pkgtar:
+   process_realpackage(pkgtar, package, 
active_modules)
+
+   # If xtarfile can't handle the compression do it with external 
software
+   except NotImplementedError:
+   if pkgpath.suffix == '.lzo':
+   cmd = ['lzop', '-cdqf', pkgpath.as_posix()]
+   elif pkgpath.suffix == '.lrz':
+   cmd = ['lrzip', '-dqfo', '-', 
pkgpath.as_posix()]
+   elif 

Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-12 Thread Eli Schwartz via arch-projects

On 12/11/20 5:10 PM, meganomic via arch-projects wrote:
> I did a quick patch using your idea and it definitely seems like a
> good way to do it. Can probably clean it up and make it look prettier 
> with some refactoring. I'll look into it later.


Nice, thanks!

Haven't taken more than a cursory look at the implementation, but one 
thing stands out for cleanup, see below.




diff --git a/namcap.py b/namcap.py
index a7f532a..0e78b89 100755
--- a/namcap.py
+++ b/namcap.py
@@ -22,7 +22,10 @@
  import getopt
  import os
  import sys
-import tarfile
+import subprocess
+import tempfile
+import pathlib
+import xtarfile

  import Namcap.depends
  import Namcap.tags
@@ -49,18 +52,6 @@ def usage():

sys.exit(2)

-def open_package(filename):
-   try:
-   tar = tarfile.open(filename, "r")
-   if '.PKGINFO' not in tar.getnames():
-   tar.close()
-   return None
-   except IOError:
-   if tar:
-   tar.close()
-   return None
-   return tar
-
  def check_rules_exclude(optlist):
'''Check if the -r (--rules) and the -r (--exclude) options
are being used at same time'''
@@ -79,39 +70,38 @@ def show_messages(name, key, messages):
  def process_realpackage(package, modules):
"""Runs namcap checks over a package tarball"""
extracted = 0
-   pkgtar = open_package(package)
-
-   if not pkgtar:
-   print("Error: %s is empty or is not a valid package" % package)
-   return 1
-
-   pkginfo = Namcap.package.load_from_tarball(package)
-   # Loop through each one, load them apply if possible
-   for i in modules:
-   rule = get_modules()[i]()
-
-   if isinstance(rule, Namcap.ruleclass.PkgInfoRule):
-   rule.analyze(pkginfo, None)
-   elif isinstance(rule, Namcap.ruleclass.PkgbuildRule):
-   pass
-   elif isinstance(rule, Namcap.ruleclass.TarballRule):
-   rule.analyze(pkginfo, pkgtar)
-   else:
-   show_messages(pkginfo["name"], 'E',
- [('error-running-rule %s', i)])
-
-   # Output the three types of messages
-   show_messages(pkginfo["name"], 'E', rule.errors)
-   show_messages(pkginfo["name"], 'W', rule.warnings)
+   with xtarfile.open(package, "r") as pkgtar:
+   if '.PKGINFO' not in pkgtar.getnames():
+   print("Error: %s is not a valid package" % package)
+   return 1
+
+   pkginfo = Namcap.package.load_from_tarball(package)
+   # Loop through each one, load them apply if possible
+   for i in modules:
+   rule = get_modules()[i]()
+
+   if isinstance(rule, Namcap.ruleclass.PkgInfoRule):
+   rule.analyze(pkginfo, None)
+   elif isinstance(rule, Namcap.ruleclass.PkgbuildRule):
+   pass
+   elif isinstance(rule, Namcap.ruleclass.TarballRule):
+   rule.analyze(pkginfo, pkgtar)
+   else:
+   show_messages(pkginfo["name"], 'E',
+   
[('error-running-rule %s', i)])
+
+   # Output the three types of messages
+   show_messages(pkginfo["name"], 'E', rule.errors)
+   show_messages(pkginfo["name"], 'W', rule.warnings)
+   if info_reporting:
+   show_messages(pkginfo["name"], 'I', rule.infos)
+
+   # dependency analysis
+   errs, warns, infos = Namcap.depends.analyze_depends(pkginfo)
+   show_messages(pkginfo["name"], 'E', errs)
+   show_messages(pkginfo["name"], 'W', warns)
if info_reporting:
-   show_messages(pkginfo["name"], 'I', rule.infos)
-
-   # dependency analysis
-   errs, warns, infos = Namcap.depends.analyze_depends(pkginfo)
-   show_messages(pkginfo["name"], 'E', errs)
-   show_messages(pkginfo["name"], 'W', warns)
-   if info_reporting:
-   show_messages(pkginfo["name"], 'I', infos)
+   show_messages(pkginfo["name"], 'I', infos)

  def process_pkginfo(pkginfo, modules):
"""Runs namcap checks of a single, non-split PacmanPackage object"""
@@ -237,14 +227,45 @@ if len(active_modules) == 0:

  # Go through each package, get the info, 

Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-12 Thread meganomic via arch-projects
 'lz4'
+   extra_opts = '-c'
+   elif pkgpath.suffix == '.lz':
+   cmd = 'lzip'
+   extra_opts='-c'
+   else:
+   print("Unsupported compression format:", 
package)
+   sys.exit(1)
+
+   # Run decompression and put the .tar file in a 
temporary directory
+   try:
+   tmpdir = 
tempfile.TemporaryDirectory(prefix='namcap.')
+   except Exception as err:
+   print("Unable to create temporary storage:", 
err)
+   sys.exit(1)
+
+   tmpfilepath = 
pathlib.Path(tmpdir.name).joinpath(pkgpath.with_suffix('').name)
+   try:
+   with open(tmpfilepath.as_posix(), 'wb') as 
outfile:
+   p = subprocess.run(cmd + ' -dqf ' + 
extra_opts + ' ' + pkgpath.as_posix(), stdout=outfile, shell=True)
+   p.check_returncode() # Make sure it 
actually ran without errors
+   except Exception as err:
+   print("Unable to decompress:", err)
+   sys.exit(1)
+
+   try:
+#  if tmpfilepath.is_file() and 
tarfile.is_tarfile(tmpfilepath):
+   with tarfile.open(tmpfilepath) as pkgtar: # Is 
additional error checking needed here?
+   process_realpackage(pkgtar, package, 
active_modules)
+   except Exception as err:
+   print("File doesn't exist or isn't a tar 
file:", package, err)
+   sys.exit(1)
+
+   except TypeError as err: # The tar file doesn't contain a 
.PKGINFO file
+   print(err)
+   sys.exit(1)
+   except Exception as err:
+   print("Something went horrible wrong:", err)
+   sys.exit(1)

-   if os.path.isfile(package) and tarfile.is_tarfile(package):
-   process_realpackage(package, active_modules)
elif 'PKGBUILD' in package:
process_pkgbuild(package, active_modules)
+
else:
print("Error: %s not package or PKGBUILD" % package)
+   sys.exit(1)

 # vim: set ts=4 sw=4 noet:



‐‐‐ Original Message ‐‐‐
On Friday, December 11, 2020 11:10 PM, meganomic via arch-projects 
 wrote:

> I did a quick patch using your idea and it definitely seems like a good way 
> to do it. Can probably clean it up and make it look prettier with some 
> refactoring. I'll look into it later.
>
> diff --git a/namcap.py b/namcap.py
> index a7f532a..0e78b89 100755
> --- a/namcap.py
> +++ b/namcap.py
> @@ -22,7 +22,10 @@
> import getopt
> import os
> import sys
> -import tarfile
> +import subprocess
> +import tempfile
> +import pathlib
> +import xtarfile
>
> import Namcap.depends
> import Namcap.tags
> @@ -49,18 +52,6 @@ def usage():
>
> sys.exit(2)
>
> -def open_package(filename):
>
> -   try:
> - tar = tarfile.open(filename, "r")
>
>
> - if '.PKGINFO' not in tar.getnames():
>
>
> - tar.close()
>
>
> - return None
>
>
> -   except IOError:
> - if tar:
>
>
> - tar.close()
>
>
> - return None
>
>
> -   return tar
> -
>
> def check_rules_exclude(optlist):
> '''Check if the -r (--rules) and the -r (--exclude) options
> are being used at same time'''
> @@ -79,39 +70,38 @@ def show_messages(name, key, messages):
> def process_realpackage(package, modules):
> """Runs namcap checks over a package tarball"""
> extracted = 0
>
> -   pkgtar = open_package(package)
> -
> -   if not pkgtar:
> - print("Error: %s is empty or is not a valid package" % package)
>
>
> - return 1
>
>
> -
> -   pkginfo = Namcap.package.load_from_tarball(package)
> -   Loop through each one, load them apply if possible
>
> ===
>
> -   for i in modules:
> - rule = get_modules()[i]()
>
>
> -
> - if isinstance(rule, Namcap.ruleclass.PkgInfoRule):
>
>
> - rule.analyze(pkginfo, None)
>
>
> - elif isinstance(rule, Namcap.ruleclass.PkgbuildRule):
>
>
> - pass
>
>
> - elif isinstance(rule, Namcap.ruleclass.TarballRule):
>
>
> -  

Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-11 Thread meganomic via arch-projects
 Problem reading %s" % package)
-   usage()
+   parser.print_usage()
+   continue # Skip to next package if any
+
+   if pkgpath.with_suffix('').suffix == '.tar':
+   # What compression is used?
+   extra_opts = ''
+   if pkgpath.suffix == '.gz' or pkgpath.suffix == '.z' or 
pkgpath.suffix == '.Z' or pkgpath.suffix == '.bz2' or pkgpath.suffix == '.bz' 
or pkgpath.suffix == '.xz' or pkgpath.suffix == '.zst':
+   process_realpackage(package, active_modules)
+   continue # Skip to next package if any
+   elif pkgpath.suffix == '.lzo':
+   cmd = 'lzop'
+   elif pkgpath.suffix == '.lrz':
+   cmd = 'lrzip'
+   extra_opts="-q -o -"
+   elif pkgpath.suffix == '.lz4':
+   cmd = 'lz4'
+   extra_opts="-q"
+   elif pkgpath.suffix == '.lz':
+   cmd = 'lzip'
+   extra_opts="-q"
+   else:
+   print("Unsupported compression!")
+   continue # Skip to next package if any
+
+   # Run decompression and put the .tar file in a temporary 
directory
+   tmpdir = tempfile.TemporaryDirectory(prefix='namcap.')
+   tmpfilepath = 
pathlib.Path(tmpdir.name).joinpath(pkgpath.with_suffix('').name)
+   subprocess.run(cmd + ' -dcf ' + extra_opts + pkgpath.as_posix() 
+ ' > ' + tmpfilepath.as_posix(), shell=True)
+
+   if tmpfilepath.is_file() and xtarfile.is_tarfile(tmpfilepath):
+   process_realpackage(package, active_modules)

-   if os.path.isfile(package) and tarfile.is_tarfile(package):
-   process_realpackage(package, active_modules)
elif 'PKGBUILD' in package:
    process_pkgbuild(package, active_modules)
+
else:
print("Error: %s not package or PKGBUILD" % package)






‐‐‐ Original Message ‐‐‐
On Friday, December 11, 2020 9:29 PM, Eli Schwartz via arch-projects 
 wrote:

> On 12/11/20 2:25 PM, meganomic via arch-projects wrote:
>
> > Adds handling of the compression and temporary storage into namcap.py
> > so it can be removed from the bash script.
> > https://bugs.archlinux.org/task/59844 mentions "use setuptools entry
> > points." instead of the bash script but I don't know how to do that.
> > I just removed it from the bash script for now.
>
> The subprocess to decompression tools is still (with your patch) just as 
> annoying to me as the existence of the bash script. Python's builtin 
> tarfile.open can handle gz, bz2, or xz. Using the python-xtarfile module you 
> can use xtarfile.open to also handle zst. We should prefer the native code 
> instead of basically inlining bash into python.
>
> True, in order to support lzo, lrz, lz4, lz, we might still need to do 
> subprocess out and create a temporary file with the decompressed package, but 
> this should really be a last resort (and users in practice should rarely hit 
> this code).
>
> What do you think about trying xtarfile first?
>
> ---
>
> Eli Schwartz
> Bug Wrangler and Trusted User


Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-11 Thread Eli Schwartz via arch-projects

On 12/11/20 2:25 PM, meganomic via arch-projects wrote:

Adds handling of the compression and temporary storage into namcap.py
so it can be removed from the bash script.
https://bugs.archlinux.org/task/59844 mentions "use setuptools entry
points." instead of the bash script but I don't know how to do that.
I just removed it from the bash script for now.


The subprocess to decompression tools is still (with your patch) just as 
annoying to me as the existence of the bash script. Python's builtin 
tarfile.open can handle gz, bz2, or xz. Using the python-xtarfile module 
you can use xtarfile.open to also handle zst. We should prefer the 
native code instead of basically inlining bash into python.


True, in order to support lzo, lrz, lz4, lz, we might still need to do 
subprocess out and create a temporary file with the decompressed 
package, but this should really be a last resort (and users in practice 
should rarely hit this code).


What do you think about trying xtarfile first?

--
Eli Schwartz
Bug Wrangler and Trusted User



OpenPGP_signature
Description: OpenPGP digital signature


[arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-11 Thread meganomic via arch-projects
Adds handling of the compression and temporary storage into namcap.py so it can 
be removed from the bash script. https://bugs.archlinux.org/task/59844 mentions 
"use setuptools entry points." instead of the bash script but I don't know how 
to do that. I just removed it from the bash script for now.

diff --git a/namcap b/namcap
index ea0bc94..019b077 100755
--- a/namcap
+++ b/namcap
@@ -1,39 +1,2 @@
 #!/bin/bash
-
-args=''
-tmp=$(mktemp -d --tmpdir namcap.XX)
-cleanup() {
-    rm -rf "${tmp}"
-}
-trap 'cleanup' 0
-
-for arg in "${@}"; do
-    if echo "${arg}" | grep -q -E "^.+\.pkg\.tar\..+$" && [ -f "${arg}" ]; then
-
-        extra_opts=''
-        case "${arg##*.}" in
-            gz|z|Z) cmd='gzip' ;;
-            bz2|bz) cmd='bzip2' ;;
-            xz) cmd='xz' ;;
-            lzo)    cmd='lzop' ;;
-            lrz)    cmd='lrzip'
-                extra_opts="-q -o -" ;;
-            lz4)    cmd='lz4'
-                extra_opts="-q" ;;
-            lz) cmd='lzip'
-                extra_opts="-q" ;;
-            zst)    cmd='zstd'
-                extra_opts="-q" ;;
-            *)  echo 'Unsupported compression'; exit 1;;
-        esac
-
-        tar="${tmp}/$(basename "${arg%.*}")"
-        $cmd -dcf $extra_opts "${arg}" > "${tar}"
-
-        args="${args} ${tar}"
-    else
-        args="${args} ${arg}"
-    fi
-done
-
-/usr/bin/env python3 -m namcap ${args}
+/usr/bin/env python3 -m namcap ${@}
diff --git a/namcap.py b/namcap.py
index a7f532a..c5b54ca 100755
--- a/namcap.py
+++ b/namcap.py
@@ -23,6 +23,9 @@ import getopt
 import os
 import sys
 import tarfile
+import subprocess
+import tempfile
+import pathlib
 
 import Namcap.depends
 import Namcap.tags
@@ -237,14 +240,51 @@ if len(active_modules) == 0:
 
 # Go through each package, get the info, and apply the rules
 for package in packages:
-    if not os.access(package, os.R_OK):
+    pkgpath = pathlib.Path(package)
+
+    if not pkgpath.is_file():
     print("Error: Problem reading %s" % package)
-        usage()
+        parser.print_usage()
+        continue # Skip to next package if any
+
+    if pkgpath.with_suffix('').suffix == '.tar':
+        # What compression is used?
+        extra_opts = ''
+        if pkgpath.suffix == '.gz' or pkgpath.suffix == '.z' or pkgpath.suffix 
== '.Z':
+            cmd = 'gzip'
+        elif pkgpath.suffix == '.bz2' or pkgpath.suffix == '.bz':
+            cmd = 'bzip2'
+        elif pkgpath.suffix == '.xz':
+            cmd = 'xz'
+        elif pkgpath.suffix == '.lzo':
+            cmd = 'lzop'
+        elif pkgpath.suffix == '.lrz':
+            cmd = 'lrzip'
+            extra_opts="-q -o -"
+        elif pkgpath.suffix == '.lz4':
+            cmd = 'lz4'
+            extra_opts="-q"
+        elif pkgpath.suffix == '.lz':
+            cmd = 'lzip'
+            extra_opts="-q"
+        elif pkgpath.suffix == '.zst':
+            cmd = 'zstd'
+            extra_opts="-q"
+        else:
+            print("Unsupported compression!")
+            continue # Skip to next package if any
+
+        # Run decompression and put the .tar file in a temporary directory
+        tmpdir = tempfile.TemporaryDirectory(prefix='namcap.')
+        tmpfilepath = 
pathlib.Path(tmpdir.name).joinpath(pkgpath.with_suffix('').name)
+        subprocess.run(cmd + ' -dcf ' + extra_opts + pkgpath.as_posix() + ' > 
' + tmpfilepath.as_posix(), shell=True)
+
+        if tmpfilepath.is_file() and tarfile.is_tarfile(tmpfilepath):
+            process_realpackage(package, active_modules)
 
-    if os.path.isfile(package) and tarfile.is_tarfile(package):
-        process_realpackage(package, active_modules)
 elif 'PKGBUILD' in package:
     process_pkgbuild(package, active_modules)
+
 else:
     print("Error: %s not package or PKGBUILD" % package)
 


[arch-projects] [namcap] [PATCH] Change from getopt to argparse

2020-12-05 Thread meganomic via arch-projects
Simple change from using getopt to using argparse. Also fixes 
https://bugs.archlinux.org/task/56995

diff --git a/namcap.py b/namcap.py
index a7f532a..bb2754e 100755
--- a/namcap.py
+++ b/namcap.py
@@ -19,10 +19,10 @@
#
#

-import getopt
import os
import sys
import tarfile
+import argparse

import Namcap.depends
import Namcap.tags
@@ -33,22 +33,6 @@ def get_modules():
"""Return all possible modules (rules)"""
return Namcap.rules.all_rules

-def usage():
- """Display usage information"""
- print("")
- print("Usage: " + sys.argv[0] + " [OPTIONS] packages")
- print("")
- print("Options are:")
- print(" -L, --list : list available rules")
- print(" -i : prints information (debug) responses from rules")
- print(" -m : makes the output parseable (machine-readable)")
- print(" -e rulelist, --exclude=rulelist : don't apply RULELIST rules to the 
package")
- print(" -r rulelist, --rules=rulelist : only apply RULELIST rules to the 
package")
- print(" -t tags : use a custom tag file")
- print(" -v version : print version and exit")
-
- sys.exit(2)
-
def open_package(filename):
try:
tar = tarfile.open(filename, "r")
@@ -61,17 +45,6 @@ def open_package(filename):
return None
return tar

-def check_rules_exclude(optlist):
- '''Check if the -r (--rules) and the -r (--exclude) options
- are being used at same time'''
- args_used = 0
- for i in optlist:
- if '-r' in i or '-e' in i:
- args_used += 1
- if '--rules' in i or '--exclude' in i:
- args_used += 1
- return args_used
-
def show_messages(name, key, messages):
for msg in messages:
print("%s %s: %s" % (name, key, Namcap.tags.format_message(msg)))
@@ -162,74 +135,57 @@ def process_pkgbuild(package, modules):

# Main
modules = get_modules()
-info_reporting = 0
-machine_readable = False
-filename = None
-
-# get our options and process them
-try:
- optlist, args = getopt.getopt(sys.argv[1:], "ihmr:e:t:Lv",
- ["info", "help", "machine-readable", "rules=",
- "exclude=", "tags=", "list", "version"])
-except getopt.GetoptError:
- usage()
-
-active_modules = {}

-# Verifying if we are using the -r and -r options at same time
-if check_rules_exclude(optlist) > 1:
- print("You cannot use '-r' (--rules) and '-e' (-exclude) options at same 
time")
- usage()
-
-for i, k in optlist:
- if i in ('-L', '--list'):
+# Let's handle those options!
+version = Namcap.version.get_version()
+
+parser = argparse.ArgumentParser()
+parser.add_argument('-L', '--list', action='store_true', help='List available 
rules')
+parser.add_argument('-i', '--info', action='store_const', const=1, default=0, 
help='Prints information (debug) responses from rules')
+parser.add_argument('-m', '--machine-readable', action='store_true', 
help='Makes the output parseable (machine-readable)')
+parser.add_argument('-t', '--tags', action='store', help='Use a custom tag 
file')
+parser.add_argument('packages', nargs='+')
+pargroup = parser.add_mutually_exclusive_group()
+pargroup.add_argument('-e', '--exclude', action='store', metavar='RULELIST', 
help="Don't apply RULELIST rules to the package")
+pargroup.add_argument('-r', '--rules', action='store', metavar='RULELIST', 
help='Only apply RULELIST rules to the packag')
+parser.add_argument('-v', '--version', action='version', version=version)
+args = parser.parse_args()
+
+# Do something with all these options
+if (args.list):
print("-"*20 + " Namcap rule list " + "-"*20)
for j in sorted(modules):
print("%-20s: %s" % (j, modules[j].description))
- sys.exit(2)
-
- if i in ('-r', '--rules'):
- module_list = k.split(',')
- for j in module_list:
- if j in modules:
- active_modules[j] = modules[j]
- else:
- print("Error: Rule '%s' does not exist" % j)
- usage()
-
- # Used to exclude some rules from the check
- if i in ('-e', '--exclude'):
- module_list = k.split(',')
- active_modules.update(modules)
- for j in module_list:
- if j in modules:
- active_modules.pop(j)
- else:
- print("Error: Rule '%s' does not exist" % j)
- usage()
-
- if i in ('-i', '--info'):
- info_reporting = 1
-
- if i in ('-h', '--help'):
- usage()
- if i in ('-m', '--machine-readable'):
- machine_readable = True
-
- if i in ('-t', '--tags'):
- filename = k
-
- if i in ('-v', '--version'):
- print(Namcap.version.get_version())
- sys.exit(0)
-
-# If there are no args, print usage
-if (args == []):
- usage()
+ parser.exit(2)

-Namcap.tags.load_tags(filename = filename, machine = machine_readable)
+info_reporting = args.info
+machine_readable = args.machine_readable
+filename = args.tags

-packages = args
+if (args.rules):
+ module_list = args.rules
+ for j in module_list:
+ if j in modules:
+ active_modules[j] = modules[j]
+ else:
+ print("Error: Rule '%s' does not exist" % j)
+ parser.exit(2)
+
+if (args.exclude):
+ module_list = args.exclude
+ active_modules.update(modules)
+ for j in module_list:
+ if j in modules:
+ active_modules.pop(j)
+ else:
+ print("Error: Rule '%s' does not exist" % j)
+ parser.exit(2)
+
+packages = args.packages
+
+active_modules = {}
+
+Namcap.tags.load_tags(filename = 

Bug#975693: mirror submission for mirrors.hostico.ro

2020-11-25 Thread Awesome Projects
Package: mirrors
Severity: wishlist
User: mirr...@packages.debian.org
Usertags: mirror-submission

Submission-Type: new
Site: mirrors.hostico.ro
Type: leaf
Archive-architecture: amd64
Archive-http: /debian/
Maintainer: Awesome Projects 
Country: RO Romania
Location: Bucharest
Sponsor: Hostico https://hostico.ro
Comment: Resubmission as suggested in 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959038 .




Trace Url: http://mirrors.hostico.ro/debian/project/trace/
Trace Url: http://mirrors.hostico.ro/debian/project/trace/ftp-master.debian.org
Trace Url: http://mirrors.hostico.ro/debian/project/trace/mirrors.hostico.ro



WARN: project from a retired committee but PMC not changed to Attic in http://marmotta.apache.org/doap.rdf

2020-11-20 Thread Projects


[arch-projects] [devtools] [PATCH] [RFC] builduser secondary group

2020-11-11 Thread Oliver Harley via arch-projects
I have my SRCDEST folder owned by root:makepkg, where makepkg is a group
build users are given. This causes issues with the bind mount when using
makechrootpkg.
I am using this patch to resolve that problem.

Is there be any interest me to expand this out so a `makepkggrp` can be set
as an optional argument?

Cheers,
Ixil
25a26
> makepkg_grp=makepkg
158c159
< 	local builduser_uid builduser_gid
---
> 	local builduser_uid builduser_gid makepkggrp_gid
160a162
> 	makepkggrp_gid="$(getent group "$makepkg_grp" | cut -d: -f3)"
167a170
> 	sed -e '/^makepkggrp:/d' -i "$copydir"/etc/{group,gshadow}
170a173,175
> 	printf >>"$copydir/etc/group"  'makepkggrp:x:%d:builduser\n' "$makepkggrp_gid"
> 	printf >>"$copydir/etc/gshadow" 'makepkggrp:!::builduser\n'


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository annotated tag v29 created. v29

2020-10-28 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The annotated tag, v29 has been created
at  7cb5bf5f70e55a32b74650c6fcb5a63a4be1bf73 (tag)
   tagging  6e4603638b459468d235437c6a47584d609a86a2 (commit)
  replaces  v28
 tagged by  Giancarlo Razzolini
on  Wed Oct 28 13:36:58 2020 -0300

- Log -
tag as v29
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEE7MrITBugimzI5j+78i+x14p3rqsFAl+Zni8ACgkQ8i+x14p3
rqsGCRAAnat6ysPHZ+3KsldurTIk33DaXBV5tCt4J2WAWcXFuKW3BNHmFhaEd6pn
DYYx7hbtJwknr2C5qiCzDKoD+pg3R3nnlgM99w+gwDWu43zi5J9+fzrFW8m/LgyO
DdUVWGwnpkUWm/amo/C6hsGUfxLgbLO0SS2kUZ2f+fLar46avva5L+DHr+JCICnj
qBMO7+rB3/SjDf5vzI7nG9TA6zA1gT6cBPEn+AEE/TwUsaielJBLxHKgHUn5vs8g
dw+o2I56XKiNUrt+oC3bx1AoP/b7fVW84Q6XEzO0BI2EHz6ydcnR+ZChY933P0c5
0uWJX+c4R4CGDIVgIwh2R0TWLr8gTDT6gRH2RllFHac5TMre0yEhaUFmo2R/D5oS
RadgiWnEHd5RTHqCJ4aQgKMgeuCqdO/co4GCS4+559a0GsmRRtDbkhNbT4YiqE/L
zq8im01E9w2mfMmYfFqKhwV9m3Fhp5KRl/ZwnA3ayjyo9Phl9H7gcr1E8oj6uvZG
rEO/CjMgulsbYto1t45HKmKjQKwHzQ12jAjwL2IdKDPc83tQioY0seX8TaWalj3u
PxzuCbQWdhI+nED5f2p3MyYVKO5bpase9+FBRBPiQhRUaaU3UmbO/AfYNSBCcUfE
xa705909FRIHqNhpjy0MhpI+EbY9K6Y/Zf/Brs1pvxRCi1kOssw=
=2/kx
-END PGP SIGNATURE-

Christian Hesse (1):
  fsck: do not complain about missing helper for tmpfs

Giancarlo Razzolini (9):
  Merge pull request #35 from luca020400/master
  Merge branch 'mmc' of https://github.com/tlahdekorpi/mkinitcpio into 
tlahdekorpi-mmc
  Merge branch 'tlahdekorpi-mmc'
  Merge branch 'patch-1' of https://github.com/sirlucjan/mkinitcpio into 
sirlucjan-patch-1
  Merge branch 'sirlucjan-patch-1'
  Merge branch 'nvdimm' of https://github.com/nl6720/mkinitcpio into 
nl6720-nvdimm
  Merge branch 'nl6720-nvdimm'
  Merge branch 'tmpfs' of https://github.com/eworm-de/mkinitcpio into 
eworm-de-tmpfs
  Merge branch 'eworm-de-tmpfs'

Luca Stefani (2):
  mkinitcpio: Add support for the zstd compressor
  Switch to multi-threaded zstd compressor

Piotr Gorski (2):
  alpm-hooks should use Type = Path, not File
  Merge remote-tracking branch 'upstream/master' into patch-1

Tuomas Lähdekorpi (1):
  block: only include drivers/mmc

nl6720 (1):
  install/block: include NVDIMM modules

---


hooks/post-receive
-- 
The official mkinitcpio repository


WARN: project from a retired committee but PMC not changed to Attic in https://gitbox.apache.org/repos/asf?p=climate.git;f=doap_CLIMATE.rdf;a=blob_plain;hb=HEAD

2020-10-27 Thread Projects


WARN: project in Attic but not in 'retired' category: https://gitbox.apache.org/repos/asf?p=climate.git;f=doap_CLIMATE.rdf;a=blob_plain;hb=HEAD

2020-10-27 Thread Projects


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository branch master updated. v28-16-g6e46036

2020-10-27 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The branch, master has been updated
   via  6e4603638b459468d235437c6a47584d609a86a2 (commit)
   via  245d81abb0a4cffe3b8f29cfe62d9271d3ed96fe (commit)
   via  5f5005c73314c87c8a06fa5a8e93d60334d78088 (commit)
   via  fc0c4b82280afc7cc5a0ccbf87f05c6be3b49567 (commit)
   via  9ed672feafbe2c2b66ca1d02c8550d5ad6bd8738 (commit)
   via  70293299ff93ecbca50673a06c28c91bd4c85cbb (commit)
   via  810e1f12899dfd992368211527ce500b8cb49bc0 (commit)
   via  5465b60eee7da6369adc439e901b05de9e1666fc (commit)
   via  9ca1bbf1e2305bad1c99ffe90485660c56185c97 (commit)
   via  516e3712c8b6a14fddc216e9368f6e61b1ca25c1 (commit)
   via  13cb503ab9afb70a2ac5f1e4ce31d9f95ea5ecc8 (commit)
   via  852917d99cda518917343bb9546a1867775379c6 (commit)
   via  1dd2ab6d47b8f254ad933b5c9d68b479c3188ea0 (commit)
   via  1805f971ceae93d1799b705f3fd964c6d1090260 (commit)
   via  6ca402a3663b03884343564e780483d005a56e2c (commit)
   via  36ad1f95a7b9ee5e33d8077fecdfc2b90255f30a (commit)
  from  3340dbc2ed92a0d9e58193d2d4082a588c1d84ca (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 6e4603638b459468d235437c6a47584d609a86a2
Merge: 5f5005c 245d81a
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 15:46:01 2020 -0300

Merge branch 'eworm-de-tmpfs'

commit 245d81abb0a4cffe3b8f29cfe62d9271d3ed96fe
Merge: 5f5005c 1dd2ab6
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 15:44:07 2020 -0300

Merge branch 'tmpfs' of https://github.com/eworm-de/mkinitcpio into 
eworm-de-tmpfs

commit 5f5005c73314c87c8a06fa5a8e93d60334d78088
Merge: 9ed672f fc0c4b8
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 15:43:02 2020 -0300

Merge branch 'nl6720-nvdimm'

commit fc0c4b82280afc7cc5a0ccbf87f05c6be3b49567
Merge: 9ed672f 1805f97
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 15:40:46 2020 -0300

Merge branch 'nvdimm' of https://github.com/nl6720/mkinitcpio into 
nl6720-nvdimm

commit 9ed672feafbe2c2b66ca1d02c8550d5ad6bd8738
Merge: 810e1f1 7029329
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 15:30:25 2020 -0300

Merge branch 'sirlucjan-patch-1'

commit 70293299ff93ecbca50673a06c28c91bd4c85cbb
Merge: 810e1f1 13cb503
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 15:22:55 2020 -0300

Merge branch 'patch-1' of https://github.com/sirlucjan/mkinitcpio into 
sirlucjan-patch-1

commit 810e1f12899dfd992368211527ce500b8cb49bc0
Merge: 9ca1bbf 5465b60
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 14:30:03 2020 -0300

Merge branch 'tlahdekorpi-mmc'

commit 5465b60eee7da6369adc439e901b05de9e1666fc
Merge: 9ca1bbf 36ad1f9
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 14:26:34 2020 -0300

Merge branch 'mmc' of https://github.com/tlahdekorpi/mkinitcpio into 
tlahdekorpi-mmc

commit 9ca1bbf1e2305bad1c99ffe90485660c56185c97
Merge: 3340dbc 516e371
Author: Giancarlo Razzolini 
Date:   Tue Oct 27 12:25:14 2020 -0300

Merge pull request #35 from luca020400/master

mkinitcpio: Add support for the zstd compressor

commit 516e3712c8b6a14fddc216e9368f6e61b1ca25c1
Author: Luca Stefani 
Date:   Thu Oct 8 15:06:04 2020 +0200

Switch to multi-threaded zstd compressor

commit 13cb503ab9afb70a2ac5f1e4ce31d9f95ea5ecc8
Merge: 6ca402a 3340dbc
Author: Piotr Gorski 
Date:   Mon Sep 21 16:26:28 2020 +0200

Merge remote-tracking branch 'upstream/master' into patch-1

commit 852917d99cda518917343bb9546a1867775379c6
Author: Luca Stefani 
Date:   Sun Jul 26 12:33:33 2020 +0200

mkinitcpio: Add support for the zstd compressor

commit 1dd2ab6d47b8f254ad933b5c9d68b479c3188ea0
Author: Christian Hesse 
Date:   Tue Dec 19 23:30:44 2017 +0100

fsck: do not complain about missing helper for tmpfs

Within a (build) chroot we may have root on tmpfs. There is no fsck
helper for tmpfs, so do not complain.

Signed-off-by: Christian Hesse 

commit 1805f971ceae93d1799b705f3fd964c6d1090260
Author: nl6720 
Date:   Thu Jul 16 12:07:08 2020 +0300

install/block: include NVDIMM modules

This allows for booting from an ISO that was copied to a pmem device, such 
as '/dev/pmem0'.
See also https://github.com/u-root/webboot/ .

Co-authored-by: Daniel Maslowski 

commit 6ca402a3663b03884343564e780483d005a56e2c
Author: Piotr Gorski 
Date:   Tue Mar 3 15:01:59 2020 +0100

alpm-hooks should use Type = Path, not File

Signed-off-by: Piotr Gorski 

commit 36ad1f95a7b9ee5e33d8077fecdfc2b90255f30a
Author: Tuomas Lähdekorpi 
Date:   Wed May 20 21:38:42 2020 +0300

block: only include drivers/mmc

Filtering only by mmc pulls in media/mmc which would include 

[arch-projects] [netctl] [GIT] Network control utility based on systemd annotated tag 1.24 created. 1.24

2020-10-16 Thread Jouke Witteveen via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Network control utility based on systemd".

The annotated tag, 1.24 has been created
at  717a6f620eb27db487be32ad2ecc6fc019ce9af5 (tag)
   tagging  ca58db4f98ec0e0182deb5a96d2de340425ad093 (commit)
  replaces  1.23
 tagged by  Jouke Witteveen
on  Fri Oct 16 13:44:27 2020 +0200

- Log -
Release 1.24
-BEGIN PGP SIGNATURE-

iQFKBAABCAA0FiEEbql9KtO+F66lkufaVrYfv4JJLBUFAl+Jh64WHGoud2l0dGV2
ZWVuQGdtYWlsLmNvbQAKCRBWth+/gkksFYRGB/9ZTFUflI6bbRJFsfb5sOihZKze
TQA0Yjg4Ze6/8S5Ndut3uaniqw/dDyQWUwJcRSGZGhon4s/Lsufcqm1TuDj+JTx+
PqG4VxHWn1Ak03oconDgDXtANRa3bxjh9XNCyvNnQTvPPLVut7iSGI1paPKjEcjr
1h9iTII78eV5XupMjm0DC5znS+aYFScXfqWOHssOQ2jRDoeAyHw/CXai2IpIzQOx
xx9d1bCElffK26ht16Os8iG7Z8JiS6+FWqWgwC8FWWjbVswET7MKc+1L7t/SjmUP
Zn86lvDlpRVtjU7gOP807dc45QVoPxiocRLXSTc3moyiSbYTnrdfh6DlmpVP
=wg/b
-END PGP SIGNATURE-

Jouke Witteveen (4):
  Stop netctl-ifplugd more correctly
  Don't delay deconfiguring in netctl-ifplugd (FS#67382)
  Add man page for wifi-menu(1)
  1.24 release updates

Семён Марьясин (1):
  Speed up 'netctl list'

---


hooks/post-receive
-- 
Network control utility based on systemd


[arch-projects] [netctl] [GIT] Network control utility based on systemd branch master updated. 1.23-5-gca58db4

2020-10-16 Thread Jouke Witteveen via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Network control utility based on systemd".

The branch, master has been updated
   via  ca58db4f98ec0e0182deb5a96d2de340425ad093 (commit)
  from  1e08e03a37c7276593ebf2aeb8794128b6628c4f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit ca58db4f98ec0e0182deb5a96d2de340425ad093
Author: Jouke Witteveen 
Date:   Fri Oct 9 13:32:52 2020 +0200

1.24 release updates

---

Summary of changes:
 Makefile | 2 +-
 NEWS | 4 
 2 files changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Network control utility based on systemd


[arch-projects] [netctl] [GIT] Network control utility based on systemd branch master updated. 1.23-4-g1e08e03

2020-10-09 Thread Jouke Witteveen via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Network control utility based on systemd".

The branch, master has been updated
   via  1e08e03a37c7276593ebf2aeb8794128b6628c4f (commit)
   via  833c18ae8cbf012bf147e577e99a762f4aad523f (commit)
   via  65c5f5514dbad36ff978d0f05ba7a9937b923201 (commit)
  from  b34f51a16da086723b693431e727d4e1270a5328 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 1e08e03a37c7276593ebf2aeb8794128b6628c4f
Author: Jouke Witteveen 
Date:   Fri Oct 9 13:18:50 2020 +0200

Add man page for wifi-menu(1)

Written mostly by GitHub user tetrakist.

commit 833c18ae8cbf012bf147e577e99a762f4aad523f
Author: Jouke Witteveen 
Date:   Fri Oct 9 12:37:50 2020 +0200

Don't delay deconfiguring in netctl-ifplugd (FS#67382)

When netctl-ifplugd starts a profile that uses dhcpcd and the interface
disappears (for example because of a re-enumeration after a resume from
suspend), dhcpcd immediately exits, but ifplugd notices that the interface
reappears within a timeout and does not bother reconfiguring it.

This commit disables the ifplugd timeout. If it turns out to be needed for
buggy interfaces, we should implement the desired functionality in the
ifplugd.action script.

commit 65c5f5514dbad36ff978d0f05ba7a9937b923201
Author: Jouke Witteveen 
Date:   Fri Oct 9 12:27:38 2020 +0200

Stop netctl-ifplugd more correctly

---

Summary of changes:
 docs/Makefile|  2 +-
 docs/wifi-menu.1.txt | 90 
 services/netctl-ifplugd@.service |  3 +-
 3 files changed, 93 insertions(+), 2 deletions(-)
 create mode 100644 docs/wifi-menu.1.txt


hooks/post-receive
-- 
Network control utility based on systemd


WARN: project in Attic but not in 'retired' category: https://gitbox.apache.org/repos/asf?p=predictionio.git;a=blob_plain;f=doap.rdf;hb=refs/heads/develop

2020-09-20 Thread Projects


WARN: project in Attic but not in 'retired' category: https://gitbox.apache.org/repos/asf?p=tajo.git;f=doap_Tajo.rdf;a=blob_plain;hb=HEAD

2020-09-20 Thread Projects


WARN: project from a retired committee but PMC not changed to Attic in https://gitbox.apache.org/repos/asf?p=predictionio.git;a=blob_plain;f=doap.rdf;hb=refs/heads/develop

2020-09-20 Thread Projects


WARN: project from a retired committee but PMC not changed to Attic in https://gitbox.apache.org/repos/asf?p=tajo.git;f=doap_Tajo.rdf;a=blob_plain;hb=HEAD

2020-09-20 Thread Projects


[arch-projects] [namcap] [PATCH v2] Warn on unquoted pkgdir and srcdir

2020-09-20 Thread Michael Straube via arch-projects
Unqouted $pkgdir and $srcdir can lead to errors if the directory name
contains spaces. Not quoting these variables is a common mistake. For
example, it is often seen in PKGBUILDs that are submitted for review.
Add a rule that warns on unquoted $pkgdir and $srcdir.

Signed-off-by: Michael Straube 
---

v1 -> v2
Updated my email address.

 Namcap/rules/__init__.py  |  3 +-
 Namcap/rules/unquoteddirvars.py   | 39 
 Namcap/tests/pkgbuild/test_unquoteddirvars.py | 63 +++
 namcap-tags   |  1 +
 4 files changed, 105 insertions(+), 1 deletion(-)
 create mode 100644 Namcap/rules/unquoteddirvars.py
 create mode 100644 Namcap/tests/pkgbuild/test_unquoteddirvars.py

diff --git a/Namcap/rules/__init__.py b/Namcap/rules/__init__.py
index 5ca6551..bd348b4 100644
--- a/Namcap/rules/__init__.py
+++ b/Namcap/rules/__init__.py
@@ -67,7 +67,8 @@ from . import (
   pkginfo,
   pkgnameindesc,
   sfurl,
-  splitpkgbuild
+  splitpkgbuild,
+  unquoteddirvars
 )
 
 all_rules = {}
diff --git a/Namcap/rules/unquoteddirvars.py b/Namcap/rules/unquoteddirvars.py
new file mode 100644
index 000..bf303f0
--- /dev/null
+++ b/Namcap/rules/unquoteddirvars.py
@@ -0,0 +1,39 @@
+#
+# namcap rules - unquoteddirvars
+# Copyright (C) 2020 Michael Straube 
+#
+#   This program is free software; you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation; either version 2 of the License, or
+#   (at your option) any later version.
+#
+#   This program is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#   GNU General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with this program; if not, write to the Free Software
+#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+
+import re
+from Namcap.ruleclass import *
+
+class package(PkgbuildRule):
+   name = "unquoteddirvars"
+   description = "Looks for unquoted $pkgdir and $srcdir"
+   def analyze(self, pkginfo, pkgbuild):
+   needles = ['$pkgdir', '${pkgdir}', '$srcdir', '${srcdir}']
+   hits = set()
+   for line in pkginfo.pkgbuild:
+   if not any(n in line for n in needles):
+   continue
+   double_quoted_strings = re.findall('"([^"]*)"', line)
+   for n in needles:
+   if line.count(n) != sum(n in s for s in 
double_quoted_strings):
+   hits.add(n)
+   for i in hits:
+   self.warnings.append(("unquoted-dirvar %s", i))
+
+# vim: set ts=4 sw=4 noet:
diff --git a/Namcap/tests/pkgbuild/test_unquoteddirvars.py 
b/Namcap/tests/pkgbuild/test_unquoteddirvars.py
new file mode 100644
index 000..4525744
--- /dev/null
+++ b/Namcap/tests/pkgbuild/test_unquoteddirvars.py
@@ -0,0 +1,63 @@
+#
+# namcap tests - unquoteddirvars
+# Copyright (C) 2020 Michael Straube 
+#
+#   This program is free software; you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation; either version 2 of the License, or
+#   (at your option) any later version.
+#
+#   This program is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#   GNU General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with this program; if not, write to the Free Software
+#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+
+from Namcap.tests.pkgbuild_test import PkgbuildTest
+import Namcap.rules
+
+class NamcapUnqoutedDirVarsTest(PkgbuildTest):
+   pkgbuild = """
+# Maintainer: Arch Linux 
+# Contributor: Arch Linux 
+
+pkgname=mypackage
+pkgver=1.0
+pkgrel=1
+pkgdesc="A package"
+url="http://www.example.com/;
+arch=('x86_64')
+depends=('glibc')
+license=('GPL')
+options=('!libtool')
+source=(ftp://ftp.example.com/pub/mypackage-0.1.tar.gz)
+md5sums=('abcdefabcdef12345678901234567890')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+}
+
+package() {
+  make install DESTDIR=$pkgdir/
+  install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
+  install -Dm644 "${srcdir}/example.desktop" "$pkgdir"/usr/share/applications
+}
+"""
+   test_valid = PkgbuildTest.valid_tests
+
+   def preSetUp(self):
+   self.rule = Namcap.rules.unquoteddirvars.package
+
+   def test_example(self):
+   needles = ['$pkgdir', '${pkgdir}', '$srcdir', '${srcdir}']
+   

[arch-projects] [namcap] [PATCH] Revert "makedepends: Replace bzr with breezy"

2020-09-20 Thread Michael Straube via arch-projects
As Allan pointed out the change bzr -> breezy was in Arch,
but not everywhere else pacman is used. Also breezy provides
bzr, so it still works as it was.

Signed-off-by: Michael Straube 
---

https://lists.archlinux.org/pipermail/pacman-dev/2020-July/024474.html

 Namcap/rules/makedepends.py   | 2 +-
 Namcap/tests/pkgbuild/test_makedepends.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Namcap/rules/makedepends.py b/Namcap/rules/makedepends.py
index b319e7c..380a089 100644
--- a/Namcap/rules/makedepends.py
+++ b/Namcap/rules/makedepends.py
@@ -48,7 +48,7 @@ class VCSMakedepends(PkgbuildRule):
 
def analyze(self, pkginfo, pkgbuild):
vcs = {
-   'bzr' : 'breezy',
+   'bzr' : 'bzr',
'git' : 'git',
'hg' : 'mercurial',
'svn' : 'subversion',
diff --git a/Namcap/tests/pkgbuild/test_makedepends.py 
b/Namcap/tests/pkgbuild/test_makedepends.py
index 676af33..d443b2b 100644
--- a/Namcap/tests/pkgbuild/test_makedepends.py
+++ b/Namcap/tests/pkgbuild/test_makedepends.py
@@ -97,7 +97,7 @@ package() {
 
def test_example1(self):
# Example 1
-   makedeps = ['breezy', 'git', 'mercurial', 'subversion']
+   makedeps = ['bzr', 'git', 'mercurial', 'subversion']
r = self.run_on_pkg(self.pkgbuild1)
self.assertEqual(r.errors, [])
self.assertEqual(set(r.warnings),
-- 
2.28.0


Nationwide Construction Estimates!!

2020-09-17 Thread projects--- via Cygwin
Hi,

Hope you are doing well,

We are providing all types of construction estimates and take-offs to
building professionals and owner-builders. Our estimators have experience
providing estimates on residential, commercial, and civil construction
projects.

Reply to this email for any samples or queries, or send us the
Drawings/plans in PDF or any link. Looking forward to hearing from you soon.

 

Kind Regards,

Tommy

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


WARN: project from a retired committee but PMC not changed to Attic in http://svn.apache.org/repos/asf/lens/doap.rdf

2020-09-06 Thread Projects


WARN: project from a retired committee but PMC not changed to Attic in http://svn.apache.org/repos/asf/lens/doap.rdf

2020-08-27 Thread Projects


WARN: project in Attic but not in 'retired' category: http://svn.apache.org/repos/asf/lens/doap.rdf

2020-08-27 Thread Projects


WARN: project in Attic but not in 'retired' category: http://svn.apache.org/repos/asf/lens/doap.rdf

2020-08-20 Thread Projects


WARN: project from a retired committee but PMC not changed to Attic in http://svn.apache.org/repos/asf/lens/doap.rdf

2020-08-20 Thread Projects


WARN: project in Attic but not in 'retired' category: http://svn.apache.org/repos/asf/lens/doap.rdf

2020-08-20 Thread Projects


WARN: project from a retired committee but PMC not changed to Attic in http://svn.apache.org/repos/asf/lens/doap.rdf

2020-08-20 Thread Projects


Get TedsWoodworking 16,000 Plans & All The Bonuses Over Here.

2020-08-15 Thread Woodwork Projects





















Hey,





This is important: Have you secured TedsWoodworking yet?





If not, go immediately to do so...





As I've said, this is the EASIEST way to start your woodworking projects -and it's still at a Ridiculous low price:





If you're just starting out or you're a seasoned carpenter, you'll ..Learn more





find out just how simple it is to build projects using Teds Woodworking step-by-step plans..











PRICE IS GOING UP IN 24 HOURS





With over 16,000 plans, it covers a ton of projects. Check it out and see why I endorse it so much.You'll love it. So hurry...before this offer ends:





Take care and talk soon.


























 








If you don't like this update, no problem please Unsubscribe..






or send post-mail To 1663 Lake Ave. New York, NY 101663
















Re: [arch-projects] [mkinitcpio] [PATCH 1/1] support zstd compression

2020-08-14 Thread Giancarlo Razzolini via arch-projects

Em agosto 14, 2020 10:09 Christian Hesse escreveu:


Well, that looks pretty incomplete... In fact it just sets the compression
option and skips everything else.



Just replying here as well, to your comments on the PR. We usually use defaults
on mkinitcpio, so the user is left to choose levels. But, you want to propose a
sane default, I'm all ears (perhaps the same we use on pacman?).


But this explains why I could not find mkinitcpio in gitlab... Will send me
commit there.


I have not yet moved it to gitlab, also, it'll be on its own group there.

Regards,
Giancarlo Razzolini

pgp8kZXaxNFCG.pgp
Description: PGP signature


Re: [arch-projects] [mkinitcpio] [PATCH 1/1] support zstd compression

2020-08-14 Thread Morten Linderud via arch-projects
On Fri, Aug 14, 2020 at 02:44:46PM +0200, Christian Hesse wrote:
> From: Christian Hesse 
> 
> Linux 5.9 supports zstd compressed initramfs, so add support here.

Just a headsup that there is a pull-request on github with changes to support
this.

https://github.com/archlinux/mkinitcpio/pull/35

-- 
Morten Linderud
PGP: 9C02FF419FECBE16


signature.asc
Description: PGP signature


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository annotated tag v28 created. v28

2020-07-16 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The annotated tag, v28 has been created
at  206e5f0db697510c968b5d5b143fce62b5c4717b (tag)
   tagging  3340dbc2ed92a0d9e58193d2d4082a588c1d84ca (commit)
  replaces  v27
 tagged by  Giancarlo Razzolini
on  Thu Jul 16 11:10:53 2020 -0300

- Log -
tag as v28

Dave Reisner (3):
  only add modules if the filename value looks like a path
  Read from modules.builtin.modinfo if it exists
  Revert "[functions] Ignore modinfo built-in modules"

Giancarlo Razzolini (4):
  Merge branch 'dNhax-patch-1'
  Merge branch 'morten/fix-builtin' of 
https://github.com/Foxboron/mkinitcpio into Foxboron-morten/fix-builtin
  Merge branch 'Foxboron-morten/fix-builtin'
  libalpm/scripts/mkinitcpio-remove: Added the patch for the pacsave 
functionality

Morten Linderud (1):
  [functions] Ignore modinfo built-in modules

dNhax (1):
  Fix typo

---


hooks/post-receive
-- 
The official mkinitcpio repository


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository branch master updated. v27-9-g3340dbc

2020-07-16 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The branch, master has been updated
   via  3340dbc2ed92a0d9e58193d2d4082a588c1d84ca (commit)
  from  ab34e08b4624d1a212b66cc0f2c0a2c5b9feb325 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 3340dbc2ed92a0d9e58193d2d4082a588c1d84ca
Author: Giancarlo Razzolini 
Date:   Thu Jul 16 11:08:11 2020 -0300

libalpm/scripts/mkinitcpio-remove: Added the patch for the pacsave 
functionality

When removing kernels, detect if the preset was changes and save it as a 
.pacsave,
instead of removing it.

---

Summary of changes:
 libalpm/scripts/mkinitcpio-remove | 38 ++
 1 file changed, 30 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
The official mkinitcpio repository


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository annotated tag v28 deleted. v27-8-gab34e08

2020-07-16 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The annotated tag, v28 has been deleted
   was  f637c48ed4bb3b6db623d5df8cbea848f9bd6e36

- Log -
ab34e08b4624d1a212b66cc0f2c0a2c5b9feb325 Revert "[functions] Ignore modinfo 
built-in modules"
---


hooks/post-receive
-- 
The official mkinitcpio repository


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository annotated tag v28 created. v28

2020-07-16 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The annotated tag, v28 has been created
at  f637c48ed4bb3b6db623d5df8cbea848f9bd6e36 (tag)
   tagging  ab34e08b4624d1a212b66cc0f2c0a2c5b9feb325 (commit)
  replaces  v27
 tagged by  Giancarlo Razzolini
on  Thu Jul 16 10:50:43 2020 -0300

- Log -
tag as v28

Dave Reisner (3):
  only add modules if the filename value looks like a path
  Read from modules.builtin.modinfo if it exists
  Revert "[functions] Ignore modinfo built-in modules"

Giancarlo Razzolini (3):
  Merge branch 'dNhax-patch-1'
  Merge branch 'morten/fix-builtin' of 
https://github.com/Foxboron/mkinitcpio into Foxboron-morten/fix-builtin
  Merge branch 'Foxboron-morten/fix-builtin'

Morten Linderud (1):
  [functions] Ignore modinfo built-in modules

dNhax (1):
  Fix typo

---


hooks/post-receive
-- 
The official mkinitcpio repository


[arch-projects] [mkinitcpio] [GIT] The official mkinitcpio repository branch master updated. v27-8-gab34e08

2020-07-16 Thread Giancarlo Razzolini via arch-projects
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The official mkinitcpio repository".

The branch, master has been updated
   via  ab34e08b4624d1a212b66cc0f2c0a2c5b9feb325 (commit)
   via  c9544f97258858587958654f0b000937b2f62354 (commit)
   via  b6361a3836a50f9bbe06dba4bf5740c3bfb1af3d (commit)
   via  024119a987f720101bc1af723772d608e84e8e2d (commit)
   via  c1c25dfebdff0a8fef2043c43bae08e0b62613be (commit)
   via  30dbfc2770cb49cb3babfb750205b126d7d88791 (commit)
   via  91a35c77972affa995d1ee760986ad2f6e045407 (commit)
   via  16368898a5f0edac391c67cdf8ceed2ca24e737a (commit)
  from  7f81f51a5b813343fe55253f60a865e75f42be52 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit ab34e08b4624d1a212b66cc0f2c0a2c5b9feb325
Author: Dave Reisner 
Date:   Wed May 20 08:50:48 2020 -0400

Revert "[functions] Ignore modinfo built-in modules"

As reported in https://github.com/archlinux/mkinitcpio/pull/20, this
breaks various edge case involving builtins, leading to
hardware-accelerated modules to not be added.

This reverts commit 30dbfc2770cb49cb3babfb750205b126d7d88791.

commit c9544f97258858587958654f0b000937b2f62354
Author: Dave Reisner 
Date:   Sat Mar 7 13:45:30 2020 -0500

Read from modules.builtin.modinfo if it exists

There's a lot more to be gained from reading this file -- builtins might
have aliases which aren't available in the older modules.builtin index.

Fixes FS#65725.

commit b6361a3836a50f9bbe06dba4bf5740c3bfb1af3d
Author: Dave Reisner 
Date:   Sat Mar 7 13:48:36 2020 -0500

only add modules if the filename value looks like a path

This is a defensive measure against the bug raised in FS#65725. While
it does technically avoid the bug, it isn't IMO the proper fix. We'll
address that in another patch.

commit 024119a987f720101bc1af723772d608e84e8e2d
Merge: 91a35c7 c1c25df
Author: Giancarlo Razzolini 
Date:   Mon Feb 24 17:00:57 2020 -0300

Merge branch 'Foxboron-morten/fix-builtin'

commit c1c25dfebdff0a8fef2043c43bae08e0b62613be
Merge: 91a35c7 30dbfc2
Author: Giancarlo Razzolini 
Date:   Mon Feb 24 17:00:15 2020 -0300

Merge branch 'morten/fix-builtin' of https://github.com/Foxboron/mkinitcpio 
into Foxboron-morten/fix-builtin

commit 30dbfc2770cb49cb3babfb750205b126d7d88791
Author: Morten Linderud 
Date:   Thu Feb 20 09:44:29 2020 +0100

[functions] Ignore modinfo built-in modules

modinfo have started reporting filenames as "(builtin)" on built-in
modules. Ignore these and continue with other modules.

Fixes: https://bugs.archlinux.org/task/65564
Introduced in: 
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?id=e7e2cb61fa9f1db3429d91ef6accff549500d268

Signed-off-by: Morten Linderud 

commit 91a35c77972affa995d1ee760986ad2f6e045407
Merge: 7f81f51 1636889
Author: Giancarlo Razzolini 
Date:   Mon Jan 20 16:58:09 2020 -0300

Merge branch 'dNhax-patch-1'

commit 16368898a5f0edac391c67cdf8ceed2ca24e737a
Author: dNhax 
Date:   Thu Dec 19 10:33:43 2019 +0100

Fix typo

---

Summary of changes:
 HACKING|  2 +-
 functions  | 16 +++-
 mkinitcpio | 34 ++
 3 files changed, 38 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
The official mkinitcpio repository


<    1   2   3   4   5   6   7   8   9   10   >